Actions

Difference between revisions of "Evolution of breadboard programming headers"

From Just in Time

 
(11 intermediate revisions by 2 users not shown)
Line 4: Line 4:
  
 
===The problem===
 
===The problem===
[[File:Avr programmer pin-out.jpg|left|thumb|150px|6-pin programming header pinout]]It's simple, really. we need to connect the six pins of our programmer to the corresponding pins on the avr. The programmer comes with a flat cable with block (IDC-) connectors.
+
[[File:Avr programmer pin-out.jpg|left|thumb|150px|6-pin programming header pinout]]It's simple, really. we need to connect the six pins of our programmer to the corresponding pins on the avr. The programmer comes with a flat cable with block (IDC-) connectors. Additional requirement: being able to disconnect and reconnect the programmer frequently is a plus.
 
+
{{StopImagesFlow}}
Additional requirement: being able to disconnect and reconnect the programmer frequently is a plus.
 
<br style='clear:both'/>
 
  
 
===Direct jumper wires===
 
===Direct jumper wires===
 +
[[File:jumper wires into connector.JPG|thumb|200px|It works|left]]
 
The simplest solution. And the one we both abandoned after about 5 minutes: just take 6 jumper wires, push one end in the connector and the other end at the appropriate row of the bread board.
 
The simplest solution. And the one we both abandoned after about 5 minutes: just take 6 jumper wires, push one end in the connector and the other end at the appropriate row of the bread board.
  
 
disconnecting and reconnecting is quite a hassle with this and all in all this is not very stable.  
 
disconnecting and reconnecting is quite a hassle with this and all in all this is not very stable.  
<br style='clear:both'/>
+
{{StopImagesFlow}}
 +
 
 
===Straight breakout board===
 
===Straight breakout board===
 
[[File:straight breakout board.JPG|200px|thumb|left|our bread-and-butter breakout]]
 
[[File:straight breakout board.JPG|200px|thumb|left|our bread-and-butter breakout]]
  
This is quite a simple breakout board that doesn't even need to made as a custom PCB: plain veroboard would work just fine. The breakout board consists of a two-row grid of header pins on top that receives the flat cable connector and two three-pin headers at 300 mil distance to be placed on both sides of the aisle running down the board. Most versions of this one that you'll find on the internet provide a straight 6-pin row of breakout pins. I don't know why that is, because this one is a lot easier to make and it sits more compact on the breadboard. The breakout is pushed into the breadboard and then 6 jumper wires are used to connect the programmer signals to the appropriate avr pins.  It's quite easy to disconnect and reconnect the cable with this one.
+
This is quite a simple breakout board that doesn't even need to be made as a custom PCB: plain veroboard would work just fine. The breakout board consists of a two-row grid of header pins on top that receives the flat cable connector and two three-pin headers at 300 mil distance to be placed on both sides of the aisle running down the board. Most versions of this one that you'll find on the internet provide a straight 6-pin row of breakout pins. I don't know why that is, because this one is a lot easier to make and it sits more compact on the breadboard. The breakout is pushed into the breadboard and then 6 jumper wires are used to connect the programmer signals to the appropriate avr pins.  It's quite easy to disconnect and reconnect the cable with this one.
  
This version has served us well. It takes some setting up for every new project though and I found myself having to do an both image search for [https://www.google.nl/search?q=avr+programming+header+pinout&site=imghp&source=lnms&tbm=isch "avr programming header pinout"] and for [https://www.google.nl/search?q=atmega88+pinout&site=imghp&source=lnms&tbm=isch "atmega8 pinout"] every time I started a new project.
+
This version has served us well. It takes some setting up for every new project though and I found myself having to do both an image search for [https://www.google.nl/search?q=avr+programming+header+pinout&site=imghp&source=lnms&tbm=isch "avr programming header pinout"] and for [https://www.google.nl/search?q=atmega88+pinout&site=imghp&source=lnms&tbm=isch "atmega8 pinout"] every time I started a new project.
<br style='clear:both'/>
+
{{StopImagesFlow}}
  
 
===Breakout-with-avr===
 
===Breakout-with-avr===
Line 26: Line 26:
 
[[File:breakout with attiny13 bottom.JPG|200px]]
 
[[File:breakout with attiny13 bottom.JPG|200px]]
 
[[File:breakout with attiny13 top.JPG|200px]]
 
[[File:breakout with attiny13 top.JPG|200px]]
[[File:Attiny13-breakout.png|100px|border|Link=Media:Attiny13-breakout.zip]]
+
[[File:Attiny13-breakout.png|100px|border|link=Media:Attiny13-breakout.zip]]
  
We're cheating here: the AVR isn't on the breadboard, but on the breakout board. You can find several variations on this design on the internet. In essence they consist of a PCB with an AVR, a programming header and breakout header pins for each of the AVRs pins. Most of them are some form of Arduino-compatible breakout-board. The big plus of these is that you can use them to adapt your SMT AVR to be used on the breadboard. The image shows a version that I created when I needed to prototype an attiny13 project, but only had SMT attiny13s available.
+
We're cheating here: the AVR isn't on the breadboard, but on the breakout board. You can find [https://www.google.nl/search?q=avr+breakout&client=ubuntu&hs=cmd&channel=fs&source=lnms&tbm=isch&sa=X&ei=EnVoVJrPJI7WauG9gMgD&ved=0CAgQ_AUoAQ&biw=935&bih=1077 several variations on this design] on the internet. In essence they consist of a PCB with an AVR, a programming header and breakout header pins for each of the AVRs pins. Most of them are some form of Arduino-compatible breakout-board. The big plus of these is that you can use them to adapt your SMT AVR to be used on the breadboard. The image shows a version that I created when I needed to prototype an attiny13 project, but only had SMT attiny13s available.
  
 
===Straddling header===
 
===Straddling header===
 
[[File:straddling breakout on breadboard.JPG|300px|thumb|left|programming header straddling an atmega88]]
 
[[File:straddling breakout on breadboard.JPG|300px|thumb|left|programming header straddling an atmega88]]
  
To my best knowledge, it was [[User:Veecee42|Vinnie]] who invented this. This is a variation on the straight breakout. Instead of simply providing two rows of pins, this version offsets the pins in such a way that the board can be placed directly over an atmega8 (or as far as I know: any 28-pin AVR) on the breadboard. Vinnies version adds some extra's to it, like a location for an oscillator and an LED, but the one shown here simply routes the pins of the programming header straight to the AVR pins (I tend to [[Driving the WS2811 at 800 kHz with an 8 MHz AVR|avoid using crystals or oscillators]] because I find them too difficult and they add to the BOM).
+
To my best knowledge, it was [[User:Veecee42|Vinnie]] who invented this. This is a variation on the straight breakout. Instead of simply providing two rows of pins, this version offsets the pins in such a way that the board can be placed directly over an atmega8 (or as far as I know: any 28-pin AVR) on the breadboard. [[Vinnies Definite Straddling Header]] adds some extra's to it, like a location for an oscillator and an LED, but the one shown here simply routes the pins of the programming header straight to the AVR pins (I tend to [[Driving the WS2811 at 800 kHz with an 8 MHz AVR|avoid using crystals or oscillators]] because I find them too difficult and they add to the BOM).
  
 
To me, the sheer user-friendlyness of just pushing the header on top of the AVR easily outweighs the inconvenience that you need one of these for each AVR family that you use.
 
To me, the sheer user-friendlyness of just pushing the header on top of the AVR easily outweighs the inconvenience that you need one of these for each AVR family that you use.
<br style="clear:both">
+
{{StopImagesFlow}}
 
[[File:straddling breakout top.JPG|200px]]
 
[[File:straddling breakout top.JPG|200px]]
 
[[File:straddling breakout bottom.JPG|150px]]
 
[[File:straddling breakout bottom.JPG|150px]]
 
[[File:atmega8-programmer-breakout.png|120px|border|link=Media:Atmega8-programmer-breakout.zip]]
 
[[File:atmega8-programmer-breakout.png|120px|border|link=Media:Atmega8-programmer-breakout.zip]]

Latest revision as of 09:58, 16 November 2014

Both of us currently use AVRs as our platform-of-choice for most digital projects. We love the diversity, versatility, the straight memory layout, the availability of compilers and, to be brutely honest, the very low prices at which these microcontrollers can be bought. We typically provide our home-grown PCBs with standard 6-pin programming headers. It may take an extra hour to route the the damn traces for these things on our one-sided boards, but it is generally worth it, being able to re-flash version 0.037 of our firmware.

As is usual, most of our projects start out on solderless bread boards. The AVRs on the breadboards need to be programmed too, so we've evolved several ways to program these as well. This page describes them.

The problem

6-pin programming header pinout

It's simple, really. we need to connect the six pins of our programmer to the corresponding pins on the avr. The programmer comes with a flat cable with block (IDC-) connectors. Additional requirement: being able to disconnect and reconnect the programmer frequently is a plus.


Direct jumper wires

It works

The simplest solution. And the one we both abandoned after about 5 minutes: just take 6 jumper wires, push one end in the connector and the other end at the appropriate row of the bread board.

disconnecting and reconnecting is quite a hassle with this and all in all this is not very stable.

Straight breakout board

our bread-and-butter breakout

This is quite a simple breakout board that doesn't even need to be made as a custom PCB: plain veroboard would work just fine. The breakout board consists of a two-row grid of header pins on top that receives the flat cable connector and two three-pin headers at 300 mil distance to be placed on both sides of the aisle running down the board. Most versions of this one that you'll find on the internet provide a straight 6-pin row of breakout pins. I don't know why that is, because this one is a lot easier to make and it sits more compact on the breadboard. The breakout is pushed into the breadboard and then 6 jumper wires are used to connect the programmer signals to the appropriate avr pins. It's quite easy to disconnect and reconnect the cable with this one.

This version has served us well. It takes some setting up for every new project though and I found myself having to do both an image search for "avr programming header pinout" and for "atmega8 pinout" every time I started a new project.

Breakout-with-avr

Breakout with attiny13 bottom.JPG Breakout with attiny13 top.JPG Attiny13-breakout.png

We're cheating here: the AVR isn't on the breadboard, but on the breakout board. You can find several variations on this design on the internet. In essence they consist of a PCB with an AVR, a programming header and breakout header pins for each of the AVRs pins. Most of them are some form of Arduino-compatible breakout-board. The big plus of these is that you can use them to adapt your SMT AVR to be used on the breadboard. The image shows a version that I created when I needed to prototype an attiny13 project, but only had SMT attiny13s available.

Straddling header

programming header straddling an atmega88

To my best knowledge, it was Vinnie who invented this. This is a variation on the straight breakout. Instead of simply providing two rows of pins, this version offsets the pins in such a way that the board can be placed directly over an atmega8 (or as far as I know: any 28-pin AVR) on the breadboard. Vinnies Definite Straddling Header adds some extra's to it, like a location for an oscillator and an LED, but the one shown here simply routes the pins of the programming header straight to the AVR pins (I tend to avoid using crystals or oscillators because I find them too difficult and they add to the BOM).

To me, the sheer user-friendlyness of just pushing the header on top of the AVR easily outweighs the inconvenience that you need one of these for each AVR family that you use.
Straddling breakout top.JPG Straddling breakout bottom.JPG Atmega8-programmer-breakout.png