Let's Make Robots!

IR and Sensor rangefinding data visualisation

These images were created by stepping a pair of servo motors to create a file containing sensor readings for each possible servo position.

I took 3 readings for each position from each servo and stored them in a file, then read the data back in a seperate pygame program running on a desktop to generate the image. RGB values were generated from the 3 readings from each sensor.

Reading USB mouse data in linux - somebody else C app and my python

Here is a slightly modified (added in hs and vs) c utility, and my python version. they will read the linux /dev/input/mouse data and convert it into status and x/y deltas

i noticed my python app seems quite different to the c app. not quite sure - default int()  types in c must be signed, i dont know... my second two bytes for x,y have MSB set if they are negative, but this value is also set in bits 5 and 6 of byte 1 from what my python tells me..


comments welcome!

Converting X,Y mouse positions to skid seering commands

For quick demonstrations/easy testing of hardware, i am trying to write a pygame interface to a skid steering robot.