Pinguino Forum
Pic32 Pinguino not reading Analog - Printable Version

+- Pinguino Forum (http://forum.pinguino.cc)
+-- Forum: Hardware (http://forum.pinguino.cc/forumdisplay.php?fid=6)
+--- Forum: 8-bit (PIC18F) Pinguino (http://forum.pinguino.cc/forumdisplay.php?fid=42)
+---- Forum: Troubleshooting (http://forum.pinguino.cc/forumdisplay.php?fid=14)
+---- Thread: Pic32 Pinguino not reading Analog (/showthread.php?tid=3858)



Pic32 Pinguino not reading Analog - TMvopac - 01-04-2013

Hi,

I have a problem getting my Pic32-Pinguino (RevB) to read analogue data.

Even running this simple code from the Examples/01.Basics is not returning any readings over the serial:

void setup() {
Serial.begin(4800);
}

void loop() {
int sensorValue = analogRead(A0);
Serial.println(sensorValue);
}


I have tested the serial port with more advanced programs so I know it's working.
And the pot have been tested with my Fluke so it also works.

So does anybody have an idea about what I might be doing wrong?

//
Vopac