Beaglebone black: are the AIN pins available with gpioctl

Asked by 4 months ago
I'm trying to read through all the details in the Beaglebone Black System Reference manual, but I don't think I've seen this particular piece yet... Are the AIN pins available via gpioctl or another interface in 10.0-RELEASE?

Your Answer

Name:
Reply:

All Answers

Answer by 4 months ago
No, there is no support for the ADC on 10.0-RELEASE. I've just tested a driver for the BBB ADC, now i need to write a man page and publish the code (on this ML). If everything is fine, it will be available on -head and on 10-stable soon. Luiz
Answer by 4 months ago
I already use that loos's ADC code and it works so well (on CURRENT). I happily added this to my home automation system. Now I have to think what to do with all that massive IO... Unsure if anybody else needs that. Written in Perl + POE, all SSL cert auth connections, nicely connects all devices and forwards events :) I'm open to ideas what kind of other devices I should look. BBB is surely something I need more than one (when they manage to produce more :P).
Answer by 4 months ago
Luiz, I grabbed your patches that you posted on 17 March, and patched them in to FreeBSD 10. Overall, the driver seems to work fine. The only issue that I'm having is that after some period of time (it has varied from a few minutes to over a half hour), the analog input freezes up, continuing to provide the last reading, despite changes on the analog input - verified via a voltage meter. The only way I've been able to recover is to reboot. Obviously, I need to do some more testing and try to figure out why its locking up, but I thought you'd like to know. -B
Answer by 4 months ago
Quoted message by Luiz Otavio O Souza 4 months ago
No, there is no support for the ADC on 10.0-RELEASE. I've just tested a driver for the BBB ADC, now i need to write a man page and publish the code (on this ML). If everything is fine, it will be available on -head and on 10-stable soon. Luiz
Yes, i have seen it here too (and a few other issues). The code wasn't too clever and it was upsetting the ADC in various situations. It was running in continuos mode which was overflowing the FIFO counter, generating spurious interrupts. If you set the prescaler clockdiv to a low value a few other problems show up (the FIFO wasn't being drained at ADC shutdown, etc.). I think i have fixed all the issues and now i can push it to almost 100% of CPU in the interrupt handler without upsetting it. I'll run a 24 hour test and if everything is fine i'll post the updated code. Thanks for the report. Luiz