-
Pet project in covid 2021 to light up Virgin Mary and Holy Family crystal statue
-
Arduino Uno as an ISP programmer. Thanks to Arduino/Attiny13A.ISP.Arduino.Programmer at master · spiderock98/Arduino (github.com)
-
Vanilla AVR-GCC via PlatformIO
-
General Configuration
-
Disable ADC module for low power consumption
-
Internal 1.2MHz + PWM prescale DIV_64 using timer0
-
Disable BOD
-
Using WDT Timer Interrupt with
millis()
to set duration parameter forLED_MODx(uint32_t duration_ms)
function (Attiny13 just got only 1 timer0) -
Led RGB common anode connect to push-pull PB0 output
-
Lipo 500mAh 3.7v battery for both microcontroller and led
-
Parameter | Value |
---|---|
LED Voltage | 2.6 V / pin |
LED Current | 27 mA / pin |
Resistor | 4x 10 Ohm = 40 Ohm |
MCU Current Consumption in Active Mode | 0.5 mA |
PWM Output | PB0 and PB1 (out of PWM pin) |
-
Test power up time (hopefully upto 17 hours if i estimate correctly 😊)
-
Test charge circuit
-
Remake version 2