Response time slow on Python pySerial, RPi, and Arduino orchestration
March 10, 2013
I'm working on learning Python and orchestrating my Raspberry Pi to be my bot's brain. Currently, my plan is to develop an orchestration code between the RPi and Arduino+Motor Shield using good old UART and pySerial. Right now, I've written rough code to cause the RPi to act as a fancy wireless shield. It is suppose to capture key strokes and send them to the Ardy. The trouble I'm having at this stage is with key presses not getting delivered to the Arduino quick enough. Also, if the key is held down, the key is not repeated like hoped. Note, I'm using pyGame, since I've already wrote this code once in Tkinter and tried porting to the RPi from a Linux laptop and got infinite errors. Nevertheless, any input or downright mocking would be appreciated.
Code to go with this bot: