Giter Club home page Giter Club logo

esp8266-nfc-reader's Introduction

esp8266-nfc-reader

Background

This was originally written with inspiration from https://shawnrk.github.io/songblocks/ but without the overhead of a pi. I've since updated this code to run with the homie 2.0 spec homie-esp8266 code and published here.

Compiling

You need the Arduino development environment for this. Plus the PM532 lib from https://github.com/Seeed-Studio/PN532. Apparently the Adafruit flavor of the PM532 lib does not support i2c on esp8266 so we have to jump through a couple hoops to make this go.

Tested and working hardware

Todo

  • Thinking of adding some feedback mechanism such as haptic, neopixel or led options.
  • Need to publish the glue between this code and sonos.
  • come up with some example automations for Home Asssistant for fun.
  • photo/video of the final build (wood enclosure with wood sound blocks).

MQTT Messages after touching and removing a translink.ca Compass card.


homie/legacy-songblock/rfid/uid 04905042763f80
homie/legacy-songblock/rfid/present true
homie/legacy-songblock/rfid/uid (null)
homie/legacy-songblock/rfid/present false
homie/legacy-songblock/rfid/previous_uid 04905042763f80

Sonos Controller

Assign a song to each tag/card/whatever. https://github.com/jayaras/sonos-agent

Home Assistant Exmaples

Binary sensor from a card being present or not.

binary_sensor:
  - platform: mqtt
    state_topic: "homie/rfid-reader/rfid/present"
    payload_on: "true"
    payload_off: "true"
    availability_topic: "homie/rfid-reader/$online"

Unlock your door with a specific uid from a card. (This begs for a proper MQTT RFID Device so you could look up based on a user).

alias: "rfid unlcok front door"
trigger:
  - platform: mqtt
    topic: "homie/rfid-reader/rfid/uid"
    payload: "04905042763f80"
action:
  service: lock.unlock
  data:
    entity_id: lock.front_door_2

esp8266-nfc-reader's People

Contributors

jayaras avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ichenlife raritos

esp8266-nfc-reader's Issues

Four Years on, how well did this work?

Hi there -

Sorry to use an issue for this. I'm not sure how to send an out-of-band message using GitHub.

So, this project is four years old and your toddler is probably not a toddler anymore. I've got a toddler and am about to build something very close to this. ESP-01 + PN532 to communicate ultimately to a mopidy server running on a pi. MQTT might be a perfect avenue, but I haven't closed the loop with a method to get the message from MQTT to mopidy. I also am depending on it being low power (battery operated) - so that means the ESP8266 deep sleep with 1 second timeout. Or maybe an ESP32 with an IRQ sleep mode.

My intention is to build the circuit into a Leap Frog "Go-With-Me" backpack which already has a nice buck-boost circuit that should suck the marrow out of a couple AAs.

Anyway, before I launch into all that work, how successful was this? Did your kid play with it? Did it go by the wayside quickly? Or do you find they still use it even now?

Thanks!
Rudy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.