1 / 5
Rainbow night light — image 1
1 / 5

Rainbow night light

Order a print of this model

We calculate the final price from your selected file. You review and accept it before payment.

Saved on this device.

Ws2812 base color changing night light

Rating
0 / 5
Likes
4
Downloads
13
Makes
0
Views
94
Reviews
0

Updated at source:

Model information

Category
Home Decor
License
Creative Commons — Attribution — Noncommercial

 

For this model you need the following components:

  1. STM32 bluepill 
  2. stm32cubeide software
  3. WS2812 led strip (40 leds are required in total)
  4. small switch
  5. 5.5X2.5 8mm power jack insert
  6. 5V 1A power supply
  7. hot glue

The code is in this repository:

in order to build conduct the following steps:

  1. cut the WS2812 strip to 3 pieces: 1X17 led strip, 1X13 led strip, 1X10 led strip
  2. solder the strips together (this is done in order to be able to glue the strips to the 3d printed part)
  3. solder the led strips to the stm32
    1. 5V →5V
    2. GND → GND
    3. Din → A0 
  4. Solder switch and power input to 5V and GND in the strip respectively. you want the switch to control the 5V input to the strip
    1. note that the strip feeds the stm32 via the 5V and GND pins
    2. note that you can just use a wire and directly pass it through the 8mm hole. be sure to secure the wire with hot glue if you chose to do this. 
  5. remove protective tape and glue ws2812 strip to model
  6. upload the code and enjoy

 

Here is a picture of the lamp without the cover after soldering and gluing the components:


and with the cover closed:

Tags