ATtiny13 – temperature logger using LM35 and Software UART

This project is about a simple temperature logging system using ATtiny13 and the Software UART. The system reads the temperature every second and shows it on the serial console (baudrate 19200, settings 8N1). The temperature is shown in °Celsius. LM35 has been used as the temperature sensor. Complete example code is on GitHub. LM35 Temperature Sensor … Read more

ATtiny13 – TM1637 Library

This article is about tinyAVR (ATtiny13, ATtiny25, ATtiny45, ATtiny85) library for 7-segment display modules based on TM1637 chip. These TM1637 modules provide two signal connections (CLK and DIO) and two power connections (VCC and GND). Signal pins can be connected to any pair of digital pins of the AVR chip. Signal pins configuration is defined … Read more

ATtiny13 – pseudo random numbers

Many applications require random data to feed their algorithms. One would say that it’s quite easy when we can use a function from an existing cryptographic library. However, even if we can use such function like for example rand() from stdlib, it can quickly turn out, that this feature consume more then a half of … Read more

ATtiny13 – Morse Code (flashing light)

This project shows how to form a light impulses using an ATtiny13 to transmit messages encoded with International Morse Code. Project is easy to build and require only three parts. The code is on Github, click here. Morse Code allow to transmit data via short (dots) and long (dashes) impulsions. The advantage of the Morse … Read more

ATtiny13 – two tone alarm

This is a simple and easy to build two-tone alarm that uses ATtiny13 to produce sound effects. Note that with little modifications the project can be easily utilized for many applications, in circuits where a double tone alarm may be required. Project’s code has been designed to make possible extend a list of two-tone sound … Read more

ATtiny13 – dance lights with FFT

This experimental project shows how to use ATtiny13 to synchronize live music and lights with only a few additional components required. Project uses single ADC (Analog to Digital Converter) channel for signal acquisition and some DSP (Digital Signal Processing) calculations that in real-time separate three frequency bands and make the LEDs dance in sync with the … Read more

ATtiny13 – tone generator

There is a set of projects that require some kind of audio output. For example a simple alarm bell. This project shows how we can produce different kinds of audio effects by just using an AVR MCU and a speaker/buzzer.  We will use 8-bit Timer, PWM technique and some pre-calculations to generate right sounds. Tu … Read more

ATtiny13 – IR receiver / NEC proto analyzer

In this example we will make a project that uses standard IR remote control from your TV, audio system or other using NEC signal format, to receive and recognize address/command with AVR ATtiny13. Thanks to Software UART we will print received NEC address/command via serial console. Project has been tested with ATtiny13a @9.6 MHz, VCC=5V … Read more

ATtiny13 – IR remote to control LEDs (NEC proto)

This project allows control turn ON/OFF LEDs with IR remote control from your TV. The big part of the code shows how to decode a command and address of NEC protocol from IR signals using a cheap IR receiver. It’s worth to note that the algorithm which is responsible for decoding IR signals is nonblocking … Read more

ATtiny13 – controlling LED RGB | fancy light effects

This is a simple ATtiny13 project that controls LED RGB using Software PWM. In result It gives really nice and colourful light effect. In our circuit a LED cathodes are connected to PB0, PB1 and PB2 while common anode is connected to VCC. The code is on Github, click here. Parts Required ATtiny13  – i.e. … Read more