User Tools

Site Tools


hardware:attiny85

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hardware:attiny85 [2021/04/12 04:29]
nanodano
hardware:attiny85 [2021/04/13 02:01] (current)
nanodano
Line 4: Line 4:
  
   * Official product page: [[https://www.microchip.com/wwwproducts/en/ATtiny85]]   * Official product page: [[https://www.microchip.com/wwwproducts/en/ATtiny85]]
 +
  
 ===== Wiring/Pinout ===== ===== Wiring/Pinout =====
Line 24: Line 25:
 ===== Programming ===== ===== Programming =====
  
-Use an Arduino UNO as ISP to program the ATtiny85.+Since the ATtiny85 has no USB plug for serial over USB, you can use an Arduino UNO as an inline serial programmer (ISPto flash the ATtiny85 with a sketch. 
 + 
 +  * Nice YouTube video by Mitch Davis on programming Attiny85 [[https://www.youtube.com/watch?v=N591sLGYWnM]]
  
 Wire up the Arduino UNO to the ATtiny85 over GPIO pins. Wire up the Arduino UNO to the ATtiny85 over GPIO pins.
-Add a 10uF capacitor between RESET and GND in the Uno (anode to ground) to prevent the upload causing the board to reboot.+Also add a 10uF capacitor between RESET and GND in the Uno (anode to ground) to prevent the upload causing the board to reboot.
  
 <code> <code>
Line 34: Line 37:
      5V:Gcc      5V:Gcc
     GND:GND     GND:GND
- Pin 13:Pin 2 + Pin 13:Pin 7 (SCK) 
- Pin 12:Pin 1 + Pin 12:Pin 6 (MISO) 
- Pin 11:Pin 0+ Pin 11:Pin 5 (MOSI)
  Pin 10:RESET  Pin 10:RESET
 </code> </code>
 +
 +The MISO, MOSI, and SCK pings are used for SPI communication.
 +
 +In the Arduino IDE, set the target board as the ATtiny85 1MHz speed. And select for the Programmer: Arduino as ISP. If you need to add the board, add this URL to your board manager: [[https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json]]
hardware/attiny85.1618201779.txt.gz · Last modified: 2021/04/12 04:29 by nanodano