Best and fastest? Yes, yes. Use C, namely GCC. We are men here.
OK, what you do is do it in hardware. Select a nice set of glue translating your TTL to 3.3v which the BBB uses. Use SSR chips or just plain logic chips to do this. Next you'll be implementing quite a bit of hardware so get some presensitized board and ferric chloride and some cheap Chinese breadboards for designing. etc. etc. Mouser or Digikey is your new best friend. Connect your IMU via the glue to the UARTs on your BBB. Set it up bidirectional as you will need to configure your IMU (ie. both TX and RX). Set your sampling at about 10 to 100 hz with an "attitude engine" reading on your IMU (x,y,z,vx,vy,vz) not the raw signals (that's so 2000's). OK, motor control. Real simple. PWM aka pulse width modulation. What you want to do is break out your PWM to a slave MCU (via BBB's UARTS) like a PIC16Fx and use software-implemented, crystal controlled PWM on your MCU. Then you 2 or 3 stage it (SSR, logic or driver) with quick circuitry to your MOSFETs (don't forget the backward diode or you'll damage your FETs and remember that FET's usually ground out the back so make sure you use a separate heat sink for each FET, some caps in there somewhere might be nice too). Then use the BBB to crunch the numbers. Basically this set up transfers your underlying algorithm to a programming domain from a hardware one. What are you building btw? A drone? On Sunday, July 31, 2016 at 4:17:41 AM UTC-7, Dror Lugasi wrote: > > 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. > > thanks for helping! > > > -- 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/9bb2089f-4ca7-45c0-a588-e559a934201c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
