Modules 16 – interface and application programming
![](Images/Mod16_Boards_01.png)
Class
![](Images/Separator.png)
In Class Tutorials
Excellent tutorial by Guillem→
The Assignment
write an application that interfaces with an input and/or output device
.
![](Images/Mod16_BoardsConnect_01.png)
![](Images/Mod16_Boards_02.png)
![](Images/Mod16_AcceleroBoard_01.png)
The idea
I'd like to use the basic X-Y accelerometer [MMA3201KEG by Freescale] we had in FabLab Barcelona and try to reproduce it's inclination on screen.
I'll use Arduino to programm the board, and Processing to design the interface.
![](Images/Separator.png)
![](Images/Mod16_PoleBalancing_1.gif)
![](Images/Mod16_PoleBalancing_2.gif)
Two virtual leds flash. The green one indicate that the board is balancing in top 180º, and the red led indicate we went under...
![](Images/Separator.png)
The video of the interface working
Pole Balancing from Matthieu on Vimeo.
Downloadables
[ download ARDUINO SKETCH file: "AcceleroRead.ino" ] → this collects the data from the accelerometer.
[ download PROCESSING SKETCH file: "Pole_Balancing.pde" ] → this displays the data collected by Arduino to the screen.
That's all Folks.