Week 5 | Electronics Production



Milling the PCB Board

We have Ronald milling machine at Fablab MXD milling machine at FABLAB CEPT. The board which we mill is FR1 PCB Board.

picofeditorialtheme


We downloaded the png of pcb from Brian's website

fts_mini_traces

fts_mini_cut

The board we use for milling is FR1 PCB Board. We stick the board on machine bed by double sided tape.

p2

Here we use two drilling bits : 1/64 for milling out the traces and 1/16 for cutting the board.

p3

First we tried makeing the traces so we used 1/64 drill bit. The laptop connected has Ubunto Linux which hosts fab modules to generate tool-path for milling machine. Open the terminal and write "fab". Now change the "from input format" to "image(.png), and "to output process" to "Roland MDX-20 mill (.rml)" and then clicking on "make_png_rml" opens a new window

r1

r2

We milled the board given below:

p11

r3

Choose the 1/64 drill bit. This drill bit is used for milling out the traces of the PCB Now click on "make path" and set the parameters given below:
  1. Diameter : 0.4 mm
  2. Offset : 3 mm
  3. Overlap : 0.5
  4. Error : 0 pixels
  5. Intensity : 0.5
  6. z(mm) : -0.08

Now adjust (Xmin, Ymin) for setting the drill bit on the PCB.

r4

Now click on "make path" and then "make .rml", this open a new window which shows path for milling and proceed by clicking "begin milling". Incase you want to stop the milling you can click on "Abort".

r5

r5_5

First we wnated to make traces so we used 1/64 drill bit. At first we broke the drill bit because of the high speed and wrong offset setting, the speed was 4 instead we had to keep it 3 and the offset was 3.5 which had to be 4. So because of this the PCB we were milling was not perfect.

p4

The other time PCB milled was perfect.

p10

For cutting the PCB we used 1/16 drill bit. It was not in option so we used parameter of 1/16 drill bit. The changes we made in the parameters are as follows.
  1. Diameter : 0.04
  2. Overlap : 0.5
  3. Intensity : 0.5
  4. Offset : 4
  5. error : 0
  6. bot z(mm) : 1.3
  7. cut depth (mm) : 1.4
  8. Speed : 2

Here we want to cut the board so we used speed as 2 otherwise the drill bit may break. Now the board is ready

r6




Soldering


Now we had to solder the components to the PCB. We used the following components for milling :

p9

  1. ATtiny45
  2. Resistor - 1k ohm x2
  3. Resistor - 499 ohm x2
  4. Resistor - 49.9 ohm x2
  5. Zener Diode - 3.3V x2
  6. Capacitor - 100nF
  7. Red LED
  8. Green LED
  9. 2x3 Pin Header


Instruments used for soldering :

i1

  • Multimeter
  • Soldering iron
  • Soldering wire
  • Liquid Flux

I took reference form the tutorial booklet provided by FABACADEMY for soldering the components.
Tutorial for ATtiny45
For making soldering easy I used liquid flux which helps in better connections of the components and proper bonding. After applying it gentally place the compomemt on the board and then solder it.

p5

p6

While soldering the fumes we get are irritable so when you sit for soldering blow some air so that the fumes doesn't come on your face directly. Finally the PCB is ready

picofeditorialtheme

To check whether the soldering is done properly I used multimeter. Sometimes there is a short circuit in the PCB if the soldering is not done properly and sometimes the components get damaged because of soldering.

checkwithmultimeter

When the pcb is ready solder the jumper near ISP header(J1) to create a bridge. Also solder the usb contacts for brtter connection. While connnecting the PCB make sure that your laptop has USB 2.0 port and if you use other ports then sometimes it is possible that you may damage your USB Port or Mother board of your PC.
Next step is to check my PCB with AVRISP. It showed green colour which means that my PCB is proper and ready to be coded.

p8 Check the connections with the help of multimeter. Sometimes the circuit won't work because any component can be shorted, so it is recomended to check the circuit with the help of multimeter.


Coding the PCB



I used Ubuntu Linux for coding my board. I followed the steps given in the tutorial for coding in Ubuntu Linux.

First of all open the terminal and type:

sudo apt-get install avrdude gcc-avr avr-libc make


c1

Download the firmware source code and extract unzip firmware_45.zip.

c2

Go into the folder after by typing cd command and run make command. This command make a file called "fts_firmware.hex".

c3

Update the Makefile and figure what avrdude calls your programmer. For ATtiny45 it will show "avrisp2"
Edit the makefile. On Linux you can do it with the help of gedit or nano makefile command.

Find the line:

PROGRAMMER ?= usbtiny

and change it to the programmer you are using. Here we need to change to "avrisp2"

c2

c2

Plug your board in USB Port 2.0 and connect ISP header to your board
Run make flash. This command will erase the target chip and program it's flash memory with the contents of the (.hex) file you built before.
Run make fuses. This will set up all the fuses expect the one which disables the reset pin.

c3

Unplug the board from the USB port and disconnect the programmer, then plug it back to the USB.
Type lsusbSee "Multiple Vendors USBtiny". Your work is completed if this command is detected.

c2

Now run rstdisbl. Now the pcb is fully programmed. While coding I faced problem in the rstdisbl step because I had desoldered the VCC and Vprog but got fixed when I joined the both of them.

Fab Modules

Our regional instructor Ohad told us to do the milling with new fab-modules. So we did the setup with new fabmodules. For using fabmodules go to http://fabmodules.org/ . For making the machine interact with the modules first we need to go into the fabmodules folder into our laptop and then start the interaction. You can see the commands in the picture below.



Now go to http://fabmodules.org/ and select one the png image of the circuit. As the png is loaded selsct the machine you use, we are using Ronald mill so will choose that. For the traces we use 1/64 drill bit.







From the machine tab choose MDX-20 and Z : -o.o1.



Now the next step is to calculate the path of the pcb. Click on “calculate”, the modules will automatically calculate the path.



Follow the similar steps for the Outer cut.



Files