DIY INTERNET CONTROLLED SMART LED MATRIX (ADAFRUIT + ESP8266 + WS2812)
Introduction: DIY INTERNET CONTROLLED SMART LED MATRIX (ADAFRUIT + ESP8266 + WS2812)
Here is my 2nd advance to a project that I am very excited to show you. It's about a DIY Smart LED Matrix that will let you show on it, data, such as YouTube Stats, your Smart Home Stats, as temperature, humidity, can be a simple clock, or just show text and animations.
In this second tutorial I will be sending text and color data through the internet. If you are a visual learner I know that a video worth more than 1000 words, so here is a Tutorial video. (I am a Spanish speaker, so please consider turning on English subtitles):
Step 1: Skills Needed
As you can noticed, nothing looks very difficult on this project, but you will need some basics knowings about:
-Using the Arduino IDE.
-Programming ESP8266.
-3D printing or Handcraft (for the Grid).
-Welding.
-Wiring.
Step 2: Components and Parts List
A good place I can recommend to find your components, it's MakerFocus, it's an Open Source Hardware Store!
1. PCB I really recommend to use JLCPCB SMT Services to order yours, you can choose between the No LEDs version and ADD the LED's Strips by yourself, or the one with the LED's.
2. ESP8266 (Microcontroller).
3. WS2812 LEDs Strips.
4. 5v 2A Power Supply.
5. PCB Power Jack.
6. 382
3D Printer (Optional) You can do the parts with cardboard or something rigid.
Step 3: Circuit Diagram
Here is the Circuit diagram, you have several options to make the project. You can just create the control part of the circuit, the one shown in the first image, then attach individual LEDs Strips as shown on the 3rd image.
Yo can also, instead of LED strips, use LED Panels.
It has all the internal conections of the circuit that will allow us to create the PCB design later.
I also attached the PDF of the Schematics so you can see it better.
DOWNLOAD Schematics, Code and Libraries for FREE.
Step 4: PCB Design
For the implementation of a good project we need a reliable assembly for the circuit that makes it up, and there is no better way to do it than with a good PCB.
Here you can download the Gerber, BOM and Pick & Place Files, the ones you need to order your PCB on your PCB manufacturing company.
I suggest JLCPCB:
📦$2 for 5 PCBs & cheap SMT (2 Coupons)
BUY THE ALREADY DESIGNED BOARD, Gerber + Pick & Place + BOM
Step 5: Adafruit Configuration for Internet Control
1. Go to Adafruit IO Page
2. Create a free account.
3. Look and copy the Adafruit credentials to your code.
4. Go to Feeds > View all > Create new feed.
5. Create the feeds down bellow.
* -mensaje.
* -rojo
* -verde
* -azul
In Adafruit API Documentation we have the info to properly communicate with the server.
We are going to be using this URL soon:
https://io.adafruit.com/api/v2/{username}/feeds/{feed_key}/data
Step 6: Programming the ESP8266 and Testing
1. Connect the USB to TTL Converter as follows:
USB to TTL -------> ESP8266
3.3v Vcc
tx rx
rx tx
Gnd Gnd
1- To program the ESP8266 we need to place the jumper on (PROG position), connect the USB to TTL converter to our PCB on it respectives pins and then to our PC, install the libraries and then upload. (Need to have the ESP8266 Packaje installed on your IDE).
2- Install the Libraries and Dependencies.
3- Restart the IDE, Open the Code.
4- Configure your WiFi Credentials and Adafruit IO Username and Password
4- Upload the sketch.
5- Jumper on USE, disconnect USB and connect the 5v power Supply.
6- Verify that all your LEDs works fine.
NOTE: Use the 3.3v of the USB-TTL convertor to power the ESP. (Will burn with 5v).
Step 7: Controlling the LED Matrix With Postman
1. 977