Skip to content

Vassterak/AVR-SimpleLEDLamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This is a simple project for my close relative "smart LED Lamp" aka addressable led that shine trought crystal to create a pretty nice effect. Color/Brightness... etc. can be changed via 2 buttons. It use 2x refurbished LG LGABC21865, nominal capacity was 2800mAh current capacity is slightly above 2000mAh after cell test.

What does project contains?

Source code:

Schematic:

Check out: Schematic

Info about used Hardware:

  • Charging board You can buy it everywhere, Amazon, Aliexpress... etc. Now with USB C also. I did a small modification to mine, set the charging current to 580mA instead of 1000mA. (To prevent chip overheating and when using bad input charger) Visible in schematic 2kΩ resistor instead of 1,2kΩ IC TP4056, PIN 2(PROG)
  • Boost Converter board For stable operation and limit the voltage ripple from switching. It's recommended to use smoothing capacitator, I set my boost converter to 4,6V because higher voltage will result only in higher power losses.
  • My own ATtiny85 board, ATtiny85 datasheet
  • 2x 18650 accumulators (You can use what ever type of Lion/LiPo 1S only!)
  • 3D printed case. You will need to design your own because of different shape for crystal (or what ever you want to use).

Get started

  1. Install Visual Studio Code

  2. Install PlatformIO IDE extension (Depending on your Python version you can get error like this) PlatfromIO Image1

  3. Clone repository

  4. Open PlatformIO inside Visual Studio Code and click on Open Project and import cloned repository. 1. select PlatformIO (RED icon) 2. Import project (BLUE icon) PlatfromIO Image2

  5. Check if you have all required libraries PlatfromIO Image3

  6. How to upload new code to ATtiny85? Use other Arduino in ISP mode. Tutorial.

Result

video of finished project image 1 of finished project image 2 of finished project

License

License

Releases

No releases published

Packages

No packages published