Hi Dror!

Am Sonntag, 31. Juli 2016 13:17:41 UTC+2 schrieb Dror Lugasi:
>
> hey guys,
> i am new to BBB and i need to use it for serial communication: reading 
> data from IMU and controlling motor drivers according to the readings.
>
> what is the best (easiest and fastest) way to do this? 
>
> the beagle is running as a stand alone PC with screen and a keyboard and 
> mouse.
> i haven't got any experience with coding serial communication, i just know 
> the basics, so i am also looking for a good source to read about it.
> is the Cloud9 that comes with it good for this application? and in what 
> language is it best? python? js? or maybe c++?
> a reference with explanation on how to receive and send data via the UART 
> and CAN ports is the best solution that i am after.
>
> the UART1,2,4 are already configured in ttyO1/2/4. but i wasn't able to 
> initialize the CAN ports.
>

Serial communication is no issue. Just load the overlay to configure the 
pins. Then configure the port, open the port, and read or write data.

The point is "controlling motor drivers". What kind of control do you need 
(just on/off, or complex power control, may be in closed loop control at 
high frequency with QEP sensor).

For a closed loop controller I wouldn't use interpreter languages (Phyton, 
JS). The interpreter may do a garbage collection in that moment when you 
need low latency. Prefer compiler languages, and use the one you're most 
comfortable with.

BR

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/b22c1df1-fedb-47b6-aa11-13e70e545775%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to