Bootload an Arduino With a ZIF Socket
by randofo in Circuits > Arduino
34444 Views, 125 Favorites, 0 Comments
Bootload an Arduino With a ZIF Socket
![main1.jpg](/proxy/?url=https://content.instructables.com/FMC/3XCV/GSLJRAIL/FMC3XCVGSLJRAIL.jpg&filename=main1.jpg)
Bootloading an Arduino with a ZIF socket allows you to easily program a lot of chips at once without worrying about mangling the pins. The reason for this is that ZIF stands for "zero insertion force," and as the name implies, ZIF sockets don't require any force to take the chip in or out. This means that you do not have to worry about any of the pins bending when you take the chip in and out of the socket. This is particularly useful if you need to bootload a lot of Arduino chips at once for inclusion in an electronics kit or if you need to repeatedly program a chip and transfer it back and forth between a separate circuit board.
Go Get Stuff
![1A.jpg](/proxy/?url=https://content.instructables.com/F25/MQP8/GSIFFKK6/F25MQP8GSIFFKK6.jpg&filename=1A.jpg)
You will need:
- ATMEGA328 (as many as you want to program)
- USBtinyISP
- An Arduino board
- A ZIF socket
- A breadboard
- 10K resistor
- (x2) 22pF capacitor
- 16mhz crystal
- Solid core wire
- ATMEGA328 (as many as you want to program)
- USBtinyISP
- An Arduino board
- A ZIF socket
- A breadboard
- 10K resistor
- (x2) 22pF capacitor
- 16mhz crystal
- Solid core wire
Microcontroller Pins
![2A.jpg](/proxy/?url=https://content.instructables.com/F9Q/9KV8/GSI5DHML/F9Q9KV8GSI5DHML.jpg&filename=2A.jpg)
Microcontrollers typically ship with the pins bent slightly outwards. This makes them wider than a normal DIP socket like the one used on an Arduino. The chip on the left is an example of this.
A chip that has been properly inserted into an Arduino socket will have pins which are straight (at a right angle to the body of the chip). The chip in the middle is an example of this.
Unfortunately, chips that have been through the process of being forcibly inserted and removed from a normal socket sometimes end up looking like the chip on the right. Notice the pins are bent in every which direction.
A chip that has been properly inserted into an Arduino socket will have pins which are straight (at a right angle to the body of the chip). The chip in the middle is an example of this.
Unfortunately, chips that have been through the process of being forcibly inserted and removed from a normal socket sometimes end up looking like the chip on the right. Notice the pins are bent in every which direction.
Remove the Chip
![3A.jpg](/proxy/?url=https://content.instructables.com/FGJ/X8PA/GSIFFKK9/FGJX8PAGSIFFKK9.jpg&filename=3A.jpg)
![3B.jpg](/proxy/?url=https://content.instructables.com/F4N/V4HQ/GSI5DHMY/F4NV4HQGSI5DHMY.jpg&filename=3B.jpg)
![3C.jpg](/proxy/?url=https://content.instructables.com/F2Y/W47E/GSI5DHN2/F2YW47EGSI5DHN2.jpg&filename=3C.jpg)
![3D.jpg](/proxy/?url=https://content.instructables.com/FND/XXM1/GSIFFKKC/FNDXXM1GSIFFKKC.jpg&filename=3D.jpg)
Remove the ATMEGA328 chip from the Arduino board.
The implication in the picture sequence you can simply pull it out with your fingers is a lie (unless your fingers are like vice grips).
The proper way to do it is with a special tool called a chip extractor.
Barring that, I find that anything skinny, flat, and metal works well. For instance, I like to use a mini flathead screwdriver or a dental spatula to do this. I wedge one end under one side, gently wiggle it a little to lift it, and then I repeat this on the other side. After going back and forth a couple of times, the chip should be free and no pins should be bent.
The implication in the picture sequence you can simply pull it out with your fingers is a lie (unless your fingers are like vice grips).
The proper way to do it is with a special tool called a chip extractor.
Barring that, I find that anything skinny, flat, and metal works well. For instance, I like to use a mini flathead screwdriver or a dental spatula to do this. I wedge one end under one side, gently wiggle it a little to lift it, and then I repeat this on the other side. After going back and forth a couple of times, the chip should be free and no pins should be bent.
Breadboard the Circuit
![4A.jpg](/proxy/?url=https://content.instructables.com/FTN/EHCB/GSLJRACE/FTNEHCBGSLJRACE.jpg&filename=4A.jpg)
![4B.jpg](/proxy/?url=https://content.instructables.com/FRF/BL02/GSLJRACJ/FRFBL02GSLJRACJ.jpg&filename=4B.jpg)
![4C.jpg](/proxy/?url=https://content.instructables.com/FYW/9VH9/GSLJRACN/FYW9VH9GSLJRACN.jpg&filename=4C.jpg)
![4D.jpg](/proxy/?url=https://content.instructables.com/FVK/8TXW/GSLF33FM/FVK8TXWGSLF33FM.jpg&filename=4D.jpg)
![4E.jpg](/proxy/?url=https://content.instructables.com/FP8/8J15/GSLF33F4/FP88J15GSLF33F4.jpg&filename=4E.jpg)
![4F.jpg](/proxy/?url=https://content.instructables.com/FGG/PFZJ/GSLF1OHW/FGGPFZJGSLF1OHW.jpg&filename=4F.jpg)
![4G.jpg](/proxy/?url=https://content.instructables.com/F0G/K582/GSLJRADH/F0GK582GSLJRADH.jpg&filename=4G.jpg)
![4H.jpg](/proxy/?url=https://content.instructables.com/FE7/YOB6/GSLF1OHZ/FE7YOB6GSLF1OHZ.jpg&filename=4H.jpg)
Center the ZIF socket on the breadboard. Consider the side with the lever to be the top of the chip (the notched part of the chip).
Note which row of the breadboard that pin 1 (the top left pin of the chip) is inserted.
Count down to pins 9 and 10. Connect a 22pF capacitor from each of these pins to the ground rails. Also, instal a 16mhz crystal between pins 9 and 10. Be careful that the leads from the capacitors are not touch the body of the crystal.
Connect pin 8 to the ground rail with wire and also connect pin 7 to the power rail.
Now, connect a 10K resistor between pin 1 and the power rail.
Pin 20 and 21 needs to be connect to the power rail and pin 22 should be connected to ground.
Lastly, connect the power rails on each side of the board together and also do the same for the ground rails.
Note which row of the breadboard that pin 1 (the top left pin of the chip) is inserted.
Count down to pins 9 and 10. Connect a 22pF capacitor from each of these pins to the ground rails. Also, instal a 16mhz crystal between pins 9 and 10. Be careful that the leads from the capacitors are not touch the body of the crystal.
Connect pin 8 to the ground rail with wire and also connect pin 7 to the power rail.
Now, connect a 10K resistor between pin 1 and the power rail.
Pin 20 and 21 needs to be connect to the power rail and pin 22 should be connected to ground.
Lastly, connect the power rails on each side of the board together and also do the same for the ground rails.
Connect the Boards
![5A.jpg](/proxy/?url=https://content.instructables.com/FCP/7QIJ/GSLF33GC/FCP7QIJGSLF33GC.jpg&filename=5A.jpg)
![5B.jpg](/proxy/?url=https://content.instructables.com/FYA/YYTD/GSLF33GE/FYAYYTDGSLF33GE.jpg&filename=5B.jpg)
![5C.jpg](/proxy/?url=https://content.instructables.com/FSU/K1XP/GSLJRAF9/FSUK1XPGSLJRAF9.jpg&filename=5C.jpg)
![5D.jpg](/proxy/?url=https://content.instructables.com/F6D/41MC/GSLF33GM/F6D41MCGSLF33GM.jpg&filename=5D.jpg)
![5E.jpg](/proxy/?url=https://content.instructables.com/FWE/O2BF/GSLF33GR/FWEO2BFGSLF33GR.jpg&filename=5E.jpg)
Once the breadboard is complete you need to attach it to the Arduino board
Connect the reset pin from the Arduino to pin 1 of the ZIF socket.
Connect together the 5V pin to the power rail on the breadboard and the ground from the Arduino to the ground on the breadboard.
Finally, connect:
pin 11 to pin 17
pin 12 to pin 18
pin 13 to pin 19
Connect the reset pin from the Arduino to pin 1 of the ZIF socket.
Connect together the 5V pin to the power rail on the breadboard and the ground from the Arduino to the ground on the breadboard.
Finally, connect:
pin 11 to pin 17
pin 12 to pin 18
pin 13 to pin 19
Attach the ISP
![6A.jpg](/proxy/?url=https://content.instructables.com/FSF/53QZ/GSLJRAG2/FSF53QZGSLJRAG2.jpg&filename=6A.jpg)
![6B.jpg](/proxy/?url=https://content.instructables.com/FBL/JBZ0/GSLJRAG6/FBLJBZ0GSLJRAG6.jpg&filename=6B.jpg)
Attach the small connector from the USBtinyISP to the 6-pin ISP header on the Arduino board such that the red stripe on the connector is closest to the digital pins.
Insert the Chip
![7A.jpg](/proxy/?url=https://content.instructables.com/FXW/NO5A/GSLF33II/FXWNO5AGSLF33II.jpg&filename=7A.jpg)
![7B.jpg](/proxy/?url=https://content.instructables.com/FG3/HFIO/GSLF1OK4/FG3HFIOGSLF1OK4.jpg&filename=7B.jpg)
![7C.jpg](/proxy/?url=https://content.instructables.com/FEY/EGQ1/GSLF33J7/FEYEGQ1GSLF33J7.jpg&filename=7C.jpg)
Insert the chip into the ZIF socket.
Don't forget that pin 1 is to the left of the notch on the chip and this is on the side with the lever.
Once the chip is inserted, pull down the lever to lock it into place.
Don't forget that pin 1 is to the left of the notch on the chip and this is on the side with the lever.
Once the chip is inserted, pull down the lever to lock it into place.
Bootload
![8A.jpg](/proxy/?url=https://content.instructables.com/F0G/591F/GSLF1OK8/F0G591FGSLF1OK8.jpg&filename=8A.jpg)
![bootload1.jpg](/proxy/?url=https://content.instructables.com/F3G/96TW/GSR9JE1O/F3G96TWGSR9JE1O.jpg&filename=bootload1.jpg)
![bootload2.jpg](/proxy/?url=https://content.instructables.com/F4T/PP4C/GSR9JE1P/F4TPP4CGSR9JE1P.jpg&filename=bootload2.jpg)
Plug in the USBtinyISP to your computer.
Open the Arduino IDE.
From the top menu select:
Tools > Board > Arduino Uno
Next select:
Tools > Burn Bootloader > w/ USBtinyISP
It will then display at the bottom of the IDE window:
Burning bootloader to I/O Board (this may take a minute)...
A few minutes later it will state:
Done burning bootloader.
Open the Arduino IDE.
From the top menu select:
Tools > Board > Arduino Uno
Next select:
Tools > Burn Bootloader > w/ USBtinyISP
It will then display at the bottom of the IDE window:
Burning bootloader to I/O Board (this may take a minute)...
A few minutes later it will state:
Done burning bootloader.
Rinse. Repeat.
![9.jpg](/proxy/?url=https://content.instructables.com/FNN/3BBG/GSLF33JR/FNN3BBGGSLF33JR.jpg&filename=9.jpg)
![9A.jpg](/proxy/?url=https://content.instructables.com/F17/ADEK/GSLF1OKE/F17ADEKGSLF1OKE.jpg&filename=9A.jpg)
Burn as many bootloaders as you see fit.
If you want to use an Arduino as an ISP, another ISP, or do some other fancy things, check out this page to get started.
If you want to use an Arduino as an ISP, another ISP, or do some other fancy things, check out this page to get started.