New project on the rails, a system to control a webcam movement using motors and servos to switch them on and off…
As a reference I have foundĀ here.
Here are the step used to make the servo work, on an (K)ubuntu machine:
- Install arduino repository:
sudo add-apt-repository ppa:arduino-ubuntu-team - Install arduino:
sudo apt-get install arduino - Start arduino in the command line:
> arduino - Select the correct port in Tools> Serial Port (tick the box)
- Copy/paste the code, compile and upload it
- Install pyserial (you may need to install easy_install with sudo apt-get install easy_install* python-setuptools:
easy_install -U pyserial - cwd to the servo.py path and call python:
python
>>>import servo
>>>servo.move(1,0) - Your servo should move
I will update when I have done more work
* apparently apt-get install python-setuptools is enough, don’t insert “easy install” in the cmdline