I’m having trouble reading in an analog signal using a fio and I’m wonder if there is any internal resistance that may impact the reading? Basically you have 12v across two resistors in sereis with 2M on the 12v end end and 1M on the other. Does anyone know why it may not pick up anything above 1v?
Is it a stable 12v? Or is that the max? It may also be the case where the current is too low for the ADC to register. Check with a multimeter to make sure the voltage doesn’t drop when you take a reading on the Fio. Even if there is internal resistance, it would not affect the reading.
Just hooked up a multimeter and I got 3.5 which isn’t a solid 4v, but it’s not the 0.5V I was getting from Fio. On that note, does Fio require I hook up AREF? Doesn’t it have a defaul 5v reference?
Try a sketch that just prints out the raw analog value to a serial port for just the 12V. I need the hex or decimal(or binary) that it prints out. I’m trying to figure out whether the Fio is reading a wrong value or your code is manipulating the value in which you do not intend.
There there is animpedance recommendation for analog inputs.
Your selected resistor values cause the impedance to be is very high and therefore the current to be quite low… on the order of about 4uA. This is not really very close to what ATMEL recommends.
FROM ATMEL DATASHEET
The ADC is optimized for analog signals with an output impedance of approximately 10 kΩ or
less. If such a source is used, the sampling time will be negligible. If a source with higher impedance
is used, the sampling time will depend on how long time the source needs to charge the
S/H capacitor, with can vary widely. The user is recommended to only use low impedance
sources with slowly varying signals, since this minimizes the required charge transfer to the S/H
capacitor.
I suggest rethinking your voltage divider values and see if you can change your results.