Twiddle-factor-based DFT for microcontrollers

This version of DFT algorithm has been tested with success on a various microcontrollers (AVR – including ATtiny13, STM32 and ESP8266). The code is relatively simple and short what makes it easy to port to other programming languages / microcontrollers. In this tutorial I will open the black-box and show you some practical information about how this algorithm works and how to use … Read more

Arduino – example of 28BYj-48 stepper motor controller

This article presents a simple example of how to control with Arduino a very cheap 28BYJ-48 stepper motor. The code is on GitHub, here. Parts Required ULN2003 driver stepper motor 28BYj-48 arduino board (i.e. Arduino/Genuino UNO) Software This code is written in C++ and can be compiled using an Arduino IDE. All information about how to compile this project is here. /** * Copyright (c) 2019, Łukasz … Read more

ATtiny13 – TM1638 Library

This is tinyAVR (ATtiny13, ATtiny25, ATtiny45, ATtiny85, and other) library for LED controller modules based on TM1638 chip. Modules based on TM1638 provide three signal connections (CLK, STB 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 … Read more

ATtiny13 – running dots & digits on 7-segment LED tube display

This article shows how to make an example project of “running dots & digits” using ATtiny13 and popular 7-segment LED tube display based on MAX7219/MAX7221. Complete code is on GitHub. MAX7219/MAX7221 library for LED tube display A lightweight library for 7-segments LED tube displays based on MAX7219/MAX7221 chip that works with tinyAVR family (ATtiny13, ATtiny25, ATtiny45, … Read more

ATtiny13 – random flickering pixels on 8×8 matrix LED display

This example project shows how to make random flickering pixels using ATtiny13 and popular 8×8 matrix LED display based on MAX7219/MAX7221. Complete project code is on GitHub. MAX7219/MAX7221 library for 8×8 matrix LED display A lightweight library for 8×8 matrix LED displays based on MAX7219/MAX7221 chip that works with tinyAVR family (ATtiny13, ATtiny25, ATtiny45, ATtiny85) can … Read more

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