EverythingSmartHome / fingerprint-mqtt

Fingerprint sensor with MQTT support based on Adafruit Fingerprint Sensor Library
GNU General Public License v3.0
24 stars 14 forks source link

ESP01 not booting with his code. #16

Open mati22124 opened 2 years ago

mati22124 commented 2 years ago

Hello! I had wanted to run this code on one of many esp01's I had sitting around. I seems that whenever I put this code on them, It doesn't want to boot. It has no logs and doesnt do anything. I was wondering if anyone had success with using these small boards with this sensor. I am using GPIO pins 0 and 2. It does boot with other things like esphome and just a blink code but with this code, no logs. If anyone was successful and got it working, that would be very nice. I have also tried it on multiple boards with no avail.

unseemlycoder commented 1 year ago

Are you using software serial on GPIO pins 0 & 2? GPIO pin 2 is a hardware serial1 transmit pin, this would conflict with the software serial used in the code.

I've tested this repo's code on an ESP32c3 (DFrobot Beetle c3) on hardware serial1 pins (without software serial). You can check out #20 for hardware serial implementation.

Do take a look at the ESPHome equivalent... https://esphome.io/components/fingerprint_grow.html

image

unseemlycoder commented 1 year ago

Would recommend using UART 0 over GPIO 1 [Tx Pin] & GPIO 3 [Rx Pin]. That would work via hardware serial.