Git Product home page Git Product logo

Comments (7)

alexanderhiam avatar alexanderhiam commented on September 5, 2024

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.

Sanerix avatar Sanerix commented on September 5, 2024

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.

alexanderhiam avatar alexanderhiam commented on September 5, 2024

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.

alexanderhiam avatar alexanderhiam commented on September 5, 2024

I'm closing this issue as I'm not planning on changing the way analogRead() works any time soon.

from pybbio.

 avatar commented on September 5, 2024

Where can i find 'adafruit_bbio.adc'; i was interested to know the definitions of 'adc.read', 'adc.read_raw'

from pybbio.

deepakkarki avatar deepakkarki commented on September 5, 2024

This is the wrong repository.
You are looking for adafruit.bbio and not PyBBIO

from pybbio.

 avatar commented on September 5, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.