beagleboard / bonescript

Scripting tools for the BeagleBoard and BeagleBone
http://beagleboard.org
MIT License
32 stars 9 forks source link

Help with hcsr04 sensor #32

Open jadonk opened 6 years ago

jadonk commented 6 years ago

From @aldajo92 on November 10, 2014 15:58

I need to use the BBB with ultrasonic hcsr04 sensor. For this, its necesary to measure the duration of the pulse.. can anyone help me?

Copied from original issue: jadonk/bonescript#98

jadonk commented 6 years ago

From @jarrettv on February 2, 2017 19:2

You must use the PRU or switch to a real-time operating system to precisely measure the duration of the pulse.