got the voltage divider (25V) from goodluckbuy and got some issues with it.
when hooking up the 3.3V from the Panda II board, the readings on pin A1 are correct.
setLiniarScale is set to 1023 and the 3.3V produces a value of 1022.99.
when connecting the voltage divider, the voltage is off quiet a bit.
i have noticed that the voltage at the voltage divider is only 4.55V, when connecting Panda II to the USB port as well as when using a 7.6V battery pack.
R2 to ground has a value of 7.4KOhm and R1 to VCC has a value of 29.7KOhm
when using the formula that i found
AnlogReading * (R1+R2)/R2 * 4.55/1023
then i get
729 * 5.013 * 0.0044 = 16.08V
problem is that the supplied voltage to the voltage divider is 12.0V
what am i doing wrong?