WEEK 4

 

Electronics Production.

 

 

In this week my goal is to make a programmer ISP (In-system programming (ISP), also called In-Circuit Serial Programming (ICSP),) module.

 

ISP design file

 

I want to make David’s Version of FAB ISP. I got the design file from the following link

 

http://fab.cba.mit.edu/content/projects/fabisp/

 

PCB design  software and CAM processing

 

I Downloaded Autodesk's EAGLE PCB application free version  from their website and installed on my PC.Eagle link

 

Capture.PNG

 

After downloading the eagle application and installation, i opened the file for Fab ISP and by seeing the tutorials  for Converting the design into machine code,I converted the board file into .CMP file.It is called CAM processing.

 

WhatsApp I.jpeg

 

PCB milling Machine and Software

 

The machine used in Kuwait Fab Lab  for PCB milling is  Cirqoid.

Cirqoid Website

 

WhatsApp Image peg.jpeg

For CAM processing. I downloaded the corresponding gerber file of Cirqoid  from here.

 

Cirqoid uses open source CAM software called cirQwizard.Its available in their website:software link

 

Capture.PNG

 

 

Milling and bit changing:

 

 I uploaded my files into the  cirqoid software.After homing and adjusting the X,Y and  Z values, the PCB milling is done.

medi.jpg

For cutting the trace i used 0.80 mm bit and for Outline cutting 2 mm bit is used.

 

0.80.jpeg

 

0.8mm trace cutting bit.

 

After milling the board,i changed the tool by tool change option in cirq wizard and inserted 2 mm bit for outline cutting.

 

WhatsApp Image 2M.jpeg

2.00 mm outline  cutting bit.

The spanners used for tool changing are as shown below.

WhatsApp Image 2017-04-05 at 1.10.55 PM.jpeg

 

While changing the bits for cutting the outline,We have to change the z axis values and confirm that it is correct. Because the bit may break.

WhatsApp Image 2017-05-13 at 10.25.10 AM.jpeg 

I checked the z axis several time by varying slight .There is  manual control option on the right most top area and there are options to make machine home position, Away and tool change.

 

Milled board and soldering.

media-270222.jpg 

After milling the board, I soldered the components using soldering station where there was helping hand, soldering iron ,solder fume extractor ,solder,flux,precision knife,magnifier etc.

media-isp.jpg

 

WhatsApp Image 2017-05-13 at 10.20.14 AM(1).jpeg

 

 

Testing the connections:

After soldering all components in respective positions. I checked all connections after soldering  the components and verified the connections using the multimeter. I checked the continuity of each components to its connection.There was some solder wastes and created short circuit contacts among traces. I cleaned all trace lines using precision knife.

 

 

Finally I got my board as

 

 

 

 

 

Programming the ISP

 

Before programming,I need to burn the bootloader.

 

Bootloader burning:

For burning the bootloader, I used Sparkfun USb tiny programmer connected with jumper wires and Arduino software.

WhatsApp Image 2017-05-13 at 10.20.14 AM.jpeg

 

I checked the VCC and RESET  pin connection to the ISP pin header. Verified that my board pins of VCC and RESET matches the programmer.

 

Using the below pinout, i verified it.

miso pins.PNG

 

Arduino IDE Installation and ATtiny library installation in Application

Arduino IDE is installed from the arduino website:(Website)

 

 

 

arduino.PNG

 

 

 

 

 

I downloaded the AT tiny library and included in the board manager of arduino.

For that i followed the steps given in this website.here

 

Since the board used is AT tiny,In arduino IDE,I have to configure the board,processor, clock and programmer .For that i followed the below steps.

 

Tools -->Board -->ATtiny

Tools → Processor -->ATtiny44

Tools → Clock -->20mhz(external)

Tools -- >Programmer-->USBtinyISP

 

Screenshot (87).png

 

After connecting the ISP header pins to the USB programmer VCC and reset pin, I burned the bootloader and it was fine. Now I need to program  my ISP

 

For Programming, I firstly need to Install AVR dude.

 

In Ubuntu, I opened the Terminal and typed the below command to get that.

 

  sudo apt-get install flex byacc bison gcc libusb-dev avrdude  

 

 

Next is  compiler gcc-avr. For installing this compiler I typed the below command in terminal.

 

  sudo apt-get install gcc-avr

 

I typed Y to proceed and complete it.

 

For installing a C   library, I typed following command in terminal  to get    avr-libc.AVR Libc.

 

  sudo apt-get install avr-libc
 
 
The above all are called dependencies needed for programming my ISP.
 
Programming steps
 
 
Following commands are typed  in terminal for programming:
 
 
  make clean    
 
  make hex
 
  make fuse
 
  make program
 
 

Then finally I got the succesful message.So my ISP is Ok.

 

 

 

 

file:Board