embedded programming

18
Serial echo

Upload: victor-freundt

Post on 24-Jan-2015

393 views

Category:

Documents


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Embedded programming

Serial echo

Page 2: Embedded programming

Click on the terminal. Once the window opens type ‘cad’

Page 3: Embedded programming

This is the bit used for machining the part inside de board. (1/64’’ end mill)

Page 4: Embedded programming

We are making the echo board, so you can download it from http://fab.cba.mit.edu/about/fab/ . The one to choose is ‘hello.echo.44.MTA.cad’ since we are using MTA connectors. Don’t forget that everything must be in the same file! After opening cad, look for the file in ‘input’. Then click on ‘cam’ and in ‘output format’ choose ‘modella’. Uncomment ‘dpi=500#high resolution for machining’. Adjust the values: tool diameter=0.0156, #contours=-1, xy and z speed=4 .Click on ‘contour’ to see how it’ll look like, and ‘move’ to adjust the height of the bit. Once it is ready, click on ‘send to machine’.

Page 5: Embedded programming

Now, wait until the 1/64’’ bit finishes its work.

Page 6: Embedded programming

This is the bit used for the contour of the board (1/32’’ end mill)

Page 7: Embedded programming

This time, uncomment ‘cad function = frame’ and ‘z = -.065’. Adjust the values: tool diameter=0.0312, #contours=1, xy and z speed=0.5.Click on ‘contour’ to see how it’ll look like, and ‘move’ to adjust the height of the bit. Once it is ready, click on ‘send to machine’.

Page 8: Embedded programming

Now, wait until the 1/32’’ bit finishes its work.

Page 9: Embedded programming

It is ready to be soldered. After getting all the items (components and tools), it is recommended to stick the board on the table to avoid it moves.

Page 10: Embedded programming

I think this part requires patience. You have to be very careful when soldering the parts. Check that the line in the diode and the LED are in

the proper direction, and the 4-pin MTA connector too!

Page 11: Embedded programming

To program you have to download ‘hello.echo.44.MTA.asm’. Remember to save everything in the same file!! Open the terminal and get into the folder where all files are located

Once you have the .asm, you have to change it to .hex. Like below, you would type ‘gavrasm hello.echo.44.MTA.asm’

Then send power to the PCB. In my case , it was ‘python rx.py /dev/ttyS0 9600’

Fro the crystal (resonator) you will have to type this ‘avrdude –p t44 –c bsd –U lfuse:w:0x7E:m

Then, send the program typing this ‘avrdude –p t44 –c bsd –U flash:w:hello.echo.44.MTA.hex’

Page 12: Embedded programming

Finally, to see if it really works, you type ‘python term.py /dev/ttyS0 9600’.

You MUST check that the serial cable is working properly!. Sometimes I thought me PCB wasn’t working. Then, we realized it was the cable. So, how does this work? When you type what is above, another window will open. Press any character form the keypad and the LED will turn

on.

Page 13: Embedded programming

This board is the dasa.MTA. This board is used as a voltage limiter. The process to machine this board is completely the same as the others. You can find the file (dasa.MTA.cad) in http://fab.cba.mit.edu/about/fab/ .

Page 14: Embedded programming

External power supply

Page 15: Embedded programming

serial AMP MTA plug <-> DB9F cable (wire side view)

Page 16: Embedded programming

5-pin AMP connector to another 5-pin AMP

Page 17: Embedded programming

5-pin AMP to a DB-9 female

Page 18: Embedded programming

Connection