LED Matrix

by Hackin7 in Circuits > LEDs

1257 Views, 1 Favorites, 0 Comments

LED Matrix

DSC_6028.JPG

This is a 8x8 LED matrix made using WS2812 LEDs and an ESP8266 Microcontroller

This project was inspired by : https://www.instructables.com/id/Make-Your-Own-10x...

Wiring Up WS2812 LEDs

DSC_6017.JPG
DSC_6018.JPG
DSC_6029.JPG

In short, the LEDs were chained up in a long strip that was shown above. (Row by row, and the end of 1 row connected to the start of the next row)

(Ignore the missing 4 LEDs, I ran out of LEDs. They do not make a huge difference anyway)

After that, the LED strip was connected to a microcontroller (ESP8266)

Acrylic (and Wood) Case

DSC_6026.JPG
DSC_6025.JPG
DSC_6024.JPG
DSC_6020.JPG
IMAG1143.jpg
DSC_6019.JPG
DSC_6022.JPG
IMG-20180204-WA0002.jpeg
DSC_6021.JPG
DSC_6023.JPG

2 pieces of black acrylic were cut (with a knife), bent(using a soldering iron) and hot glued together(with a wooden stick as support) to form the sides of the matrix

A clear piece of acrylic and tracing paper behind it was used as the front screen, put in front of the matrix to diffuse the LEDs and protect the electronics.

Wooden sticks were cut in such a way that they can fit together and form dividers between the LEDs. This prevents the colours from the LEDs from diffusing into one another can ruin the clarity

After that, put the LED matrix, divider and clear acrylic in the black acrylic side piece

Software

DSC_6027.JPG

I used the Adafruit NeoMatrix Library, the NeoMatrix GFX Demo.

You could code other software to connect the ESP8266 to Wifi and gather data.

The Raspberry Pi LED Matrix

IMG-20190812-WA0025.jpeg

(This is a Work in Progress)

In the end, I put a Raspberry Pi (1B) in the LED Matrix. I also programmed and configured it to show Pixel Art (and maybe Animations) over Wifi.

I connected the data pin of the LEDs to Pin 18 of the Raspberry Pi. Moreover, the 5V and Ground Pins of the LEDs were connected to an external Power Supply (Like another USB Charger), separate from the Raspberry Pi. This is to ensure the LEDs have enough Power to Light Up.

The Client Side WebApp is written entirely in Pure vanilla HTML, CSS and Javascript. The Server Program is a Flask Application, and uses the Adafruit Neopixel Library. Since it uses the Adafruit Library, the LEDs may take longer to update (and not show animations properly etc.) The code is available on GitHub here, and the program is set to run on boot (using /etc/rc.local as stated in GitHub)