Build an Arduino LED Matrix With Concentrating Lenses

by marciot in Circuits > Arduino

1960 Views, 7 Favorites, 0 Comments

Build an Arduino LED Matrix With Concentrating Lenses

IMG_4918.JPG

This Instructable shows how to drive an inexpensive LED matrix from the Arduino. I will also show you how to use a 3D printer and inexpensive parts to build a miniature array of lenses to concentrate the light from the LEDs and help them appear much brighter than they actually are. In the dark, it can project interesting patterns clear across the room!

The LEDs used in this project are a 4x4 matrix of addressable WS2812 LEDs. These are inexpensive and are easily driven by an Arduino. The lenses are 8mm diameter round flatback glass cabochons, which are very inexpensive and much cheaper than actual lenses.

Gather the Materials

materials.JPG

For the LED matrix:

For assembling the micro-lens array:

  • Sixteen 8mm diameter flat-back glass cabochons (about $2 from eBay for 20)
  • A 3D printer

Solder Pins to the LED Module

breakaway-headers.JPG

Use side cutters to break off a four-pin length of headers and solder them to the LED module, as shown in the picture.

Hook Up the Arduino

IMG_5028.JPG
IMG_4939.JPG

Run three jumper cables from the Arduino to the LED module, as follows:

  • 5V to 5V
  • GND to GND
  • ~5 to IN

Note: Do not attempt to drive more than a 4x4 LED matrix from your Arduino. If you want to drive more, you will need a separate power supply.

Install the FastLED Library

Open the Arduino IDE and go into "Sketch" -> "Include Library" -> "Manage Libraries...". Install the "FastLED" library by Daniel Garcia.

Now, from the "File" menu, select "Examples" -> "FastLED" -> "ColorPalette" and upload the sketch to your Arduino. The LEDs will now light up and begin flashing colors in different patterns!

In the next step, I will show you how to build a micro-lens array to concentrate and project the light from the LEDs.

Assemble the Lens Array

IMG_4937.JPG

Use a 3D printer to print out the two components that make up the lens holders:

  • LensArray.stl
  • LensShell.stl

Snap the lenses into position and then fit the two plastic parts together.

Determine the Focal Length of the Lens Matrix

IMG_4174.JPG

You can use a desk lamp to determine the focal point of the miniature lenses. Move the lens array up and down until they form a sharp image of the lamp on the table. This is about the distance you want the lens array to be from the LED matrix.

Experiment With the LED Matrix and the Lens Array!

Arduino LED Matrix with Concentrating Lenses

You should now be able to experiment with the lens array and the LED matrix. Try out different distances and see how far you can project the light patterns in a dark room!

You can use a set of helping hands to do this, or you can devise a more clever way to hold the project together. Have fun!