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
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
Hello RGB LED 45 circuits
* [[User:Sandip pune/Moulding]]


#Open “cad.py”
 
#Click on “input”go to fab directory, select circuits, “hello RGB LED 45mta.cad”
 
#Click on output format
 
#Select format for modella “.rml”
'''How to Download the programme file for hello world circuits'''
#Select tool diameter “0.0156 or (1/64 inch)”
There are three steps need to follow to complete the task
#Total overlap is “0.5”
# write code for assembly if you are writing new codes or use assembly code available for hello circuit.
#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.
# compile assembly code to hex code using "gvrasm"
#Select contour to generate tool path and adjust XY position so that tool will reach to the initial position from where it start cutting.
# download the hex AVR using "avrdude"
#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”.
''' Step1'''
#The above procedure allows you to mill the inner circuit. Once inner circuit milling is over.
if working on a linux/Ubuntu, go to the terminal window
#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.  
to search the assembly file in the PC, type "which_ file".
#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
then change to the directory where the assembly file is by using command "cd name of directory"
## Z=-0.5”
  type "Ls" to see list of file.there asm file will appers.
#do not forget to delete symbol “#” from these lines
''' Step 2'''
#now you are ready to send the file to machine hit the button “send to machine”
#in the terminal window type "gavrasm  file.MTA.asm, hit enter
#assembly file will convert to hex file and this file is ready to send to the micro controller of circuit.
'''Step3'''
#download "avrdude in-circuit programmer" from URL http://fab.cba.mit.edu/about/fab/
avrdude programmer for different Tyne microcontroller are
## ''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 [[Image:Avrdude.png]]
# circuit is ready with programme.
# if programme is not installed in microcontroller then you will get the message as shown in [[Image:Avrdude not respond.JPG]]
# trouble shoot the circuit and cable.

Latest revision as of 12:53, 22 January 2010



How to Download the programme file for hello world circuits There are three steps need to follow to complete the task

  1. write code for assembly if you are writing new codes or use assembly code available for hello circuit.
  2. compile assembly code to hex code using "gvrasm"
  3. download the hex AVR using "avrdude"

Step1 if working on a linux/Ubuntu, go to the terminal window to search the assembly file in the PC, type "which_ file". then change to the directory where the assembly file is by using command "cd name of directory"

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/

avrdude programmer for different Tyne microcontroller are

    1. tiny45 load hex file, bsd cable: avrdude -p t45 -c bsd -U flash:w:file.hex
    2. tiny45 load hex file, dasa cable: avrdude -p t45 -P /dev/ttyUSB0 -c dasa -U flash:w:file.hex
    3. tiny45 load hex file, dragon: avrdude -p t45 -P usb -c dragon_isp -U flash:w:file.hex
    4. tiny44 load hex file: avrdude -p t44 -c bsd -U flash:w:file.hex
    5. tiny44 use 20 MHz xtal: avrdude -p t44 -c bsd -U lfuse:w:0x7E:m
    6. mega88 load hex file: avrdude -p m88 -c bsd -U flash:w:file.hex
    7. mega88 use 20 MHz xtal: avrdude -p m88 -c bsd -U lfuse:w:0x76:m
    8. mega644 load hex file: avrdude -p m644 -c bsd -U flash:w:file.hex
    9. mega644 use 20 MHz xtal: avrdude -p m644 -c bsd -U lfuse:w:0x76:m
  1. 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
  2. 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
  3. connect circuit serial port to computer and power supply to circuit
  4. after doing this hit enter in the terminal window the message appears as shown in
  5. circuit is ready with programme.
  6. if programme is not installed in microcontroller then you will get the message as shown in
  7. trouble shoot the circuit and cable.