Comments (7)
Thanks, that's good info. Both PyBBIO and Adafruit_BBIO are using the sysfs drivers. The difference is that Adafruit is using a C extension to do the file I/O, where as PyBBIO is currently doing file I/O straight from Python. I did it that way because it was the quickest way to get the ADC working, but I am planning on moving more of the IO to C extensions as I find the time.
I suppose it would still be possible to directly control the ADC the way I was on earlier kernels, but the problem is it then wouldn't be compatible with any overlays that use the ADC, because the iio driver would just reconfigure it. One of my goals is to make PyBBIO as cape compatible as possible, so it has to be able to work along side the iio driver. I'm still looking into how best to do this.
from pybbio.
In new kernels there is now a fix for AM335x_ADC_Driver that provides continuous sampling support
link: http://thread.gmane.org/gmane.linux.kernel.input/32024
blog: http://beagleboard-gsoc13.blogspot.nl/2013/09/success-at-last.html
Would be awesome to have same functionality in python. May be worth to consider?
from pybbio.
Thanks for pointing that out. It would definitely be cool to support continuous mode in PyBBIO to get some faster sampling, perhaps even combined with epoll to fire a callback after every sample. I definitely want to get the normal ADC reads faster first though.
from pybbio.
I'm closing this issue as I'm not planning on changing the way analogRead() works any time soon.
from pybbio.
Where can i find 'adafruit_bbio.adc'; i was interested to know the definitions of 'adc.read', 'adc.read_raw'
from pybbio.
This is the wrong repository.
You are looking for adafruit.bbio and not PyBBIO
from pybbio.
Ok.. Problem was solved.. Thanks
-----Original Message-----
From: "Deepak Karki" [email protected]
Sent: 06-04-2015 15:13
To: "graycatlabs/PyBBIO" [email protected]
Cc: "Advanta09" [email protected]
Subject: Re: [PyBBIO] AIN read performance issue (#29)
This is the wrong repository.
You are looking for adafruit.bbio and not PyBBIO
—
Reply to this email directly or view it on GitHub.
from pybbio.
Related Issues (20)
- I2C Library
- Unable to use PWM1A and PWM1B at the same time HOT 2
- Analog In not recognized HOT 4
- pwmFrequency int division vs float division
- GPIO resource busy error
- SPI0.write crashes Beagleblone HOT 1
- SPI0.write crashes Beagleblone HOT 1
- Questions about Contributions HOT 1
- Pull-ups, pull-down configuration issue
- GPIO configuration bug HOT 2
- SystemError: NULL result without error in PyObject_Call when testing blink.py
- example blink.py error with beaglebone black HOT 2
- BBIOServer_test.py error HOT 4
- MAX31855_test.py problem HOT 4
- importing bbio causes immediate segfault HOT 8
- WebCam - no module named gst HOT 1
- GPIO does not work after "bbio.pinMode" HOT 3
- no module named WebCam HOT 9
- Problem running PyBBIO ADC code on BBB attached to 4D Systems 4DCAPE HOT 8
- not an issue but a doubt HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pybbio.