Python OpenCV code runnig on BBB interacting with the PRUs

69 views
Skip to first unread message

Tinashe Mudavanhu

unread,
Jan 2, 2016, 8:04:22 AM1/2/16
to BeagleBoard
Hi,

I recently bought a BBB to run an eye tracking opencv code. I am a novice in this area so please dont get frustrated if the question seems silly. How do i make the opencv code interact with the PRUs on the BBB? The motive is to use PRU controlled servo motors to move the camera (for faster realtime operations), but since PRUs are just mere microcontrollers that cannot run opencv (opencv running on the Debian OS on BBB), how do i link the code running on the OS and the PRUs?

I intend to use python for the opencv code. I'm open to further clarification on my question just thought that this might be a starting point.

Kind Regards,

Tinashe

doog

unread,
Jan 2, 2016, 11:09:08 AM1/2/16
to BeagleBoard
IIRC, the PRU's are memory mapped so you could "talk" to the PRU using that memory. If none of that makes sense to you then you have a learning curve ahead of you before you'll be even close to ready to write software for the PRU to control your servos.

Might I suggest you write your software to control the servo(s) in Python first and see how well it reacts with your OpenCV program. If that's not _fast_ enough then port the servo software to C++ and if that is not fast enough you would then have enough understanding of your project, software development in C and the BBB to start porting your servo code to the PRU(s).

Tinashe Mudavanhu

unread,
Jan 16, 2016, 5:14:36 AM1/16/16
to beagl...@googlegroups.com
Thanks Doog,

I will try that and get back to you with results i get.

Regards

--
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/pa7TSCgRbYA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages