Introduction: Lightning Light

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: Step 1: Getting Your Arduino Ready

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

Step 2: Step 2: Code

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

Step 3: Step 3: Polishing the Prototype

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: Step 4: Profit!

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!