Trying to read from a voltage divider circuit using two 240 Ohm resistors. Getting a reading of 6.0, when it should be 1.65. Circuit is powered by a bench 3.3V and both the Huzzah32 and circuit are grounded. Using USB for the Huzzah32. Any thoughts?
void setup()
{
Serial.begin(9600);
}
void loop()
{
int sensorValue = analogRead(A9);
float voltage = sensorValue * (3.3 / 1023.0);
Serial.println(voltage);
delay(1000);
}
both the Huzzah32 and circuit are grounded
... are the grounds joined? ... your schematic does not show a common ground