HausnerR / esphome-door-lock

IoT door lock based on Wemos D1 mini and RC522 RFID module
MIT License
42 stars 18 forks source link

GPIO Definition #2

Closed HFsi closed 4 years ago

HFsi commented 5 years ago

Hi! Where do you define the GPIOs? So I can adapt to a NodeMCU. Thanks

Haringstad commented 5 years ago

Yes, I would like to know too ;-) Makes life a bit simpler.

babichjacob commented 5 years ago

From looking over the code to try to use this myself as well: The two GPIOs needed for the RC522 are defined here. The initializer they're passed into is here. So it looks like chipSelectPin is D8 and resetPowerDownPin is D3.

Could anyone using the project share a wiring diagram or picture to show all the connections between the (MF)RC522 and the ESP board?

drthanwho commented 4 years ago

Hey from looking at the PCB design:

3.3V -> 3.3V GND -> GND MISO -> D6 MOSI -> D7 SCK -> D5 SDA -> D8

Since the same pins also exist on the nodemcu I just left the code the same though