arduino-libraries / ArduinoIoTCloud

Home Page:https://app.arduino.cc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Analog Read Fluctuations after calling ArduinoCloud.begin(ArduinoIoTPreferredConnection)

bahrens opened this issue · comments

I have an Arduino MKR Wifi 1010 board with a simple circuit setup. I'm doing an analogRead() from A0 for TMP36 temperature sensor. Everything works just fine when not using the Arduino IoT Cloud. As soon as a call is made to ArduinoCloud.begin(ArduinoIoTPreferredConnection); the values being read start to fluctuate all over the place. I don't have enough knowledge to know if I'm doing something that is not supported, or if there is a problem with the Arduino Cloud library.

Hi @bahrens analogRead() from A0 in combination with ArduinoCloud is for sure something that is supported. Using the ArduinoIoTCloud-Basic example everything works fine from my side and i don't see any fluctuation of the analog input. Do you mind sharing your sketch so i can have a closer look?

@pennam Thanks for responding! It looks like it was a beginner's mistake and was an issue with how my circuit was wired up. I got some help on the Arduino forum yesterday https://forum.arduino.cc/t/analog-read-issues-interference/918666. I'll go ahead and close this issue.