Thingiverse
nfc reader
di philsson
38
Download
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
Hai stampato questo modello? Accedi e condividi il tuo make!
Accedi per lasciare un commento
AccediAncora nessun commento – sii il primo!