CRITR/motor control gen1

From Lofaro Lab Wiki
Revision as of 22:43, 7 December 2015 by Echung8 (Talk | contribs)

Jump to: navigation, search

For our motor control, we used Python's Curses library. We used this because it was an easy implementation in order to implement Tx/Rx serial communication between the Raspberry Pi and the Arduino Pro Mini. There were a few other ways to implement the commands, with pi3d, but Curses allowed us to control the motors and by implementing it through this, we were able to move on and try to control the motors through potentiometers. The downside to using Curses is that it didn't allow for multiple buttons to be read in. Each input given by the user was recorded and holding down the key wasn't read. Pi3d allows for multiple keys to be pressed down simultaneously.

File:Motor control gen1.txt