Arduino + Raspberry Pi using pyFirmata and pyQt

Steps on Raspberry Pi :

1) Install pyQt :

$ sudo aptitude install pyqt4-dev-tools

2) Install pip

$ sudo aptitude install python-pip

3) Install pyFirmata

$ sudo pip install pyfirmata

4) Download qtgui02.py (Based on qtgui.py)

$ wget https://www.binefa.cat/php/raspberryPi/python/pyQt/qtgui02.py.tar.gz

$ tar -zxvf qtgui02.py.tar.gz

 

Steps on Arduino :

5) Install standard firmata on Arduino

400px-Arduino-firmata

 

6) Mount Arduino Nano on  nano-eCat and connect to I/O matrix board connected to servo and joystick . Plug mini USB to Arduino Nano to a Raspberry Pi USB.

I/O Matrix settings
I/O Matrix settings

 

7) On Raspberry Pi terminal run :

$ ./qtgui02.py

or

$ python qtgui02.py

screenshot

SCoop installation on Arduino IDE

SCoop : Simple Cooperative Scheduler for Arduino and Teensy ARM and AVR

1st option) Go to official SCoop website : https://github.com/fabriceo/SCoop/ and follow its instructions

2nd option) Once Arduino IDE is installed on Debian, download https://www.binefa.cat/php/arduino/ardublock/SCoop.tar.gz at

/usr/share/arduino/libraries and uncompress it.

 

clot@debian:/usr/share/arduino/libraries$ wget https://www.binefa.cat/php/arduino/ardublock/SCoop.tar.gz
–2014-11-18 17:26:30– http://www.binefa.cat/php/arduino/ardublock/SCoop.tar.gz
S’està resolent www.binefa.cat (www.binefa.cat)… 37.58.75.228
S’està connectant a www.binefa.cat (www.binefa.cat)|37.58.75.228|:80…connectat.
HTTP: s’ha enviat la petició, s’està esperant una resposta…200 OK
Mida: 30251 (30K) [application/x-tar]
S’està desant a: «SCoop.tar.gz»

100%[==========================================================================================>] 30.251 71,9K/s en 0,4s

2014-11-18 17:26:32 (71,9 KB/s) – s’ha desat «SCoop.tar.gz» [30251/30251]

clot@debian:/usr/share/arduino/libraries$ tar -zxvf SCoop.tar.gz
SCoop/examples/MultipleBlinks/MultipleBlinks.ino
SCoop/examples/example1/example1.ino
SCoop/examples/example2/example2.ino
SCoop/examples/example3/example3.ino
SCoop/examples/example4/example4.ino
SCoop/examples/example5/example5.ino
SCoop/examples/performance1/performance1.ino
SCoop/examples/MultipleBlinks2.ino
SCoop/SCoop.h
SCoop/SCoop.cpp
SCoop/keywords.txt
SCoop/scoop change log.txt
SCoop/examples/MultipleBlinks/
SCoop/examples/MultipleBlinks2/
SCoop/examples/example1/
SCoop/examples/example2/
SCoop/examples/example3/
SCoop/examples/example4/
SCoop/examples/example5/
SCoop/examples/performance1/
SCoop/examples/
SCoop/example1/
SCoop/