Is it acceptable to use an analog pin to read voltage outputs from another pin on a Spark Core?

Say I wanted to read voltage levels to determine stability or for debugging on a particular GPIO and I didn’t have a multimeter handy, could I just run a wire over to an analog pin, call analogRead(), and then output it to Serial for viewing?

Initially, I don’t see an issue with it. Does anyone else recommend against it?

That should work fine, but keep in mind that the analog input pins are limited to 3.3 volts.

1 Like