sparkfun / Fingerprint_Scanner-TTL

Repository with example code for SEN-14585 & SEN-14585 at SparkFun.com
https://www.sparkfun.com/
109 stars 112 forks source link

Code doesnt work with ESP32 or ESP8266 #57

Open philnicholson2005 opened 5 years ago

philnicholson2005 commented 5 years ago

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

fourstix commented 5 years ago

@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

philnicholson2005 commented 5 years ago

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 notifications@github.com 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 commented 5 years ago

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 notifications@github.com 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.

fourstix commented 5 years ago

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

PawelMiera commented 3 years ago

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.