Hello everybody
I have got many maple mini rev3 boards as logic units for a wireless sensor network. I have got a problem with the ADC; even if I use a stabilezed voltage source, the maple board is not able to properly sample it. I provide 2.7 V, and i have tried to sample it with different maple mini boards and with all the analog input pin, but I have got different reading for every sampling.
The configuration is has follows: a maple mini connected via USB to my laptop ( I have used both a mac and win XP pc ), a stabilezd and constant voltage connected on one of the ain pin of the board.
The code is has follows:
const int sensorPin =7;
int reading;
void setup() {
pinMode(sensorPin, INPUT_ANALOG);
}
void loop(){
reading=analogRead(sensorPin);
SerialUSB.println(reading;)
}
I have used this simple code in order to understand whats wrong..
additional info:
I have measured the voltage across ground pin and sensor pin, with a kehitley potentiometer (it is a precision instrument) and i have got the right reading.
maple IDE v 0.0.12
Any suggestions?
Thanks