2021-12-03
1. Project 5
Program an ATtiny85 to do something interesting!
1.1. Requirements
-
Cannot use the Arduino framework
-
Reads at least one general-purpose input pin.
-
Writes to least one general-purpose output pin.
-
Utilizes a timer peripheral.
-
Connects to hardware to either/and make it do something or accept input.
-
Implements a state machine (zyBook RIMS style) as some part of its functionality.
-
Utilizes the Analog to Digital converter and does something with the conversion result.
2. Notes
2.2. Programming an ATtiny85
These old posts show the connections between a Nano and a bare ATtiny85.
The second post demonstrates how to use your Nano as the programmer, but use avrdude
instead of the Arduino IDE Upload command so you can upload a .hex
file compiled from a different tool.
-
Use the Board Manager to install the correct setup into the Arduino IDE, instead of the given instructions for the "ATtiny core":
-
"Burn Bootloader" is the way to set the fuses on the ATtiny. You setup the options by selecting the clock speed. Tools -> Clock -> Internal (X MHz).
-
1 MHz is the default configuration "out of the box" (IIRC)
-
8 MHz is a good option
-
other options are not recommended
-