Thingiverse
nfc reader
door philsson
38
Downloads
25
Likes
0
Makes
Nfc reader using a ```RC522``` and an ```ESP32 D1 mini``` with a couple of neopixel's ```ws2812```. Software I'm using is ```esphome```.
Example code. One light will pulsate while detecting a tag. Another light will shine with a different color for a different tag.
```yaml
esphome:
name: nfc-scanner
platform: ESP32
board: wemos_d1_mini32
platformio_options:
lib_deps: [email protected]
wifi:
ssid: "****"
password: "****"
# Enable Home Assistant API
api:
ota:
web_server:
port: 80
spi:
#sda: 5 # This pin is not used in the configuration but IS connected. Seems to
# be needed
clk_pin: 14
mosi_pin: 13
miso_pin: 12
rc522_spi:
cs_pin: GPIO15
reset_pin: 4
on_tag:
then:
- homeassistant.tag_scanned: !lambda 'return x;'
- light.turn_on:
id: partition_1
brightness: 50%
red: 50%
green: 70%
blue: 100%
- delay: 0.5s
Example code. One light will pulsate while detecting a tag. Another light will shine with a different color for a different tag.
```yaml
esphome:
name: nfc-scanner
platform: ESP32
board: wemos_d1_mini32
platformio_options:
lib_deps: [email protected]
wifi:
ssid: "****"
password: "****"
# Enable Home Assistant API
api:
ota:
web_server:
port: 80
spi:
#sda: 5 # This pin is not used in the configuration but IS connected. Seems to
# be needed
clk_pin: 14
mosi_pin: 13
miso_pin: 12
rc522_spi:
cs_pin: GPIO15
reset_pin: 4
on_tag:
then:
- homeassistant.tag_scanned: !lambda 'return x;'
- light.turn_on:
id: partition_1
brightness: 50%
red: 50%
green: 70%
blue: 100%
- delay: 0.5s
Heb je dit model geprint? Inloggen en deel je make!
Log in om een reactie achter te laten
InloggenNog geen reacties – wees de eerste!