Thank you! Vitali
On Wed, Dec 3, 2014 at 6:23 PM, Jerry Davis <[email protected]> wrote: > Vitali, > > just google for this: beaglebone black pru gpio > > you will find a ton of info > > On Wed, Dec 3, 2014 at 12:56 PM, Vitali Coltuclu <[email protected]> > wrote: > >> Hello Robert, >> >> Thank you very much for the fast reply. I am new to electronics so could >> you please tell me what pru is? Thanks >> >> >> On Wed, Dec 3, 2014 at 2:53 PM, Robert Nelson <[email protected]> >> wrote: >> >>> On Wed, Dec 3, 2014 at 1:49 PM, Vitali Coltuclu <[email protected]> >>> wrote: >>> > Hello Everyone, >>> > >>> > I am trying to build a sensor using Beaglebone Black (BBB) and Python >>> and I >>> > would like to get as many data points as possible from the sensor. >>> Using the >>> > code below, I get around 120 000 points per second. >>> > >>> > import Adafruit_BBIO_GPIO as GPIO >>> > import time >>> > >>> > GPIO.setup("P8_11", GPIO.IN) >>> > >>> > def get_data(n): >>> > start_time = time.time() >>> > my_list = [GPIO.input("P8_11") for i in range(n)] >>> > end_time = time.time() - start_time >>> > print "Time: {}".format(end-time) >>> > return my_list >>> > >>> > n = 120000 >>> > get_data(n) >>> > >>> > I am wondering if it is possible to speed up BBB, ideally to get the >>> rate of >>> > 1 MHz. What are the options to do that? >>> >>> If your just reading a gpio pin, use the pru... >>> >>> Regards, >>> >>> -- >>> Robert Nelson >>> http://www.rcn-ee.com/ >>> >>> -- >>> 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/P4Syb8hIPOg/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. >> > > > > -- > Extra Ham Operator: K7AZJ > Registered Linux User: 275424 > Raspberry Pi and Arduino developer > > > *The most exciting phrase to hear in science - the one that heralds new > discoveries - is not "Eureka!" but "That's funny...".*- Isaac. Asimov > > *I* > *f you give someone a program, you will frustrate them for a day; if you > teach them how to program, you will frustrate them for a lifetime. *- > Anonymous > > > *If writing good code requires very little comments, then writing really > excellent code requires no comments at all !*- Anonymous > > -- > 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/P4Syb8hIPOg/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.
