Fingerprint_Scanner-TTL icon indicating copy to clipboard operation
Fingerprint_Scanner-TTL copied to clipboard

Code doesnt work with ESP32 or ESP8266

Open philnicholson2005 opened this issue 5 years ago • 5 comments

Josh

i am sure you're a busy man and im not sure that you are still working with this?

i would like to use this library with an ESP32 but unfortunately it will not compile with any ESP board selected?

any ideas where im going wrong?

thanks Phil

philnicholson2005 avatar Nov 11 '18 08:11 philnicholson2005

@philnicholson2005 Hi Phil, Are you getting compile errors something like: class 'SoftwareSerial' has no member named 'end' ?

I had some errors like that when compiling for the ESP8266. They were caused by an older version of espSoftwareSerial in the ESP8266 board libraries. I got the code to compile by updating the Arduino IDE to the latest version, 1.8.7 and then using the Board Manager to update the ESP8266 community libraries to their latest version 2.4.2.

After doing the updates, the libraries would compile clean using the Sparkfun ESP8266 Thing Dev board. I think it would probably compile clean for any ESP8266 after updating the board libraries.

Good luck, Gaston

fourstix avatar Nov 15 '18 19:11 fourstix

Gaston thanks!

Just tried it and thanks it does work for an ESP8266 so I can use them but ideally I wanted to use an ESP32

Regards

Phil


From: fourstix [email protected] Sent: Thursday, November 15, 2018 7:46:22 PM To: sparkfun/Fingerprint_Scanner-TTL Cc: philnicholson2005; Author Subject: Re: [sparkfun/Fingerprint_Scanner-TTL] Code doesnt work with ESP32 or ESP8266 (#57)

Hi Phil, Are you getting compile errors something like: class 'SoftwareSerial' has no member named 'end' ?

I had some errors like that when compiling for the ESP8266. They were caused by an older version of espSoftwareSerial in the ESP8266 board libraries. I got the code to compile by updating the Arduino IDE to the latest version, 1.8.7 and then using the Board Manager to update the ESP8266 community libraries to their latest version 2.4.2.

After doing the updates, the libraries would compile clean using the Sparkfun ESP8266 Thing Dev board. I think it would probably compile clean for any ESP8266 after updating the board libraries.

Good luck, Gaston

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsparkfun%2FFingerprint_Scanner-TTL%2Fissues%2F57%23issuecomment-439166735&data=02%7C01%7C%7Cdeaa435ec80343c63edd08d64b330633%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636779079843560202&sdata=sBuLS7Bd%2FVxR5yciiGP%2FaEvhlwLyr3TER9kckGp3RYA%3D&reserved=0, or mute the threadhttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAq27V5vQAJizDkFbKaYXX8ENyrmigGcwks5uvcSOgaJpZM4YYYiW&data=02%7C01%7C%7Cdeaa435ec80343c63edd08d64b330633%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636779079843560202&sdata=RZR%2BQq0e%2BnrOlkVmMRTqNM7zNaBGZIg%2BC49%2BDpMu9tk%3D&reserved=0.

philnicholson2005 avatar Nov 15 '18 22:11 philnicholson2005

Gaston

If I switched to an ESP8266 which pins would you use for this fingerprint scanner?

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10


From: fourstix [email protected] Sent: Thursday, November 15, 2018 7:46:22 PM To: sparkfun/Fingerprint_Scanner-TTL Cc: philnicholson2005; Author Subject: Re: [sparkfun/Fingerprint_Scanner-TTL] Code doesnt work with ESP32 or ESP8266 (#57)

Hi Phil, Are you getting compile errors something like: class 'SoftwareSerial' has no member named 'end' ?

I had some errors like that when compiling for the ESP8266. They were caused by an older version of espSoftwareSerial in the ESP8266 board libraries. I got the code to compile by updating the Arduino IDE to the latest version, 1.8.7 and then using the Board Manager to update the ESP8266 community libraries to their latest version 2.4.2.

After doing the updates, the libraries would compile clean using the Sparkfun ESP8266 Thing Dev board. I think it would probably compile clean for any ESP8266 after updating the board libraries.

Good luck, Gaston

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsparkfun%2FFingerprint_Scanner-TTL%2Fissues%2F57%23issuecomment-439166735&data=02%7C01%7C%7Cdeaa435ec80343c63edd08d64b330633%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636779079843560202&sdata=sBuLS7Bd%2FVxR5yciiGP%2FaEvhlwLyr3TER9kckGp3RYA%3D&reserved=0, or mute the threadhttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAq27V5vQAJizDkFbKaYXX8ENyrmigGcwks5uvcSOgaJpZM4YYYiW&data=02%7C01%7C%7Cdeaa435ec80343c63edd08d64b330633%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636779079843560202&sdata=RZR%2BQq0e%2BnrOlkVmMRTqNM7zNaBGZIg%2BC49%2BDpMu9tk%3D&reserved=0.

philnicholson2005 avatar Nov 17 '18 18:11 philnicholson2005

Hi Phil, I think any unused I/O pins on the ESP8266 would be fine.
Here's an example from the espSoftwareSerial library using pins 12 and 14. https://github.com/plerup/espsoftwareserial/blob/master/examples/swsertest/swsertest.ino

Good luck, Gaston

fourstix avatar Nov 18 '18 17:11 fourstix

I got it working on ESP32 :) You need to use HardwareSerial Serial2 instead of Software Serial. Here is the link to changed library: https://github.com/PawelMiera/sparkfun-Fingerprint_Scanner-TTL-for-esp32

Good luck.

PawelMiera avatar Jan 20 '21 08:01 PawelMiera