An NFC Card Reader for Home Assistant Automations

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 มิ.ย. 2024
  • I'll be building a standalone reader for scanning tags into Home Assistant and then using these tags as triggers for automations. Be sure to check the rest of the video description for more information, including parts used, links to wiring diagrams and more.
    A written version of this project with diagrams can be found here: resinchemtech.blogspot.com/20...
    Chapter Links:
    =============
    00:00 Introduction
    01:58 Parts Used
    06:00 PN532 Details
    07:02 Wiring and Connections
    08:00 ESPHome Code and Installation
    10:26 Breadboard Testing
    11:28 Assembled Version
    12:33 Scanning Cards in Home Assistant
    13:37 Creating Home Assistant Automations
    15:50 Final Testing and Demo
    17:01 WAF and Wrap-Up
    Parts Used/Shown:
    ================
    PN532 NFC Card Reader Module: amzn.to/43ccRD1
    Wemos D1 Mini: amzn.to/3pwdvgE
    Common Anode RGB LED: amzn.to/3JJi3qP
    Vibrating Motor: amzn.to/3pqcua9
    ElectroCookie Prototype Board: amzn.to/3O07t1t
    Resistor (220Ω - 10kΩ): amzn.to/44reHAM
    5V 2.5A USB Power Source: amzn.to/46z0QKr
    Micro USB Cable: amzn.to/3PFjXMW
    NFC Cards (or other NFC tags): amzn.to/46sj6Fz
    20 gauge solid wire: amzn.to/3NFS1WG
    24 gauge stranded wire: amzn.to/439hJIW
    Straight pin headers: (for PN532): amzn.to/44w0bbc
    Optional Items
    Inkjet/LaserJet Labels: amzn.to/3CUjT4B
    1/2 Size Breadboard: amzn.to/3NYxe1S
    Breadboard jumper set: amzn.to/43bBPlG
    Dupont Jumpers: amzn.to/447Ba65
    Some of these links may be Amazon affiliate links. Use of these links will not affect your pricing, but this channel may earn a small commission if you make a purchase.
    Additional links and info:
    =========================
    Enclosure 3D Design Files: www.thingiverse.com/thing:611...
    Adonno's Original Project: github.com/adonno/tagreader
    My ESPHome Code (gist): gist.github.com/Resinchem/f83...
    If you'd like to help support this channel, or just say thanks, you can consider buying me a cup of coffee or two at:
    www.buymeacoffee.com/resinche...
    Special Thanks:
    ===============
    PN532 and NFC tags provided by subscriber @BELSERVICEMAN - Thanks Rich!
    Shirt provided by:
    Amtower's Collision Center
    11972 Fort Ashby Road
    Keyser, WV
    (304) 788-2995
    "Tell Nick that Resinchem sent ya'!"
    #homeassistant #esphome #esp8266
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 32

  • @withanHdammit
    @withanHdammit 11 หลายเดือนก่อน +1

    I enjoy your videos. Very informative and easy to follow. I've built a couple of your projects, with more on the way, including this one.
    Thanks!

    • @ResinChemTech
      @ResinChemTech  11 หลายเดือนก่อน +2

      You are most welcome. I'm glad you find my videos to be helpful in your own projects. I try to give enough information to allow someone to either duplicate my build or easily adapt it to their own needs... even if that does mean that they can tend to be a bit lengthy!
      Thanks for watching. I appreciate the comment... and it is comments like this that motivate me to continue making videos.

    • @withanHdammit
      @withanHdammit 11 หลายเดือนก่อน

      I usually do modify things a bit, my WAF is different than yours 😎

  • @DariuszLachowski
    @DariuszLachowski 11 หลายเดือนก่อน

    Very nice idea and simple solution. Thanks for this!

    • @ResinChemTech
      @ResinChemTech  11 หลายเดือนก่อน

      You are most welcome. I hope you found it helpful.
      Thanks for watching and taking time to comment.

  • @stolionly
    @stolionly 11 หลายเดือนก่อน +1

    Well done

    • @ResinChemTech
      @ResinChemTech  11 หลายเดือนก่อน

      Thanks! I appreciate it.. and that you took the time to leave a comment.

  • @mikesmods317
    @mikesmods317 11 หลายเดือนก่อน

    Absolutely awesome!! thank you so much!!

    • @ResinChemTech
      @ResinChemTech  11 หลายเดือนก่อน

      Thanks! And you are most welcome. Glad you found it at least somewhat helpful.
      I greatly appreciate the comment.. and thanks for watching.

  • @BELSERVICEMAN
    @BELSERVICEMAN 11 หลายเดือนก่อน +2

    Oh, I will be following up with some other questions on Discord later….

    • @ResinChemTech
      @ResinChemTech  11 หลายเดือนก่อน +1

      Looking forward to it, as always!

  • @MatthewN8OHU
    @MatthewN8OHU 3 หลายเดือนก่อน

    I'm going to have to get some straight 4 connectors for the tag reader board, since I want to do something similar with the ones that I plan to build for my home.

  • @adonno
    @adonno 11 หลายเดือนก่อน

    Thanks for the shoutout

    • @ResinChemTech
      @ResinChemTech  11 หลายเดือนก่อน

      You are welcome. You certainly deserve all the credit for the development of the ESPHome code. I did also point folks at your pre-built version in case they don't want to build their own. Thanks to you for the idea and the great implementation.

  • @TonyHamm
    @TonyHamm 11 หลายเดือนก่อน +1

    I like the project box you printed. Is the STL available?

    • @ResinChemTech
      @ResinChemTech  11 หลายเดือนก่อน +1

      I can certainly upload it to Thingiverse. Give me a day or so and I'll follow up here in the comments when it is available.

    • @ResinChemTech
      @ResinChemTech  11 หลายเดือนก่อน

      Just wanted to follow up. I've uploaded the enclosure design to Thingiverse and you can now find it here: www.thingiverse.com/thing:6115149

  • @seanmcdonald656
    @seanmcdonald656 2 หลายเดือนก่อน

    Another great Video!! I am trying to fallow along but i dont see your complete yaml file of all the changes. i did see on the blog that there was a link but it dose not work. Did i miss something? I would like to combine your with the vibration sensor and a buzzer so i have a quiet mode.

    • @ResinChemTech
      @ResinChemTech  2 หลายเดือนก่อน

      Thanks. I just checked the blog and the links there did seem to work for me (these are links to a Github Gist file with the complete ESPHome code). But here is the direct link to that Gist again: gist.github.com/Resinchem/f832d8e7305730cc0af8932d51f22335
      Let me know if you are still having issues access it.

  • @davidhdez6066
    @davidhdez6066 10 หลายเดือนก่อน

    Thank you for your videos.
    Which lines of the code do I have to remove to eliminate the Vibrating Motor?
    I am only interested in having luminous information.
    Thanks again.

    • @ResinChemTech
      @ResinChemTech  10 หลายเดือนก่อน +1

      Under the switch section, you need to remove the section for the GPIO switch with the ID of vibra, then you also need to remove every instance of "switch.turn_on: vibra".
      Alternatively, you can leave all the code as it is and just do not install the vibrating motor in your build. The code will still send the signal to turn the motor on/off, but since it doesn't exist, nothing will happen. The code will still work and it won't cause any errors.

    • @davidhdez6066
      @davidhdez6066 10 หลายเดือนก่อน

      @@ResinChemTech thanks for your answer

  • @WillTest88
    @WillTest88 11 หลายเดือนก่อน

    What are you using for Home Assistant to know when/what app is active on the tv?

    • @ResinChemTech
      @ResinChemTech  11 หลายเดือนก่อน

      I'm using a Roku as my streaming device, which integrates into Home Assistant as a media player. One of the attributes of the entity is 'app_name' (or source), which reports the service or application that is currently running. I show exactly how I make use of this in Home Assistant in my video on the custom button card: th-cam.com/video/mj2CIKqrQlc/w-d-xo.html
      Let me know if you have any additional questions, but the above video should explain it pretty well.

  • @itolond
    @itolond หลายเดือนก่อน

    what are you using for your hapitic - vibration?

    • @ResinChemTech
      @ResinChemTech  หลายเดือนก่อน

      amzn.to/3pqcua9 - I show how this is wired and mounted in the video.

  • @JosephIacobbo
    @JosephIacobbo 4 หลายเดือนก่อน

    Maybe I'm missing it but is there a link to the 3d model of the case for printing?

    • @ResinChemTech
      @ResinChemTech  4 หลายเดือนก่อน +1

      You didn't miss it... I did! I have the design up on Thingiverse, but simply forgot to include the link in both the video description and the written blog (both of which I've now corrected). To save you the time, here is the link to the enclosure design files: www.thingiverse.com/thing:6115149
      Sorry about that! Many times I shoot the video and write the blog in bits and pieces but try to remember to include all the links when I'm finished. Obviously this is one I missed.

    • @JosephIacobbo
      @JosephIacobbo 4 หลายเดือนก่อน

      @@ResinChemTech Thanks! Any chance you also have the model file for editing (.f3d or similar)? I'd like to modify it a bit to change the LED used. I could probably use it as is but I'd like to try and incorporate a WS2812b as I already have a few of them lying around.

    • @ResinChemTech
      @ResinChemTech  4 หลายเดือนก่อน

      Unfortunately, in the past I've used Tinkercad for all my simple designs. It only creates the .stl files. I'm very slowly trying to learn Fusion 360... but it's a slow process and a bit overwhelming compared to the simplistic Tinkercad. I'd happily share them if I had them... but the .stl and the sliced .gcode are the only things I have.
      As an alternative, if you look at my other designs on Thingiverse, you'll find enclosures for the standard ElectroCookie boards. The enclosure for the NFC card reader is the same dimensions... just a bit shorter. But the lid is the same. So you could at least snag a copy of the lid from the ElectroCookie versions that doesn't have the LED hole. Maybe it would be easier to add your own LED opening to that as opposed to trying to "fill the hole" from the NFC version? Then again, maybe I have no idea what I am talking about! 3D design is NOT one of my strengths. I really want to learn more about it, but up until this point, most of my designs are simple rectangular boxes for holding components or proto boards.