Projects: 100+ Proiecte Cy Attiny13
Projects: 100+ Proiecte Cy Attiny13
• advanced RISC architecture (up to 1MIPS/1MHz, easy to learn Assembler – only 120
instructions)
• pin-compatible with the ATtiny*5 series so if 1K bytes of FLASH and/or 64 bytes of
RAM turns out too restrictive, it’s easy to swap in up to 8K without a layout redesign
• operating voltage range (1.8V to 5.5V) and industrial temperature range (-40ºC to
+85ºC)
• basic peripheral features like timer, 4-channel ADC, Watchdog or Analog Comparator
• AVR-GCC compiler and many other developer tools that are open-source and free
• very-very low price for such computing power!
Projects
[001] ATtiny13 – blinky with delay function
[002] ATtiny13 – LED fading with delay function (Software PWM)
[003] ATtiny13 – randomly flashing LED with PRNG based on LFSR
[004] ATtiny13 – blinky with timer OVF (Overflow)
[005] ATtiny13 – blinky with Watchdog Timer
[006] ATtiny13 – blinky with timer COMPA
[007] ATtiny13 – tone generator
[008] ATtiny13 – software UART (debug logger)
[009] ATtiny13 – pseudo random numbers (lightweight library)
[010] ATtiny13 – controlling LED RGB (fancy light effects)
[011] ATtiny13 – IR remote to control LEDs (NEC proto)
[012] ATtiny13 – IR remote to control LED RGB (NEC proto)
[013] ATtiny13 – IR receiver / NEC proto analyzer
[014] ATtiny13 – Best Room Tempature on DS18B20
[015] ATtiny13 – two tone alarm
[016] ATtiny13 – digital DC voltmeter with MAX7219
[017] ATtiny13 – digital DC ampmeter with MAX7219
[018] ATtiny13 – dance lights with FFT
[019] ATtiny13 – simple timer on TM1637
[020] ATtiny13 – power LED PWM driver
[021] ATtiny13 – simple text CLI (Command Line Interface) via UART
[022] ATtiny13 – Morse Code (flashing light)
[023] ATtiny13 – battery level indicator
[024] ATtiny13 – simple logic probe
[026] ATtiny13 – disco lights using FFT
[028] ATtiny13 – running digits on TM1637
[029] ATtiny13 – temperature logger using LM35 ans Software UART
[030] ATtiny13 – reading temperature and humidity from DHT11
[031] ATtiny13 – hardware PWM
[032] ATtiny13 – running dots & digits on 7-segment LED tube display
[033] ATtiny13 – WS2812 LED strip – blinky
[034] ATtiny13 – rainbow on single LED WS2812
[035] ATtiny13 – rainbow on several LEDs WS2812
[036] ATtiny13 – circular WS2812 LED chaser
[037] ATtiny13 – PI (Pulse Induction) metal detector
[040] ATtiny13 – random flickering pixels on 8×8 matrix LED display
[043] ATtiny13 – blinky with delay function (assembler version)
[044] ATtiny13 – blinky with timer OVF (assembler version)
[045] ATtiny13 – blinky with timer COMPA (assembler version)
[047] ATtiny13 – controlling stepper motor 28BYJ-48
[048] ATtiny13 – randomly flashing LED with PRNG based on BBS
[050] ATtiny13 – clap clap switch
[052] ATtiny13 – 8bit mono Class D amplifier
Realization plan is about ~50%. Some of projects are in progress and some are ready to
publish. I’ll keep this page updated!
TODO List
Do you have an idea for next project on ATtiny13? Submit the project topic in a comment or
mail it to me! (lpodkalicki@gmail.com)
Community Projects
• https://github.com/dimecho/ATtiny13-Plant
• https://github.com/VincentChalnot/PlayRandomATTiny13
• https://github.com/taunoe/ATtiny13-Stopwatch
• https://github.com/rlopezxl/HappyBirthdayTune
• https://github.com/rlopezxl/ImperialMarchTune
• https://github.com/mcore1976/thermometer-TM1637
• https://github.com/mcore1976/thermometer-LM35-TM1637
• https://github.com/mcore1976/thermometer-ATTINY13-NokiaLCD
• https://github.com/mcore1976/thermometer-LM35-ATTINY13-TM1637-Negative-
temperatures
• https://create.arduino.cc/projecthub/dj-lukas/the-cheapest-and-simplest-pulse-counter-
b0fc3d [Lukas Wiackowski]
• https://github.com/pklosko/attiny13_eos-UARTcli
• http://www.piclistbr.org/projetos.php?p=avrsinewaveplayer (AVR Sinwave Player;
ASM)
Tutorials
• AVR Assembler (AVRA) by Example
• Programming ATtiny13 with Arduino UNO
Libraries
1. attiny13-software-uart-library – ATtiny13 Software UART library.
2. attiny-random-library – ATtiny13/25/45/85 16-bit PRNG (Pseudo Random Number
Generator) library based on Galois LFSR algorithm.
3. attiny-max7219-led-tube-display-library – ATtiny13/25/45/85 7-segment LED tube
display (MAX7219/MAX7221) library.
4. attiny-max7219-matrix-8×8-led-display-library – ATtiny13/25/45/85 8×8 matrix LED
display driver (MAX7219/MAX7221) library.
5. attiny-74hc595-library – ATtiny13/25/45/85 74hc595 shift register library.
6. attiny-tm1638-library – This is tinyAVR (ATtiny13, ATtiny25, ATtiny45, ATtiny85,
and other) library for LED controller modules based on TM1638 chip.
7. attiny-tm1637-library – TinyAVR – ATtiny13, ATtiny25, ATtiny45, ATtiny85 –
library for 7-segment display modules based on TM1637.
8. attiny-ds18b20-library – This is tinyAVR (ATtiny13, ATtiny25, ATtiny45, ATtiny85,
etc.) library for DS18B20 temperature sensor.
9. attiny-onewire-library – This is tinyAVR (ATtiny13, ATtiny25, ATtiny45, ATtiny85,
etc.) library to access devices using OneWire (1-Wire) protocol.