Lightning Light

by yourihh in Living > Decorating

207 Views, 1 Favorites, 0 Comments

Lightning Light

a4156dc4-a386-4e1e-83e5-5c12b6d30452.jpg

The Lightning Light uses distance sensors to trigger a set of small LEDs whenever it detects something gets closer. It uses a combination of red & blue lights, which result in a lightning-like effect in combination with the sensors causing the interaction.

For this project you need:

  • Arduino UNO
  • 15x LEDs (in my case 9 red and 6 blue)
  • 2x HC-SR04 Ultrasonic Sonar Distance Sensors
  • 6x 10 Ohm Resistors
  • Plenty of wires

If you feel like it, you can also change the colors or the amount of LEDs. This can easily be done without any major changes to the source.

Step 1: Getting Your Arduino Ready

arduinoblueprint.png

Resistors are purple-blue-blue-blue-purple.

Step 2: Code

95d11ad240d70895061188a113c998f8.png
38810eda4829ee60aa5177979a66e901.png
e50e2a6e73274c1fbdc9c7f9f89d22b7.png

I attached the full code as a .txt file below for reference.

Step 3: Polishing the Prototype

accaff33-dbf0-43c3-b5ce-7d9763a9a9d7.jpg
7b4a409d-bd05-42b4-be53-8f070d094f67.jpg
df19f1d4-f1f2-4a9d-9828-1a74bf0b92d5.jpg
6759dd3b-bd55-4d33-9dc8-02e20033bf8d.jpg
41e052cc-a154-4145-821a-fa137b14835d.jpg
3a4786d7-8ba4-4448-9eea-1af1f528c71f.jpg

You should now have a working prototype. It's not looking that impressive, is it? Time to change that! I did not include this part and the material I used to the intro, as it's completely up to you how you want to continue the project.

In my case I used an old wooden picture frame, added some extra layers of wood so it matches the Arduino format, painted it black and used that as a bottom piece.I also cut a plate of frosted glass into smaller parts so it matches the bottom piece. Then I drilled four holes in the front piece so the distance sensors can read the distance between them and the object in front of them. I did some more smaller polishing work afterwards and...

Step 4: Profit!

WhatsApp Image 2019-09-16 at 22.24.57.jpeg

There we go!

If you feel like there is anything missing or unclear, feel free to message me about it. I hope this was valuable to you. Thanks!