Programming ATtiny85 from Arduino Nano - The Prototype
In the previous post in this series, the design was created based on prerequisites and requirements. Now we want to turn the design into a prototype on your breadboard that you can really use. To recreate the design follow the step-by-step guide. Each step depicts the added item in the design.
THIS BLOG POST IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THIS HOWTO OR SOFTWARE OR THE USE OR OTHER DEALINGS IN THIS BLOG POST.
Follow this step-by-step guide to setup your programmer on the Arduino Nano in line with the design.
1x Arduino Nano (compatible)
1x ATtiny85 chip
1x 400 points Breadboard (half+)
1x Green LED
1x Yellow LED
1x Red LED
3x 1 kΩ resistor
1x 10 µF 25V condensator
1x 100 nF ceramic condensator (104) (= 0,1 µF)
Breadboard wires: orange, yellow, red, green
Mini jump wires, created from solid core wire: red, black
Dupont male-female wires: red, black, brown, white, blue
Take the breadboard and orientate it with A1 tie-point in the lower left corner.
Place the Nano on the breadboard, with pin D13 in breadboard tie-point B2. This allows the complete footprint of the Nano to stay inside the breadboard edges and leaves room above to place the wires, LEDs and resitors.
Place the green LED positive pin in I19 and negative pin in I18.
Place the yellow LED positive pin in I22 and negative pin in I21.
Place the red LED positive pin in I25 and negative pin in I24.
Place a 1 kΩ resistor with one end in j18 and the other in the negative strip of the power lane.
Place a 1 kΩ resistor with one end in j21 and the other in the negative strip of the power lane.
Place a 1 kΩ resistor with one end in j24 and the other in the negative strip of the power lane.
Note: positions slightly differ from tie-points on the design, but are still in the same vertical strip.
In the design wires would be on top of each other, making the design hard to understand
Place the orange wire in H4 (just above Nano pin D10) and in J30.
(in same vertical strip as pin 1 of ATtiny85 on F30)
Place the green wire in H5 (just above Nano pin D9) and in H19.
Place the red wire in H6 (just above Nano pin D8) and in H25.
Place the yellow wire in H7 (just above Nano pin D7) and in H22.
Remember the ICSP header orientation from previous posts and the location of the pins:
6 5 GND . . RST MOSI . . SCK VTG . . MISO 2 1
Place red wire on VTG of ICSP header and connect to A30.
(A30 is in the same vertical strip as pin 8 of ATtiny85 on E30)
Place white wire on SCK of ICSP header and connect to A29.
(A29 is in the same vertical strip as pin 7 of ATtiny85 on E29)
Place blue wire on MISO of the ICSP header and connect to A28.
Place brown wire on MOSI of the ICSP header and connect to A27.
Place black wire on GND of the ICSP header and connect to the negative strip of the power lane.
Small Jumper Wires
Place a small red jumper wire from B30 to D24.
(Needed later on to place a capacitor over 5V and GND of the ATtiny85)
Place a small black jumper wire from J27 to the negative strip of the power lane.
(J27 is in the same vertical strip as pin 4 GND of ATtiny85 on F27)
After Installing Programmer
At this point, the prototype is ready for installing the programmer ArduinoISP.ino on Nano.
More on that in the next post. Note that the last three steps, placing the ATtiny85 and 2 capcitors, to complete the design, can only be done after the programmer is installed.