-
I'm using a STM32 F446RE microcontrolor with this fingerprint sensor
(Amazon.ca). -
Connexions:
Red (pin 3) to 5V of STM32
Green (pin 4) to PIN 2 of STM32
White (pin 5) to PIN 3 of STM32
Black, Yellow, Blue (pin 6, 2,1) to GND of STM32 -
I tried switching Green and White (PIN 2 to PIN 3) but still not working. Tried switching SoftwareSerial mySerial (2,3) to SoftwareSerial mySerial (0,1) because the Rx and TX are on PIN 0 and 1 of the STM32 but still not working.
-
I installed Adafruit_fingerprint library and opened the enroll example. Switched Serial1 to Serial2 (because of the STM32 USART as i was told), or it does not compile :
(Arduino:1.8.13 (Windows 10), Carte : "Nucleo-64, Nucleo F446RE, Mass Storage, Enabled (generic 'Serial'), None, Low/Full Speed, Smallest (-Os default), Newlib Nano (default)"
c:/users/dyott/appdata/local/arduino15/packages/stm32/tools/xpack-arm-none-eabi-gcc/9.2.1-1.1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: sketch\enroll.ino.cpp.o: in function `_GLOBAL__sub_I_finger':
enroll.ino.cpp:(.text.startup._GLOBAL__sub_I_finger+0xc): undefined reference to `Serial1'
collect2.exe: error: ld returned 1 exit status
exit status 1
Erreur de compilation pour la carte Nucleo-64
)
-
When i open the serial monitor, i see :
Adafruit Fingerprint sensor enrollment
??e%g'm? -
The fingerprint sensor has no visible red light when plugged to 5V.
Anyone knows what is happening?