YADU SHARON
BACK


Electronics Production


The assignment for this week is to make a fabisp using the designs and hex code which are made already. We are using Rolland Modella MDX 20 to mill the pcb, which is a 2.5D mcahine and can also be used for milling wax with limited depth (Z axis).


Modella MDX 20


The steps for milling a pcb are desiging the circuit (export as .png format), using the fab modules to controll the machine, setting the machine and milling.



  • The Design

  • This is the first part, the design. If you are using the fab modules , the the design should be in .png format. We took the design from http://fab.cba.mit.edu/content/projects/fabisp which is already done using the Eagle software. The schematic file is in eagle is also available in the site.




    What happens when milling a pcb is, removing the unwanted coper parts in the coper board , keeping the traces where the components are to be placed. So in the picture above the white color is the traces and the black is the portions to be removed. The fab modules reads the png file and detect the postions of the black color and commands the machine to mill that position. Once you mill the board it should be cut from the parent coper board. So we need another png file for this operation. That png file contains only the outline of the board.


    This is the cut out file


  • Using the Fab module

  • Using fab module is same as we did for the vinyl cutter. Open the terminal and type "fab"
    A window will pop up. Select the following
    input format : Image(.png)
    output process : Rolland MDX20
    Now click "make_png_rml"



    All these steps are same like the vinyl cutter because we use same fab module for that process also.
    Now another window will come. Load the image (our design which is in the png format). Then click on make path button. Choose the process as "mill traces(1/64)" on the top of the window. And the final step is to click on "make .rml" button and then on "send it!" button
    Before clicking the "make .rml" we need to set up the machine.



  • Setting up the machine
  • Now we have to set up the machine, like selecting bits, placing coper board, setting the origin etc.


    Here we use two types of bitts

  • 1/64 drill bit - For removing the copper parts
  • 1/32 drill bit - For cutting the copper baord

  • Here we use the 1/64 bit. For mounting the bit on the head, there is a screw that is to be loosen first. We can use allen key to loosen it. Then place the bit such that the majority of the bit goes inside the head. Then tighten the screw using the allen key





    Next is placing the board. There is grid marked on the machine so that we can understand the position. The default origin of the machine is at left bottom. It is better to place the copper board at the left bottom side. Double sided tap can be used to fix the copper board.

    Next we want to set the origin. The Bit tip should be at the origin point with respect to the copper board. So we have to move the bit tip to the point where we want to set it as the origin. For that we can use the "X min" and "Y min" options in the fab module. Giving x and y values and clicking on "go to x min y min" the tip will go to positions. We can move the tip to the correct position using trial and error method.



    Once we set the x and y axes, next is to set the Z axis. The Z axis is to be set such that the tip of the bit just touches the copper board. For that there are two buttons - UP and DOWN- on the machine which will move the bit to up and down.


    Once we set all the axes, then click on "make .rml" and then on " Send it". NOw the machine will start milling

    For cutting the board , we have to do all these procedures once more with the cut out image and the 1/32 bit.
  • Load the image of cut out file
  • select "cut out board (1/32) " on the top
  • change the bit to 1/32 drill bit
  • keep the x min and y min unchanged



  • b>Soldering the components

    Now the pcb is ready and the next is soldering the components. For soldering, we use soldering station of Weller which is very nice to use.

    I wrote down all the components required in a paper.

  • IC - ATtiny44
  • Resistors - 1k, 499, 100 x2 , 10k, 0
  • Capacitor - 10pF x2,1uF
  • Diodes - 3.3V x2
  • Mini USB female pin
  • 6 Pin Connector


  • I started soldering the components according to the circuit diagram.


    Finally the hardware part of the ISP is ready.



  • Programming the fabisp

  • The steps to program the isp is also explained in http://fab.cba.mit.edu/content/projects/fabisp For programming the isp, we need avr-gcc installed in Ubuntu. We can install it using terminal
    
        sudo apt-get install gcc-avr binutils-avr gdb-avr avr-libc avrdude
        
    Then power the board through usb. It doesnt work with out this step. Connect to Atmel ICE, the notch of the pins pointing towards the inside of the board. Download the firmware and open the firmware folder in terminal type the following
    
        make clean
        make hex
    
        
    Now go to the make file generated in folder and open it with text editor. Replace this line in the make file
    #AVRDUDE = avrdude -c avrisp2 -P usb -p $(DEVICE)

    Replace the "avrisp2" with the programmer we have in the fablab. Save the file and run the commands
    
            make fuse
            make program
            
    < Final step is desodler SJ1 jumper.

    But i faced a problem during programming

  • Problem faced


  • The steps and commands for programming in ubuntu is explained above. But the in the line
    AVRDUDE = avrdude -c avrisp2 -P usb -p $(DEVICE)
    the avrisp2 should be replaced with the name of the programmer we have. The programmer we had in the lab was atmel ice isp. But when we give its name , the avrdude is showing error that there is no such programmer. Either the programmer is not in the list or we don't know the correct name of our programmer. Suddenly i remembered about the programmer (usb asp) i have in my bag (my own programmer). I switched Windows, and opened the Extreme Burner, a programming software i used to use in windows. I selected the chip as ATtiny44 , loaded the hex file i downloaded and programmed. Finaly fabisp is ready to use.