The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 864 - File: showthread.php PHP 7.2.22 (Linux)
File Line Function
/showthread.php 864 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pic32 Pinguino not reading Analog
01-04-2013, 01:39 AM,
#1
Pic32 Pinguino not reading Analog
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
Reply


Messages In This Thread
Pic32 Pinguino not reading Analog - by TMvopac - 01-04-2013, 01:39 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)