Search found 2 matches
- Sat Jul 18, 2020 6:16 pm
- Forum: General Discussion
- Topic: ADC causes Serial2 stops
- Replies: 2
- Views: 3211
Re: ADC causes Serial2 stops
Would need to see your code. You could be doing things in a non RTOS friendly way. Here it is :) When I change line "batt = analogRead(34);" with "batt = 0;" (no analogRead) everything works fine. #include "esp32-hal-adc.h" #include <NMEAGPS.h> int batt; int last_batt = 0; float lat=0.0, lng = 0.0;...
- Sat Jul 18, 2020 11:03 am
- Forum: General Discussion
- Topic: ADC causes Serial2 stops
- Replies: 2
- Views: 3211
ADC causes Serial2 stops
Hi, I connected GPS module on Serial2 (pins 16 and 17) and it worked great on its own. Then I added in loop analogRead on pin 34 every 10 seconds using millis() delay. Problem is that GPS works first 10 seconds until first analogRead is done. After that GPS module stop sending data through Serial2. ...