Skip to the content
2 layers33 × 30 mmMora villogo, the printed circuit board in 3D

Simple LED blinker with ATtiny13A for educational purposes

Size
33 × 30 mm
Copper layers
2
Thickness
1.6 mm
Parts
21
Nets
13
Pads
44
Tracks, vias
60, 0
Pours
1
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
15 Apr 2022
Updated
6 Jan 2023

Overview

Mora villogo is an open-source printed circuit board by kissadamfkut, from the kissadamfkut/mora_blinker repository on GitHub, published under the MIT licence. It is a 2-layer board of 33 × 30 mm with 21 parts on 13 nets, routed with 60 tracks and 0 vias.

It is built around the ATTINY13A-SSU. Its parts include 6 resistors, 5 diodes, 1 capacitor, 1 IC and 1 switch. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

1

README

README.md

Mora-blinker

Goals

  • Provide a simple and cheap educational embedded project
  • Demonstrate basic electric design
  • Demonstrate both C++ basics and advanced tricks
  • More entertaining first program than a 'Hello world'
  • Educate for software design in low-end environments

How to use

  • The schematics and the PCB board can be found in the hw folder. You can open the files with KiCAD 6
  • The software is in the sw folder. Do not forget to also pull the git submodules!
  • The build environment for the software includes avr-gcc 11.2, avrdude 6.4 and make 4.3
  • Do not connect the battery when using a 5V ISP!
  • After building the PCB, connect an STK500 or similar, and type make program
  • You can switch animations with the reset button

Bill of materials

  • CR2032 holder
  • CR2032
  • 100 nF capacitor
  • Yellow LEDs (x5)
  • 120 ohm resistors (x5)
  • 9.1 kohm resistor
  • Button
  • ATtiny13A

Theory of operation

The timer overflow interrupt drives a soft-PWM routine. The running animation changes an array of the LEDs' duty cycles. Resetting the device, the content of the SRAM is not random, so the index of the last animation is known, except for the cold-start, when it is random (not a problem). Some data is stored in the EEPROM to save space.

Known issues

  • Fuse calculation could be more describing
  • May further optimize base code
  • Less numeric constant

Work of a student

Full installion on Debian systems

bash
sudo apt intsall gcc-avr avr-libc make avrdude
cd sw
make
make program
sudo apt install kdevelop #Optional

Full installation on Windows systems (not tested)

FAQ

Sometimes the programmers' device files are created with special permission on linux based systems. You should gather unix group membership to the proper group (dialout, uucp etc.), so you can program your device without sudo

Parts

21
QtyValueFootprintReferences
6TestPointTestPoint:TestPoint_Pad_D3.0mmTP1, TP2, TP3, TP4, TP5, TP6
5120Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR2, R3, R4, R5, R6
5yellowLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD1, D2, D3, D4, D5
1100nCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1
19k1Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1
1ATtiny13A-SSPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU1
1CR2032 3VBattery:BatteryHolder_ComfortableElectronic_CH273-2450_1x2450BT1
1resetButton_Switch_SMD:SW_Push_1P1T_NO_6x6mm_H9.5mmSW1

Similar boards

  • 2 layers200 × 100 mmKeyboard, the printed circuit board in 3D

    Keyboard

    dragonlock2/kicadboards

    Offsite backup for the miscellaneous KiCad boards that don't fit elsewhere

    225 parts14Apache-2.0
  • 2 layersTX5823, the printed circuit board in 3D

    TX5823

    ep092/TX5823

    FPV Sender mit Kanalwahl und konfiguration über SPI. Integriertes OSD mit MAX7456 und Spannungswandlern für 5V, 3,3V und 12V über einen Eingangsspannungsbereich von 8V bis 25.2V.

    94 parts9
  • 2 layers10.2 × 22.3 mmLed, the printed circuit board in 3D

    Led

    HWXLR8/yinyoudeng

    音游灯 RGB LED PCB for rhythm game buttons

    5 parts8GPL-3.0
  • 2 layers27.9 × 66.2 mmRfid, the printed circuit board in 3D

    Rfid

    NFQ-Makers/rfid-reader

    A simple 125KHz rfid reader based on a ATMega8

    61 parts7GPL-2.0
  • 2 layers90 × 100 mmMeshcore NaIon, the printed circuit board in 3D

    Meshcore NaIon

    Alksndr55/mesh-repeater

    Mesh Repeater v1 — одноплатный LoRa-репитер для MeshCore и Meshtastic, 90×100 мм. Упор на максимальное энергосбережение и работу в суровых сибирских зимах. Солнечный зарядник, Na-ion 1S / LTO 2S.

    154 parts3
  • 2 layers51 × 70 mmAuto dimmer, the printed circuit board in 3D

    Auto dimmer

    ilyushkin/auto_dimmer

    Automatic dimmer for IKEA NYMANE (103.569.62) lamp based on AVR ATtiny13A MCU.

    56 parts2GPL-3.0

Questions

How big is the Mora villogo PCB?

It measures 33 × 30 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Mora villogo use?

21 parts, built around the ATTINY13A-SSU. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Mora villogo KiCad files?

From the kissadamfkut/mora_blinker repository on GitHub, at the commit this page was made from: the board is hw/mora_villogo.kicad_pcb and its schematic hw/mora_villogo.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Mora villogo design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).