Control LED Screen Panel with Wemos d1 mini

ESP8266 can be used to create attractive and creative designs from P10 led display panels.

Panels which are developed in such a way can be used to showcase or advertise different products in your business settings.

— How to Connect ESP8266 module P10 led diplay panel —

Step 1 : Materials You Need

You Will Need →

power supply

1. ESP8266 Board (Wemos or NodeMCU).

2. P10 LED Display Panel.

3. 5v Power Supply (power to led panel).

4. Jumper wires

Step 02 :Wiring Connection

Pin Diagram

Connect P10 led display panel with ESP8266 module according to the pin configuration above.

You can connect more P10 LED display panels in horizontal or vertical manner from the output pin port.

Step 3:

Libraries →

  1. DMD2 libaray

2. SPI libaray

Step 4: Coding part

// Tharindu Peiris

// Libraries
#include <SPI.h>
#include <DMD2.h>
#include <fonts/Droid_Sans_36.h> // font libaray

/*P10 led pannel pins to ESP 8266
A D0
B D6
CLK D5
SCK D3
R D7
NOE D8
GND GND
*/

int i = 0;

const uint8_t *FONT = Droid_Sans_36;

/////////////////////////////////////////////////////////////////////////////////////////////
SPIDMD dmd(1, 2); // Number of P10 panels used X, Y // change the “SPIDMD”, this is very important to change this ESP8266 module

SPIDMD dmd1(1, 2); // Number of P10 panels used X, Y
//////////////////////////////////////////////////////////////////////////////////////////////

DMD_TextBox box(dmd, -4, 0, 32, 16); // x, y change text posistion [ Set Box (dmd, x, y, Height, Width)]
const char *MESSAGE = “ABCD”;

void setup() {
Serial.begin(9600);

/////////////////////////////text display//////////////////////
dmd.setBrightness(10); // Set brightness 0–255
dmd.selectFont(FONT); // Font used
dmd.begin();
//////////////////////////////////////////////////////////////

//////////////////////////drawing box border//////////////////
dmd1.setBrightness(10); // Set brightness 0–255
dmd1.selectFont(FONT); // Font used
dmd1.begin();
dmd1.drawBox(31, 31, 0, 0); //{x,y,} // drawing box bording led pannel

/////////////////////////////////////////////////////////////
}

void loop() {

scrolling();

}

void scrolling() {
const char *next = MESSAGE;

while (*next) {
dmd.clearScreen();// clear screen
if (i != 0) {
box.print(*next); //print the led pannel
}

i++;
delay(800); // letters speed changing
next++;

}}

After the upload process is successful you can see P10 led dispaly pannel is been demonstration→

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store