User:Sandip Pune: Difference between revisions

From Fab Lab Wiki - by NMÍ Kvikan
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
Hello RGB LED 45 circuits
#how to Download the programme file for hello world circuits  
 
#There are three steps need to follow to complete the task
#Open “cad.py”
#1 write code for assembly if you are writing new codes or use assembly code available for hello circuit.
#Click on “input”go to fab directory, select circuits, “hello RGB LED 45mta.cad”
#2 compile assembly code to hex code using "gvrasm"
#Click on output format
#3 download the hex AVR using "avrdude"
#Select format for modella “.rml”
'''# Step1'''
#Select tool diameter “0.0156 or (1/64 inch)”
#if working on a linux/Ubuntu, go to the terminal window
#Total overlap is “0.5”
#to search the assembly file in the PC, type "which_ file".
#select the text line in the cad progamme ap pears on the right side of the screen, scroll down and select the “#dpi=500” and “#high resolution for machining” delete  the # sign from these text lines.
#then change to the directory where the assembly file is by using command "cd name of directory"
#Select contour to generate tool path and adjust XY position so that tool will reach to the initial position from where it start cutting.
# type "Ls" to see list of file.there asm file will appers.
#Adjust “Z” height of tool by lowering down the tool close to the surface and loosen the set screw of collate so that tool can easily fall down on surface In such a way that it touches the surface and stands, then tight the set screws and click on the button “send to machine”.
'''# Step 2'''
#The above procedure allows you to mill the inner circuit. Once inner circuit milling is over.
#in the terminal window type "gavrasm  file.MTA.asm, hit enter
#Change the tool with tool diameter “0.0312 or 1/32 inch”. set contour to +1, and Z speed is 0.5. Then press “contour” you will get outer boundary of circuit.  
#assembly file will convert to hex file and this file is ready to send to the micro controller of circuit.
#Go to the text file appear in the right side of screen, scroll down and go to the text lines “# cad .function=pcb.interior”  and
'''#Step3'''
## Z=-0.5”
#download "avrdude in-circuit programmer" from URL http://fab.cba.mit.edu/about/fab/
#do not forget to delete symbol “#” from these lines
#avrdude programmer for different Tyne microcontroller are
#now you are ready to send the file to machine hit the button “send to machine”
# ''tiny45 load hex file, bsd cable: avrdude -p t45 -c bsd -U flash:w:file.hex''
# ''tiny45 load hex file, dasa cable: avrdude -p t45 -P /dev/ttyUSB0 -c dasa -U flash:w:file.hex''
#''tiny45 load hex file, dragon: avrdude -p t45 -P usb -c dragon_isp -U flash:w:file.hex''
#''tiny44 load hex file: avrdude -p t44 -c bsd -U flash:w:file.hex''
#''tiny44 use 20 MHz xtal: avrdude -p t44 -c bsd -U lfuse:w:0x7E:m''
#''mega88 load hex file: avrdude -p m88 -c bsd -U flash:w:file.hex''
#''mega88 use 20 MHz xtal: avrdude -p m88 -c bsd -U lfuse:w:0x76:m''
#''mega644 load hex file: avrdude -p m644 -c bsd -U flash:w:file.hex''
#''mega644 use 20 MHz xtal: avrdude -p m644 -c bsd -U lfuse:w:0x76:m''
#if  you are using tiny 45 microcontroller with serial port and ICP cable then select ''avrdude -p t45 -c bsd -U flash:w:file.hex''
#in the terminal window type, avrdude -p t45 -c bsd -U flash:w:file.hex    eg. avrdude -p t45 -c bsd -U flash:w:hello.RGB.45.MTA.hex 
#connect circuit serial port to computer and power supply to circuit
#after doing this hit enter in the terminal window the message appears as shown in "

Revision as of 20:24, 15 January 2010

  1. how to Download the programme file for hello world circuits
  2. There are three steps need to follow to complete the task
  3. 1 write code for assembly if you are writing new codes or use assembly code available for hello circuit.
  4. 2 compile assembly code to hex code using "gvrasm"
  5. 3 download the hex AVR using "avrdude"

# Step1

  1. if working on a linux/Ubuntu, go to the terminal window
  2. to search the assembly file in the PC, type "which_ file".
  3. then change to the directory where the assembly file is by using command "cd name of directory"
  4. type "Ls" to see list of file.there asm file will appers.

# Step 2

  1. in the terminal window type "gavrasm file.MTA.asm, hit enter
  2. assembly file will convert to hex file and this file is ready to send to the micro controller of circuit.

#Step3

  1. download "avrdude in-circuit programmer" from URL http://fab.cba.mit.edu/about/fab/
  2. avrdude programmer for different Tyne microcontroller are
  3. tiny45 load hex file, bsd cable: avrdude -p t45 -c bsd -U flash:w:file.hex
  4. tiny45 load hex file, dasa cable: avrdude -p t45 -P /dev/ttyUSB0 -c dasa -U flash:w:file.hex
  5. tiny45 load hex file, dragon: avrdude -p t45 -P usb -c dragon_isp -U flash:w:file.hex
  6. tiny44 load hex file: avrdude -p t44 -c bsd -U flash:w:file.hex
  7. tiny44 use 20 MHz xtal: avrdude -p t44 -c bsd -U lfuse:w:0x7E:m
  8. mega88 load hex file: avrdude -p m88 -c bsd -U flash:w:file.hex
  9. mega88 use 20 MHz xtal: avrdude -p m88 -c bsd -U lfuse:w:0x76:m
  10. mega644 load hex file: avrdude -p m644 -c bsd -U flash:w:file.hex
  11. mega644 use 20 MHz xtal: avrdude -p m644 -c bsd -U lfuse:w:0x76:m
  12. if you are using tiny 45 microcontroller with serial port and ICP cable then select avrdude -p t45 -c bsd -U flash:w:file.hex
  13. in the terminal window type, avrdude -p t45 -c bsd -U flash:w:file.hex eg. avrdude -p t45 -c bsd -U flash:w:hello.RGB.45.MTA.hex
  14. connect circuit serial port to computer and power supply to circuit
  15. after doing this hit enter in the terminal window the message appears as shown in "