Principles Practices project management
interface and application programming
output devicesmechanical design, machine design
|
Input devices |
In this assignment I chose to mill and program the Hello Mic board. Milling the board: Here are the Radamés Tutorial´s changes: After that, we installed the Modela MDX40A as “Generic Printer” and “Raw Queue”. |
|
I´m using the GUARUX/Ubuntu 10.04 that is our OS that we use in our work with digital inclusion in Guarulhos city council named “Social Fab”. For more information go to my about link . Recently GUARUX was recognized by Department of Logistics and Information Technology of the Brazilian Ministry of Planning Federal Government as a “Brazilian Public Software”. |
We can run the Modela MDX40A + Fab Modules in GUARUX/Ubuntu 10.04 OS this way:
Crtl + Alt + T (open the terminal) Soldering the board:
|
I realized that the terminals of the component are different: |
So I compared the datasheet information with the real component and checked the terminal 1 + and 2 - positions to be soldered. So this was the resulting board:
|
Programming the board: I worked with Cygwin/Win7 64bits and directed to Win7 64 –prompt. What is Cygwin? And checked Lining Yao tutorial from MIT Media Lab. I installed the following Cygwin packages:
|
So I needed Python, Pyserial and ActiveTcl (tkinter). You can follow the Providence tutorial.In general lines the packages: Python is the program language that the code was written. Pyserial is for the serial port. Active TCL is a tool for programmers. After installed Cygwin, I downloaded the board´s files and extracted to the C:Cygwin/Home/. After this, I needed to install AVRISP MKII drivers for Win 7 64. A non programmer thinking: “Well I will install AVR Studio and a bunch of things will be installed, and so, the Win 7 64 drivers”.
If you have a doubt about FTDI drivers here are information in Portuguese. Important thing:
I opened the Cygwin terminal and navigated to home folder, where all the class files were.
In the terminal I placed the command:
Returned an error: Oops, Usbtiny is another programmer, the answer came after comparing with the classmate Jose Perez Lama´s assignment page. So I did another command:
|
So I googled about serial ports in Cygwin and I found that the ports in Cygwin is opened this way: |
/dev/com1 The serial ports, starting with COM1 which is the same as ttyS0. So COM2 the command is /dev/com1. Well my port is 19 so I did: python hello.light.45.py/dev/ttyS18 |
; |
So, I suspect that was a Python problem, so I google the problem and I found a way to bring up any Windows program in Cygwin by this command: cygstart/cygdrive/c/my.docx ; |
So, I tried this command to open hello.light.45 to test the Python: $cygstart/cygdrive/c/cygwin/home/Light/synchronous/ hello.reflect.45.py com19 To my surprise it worked!
|
For curiosity I changed the /dev/ttyS18 port as suggested in Cygwin documentation: $cygstart/cygdrive/c/cygwin/home/Light/synchronous/ hello.reflect.45.py/dev/ttyS18 Returned an error. Another curiosity: I changed to Windows-prompt and voilà, it worked too! Well, Cygwin or not Cygwin, the answer was that Cygwin only worked in this assignment with cygstart command. |