Hey Everyone,
I'm using the Beaglebone ADC on AIN0 (P9-39) to monitor a high voltage.
I've used a divider (1/100) to put it within the 1.8V range of the ADC.I am
using the cape overlay BB-ADC suggested by Derrick Molloy in Exploring BB.
I've measured the voltage at the pin while using "cat
/s
/sys/devices/ocp.3/helper.12/AIN0 returns the string '587'. In you C
code you are reading first two characters, '5' and '8', whose ASCII
codes are 0x38 and 0x35. You are collating them as an integer, whose
value indeed turns out to be 14389 (printf %x 14389 returns 3835).
You could use formatted r
On Mon, 13 Jul 2015 13:04:05 -0700 (PDT), you wrote:
>
>Hey Everyone,
>
>I'm using the Beaglebone ADC on AIN0 (P9-39) to monitor a high voltage.
>I've used a divider (1/100) to put it within the 1.8V range of the ADC.I am
>using the cape overlay BB-ADC suggested by Derrick Molloy in Exploring BB