ADC1_0 reported random value even no input
Posted: Wed Apr 10, 2019 12:27 pm
ADC1_0 reported random value even no input.
The output of sensor_A0_R send to OLED. I see random value such as: 768, 829, 822, 933, 846, and so on.
Why PIN 36 reported random value while nothing put to this PIN? (if I put 3.3V then 4095 is appear, which is correctly).
Code: Select all
#define Sensor_A0_PIN 36
pinMode(Sensor_A0_PIN, INPUT);
// loop
int sensor_A0_R = analogRead(Sensor_A)_PIN);
display.drawString(0, 20, "Sensor A0: " + String(sensor_A0_R));
Why PIN 36 reported random value while nothing put to this PIN? (if I put 3.3V then 4095 is appear, which is correctly).