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
ESP32 GPS UART not working!
-
- Posts: 615
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 03, 2020 8:25 pm
- Location: Denmark
- Has thanked: 507 times
- Been thanked: 132 times
-
- Valued Contributor
- Posts: 760
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 150 times
- Been thanked: 171 times
Re: ESP32 GPS UART not working!
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
Can you check your program if you read sekund and display speed?
And which pin did you use from the ESP32?
regards
Stefan
-
- Posts: 615
- Joined: Thu Dec 03, 2020 8:25 pm
- Location: Denmark
- Has thanked: 507 times
- Been thanked: 132 times
Re: ESP32 GPS UART not working!
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
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
- Attachments
-
- ESP32 ILI9341 GPS.fcfx
- (15.17 KiB) Downloaded 131 times
-
- Matrix Staff
- Posts: 1459
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 513 times
- Been thanked: 473 times
Re: ESP32 GPS UART not working!
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: 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.
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: 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.
Martin
-
- Posts: 615
- Joined: Thu Dec 03, 2020 8:25 pm
- Location: Denmark
- Has thanked: 507 times
- Been thanked: 132 times
Re: ESP32 GPS UART not working!
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
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
-
- Valued Contributor
- Posts: 401
- Joined: Mon Dec 07, 2020 1:00 pm
- Has thanked: 73 times
- Been thanked: 218 times
Re: ESP32 GPS UART not working!
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
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
- Attachments
-
- ESP_CAL_UART.c
- (19.48 KiB) Downloaded 137 times