Page 1 of 4
ESP32 GPS UART not working!
Posted: Mon Apr 05, 2021 5:49 pm
by jgu1
Hi!
I think I have found a bug in the ESP32
In a project I discorverd that the Uart not working. I have connect a GPS but get no data from it.
I create a small testprogram where I try to receive the second´s from GPS time. Not worikng with ESP32.
Then I create the same testprogram with an Arduino, work fine. (but the Arduino is not as fast as ESP with ILI9341 display

).
Br Jorgen
Re: ESP32 GPS UART not working!
Posted: Wed Apr 07, 2021 6:51 pm
by jgu1
Hi!
I dare to ask, is it just like that and is the solution to find another device for the purpose, please
Br jorgen
Re: ESP32 GPS UART not working!
Posted: Thu Apr 08, 2021 7:42 am
by stefan.erni
Hi Jorgen
Can you check your program if you read sekund and display speed?
And which pin did you use from the ESP32?
regards
Stefan

- speed_2021-04-08_8-38-12.png (24.16 KiB) Viewed 8708 times
Re: ESP32 GPS UART not working!
Posted: Thu Apr 08, 2021 6:33 pm
by jgu1
Hi Stefan!
Thank´s for reply. Yes you have rigth concerning the Speed and second. I have change it so the return now is Second
But it still not work. I have tested all the Uart input.
Channel 1 = RX0 pin A3
Channel 2 = RX1 pin A16
Channel 3 = ?
I try to swap input, use other pin, yes almost everything no luck. As I mentoied, if I test on Arduino I see the second´s. I also test with a Scope and I see data out of the GPS.
The display show 0
Have you any experience with the Uart on ESP32?
Thank´s in advance.
Jorgen
Re: ESP32 GPS UART not working!
Posted: Thu Apr 08, 2021 9:13 pm
by medelec35
Hi, Jorgen.
I'm currently using an ESP32 Lolin to receive data from a PZEM-004T via Modbus and I have the ESP32 sending the data via UART to Tera term:

- image_2021-04-08_211635.png (24 KiB) Viewed 8687 times
I'm assuming as the Modbus is working then I/P and O/P of UART is working.
Plus I have an additional UART output working.
So rather than FC UART component, could be a FC GPS component issue?
Hmm trouble with LED lamps, crap power factor with capacitor droppers lol.
Re: ESP32 GPS UART not working!
Posted: Fri Apr 09, 2021 12:23 pm
by LeighM
could be a FC GPS component issue
Yes, I've confirmed that it is.
Investigating now ...
Re: ESP32 GPS UART not working!
Posted: Fri Apr 09, 2021 3:54 pm
by jgu1
Hi Martin and Leigh!
Thank you.
Ok, and yes, if martin can receive data on Uart, it may work.
But, strange for me. when I use the same GPS on Arduino it work fine. When I test with ociloscoope I see data from the GPS. but nothing on display.
The GPS is :
https://www.ebay.com/itm/GY-NEO-6M-V2-m ... Sw6Fteb61w
I supply it with 3,3V from the ESP.
Please advice.
Br Jorgen
Re: ESP32 GPS UART not working!
Posted: Fri Apr 09, 2021 4:14 pm
by LeighM
I've done some changes to ESP CAL UART code to support the GPS component when used with ESP.
Might be a while before the update is on the auto-update system,
so if you want to try, copy the attached file to
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP
Re: ESP32 GPS UART not working!
Posted: Fri Apr 09, 2021 4:59 pm
by jgu1
Ok Leigh! I try later today or tomorrow. You hear. thank´s
Jorgen
Re: ESP32 GPS UART not working!
Posted: Fri Apr 09, 2021 7:17 pm
by jgu1
Hi LEigh!
Sadly, no change. Is there anything I could test/try or do,please?
Jorgen