12/14/2011

Ubuntu desktop cube rotating by human physical motion.


Not so complicated as it appears.


Two distance measuring sensors detect motion and send signals to the AVR board behind the monitor.

Then, the AVR board analyze whether the object is moving to right or left, and send analyzed result to PC (ubuntu) through USB serial port.

On ubuntu, python program daemon read the serial data, and rotate desktop cube.




It was my first AVR playing.
Very funny.

12/10/2011

python interface with arduino, send key to x

http://www.stealthcopter.com/blog/2010/02/python-interfacing-with-an-arduino/




$ sudo apt-get install xdotool
$ xdotool key Control+Alt+Left

12/01/2011