Simple Lamp on the LED Strips.

by ЮрийХ1 in Circuits > LEDs

498 Views, 3 Favorites, 0 Comments

Simple Lamp on the LED Strips.

20161026_211856.jpg

After spending 1 night and a small number of components can be made just such a nice lamp.

Сomponents Used

digispark-micro-usb-800x800.jpg
s-l1600.jpg
adapter.jpg

I used:

  • DC adapter 5V 2A

  • Attiny85 Digispark
  • 2 m 5V WS2801 RGB LED Strip 32LEDs/M Addressable
  • Empty plastic bottle 2L

  • Glass flower vase

Design

20161010_222416.jpg
20161010_222322.jpg
20161010_222403.jpg

In a plastic bottle that I cut off the neck. At the bottom (near the bottom) cut a small hole approximately

2x3 sm.

Then, starting from the hole, the spiral belt pasted onto the bottle.

Soldered module and power jack. Module (pre-loaded software) slipped into the hole.

The whole structure covered vase, turning it upside down.

Connect the AC adapter and voila.

Driving and Code.

led_strips_lpdarduino.jpg

Pin 2 Attiny - clock. Pin 3 - serial data.

I got 64 LEDs.

The program includes several illumination options. They are selected at random.

Fantasy I only lasted for a small amount. Attigny volume of memory allows you to record the same amount.

Strip_Colors - an array of 64 x 24-bit numbers.

The array is populated with data (RGB color LED for each) and then transferred to the tape.

When transferred last byte, tape ignited.

Code attached.