ADC causes Serial2 stops
Posted: Sat Jul 18, 2020 11:03 am
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. This means that "Serial2.available()" is "false".
When I left it turned on and blocked like that, sometimes it happens after some time (few minutes sometimes) GPS starts sending until next analogRead happens and it stops again.
When I comment analogRead line everything works great.
Does anyone had this issue?
Thanks
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. This means that "Serial2.available()" is "false".
When I left it turned on and blocked like that, sometimes it happens after some time (few minutes sometimes) GPS starts sending until next analogRead happens and it stops again.
When I comment analogRead line everything works great.
Does anyone had this issue?
Thanks