Embedded programming


Published on

  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Embedded programming

  1. 1. Serial echo<br />
  2. 2. Click on the terminal. Once the window opens type ‘cad’<br />
  3. 3. This is the bit used for machining the part inside de board. (1/64’’ end mill)<br />
  4. 4. 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’. <br />Uncomment ‘dpi=500#high resolution for machining’. Adjust the values: tool diameter=0.0156, #contours=-1, xy and z speed=4 .<br />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’.<br />
  5. 5. Now, wait until the 1/64’’ bit finishes its work.<br />
  6. 6. This is the bit used for the contour of the board (1/32’’ end mill)<br />
  7. 7. This time, uncomment ‘cad function = frame’ and ‘z = -.065’. Adjust the values: tool diameter=0.0312, #contours=1, xy and z speed=0.5.<br />Click on ‘contour’ to see how it’ll look like, and ‘move’ to adjust the height of the bit. <br />Once it is ready, click on ‘send to machine’.<br />
  8. 8. Now, wait until the 1/32’’ bit finishes its work.<br />
  9. 9. 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.<br />
  10. 10. 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! <br />
  11. 11. To program you have to download ‘hello.echo.44.MTA.asm’. Remember to save everything in the same file!! <br />Open the terminal and get into the folder where all files are located<br />Once you have the .asm, you have to change it to .hex. Like below, you would type ‘gavrasm hello.echo.44.MTA.asm’<br />Then send power to the PCB. In my case , it was ‘python rx.py /dev/ttyS0 9600’<br />Fro the crystal (resonator) you will have to type this ‘avrdude –p t44 –c bsd –U lfuse:w:0x7E:m<br />Then, send the program typing this ‘avrdude –p t44 –c bsd –U flash:w:hello.echo.44.MTA.hex’<br />
  12. 12. Finally, to see if it really works, you type ‘python term.py /dev/ttyS0 9600’. <br />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. <br />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.<br />
  13. 13. 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/ . <br />
  14. 14. External power supply<br />
  15. 15. serial AMP MTA plug &lt;-&gt; DB9F cable (wire side view)<br />
  16. 16. 5-pin AMP connector to another 5-pin AMP<br />
  17. 17. 5-pin AMP to a DB-9 female<br />
  18. 18. Connection<br />