ESP12f ADC readings
Posted: Tue Feb 06, 2018 1:22 am
Hi. I have connected a tmp36 analog sensor to the ADC of the ESP12f. The actual voltage reading on a voltmeter is .7v but the chip outputs 2.6v in the serial monitor. Please help....I have no hair left
void loop(){
int reading = analogRead(temperaturePin);
float voltage = reading * 3.3;
voltage /= 1024.0;
float temperatureC = (voltage - 0.5) * 100;
Serial.print(voltage); Serial.println(" volts");
Serial.print(temperatureC); Serial.println(" degrees C");
void loop(){
int reading = analogRead(temperaturePin);
float voltage = reading * 3.3;
voltage /= 1024.0;
float temperatureC = (voltage - 0.5) * 100;
Serial.print(voltage); Serial.println(" volts");
Serial.print(temperatureC); Serial.println(" degrees C");