- Computers & Software
My Favorite Projects with an ATtiny85 Microcontroller
We can do many things with this little microcontroller, and for that we are going to start with the basics. You can investigate on your own how you can program the ATtiny85 microcontroller with the Arduino UNO board which is really very simple and that is not the purpose of this tutorial.
1. Flashing a LED with an ATtiny85 microcontroller
With this simple project we are going to make a single LED flash every second.
2. Push Button with an ATtiny85 microcontroller
Next, we are going to control the lighting of an LED with a simple switch and using a digital input.
3. Flashing Thermometer with an ATtiny85 microcontroller
With this simple example we can test the operation of the internal thermometer of this microcontroller. To begin, we indicate a digital one with the red LED and a digital zero with the green LED. The video example shows the following result:
1101-11001 = + 26 degrees centigrade
4. Two PWM with an ATtiny85 microcontroller
With this exercise we will control the light intensity of two LEDs using PWM signals. In the red diode the intensity increases from a minimum value to a maximum value. The green LED is the same but in the reverse direction.
5. Waveform Generator with an ATtiny85 microcontroller
In the market there are many types of integrated with which we can generate square signal, sawtooth and triangular shapes. However, they have a limited range of fercuencias and its price is a lot matoy. We can generate this type of signal with the microcontroller ATtiny85 as we will see below.
Below are the three examples of signals generated by this project. I got the signals with my oscilloscope that I developed with a PIC18F2550 microcontroller and my computer.
6. Digital Music with an ATtiny85 microcontroller
In this example, we can generate a digital audio signal such as "Happy Birthday". At the output we obtain a PWM signal that filters it through an electrolytic capacitor.
7. Wav Player with an ATtiny85 microcontroller
In this project we are going to play music in wav format and in a Mono player. The music tracks have to be stored in a micro SD memory and must have a wav format.
© 2017 Guillermo Perez Guillen