Skip to content

BornaBiro/LED_Party_Xmas_Light_Controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LED Party And Xmas Light Controller

ATMGEA328P based project for ccontrolling WS2801 RGB LEDs (addressable LEDs with dedicated IC controller, not the ones with built-in controller). It's primarlly used for controlling LED lights for Xmass, but with some code modification can be used for smart ambient light or even a party light (it already has dedicated mode for that, but it does not work properly, more about that later).

Features

  • microUSB supply
  • DC Jack supply (microUSB and DC Jack CAN'T be used at the same time!)
  • Terminal block for power supply (connected in parallel with DC Jack)
  • Analog audio input for MAX4466 microphone breakout
  • microSD card reader
  • 16x2 I2C LCD
  • 2 (3) x LED Channels
  • built-in buck regulator for 5V power supply
  • RTC for automatic power on and off
  • relay output (for non-mains use only)
  • rotary encoder wuth pushbutton for navigating menu
  • buzzer for playing old school Xmas melodies
  • CH340 USB to UART IC for easy programming and debugging
  • Reset pushbutton
  • Addidional pushbutton
  • easyC / STEMMA / Qwiic I2C connector for additional I2C devices

There is very neat little feature with this device: it creates same melodies as these old school incandescent Xmas lights. Check that out here.

Getting started

  1. Get the board!
  2. Get the parts!
  3. Solder everything together (except DC-DC converter, you must set the output voltage to 5V-5.2V first)
  4. Connect DC-DC converter to the power supply and set the output voltage to the 5V-5.2V
  5. Solder it to the PCB using the headers
  6. Burn the bootloader to the ATMEGA328P (using the test pads at bottom side of the PCB). You can use Arduino as ISP. If you don't know how to use it, check it out here.
  7. Copy / install provided WS2801 library to the Arduino
  8. Open the sketch
  9. Set Board as Arduino Nano (Arduino Nano with ATMEPGA328P, old bootloader).
  10. Upload the sketch
  11. Have fun!

Contributions to this project

ladyM9 - Little help for the timer code (got few ideas on how to approach the problem). Thank you!

Hadrware issues

⚠️NOTE⚠️

Before making the CB you have to know that current version of the PCB has some hardware issues. All issues are listed here.

⚠️NOTE⚠️

I did not fix any of these on PCB design, so like I mentioned, you will either need to do these fixes or you will need to make changes on the PCB before you order it.

Software issues

Software is still in the progress of make it. Since I do not have much free time, do not have high hopes on fixing these. I'll try my best to fix these before Xmas and New Year. Whole code is written to be non-blocking.

Known issues:

  1. Xmas mode and Party Mode are not seperated.
  2. Only xmas mode is working properly
  3. Be careful while setting up current Xmas mode, because you can force it into party mode by incrementing it to the Moon and beyond. Not sure if this is a bug or feature.
  4. No day selecton on automatic on or off (no date setting either)

How to use it

[will be written, be patient!]

Few more images

Licence

This project uses MIT licence. It is provided as is - no warranty is given. In other words - use it at your own risk. You can use this project, change it, modify it, but source must be listed (this github repo)!

About

ATMEGA328P based Xmas light controller for WS2801 LEDs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published