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 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.
