Python code to connect to 2A Dual Motor Controller from Raspberry Pi

Hello,
I've got a Raspberry Pi from which I want to connect to the 2A Dual Motor Controller. On the wiki there's some (I think) C code. Would it be possible to also provide some Python code to control both the motors?
Cheers!
I've got a Raspberry Pi from which I want to connect to the 2A Dual Motor Controller. On the wiki there's some (I think) C code. Would it be possible to also provide some Python code to control both the motors?
Cheers!
2013-03-20 13:31:46 Hi
You can refer to the Arduino playground about "Arduino and Python"
http://playground.arduino.cc/interfacing/python
The sample code to driver the motors , you can refer to
http://www.dfrobot.com/wiki/index.php/DC_Motor_Driver_2x15A_Lite_(SKU:_DRI0018)
Then you can change the arduino Serial read to python serial read.
Hope it is useful for you
Phoebe
You can refer to the Arduino playground about "Arduino and Python"
http://playground.arduino.cc/interfacing/python
The sample code to driver the motors , you can refer to
http://www.dfrobot.com/wiki/index.php/DC_Motor_Driver_2x15A_Lite_(SKU:_DRI0018)
Then you can change the arduino Serial read to python serial read.
Hope it is useful for you

