Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 1.42 KB

README.md

File metadata and controls

29 lines (23 loc) · 1.42 KB

NFC Reader for Home Assistant with M5Stack ATOM Echo and LEGO

Demo

https://youtu.be/kcqGKI0bAL4

Components

M5Stack components are also available on Aliexpress & Banggood.

Arduino

How it works

  1. Read NFC card.
  2. Send card ID to local MQTT server, then sleep for 5 seconds (to prevent sending same card multiple times).
  3. Play sound on Atom Echo.
  4. Receive card ID in tag_scanned event.
  5. Run automation depends on card ID.

How to generate custom sound

  1. Prepare a 44100 Hz sample rate, Signed 16-bit PCM WAV file. I used Audacity.
  2. Run xxd -i sound.wav sound.c in terminal to generate .C file. I use MacOS so I'm not sure about Windows or Linux. Sorry.