Rainbow Light Painting With Adressable Leds

by Professeur Michel in Circuits > Arduino

239 Views, 1 Favorites, 0 Comments

Rainbow Light Painting With Adressable Leds

arc en ciel leds.JPG
20230717_163144.jpg

I made this project to show people how to use an adressable leds strip and how to make light painting.

Edit : I just came to realize that I put the colors in the wrong order... So the illustration show a "upside down" rainbow. I did correct the code and the image of the code, but I didn't have opportunity to made new photos. Please Newton forgive me (you who use to say ther was seven color in the rainbow, superstitious fellow)

Supplies

  • 1x Arduino Uno
  • 1x led WS1218 (adressable leds strip with n * 6 leds) (here I choose 18)
  • Some cables
  • 9V battery
  • 9V batterry case with a switch
  • A wooden stick or anything else to hold everything together
  • A Camera that have a manual mode (we need mode B : long exposure) on a tripod and with delay or IR command

Connect Arduino and Led Strip

montage arc en ciel ledpng.png
20230717_163125.jpg

First connect the led strip like shown on the pictures (5V / + on the 5V pin of the arduino, GND / - on any GND pin of the arduino and Data / Din on the pin number 10 of the arduino (or any other I/O pin, but you'll then have to change the arduino code).

See the project on Tinkercad : https://www.tinkercad.com/things/je7bjMBL4Q0

Upload the Code

arudino code.png
montage arc en ciel led en fonction.png

Plug the arduino to your computer with the USB cable and upload the code shown above and provided below in the arduino using the arduino IDE (See https://www.arduino.cc/ to learn how to do that if you don't already know).

If everything is OK you should already see the led turn on and show the color of the rainbow as on picture

Downloads

Connect to the Battery

20230717_163134.jpg
FTZYFOQLK6VNYRP.jpg
FAA7523LK6VLPJ7.jpg

Connect the 9V battery either with the special arduino connection, or connect the + to the Vin pin of the arduino and the - to any of the GND pin of the arduino. Turn on the switch of the battery case and you should see the led turn on.

Prepare the Camera

20230718_090046.jpg
20230718_090115.jpg
20230718_090134.jpg
20230718_090210.jpg
20230718_090228.jpg

Set the camera to manual mode (M).

Push the AV button and use the scroll wheel to set the aperture to the minimum (the minimum aperture is the maximum F value!) F22 for example, to have the best depth of field.

Click on the ISO button and set the iso to a low value (100 to 400) to avoid any noise on the picture.

Use the scrolling wheel to set the duration to the number of seconds you wish for your picture. The greater it is, the longer the camera will "draw" the light movement.

And don't forget to set the camera to manual, to avoid the auto focus.

Time for the Rainbow

arc en ciel leds.JPG
IMG_5958.JPG
IMG_5891.JPG
IMG_5909.JPG

And now, just ask someone to wave that rainbow wand in front of the camera, take pictures and be amazed by the results!

Note : to avoid any movement blur due to your finger pushing the trigger, you can use delay triggerring or IR remote trigger.

Have fun and don't hesitate to post you picture below!

Thank you and may the force (and the light) be with you!