Dear forum,
I try to read 3.3V regulated power source by the AnalogIn (p19). I use example code (in handbook) which is reading ADC to a unsigned short variable in 1024 times. I want to read an ultrasonic sensor, so I need more accurate reading rather than the normalized floating point (0.0 - 1.0). Consider that the analog source is constant in this case is 3.3V (regulated), but the value is like this:
1007, 0xFFFF, 65535
1008, 0xF0FF, 61695
1009, 0xF2DF, 62175
1010, 0xF4AF, 62639
1011, 0xFFFF, 65535
1012, 0xFFFF, 65535
1013, 0xFFFF, 65535
1014, 0xF23F, 62015
1015, 0xF44F, 62543
1016, 0xFFFF, 65535
Could anyone explain why? Then, how many byte is this mbed ADC resolution? It is just form 0.0 to 1.0?
I also try another voltage value and it results something similar.
Thank you
/rhj
Dear forum,
I try to read 3.3V regulated power source by the AnalogIn (p19). I use example code (in handbook) which is reading ADC to a unsigned short variable in 1024 times. I want to read an ultrasonic sensor, so I need more accurate reading rather than the normalized floating point (0.0 - 1.0). Consider that the analog source is constant in this case is 3.3V (regulated), but the value is like this:
1007, 0xFFFF, 65535
1008, 0xF0FF, 61695
1009, 0xF2DF, 62175
1010, 0xF4AF, 62639
1011, 0xFFFF, 65535
1012, 0xFFFF, 65535
1013, 0xFFFF, 65535
1014, 0xF23F, 62015
1015, 0xF44F, 62543
1016, 0xFFFF, 65535
Could anyone explain why? Then, how many byte is this mbed ADC resolution? It is just form 0.0 to 1.0?
I also try another voltage value and it results something similar.
Thank you
/rhj