I think you are going to have to use an external ADC.

The good news is that you can get better accuracy and a lot higher
resolution by doing so.   At the expense, of course, of some additional
cost and complexity.   I ended up using an ADS1115 from TI that delivers
16bits of resolution at 800 samples per second.   BUT, another big but, is
that I used an Arduino Nano as a front end to my BBB as I found it easier
to integrate the Nano and the BBB than the ADC and the BBB.   I am using
Node and the libraries that do I2c were not working for me.  You may have
different luck depending on your environment.

Will

On Fri, Nov 28, 2014 at 1:45 PM, IZYBoard <[email protected]> wrote:

> Quite old post but.....I have same issue for my old Beaglebone WHITE
> running 3.2.33 kernel
> Is there any simpler method to avoid external ADC and split by software
> the unused AIN pins to make them readable ??
>
> Thank you very much
>
> Il giorno giovedì 11 luglio 2013 12:21:55 UTC+2, Will Kostelecky ha
> scritto:
>>
>> I just go an LCD Cape for my Beaglebone Black project and am having
>> trouble accessing any of the three analog pins the cape supposedly does not
>> use.   The documentation states that AIN0-3 are used.   This would imply
>> that AIIN4-6 are available.  When I try to access them, however, I get the
>> following message (from Bonescript):
>>
>> fs.js:429
>>   return binding.write(fd, buffer, offset, length, position);
>>                  ^
>> Error: EEXIST, file already exists
>>     at Object.fs.writeSync (fs.js:429:18)
>>     at Object.fs.writeFileSync (fs.js:764:21)
>>     at load_dt (/usr/lib/node_modules/bonescript/index.js:59:12)
>>     at Object.f.analogRead (/usr/lib/node_modules/
>> bonescript/index.js:369:12)
>>     at observe (/var/lib/cloud9/chair/test.js:119:38)
>>     at Timer.<anonymous> (/var/lib/cloud9/chair/test.js:102:17)
>>     at Timer.exports.setInterval.timer.ontimeout (timers.js:234:14)
>>
>> My entire reason for being, or for having the BBB anyway, is to integrate
>> with some analog inputs!
>>
>> Thanks for any help,
>> Will
>>
>  --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "BeagleBoard" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/beagleboard/kPSoeNHkNg0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to