LED Light Bar

by darkowl91 in Circuits > LEDs

373 Views, 6 Favorites, 0 Comments

LED Light Bar

PXL_20220105_104709916.MP.jpg
led-light-bar.PNG

When you think about the Christmas season, what do you usually imagine? Some magic thing, right?!

I was thinking about something that might be associated with this wonderful season time and could be nice and bright. So I've started to look for some interesting components that could be used for the project, as result came up with the really interesting board ATTiny85. This is a good match for small projects like this one, it has powerful capabilities for the LEDs control which could be easily programmed with a big number of lighting effects.

Supplies

PXL_20220103_165900517.jpg

All components could be easily found at any store, some links to the AliExpress store are below:

3D Design

led-box v2.png

I have used Fusion 360 for modeling this small LED box. There are three basic components: bottom cover (1), main body (3), and top cover (2). The top cover is designed to fit closely to the main body and some force might be needed to connect parts together. The bottom cover could be connected with the M3-6mm screws, another option is to use glue.

Electronics

PXL_20220103_223021965.jpg
Screenshot 2022-01-05 at 16.17.52.png
PXL_20220103_230341556.jpg

Pins:

  • P0 - Photo-resistor input
  • P1 - LED output
  • P2 - Button input

For the powering USB port is used, also it could be powered from the mobile phone or power bank.


Programming

Screenshot 2022-01-05 at 16.27.21.png

For the programming Digispark Tiny85 board, I've used VS code Arduino plugin, it is fast and easy to set up and upload sketches to it. The only thing to keep in mind is that the board should be disconnected first and only after a success message, connected for the upload.

Github link for this project: led-light-bar

Downloads