Analog input sampling rate

35 views
Skip to first unread message

bistv...@gmail.com

unread,
Mar 4, 2015, 10:01:22 AM3/4/15
to beagl...@googlegroups.com

  Dear Community,


 could anyone tell me at what rate the 8 analog inputs of the board can be sampled?

 I found this: http://beaglebone.cameon.net/home/reading-the-analog-inputs-adc   --- but 125ns per channel are hard to believe (this would be 8MHz). 

  I am a beginner, so I would use the analogRead command... 

  Ideas? Suggestions?

Thank you!

TJF

unread,
Mar 5, 2015, 9:30:29 AM3/5/15
to beagl...@googlegroups.com, bistv...@gmail.com
Only 7 input pins (AIN-[0-6]) are connected to header pins. AIN-7 is hard connected to the power supply on the board.

I don't know what you mean by analogRead command. The TSC_ADC_SS can sample 8 channels at 200 kHz. You can sample at that speed by using libpruio (bindings for C and FreeBASIC are available).

BR

Istvan Biro

unread,
Aug 14, 2017, 5:36:07 AM8/14/17
to TJF, beagl...@googlegroups.com

   Hello,

 

Using libpruio,

may I ask if there is any support for reading an I2C sensor via the PRU – or any suggestion on how this can be done? The idea is to read an I2C accelerometer in determined intevals, using the PRU, at 1kHz +.

 

  Thanks a lot!

 

Best regards,

Istvan

TJF

unread,
Aug 14, 2017, 12:40:58 PM8/14/17
to BeagleBoard, jeli.f...@gmail.com
Hi Istvan!

There's no I2C support in libpruio and it isn't planed to get implemented, sorry.

1 kHz should be possible to realize on ARM. (For hard real-time requirements use the second PRU.)

Regards
Reply all
Reply to author
Forward
0 new messages