Components · 10 min read

P10 LED Panel Arduino: Scrolling Text, DMD2, Chaining and Power

P10 LED panel Arduino guide: 32x16 HUB12 wiring, scrolling text with DMD2, chaining panels, 5 V current table, adding fonts and changing text over ESP32 Wi-Fi.

A P10 LED panel Arduino build is the home-made version of the scrolling signs you see in shop windows, pharmacies and school corridors. A single P10 module carries 512 LEDs in 32 columns and 16 rows, measures 32 × 16 cm and is easy to read from several metres away. Line panels up side by side to make a sign of any length, scroll a fixed message with an Arduino Uno, or change the text instantly from your phone with an ESP32.

In this article we explain how a P10 panel works, the pins of the HUB12 connector, the difference between the DMD and DMD2 libraries, chaining panels, the 5 V power calculation where most mistakes happen, adding new fonts and the accented character problem. In the last section you'll find a complete sketch that changes the text over Wi-Fi from a small web page served by an ESP32.

What is a P10 LED panel and how does it work?

The "10" in the name comes from the 10 mm spacing between LEDs (the pixel pitch). On the back of the panel are shift registers (74HC595) that drive the LEDs, a buffer (74HC245) that strengthens the incoming signals and MOSFETs that switch the rows. Single-colour P10 panels use 1/4 scan: the 16 rows are split into four groups (such as 1-5-9-13 and 2-6-10-14) and only one group is lit at a time. The A and B lines select which group lights up, the state of that group's 128 LEDs is sent over the data line and moved to the outputs with the latch signal. This repeats hundreds of times per second and the eye sees the whole panel lit. That's why the Arduino has to scan the panel continuously; the libraries do it in the background with a timer interrupt.

FeatureSingle-colour P10 module
Resolution32 × 16 pixels (512 LEDs)
Pixel pitch10 mm
Size320 × 160 mm
Scan1/4 (4 rows, 128 LEDs at a time)
Supply5 V, screw terminal or 4-pin power socket
Data inputHUB12, 16-pin ribbon cable (IN and OUT)
Colour optionsRed, green, blue, white, yellow
Indoor / outdoorOutdoor models are brighter and weatherproof, and draw more current

The HUB12 connector and Arduino wiring

There are two 16-pin connectors on the back of the panel: IN takes the cable from the Arduino or the previous panel, OUT feeds the next panel. The arrows show the direction of data flow. Pin 1 is marked by a small triangle on the connector body or the red stripe on the cable. Since most odd-numbered pins are ground, you only need to connect six signals and one GND to the Arduino. On the Uno the data and clock lines go to the hardware SPI pins (D11 and D13), which lets the library scan the panel quickly.

HUB12 pinSignalJobArduino Uno (DMD2)ESP32 (DMD32)
1nOEOutput enable, PWM for brightnessD9GPIO 22
2ARow group select, bit 0D6GPIO 19
4BRow group select, bit 1D7GPIO 21
8CLKData clockD13 (SCK)GPIO 18
10SCLK (LAT / STB)Latch, moves data to the outputsD8GPIO 2
12R (DATA)Serial pixel dataD11 (MOSI)GPIO 23
3, 5, 7, 9, 11, 13, 15GNDGroundGNDGND
6, 14, 16C, G, DUnused on a single-colour 1/4 scan panelNot connectedNot connected
Never power the panel through the HUB12 cable or the Arduino's 5V pin; every panel has its own power socket, and a separate 5 V supply goes there. The Arduino's GND must be shared with the supply's GND. Also, when scanning stops (the code hangs or the Arduino resets), one row group can stay lit permanently; those rows burn four times brighter than normal and wear the LEDs over time, so keep the brightness low while developing.

DMD, DMD2 and DMD32 libraries

The most common libraries for P10 panels are the DMD family written by Freetronics. The older DMD library appears in most examples online, but it also needs the TimerOne library and isn't in the Library Manager. The newer DMD2 installs straight from the Library Manager, manages the scan timer itself and adds brightness control and double buffering. For the ESP32 there is DMD32, which uses the same function names as DMD. The Uno code in this article was compiled with DMD2 0.0.3 and the ESP32 code with DMD32 1.0.0.

LibraryBoardInstallationKey feature
DMD (Freetronics)AVR (Uno, Mega, Nano)Zip file + TimerOnedrawMarquee() and stepMarquee(), most older examples
DMD2AVR, Arduino Due, ESP8266Library Manager: DMD2SPIDMD / SoftDMD, setBrightness(), double buffer, DMD_TextBox
DMD32ESP32Library Manager: DMD32Same API as DMD, VSPI, Latin-1 font

Step by step: scrolling text with an Arduino Uno

  1. Open the Library Manager in the Arduino IDE, search for DMD2 and install the Freetronics library.
  2. Connect the other end of the ribbon cable plugged into the panel's IN connector to the Uno pins in the table with jumper wires.
  3. Connect the panels' power sockets to the 5 V supply and run the supply's GND to the Arduino's GND.
  4. In the code below, set PANELS_WIDE to the number of panels side by side and change the MESSAGE text.
  5. Upload the code; the text should enter from the right and scroll left. Adjust the brightness with the value in setBrightness().
C++ (Arduino IDE)
1// P10 LED panel kayan yazı: Arduino Uno + DMD2, yan yana 2 panel (64x16)
2// P10 LED panel scrolling text: Arduino Uno + DMD2, 2 panels side by side (64x16)
3// Bağlantı / wiring: nOE D9, A D6, B D7, SCLK (latch) D8, CLK D13, R (data) D11
4#include <SPI.h>
5#include <DMD2.h>
6#include <fonts/Arial_Black_16.h>
7
8const byte PANELS_WIDE = 2;   // Yan yana panel sayısı / panels across
9const byte PANELS_HIGH = 1;   // Alt alta panel sayısı / panels down
10const unsigned int SCROLL_MS = 30; // Her piksel kayma süresi / time per pixel step
11
12SPIDMD dmd(PANELS_WIDE, PANELS_HIGH);          // Panele giden ekran / the frame on the panel
13DMDFrame frame(dmd.width, dmd.height);          // Arka tampon, titremeyi önler / back buffer, avoids flicker
14
15const char MESSAGE[] = "Hosgeldin! BlueGrays ile Arduino ogren   ";
16int x;                    // Yazının sol kenarı / left edge of the text
17int textWidth;            // Yazının piksel genişliği / text width in pixels
18unsigned long lastStep = 0;
19
20void setup() {
21  dmd.setBrightness(100);          // 0-255, düşük parlaklık = düşük akım / lower brightness = lower current
22  dmd.selectFont(Arial_Black_16);
23  frame.selectFont(Arial_Black_16);
24  dmd.begin();                     // Timer1 ile otomatik tarama / automatic scanning with Timer1
25  textWidth = frame.stringWidth(MESSAGE);
26  x = dmd.width;                   // Sağdan başla / start from the right
27}
28
29void loop() {
30  if (millis() - lastStep < SCROLL_MS) return;
31  lastStep = millis();
32
33  frame.fillScreen(false);         // Arka tamponu temizle / clear the back buffer
34  frame.drawString(x, 0, MESSAGE); // Yazıyı yeni konuma çiz / draw the text at the new position
35  dmd.swapBuffers(frame);          // Tamponları tek adımda değiştir / swap the buffers in one step
36
37  x--;
38  if (x < -textWidth) x = dmd.width; // Yazı bitti, baştan / text has left, start over
39}

The SPIDMD class sends data over hardware SPI and uses the default pins; if you want other pins, choose the software SoftDMD class. On the Uno, dmd.begin() starts the Timer1 interrupt and the panel is scanned in the background. Instead of drawing the text straight onto the panel at every step, we draw it into a second buffer called frame and then swap the two buffers in one command with swapBuffers(); that way the text doesn't flicker while being erased and redrawn. stringWidth() returns the text width in pixels; once x drops below minus that value, the text has completely left the screen and starts again at the far right. Brightness is set with PWM on the nOE pin (D9); since Timer1 is in use, the Servo library can't be used together with this code.

Chaining several P10 panels

Panels behave like one long shift register: the data leaving the first panel's OUT connector enters the second panel's IN connector, and so on. In the code you only change PANELS_WIDE and PANELS_HIGH; two panels give 64 × 16 pixels, four give 128 × 16. Each panel takes 64 bytes in the buffer, 128 bytes with double buffering, so the Uno's 2 KB of RAM is enough for several panels. DMD2 0.0.3 stores the display width in a 1-byte variable, so you can use at most 7 panels (224 pixels) in a single row; for a longer sign arrange the panels in two rows or move to an ESP32. In a two-row layout the library sees all panels as one long strip; the first panel of the second row comes after the last panel of the first row in the chain.

  • Keep the ribbon cables between panels short; data can get corrupted on cables longer than 50 cm, so lower the SPI speed if needed.
  • If the text starts on the wrong panel or letters swap places, change the order of the panels or plug the cable into the panel at the other end of the chain.
  • As the panel count grows, more data is sent on every scan pass and the Uno spends more time in the interrupt; if the main loop slows down on a sign with many panels, moving to an ESP32 is a good option.
  • Screw the panels to an aluminium profile or an MDF board from behind; if the housings fit tightly together, no gap shows between the rows.

5 V power calculation: what supply do you need?

The maths is simple: with 1/4 scan at most 128 LEDs are lit at once. Assuming about 20 mA per LED, a panel with all LEDs on draws 128 × 0.02 ≈ 2.6 A; manufacturers usually quote 2.5–3 A for indoor models and up to 4 A (20 W) for high-brightness outdoor models. In scrolling text only about a quarter of the LEDs are lit, so typical consumption is 0.6–1 A per panel. Still, size the supply for the worst case: an effect that fills the screen or inverted (negative) text draws the peak current at once. Lowering the brightness from 255 to 100 cuts the current by roughly the same ratio. Use the Ohm's law calculator for the power figures and the Arduino power supply article to choose an adapter.

PanelsResolutionWorst case (~3 A per panel)Typical scrolling textRecommended 5 V supply
132 × 163 A (15 W)0.8 A5 V 4 A
264 × 166 A (30 W)1.5 A5 V 8 A
396 × 169 A (45 W)2.3 A5 V 10 A (50 W)
4128 × 1612 A (60 W)3 A5 V 20 A (100 W)
6192 × 16 or 96 × 3218 A (90 W)4.5 A5 V 30 A (150 W)
8128 × 32 (4 × 2)24 A (120 W)6 A5 V 30 A (150 W)
As current rises, wire thickness matters. Connect every panel to the supply with its own cable (star wiring) and use at least 0.75 mm² wire per panel; if you carry power from panel to panel over thin wires, the voltage drops on the far panels and their LEDs look dim or flicker.

Adding fonts and accented characters

DMD2 ships with several ready-made fonts, each one a .h file in the library's fonts folder. To add a font, include the file, for example fonts/Arial14.h, with #include at the top of the code, then select it with selectFont(Arial14). If you want to make your own font, files in GLCD Font Creator format are used: a six-byte header with the total size, width, height, first character and character count, followed by the character widths and pixel data. Put the .h file you create in the sketch folder and add #include "MyFont.h". The bundled fonts only contain ASCII characters 32–127, so accented letters such as ñ, á, é, ü, ç don't appear on the panel. There are three fixes: write the text without accents, draw the accented letters in place of unused characters (such as { } |) and add a mapping in the code, or use a Latin-1 font with up to 255 characters on the ESP32. The Latin-1 font already has ñ, á, é, ü, ç, ö and other Western European letters; the ESP32 code below converts the few Turkish letters it lacks (ğ, ş, ı) to g, s, i automatically.

FontHeightRows on a panelNote
SystemFont5x77 px2Fixed width, for clocks and two-line info
Arial1414 px1Thin, fits more letters in long texts
Arial_Black_1616 px1Bold, best readability from afar
Droid_Sans_1212 px1Soft shapes
Droid_Sans_1616 px1Fills the full panel height
Droid_Sans_2424 px1 (two panels high)Needs PANELS_HIGH = 2

Changing the text over Wi-Fi with an ESP32

ESP32 development board
The Wi-Fi capable ESP32 lets you change the P10 sign's text from your phone

Changing the sign's text by uploading code every time isn't practical. Thanks to its Wi-Fi, the ESP32 can run a small web server: you open the ESP32's IP address on your phone, type the new text into the box and tap Send. Here we use the DMD32 library; search for DMD32 in the Library Manager and install it. The ESP32's outputs are 3.3 V while the panel's input expects 5 V logic. Most panels also work with 3.3 V signals, but it's borderline; for a reliable sign, pass the six signal lines through a logic level converter or a 74HCT245. The library example scans from a timer interrupt; to avoid clashes with Wi-Fi and flash writes, we moved the scanning into a separate FreeRTOS task.

C++ (Arduino IDE)
1// ESP32 + P10 LED panel: Wi-Fi üzerinden telefondan kayan yazıyı değiştir (DMD32)
2// ESP32 + P10 LED panel: change the scrolling text from your phone over Wi-Fi (DMD32)
3// Bağlantı / wiring: nOE 22, A 19, B 21, CLK 18, SCLK (latch) 2, R (data) 23
4#include <WiFi.h>
5#include <WebServer.h>
6#include <Preferences.h>
7#include <DMD32.h>
8#include "fonts/Arial_Black_16_ISO_8859_1.h"
9
10const char* WIFI_SSID = "AgAdi";        // Wi-Fi adın / your Wi-Fi name
11const char* WIFI_PASS = "AgSifresi";    // Wi-Fi şifren / your Wi-Fi password
12const byte PANELS_WIDE = 2, PANELS_HIGH = 1;
13const unsigned int SCROLL_MS = 30;      // Kayma hızı / scroll speed
14const size_t MAX_LEN = 200;             // En uzun metin / longest text
15
16DMD dmd(PANELS_WIDE, PANELS_HIGH);
17WebServer server(80);
18Preferences prefs;
19char panelText[MAX_LEN + 1];            // Panelde kayan metin (Latin-1) / text on the panel (Latin-1)
20unsigned long lastStep = 0;
21
22// Paneli ayrı bir görevde 1 ms'de bir tara (kesme yerine, Wi-Fi ile güvenli)
23// Scan the panel every 1 ms in its own task (instead of an ISR, safe with Wi-Fi)
24void scanTask(void*) {
25  for (;;) {
26    dmd.scanDisplayBySPI();
27    vTaskDelay(1);
28  }
29}
30
31// Tarayıcıdan gelen UTF-8 metni fontun Latin-1 kodlarına çevir
32// Convert the browser's UTF-8 text to the font's Latin-1 codes
33void toLatin1(const String& in, char* out) {
34  size_t n = 0;
35  for (size_t i = 0; i < in.length() && n < MAX_LEN; i++) {
36    uint8_t c = in[i];
37    uint8_t d = (i + 1 < in.length()) ? in[i + 1] : 0;
38    if (c < 0x80) { out[n++] = c; continue; }               // ASCII
39    if (c == 0xC3) { out[n++] = d + 0x40; i++; continue; }  // ç ö ü ñ á é ...
40    if (c == 0xC2) { out[n++] = d; i++; continue; }         // ¡ ¿ ° ...
41    if (c == 0xC4 && d == 0x9F) { out[n++] = 'g'; i++; continue; } // ğ
42    if (c == 0xC4 && d == 0x9E) { out[n++] = 'G'; i++; continue; } // Ğ
43    if (c == 0xC4 && d == 0xB1) { out[n++] = 'i'; i++; continue; } // ı
44    if (c == 0xC4 && d == 0xB0) { out[n++] = 'I'; i++; continue; } // İ
45    if (c == 0xC5 && d == 0x9F) { out[n++] = 's'; i++; continue; } // ş
46    if (c == 0xC5 && d == 0x9E) { out[n++] = 'S'; i++; continue; } // Ş
47    while (i + 1 < in.length() && (in[i + 1] & 0xC0) == 0x80) i++; // Bilinmeyen karakteri atla / skip unknown character
48  }
49  out[n] = '\0';
50}
51
52void showText(const String& utf8) {
53  toLatin1(utf8, panelText);
54  dmd.clearScreen(true);
55  dmd.drawMarquee(panelText, strlen(panelText), 32 * PANELS_WIDE - 1, 0);
56}
57
58void handleRoot() {
59  String page = "<!DOCTYPE html><html><head><meta charset='utf-8'>"
60                "<meta name='viewport' content='width=device-width'><title>P10</title></head><body>"
61                "<h2>P10 kayan yazi</h2><form action='/set'>"
62                "<input name='msg' maxlength='200' style='width:90%' value='" + prefs.getString("msg", "") + "'>"
63                "<button>Gonder / Send</button></form></body></html>";
64  server.send(200, "text/html; charset=utf-8", page);
65}
66
67void handleSet() {
68  String msg = server.arg("msg");      // WebServer %XX kodlarını çözer / WebServer decodes %XX
69  msg.replace("'", " ");               // Formu bozmasın / keep the form intact
70  prefs.putString("msg", msg);         // Elektrik kesilince de kalsın / survive a power cut
71  showText(msg + "   ");
72  server.sendHeader("Location", "/");
73  server.send(303);
74}
75
76void setup() {
77  Serial.begin(115200);
78  pinMode(SS, INPUT_PULLUP);           // DMD32, GPIO5 HIGH iken tarar / DMD32 scans while GPIO5 is HIGH
79  dmd.selectFont(Arial_Black_16_ISO_8859_1);
80  dmd.clearScreen(true);
81  xTaskCreatePinnedToCore(scanTask, "dmd", 2048, NULL, 2, NULL, 1);
82
83  prefs.begin("p10", false);
84  WiFi.mode(WIFI_STA);
85  WiFi.begin(WIFI_SSID, WIFI_PASS);
86  showText("Wi-Fi...   ");
87  while (WiFi.status() != WL_CONNECTED) {
88    if (millis() - lastStep >= SCROLL_MS) { lastStep = millis(); dmd.stepMarquee(-1, 0); }
89    delay(1);
90  }
91  Serial.println(WiFi.localIP());
92
93  server.on("/", handleRoot);
94  server.on("/set", handleSet);
95  server.begin();
96
97  String saved = prefs.getString("msg", "");
98  if (saved.length() == 0) saved = "IP: " + WiFi.localIP().toString();
99  showText(saved + "   ");
100}
101
102void loop() {
103  server.handleClient();
104  if (millis() - lastStep >= SCROLL_MS) {
105    lastStep = millis();
106    dmd.stepMarquee(-1, 0);            // Bir piksel sola kaydır / scroll one pixel left
107  }
108}

The scanTask task scans one row group every 1 ms, so the panel refreshes 250 times per second and no flicker shows. On first boot, if no text is saved, the ESP32's IP address scrolls on the panel; type that address into your phone's browser and the text box opens. The text you send is saved to flash with Preferences, so the sign comes back with the last message after a power cut. The toLatin1() function converts the browser's UTF-8 text into the single-byte codes the font understands: ç, ö, ü, ñ, á, é, ¿ and ¡ appear as they are, while ğ, ş and ı become the closest letter. The code was compiled with ESP32 Arduino core 2.x; since it uses no timer functions, it needs no changes on 3.x either.

Common problems and fixes

SymptomLikely causeFix
Panel completely darkNo power or nOE not connectedMeasure 5 V at the panel socket, check the D9 (GPIO 22 on ESP32) connection
Only every fourth row lightsA or B line broken or swappedCheck HUB12 pins 2 and 4, confirm the D6 and D7 order
Random dots and garbled lettersCLK and DATA mixed up or cable too longConnect pin 8 to SCK and pin 12 to MOSI, shorten the cable
Text flickers or is dim in placesSupply too small or power wire too thinChoose the supply from the table, run a separate thick wire to each panel
Text starts on the second panelPanel order reversedSwap the panels or plug the cable into the other end
Accented letters don't showThe font only contains ASCIIDrop the accents, add characters to the font or use the Latin-1 font on ESP32
Panel unstable on ESP323.3 V signals don't fully drive the 5 V inputsPass the signals through a 74HCT245 or a level converter

P10 panel project ideas

  • A wall clock that is right to the second: get the time from the internet with the ESP32 NTP clock and write the time on the top line and the date on the bottom with SystemFont5x7.
  • A notice board for a school corridor: teachers change the text from their phones and Preferences keeps it after a restart.
  • A weather board: scroll temperature and humidity from the ESP32 weather API.
  • A channel counter: move the YouTube subscriber counter code to a P10 panel for a giant counter.
  • A queue number display: increase the number on every button press and read it aloud with a DFPlayer Mini.

Once the setup is in place, a P10 panel is a big, impressive display you can reuse in every new idea. If you'd rather start with smaller matrices, have a look at the MAX7219 LED matrix article. In the BlueGrays app you can find step-by-step circuit diagrams and code for projects such as animations and text on four 32x8 matrices, a dot matrix clock with MAX7219, an ESP32 async web server, real time over NTP and a WebSocket counter, and combine them with the sign you built here.

Frequently asked questions

How much current does a P10 LED panel draw?

A single-colour P10 panel draws about 2.5–3 A with all LEDs on, and high-brightness outdoor models up to 4 A. Since only about a quarter of the LEDs are lit in scrolling text, typical consumption is 0.6–1 A per panel. Still, size the supply for the worst case at 3–4 A per panel.

How do you connect a P10 panel to an Arduino?

From the HUB12 cable on the panel's IN connector, connect nOE, A, B, CLK, SCLK and R to the Uno's D9, D6, D7, D13, D8 and D11 pins and GND to GND. The panel itself is powered from a separate 5 V supply through its own power socket.

What is the difference between DMD and DMD2?

DMD is Freetronics' original library; it needs TimerOne and isn't in the Library Manager. DMD2 installs directly from the Library Manager, handles scanning itself and adds brightness control, double buffering and software pin selection.

How many P10 panels can be chained together?

Panels can be extended from OUT to IN with ribbon cables, and the limit is set by the library, memory and scan speed. DMD2 supports at most 7 panels in a single row; for more, arrange the panels in two rows or use an ESP32. Remember to power every panel through its own cable.

How do I show accented characters on a P10 panel?

The bundled fonts only contain ASCII, so letters such as ñ, á or ü don't show. You can edit the font and draw accented letters in place of unused characters, or use a Latin-1 font on the ESP32, which already contains the common Western European accented letters.

Can I use a P10 panel with an ESP32?

Yes, the DMD32 library is written for the ESP32 and uses the same functions as DMD. The ESP32's 3.3 V outputs work with most panels, but a 74HCT245 or a logic level converter is recommended for reliable results. Thanks to the ESP32's Wi-Fi, you can change the text from your phone.

See all projects
4x 32x8 Matrix LED Animation and Text
AR-90Intermediate
Premium

4x 32x8 Matrix LED Animation and Text

Stack four long LED matrix modules on top of each other and you get a square screen with more than a thousand dots of light.

4.6(40)
66
4x 32x8 LED Matrix - 6-Animation Pack
AR-91Intermediate
Premium

4x 32x8 LED Matrix - 6-Animation Pack

Four 32x8 LED panels stacked on top of each other form a square screen where six animations play in turn: falling digital rain, a growing spiral, cells that are born and die all by themselves…

4.5(35)
48
Dot Matrix Clock and Calendar (MAX7219, DS1307)
AR-84Intermediate
Premium

Dot Matrix Clock and Calendar (MAX7219, DS1307)

A glowing board for your desk or wall that shows the time and date in scrolling text.

5.0(37)
59
Dot Matrix Clock, Calendar and Weather Station (MAX7219, DS1307)
AR-85Intermediate
Premium

Dot Matrix Clock, Calendar and Weather Station (MAX7219, DS1307)

A scrolling-text board for your desk or wall that shows the time, the date and the room's weather in turn.

5.0(50)
66
ESP32 Asynchronous Web Server (with IP Display on LCD)
ES-27Advanced

ESP32 Asynchronous Web Server (with IP Display on LCD)

In this project, we’re turning the ESP32 into an asynchronous web server that you can control from your phone or computer on the same Wi-Fi network. Thanks to the ESPAsyncWebServer library, the server can process multiple requests simultaneously (unlike the classic WebServer.h, which blocks on a single request). You’ll be able to open the ESP32’s IP address in a browser and click the ON/OFF buttons (the /on and /off routes) to turn the LED connected to GPIO 5 on and off.

4.8(16)
27
Real-Time Clock from the Internet via ESP32 NTP
ES-26Advanced
Premium

Real-Time Clock from the Internet via ESP32 NTP

The ESP32 connects to Wi-Fi and fetches the real time from NTP (Network Time Protocol) servers with millisecond precision. configTzTime() applies the Turkey time zone (TRT, UTC+3) automatically, and in countries with daylight saving time the DST switch is handled by a POSIX TZ string. The time is printed both to the Serial Monitor and to an optional I2C LCD.

4.5(13)
22
ESP32 WebSocket Counter (2 Buttons + LCD + Real-Time Web)
ES-28Advanced
Premium

ESP32 WebSocket Counter (2 Buttons + LCD + Real-Time Web)

In this project, two buttons wired to the ESP32 (GPIO 5 counts up, GPIO 4 counts down) change a counter. The value updates instantly both on a 16x2 I2C LCD and, through the WebSocket support of ESPAsyncWebServer, in every connected browser without reloading the page. Instead of HTTP polling a single persistent connection is used, and the ESP32 sends the new value to everyone with ws.textAll().

4.5(14)
23
ESP32 Wi-Fi STA Connection (with LCD Screen)
ES-25Advanced

ESP32 Wi-Fi STA Connection (with LCD Screen)

In this project, we connect the ESP32 to the home Wi-Fi network in Station (STA) mode in a secure, fault-tolerant manner. We store the SSID and password in a separate secrets.h file to prevent leaking to Git, set up an auto-reconnect mechanism, and display the RSSI signal level and IP address on an I2C LCD screen. The internal LED works as a status indicator. It is a production-grade connection manager.

4.4(21)
41