Site Guide

Find your way around the Engineering Club.

Know what you need? Search for a component, concept or project.

Around the site

Start

Labs

TestingExperimental

Build

Club

LearnExperimental

Go a little deeper

Entry points to larger collections. Use Search for individual records.

Learning paths & reference

Inside PiCrawlerExperimental

Inside Inventory

Testing / Displays / 14

ESP32 Wireless Display Dashboard

Run a local HTTP/JSON display endpoint with validation and stale-data feedback.

Firmware source authored · compile not attempted in this pass

What you'll build

Create the authored local access point and print its actual IP.

First result after hardware review: Serial gives the reachable local AP address.

What you need

Check availability and exact module markings before starting.

Connections / current hardware gate

Before connecting power. Confirm the classic ESP32 target and SSD1309 carrier supply/pull-ups. The local access-point example does not establish campus-network access or deployment readiness.

  • Review the OLED module, address and electrical interface before power.
  • Use the actual address printed by the authored local access-point program after qualification.
  • Keep incoming values bounded and preserve invalid-payload and stale-data behavior.

Start building

  1. 1

    Local network diagnostic

    Create the authored local access point and print its actual IP.

  2. 2

    Validated incoming value

    POST a bounded JSON value to /sample.

  3. 3

    Fresh/stale visualization

    Mark values stale five seconds after the last accepted message.

Download complete PlatformIO project

Each stage has its exact environment, complete source and expected result. Editor and tools setup →

Troubleshooting

Client cannot reach endpoint

Confirm it joined the ESP32 AP, use the printed local IP and inspect the request method/path. Mobile devices may try to leave a network without Internet.

400 or 413 response

Check JSON type/range/length. Quoted numbers and oversized bodies are intentionally rejected rather than coerced.

Display says stale

Send an accepted update and then intentionally stop. Distinguish absence of recent valid data from a broken OLED.

More detail

Foundations, safety and learning objectives

250 minutes · Editorial learning estimate excluding unresolved procurement/driver-port time

Three actual PlatformIO firmware environments; embedded compile and bench verification unestablished.

  • Keep electrical review false until the exact wiring/power/logic checklist is completed.
  • No power budget is inferred from successful compilation.
  • Run a local HTTP/JSON display endpoint with validation and stale-data feedback.
  • Wi-Fi connects computers; HTTP supplies a request/response convention; JSON supplies a data representation.
System diagram and electrical boundaries
ESP32 Wireless Display Dashboard · subsystem relationships

Show the meaningful subsystem and signal/power boundary for ESP32 Wireless Display Dashboard. Conceptual system view; physical connections remain conditional.

  • ELEGOO ESP-WROOM-32 development boardClub-owned
  • 2.42-inch SSD1309 128×64 OLED Display Module (I²C)Club-owned

Signals and interfaces

  • 2.42-inch SSD1309 128×64 OLED Display Module (I²C)I2C SDAELEGOO ESP-WROOM-32 development boardConditional reference
  • 2.42-inch SSD1309 128×64 OLED Display Module (I²C)I2C SCLELEGOO ESP-WROOM-32 development boardConditional reference

Power and common reference boundary

  • display/peripheralSignal referencecontrollerConditional reference
  • display/peripheralPeripheral powerverified supplyConditional reference

Interfaces: WiFi · HTTP · I2C

Electrical boundaries and interpretation
  • Use conditional wiring records; null pin/voltage means unresolved, not permission to choose a value.
  • Draw power and logic paths separately.
  • Do not turn a reference signal label into a guessed connector position.
  • Keep member, club and campus access labels distinct.
  • Include explicit port gate for unresolved driver/identity.
  • Access scopes: CLUB_OWNED.
  • Firmware source is not bench evidence.
Full hardware facts and conditional wiring reference

Access describes the source of a requirement. Check availability, the exact revision and the complete power/driver/harness system before starting. Inventory quantities are expected purchase/BOM quantities, not live stock.

  • controller verified · preflight required

    Compatibility and unresolved details
    • Controller: SSD1309
    • Resolution: 128 × 64
    • Diagonal: 2.42 inches
    • Interface: I²C, four-pin version
    • Emission color: Variant-dependent / not tracked; requested yellow
    • Carrier voltage/address: Not established; verify actual module
  • product family verified · preflight required

    Compatibility and unresolved details
    • Headers/USB bridge: Exact carrier count and bridge unverified

Electrical review is incomplete. Conditional references require confirmation; unresolved pins or rails are not wiring instructions. Power off before changing connections.

From device / pinTo device / pinSignal / voltageConnection status and notes
2.42-inch SSD1309 128×64 OLED Display Module (I²C)
SDA
ELEGOO ESP-WROOM-32 development board
GPIO21
I2C SDA
3.3 V
Conditional reference

Carrier supply/address and pull-up rail need confirmation; catalog establishes SSD1309 family only.

2.42-inch SSD1309 128×64 OLED Display Module (I²C)
SCL
ELEGOO ESP-WROOM-32 development board
GPIO22
I2C SCL
3.3 V
Conditional reference

Use labeled GPIOs on classic ESP32; not the C6 onboard map.

display/peripheral
GND
controller
GND
Signal reference
0 V
Conditional reference

Unpowered wiring check; use correct common-ground topology and keep high-current panel returns out of thin signal paths.

display/peripheral
VCC
verified supply
Pin unresolved
Peripheral power
Voltage unresolved
Conditional reference

Supply voltage/current unknown at carrier level until reviewed; no assumed 5 V or 3.3 V instruction.

All source files, supporting libraries and project download

Download complete project · workspaces/esp32-wireless-dashboard

Open the extracted folder containing platformio.ini and keep the complete supporting files.

  • olikraus/U8g2@2.36.5
  • bblanchon/ArduinoJson@6.21.5

workspaces/esp32-wireless-dashboard/src/main.cpp

main.cpp
#include <Arduino.h>
#include <Wire.h>
#include <U8g2lib.h>
#include <DisplayCore.h>
#include "board_profile.h"
U8G2_SSD1309_128X64_NONAME2_F_HW_I2C oled(U8G2_R0,U8X8_PIN_NONE,22,21);
bool ready=false;uint32_t lastUpdate=0;
#include "network.h"
void setup(){Serial.begin(115200); if(!kElectricalReviewComplete){Serial.println("STOP: complete wiring/power review in guide before enabling hardware.");return;}Wire.begin(21,22);oled.setI2CAddress(kOledAddress7<<1);oled.begin();oled.setFont(u8g2_font_6x10_tf);beginNetwork();ready=true;}

 void loop(){if(!ready)return;pollNetwork();uint32_t now=millis();if(!displaylab::elapsed(now,lastUpdate,250))return;lastUpdate=now;oled.clearBuffer();oled.drawStr(0,10,"Local HTTP dashboard");oled.setCursor(0,28);
 #if DISPLAY_STAGE == 1
 oled.print("AP: see Serial IP");
 #else
 oled.print(networkFresh(now)?"Fresh ":"Stale ");oled.print(networkValue());
 #endif
 #if DISPLAY_STAGE >= 3
 oled.drawFrame(0,40,128,12);oled.drawBox(1,41,networkValue()*126/1000,10);
 #endif
 oled.sendBuffer();}
Source integrity · SHA-2564d7e0807d07a156c5c9e7f30607df6e4e8533e3a755edb2f94d580f43035eea2

Raw downloads and standalone ZIPs retain the canonical bytes and supporting files. Copy follows the selected Comments setting.

Original engineering guide

Original research wording is preserved. Use the stage-specific dated build evidence for later compile results; it does not establish physical behavior.

Run a local HTTP/JSON display endpoint with validation and stale-data feedback.

Status: FIRMWARE_AUTHORED_UNVERIFIED. FIRMWARE_SOURCE_AUTHORED; embedded build UNVERIFIED; hardware NOT_TESTED. Three actual PlatformIO firmware environments; embedded compile and bench verification unestablished.

What you are building

Wi-Fi connects computers; HTTP supplies a request/response convention; JSON supplies a data representation. These are separate from I²C display traffic. This base uses an ESP32 access point and a local HTTP server, so no Internet API or private credential is required. The demonstration network name/password are public teaching defaults, not secrets or a secure production service. Keep this service local and adapt authentication before any public deployment.

Before you start

Estimated learning time: 250 minutes, excluding unresolved hardware/port work. Required prerequisites: display-oled-dashboard. See PLATFORMIO_ORIENTATION.md and the hardware identity/access records. Current main inventory IDs and expected quantities were compared read-only at a406480e1e13807983f1c03b8a531c2dcd310ddb; expected quantities are not live stock. Member and campus access remain separate from club ownership.

Hardware and conditional wiring

Component IDAccess scopeExpected snapshot quantityPreflight
club:elegoo-esp-wroom-32-development-boardCLUB_OWNED3PREFLIGHT_REQUIRED
club:yellow-oled-displayCLUB_OWNED1PREFLIGHT_REQUIRED

Breadboard, appropriately rated jumpers/data cables and a computer are shared setup requirements. Review supply, signal levels and ground separately; power off before changing connections. Null pins/rails remain unresolved.

FromToSignalVoltage / gateCondition
club:yellow-oled-display / SDAclub:elegoo-esp-wroom-32-development-board / GPIO21I2C SDA3.3 / CONDITIONAL_REFERENCECarrier supply/address and pull-up rail need confirmation; catalog establishes SSD1309 family only.
club:yellow-oled-display / SCLclub:elegoo-esp-wroom-32-development-board / GPIO22I2C SCL3.3 / CONDITIONAL_REFERENCEUse labeled GPIOs on classic ESP32; not the C6 onboard map.
display/peripheral / GNDcontroller / GNDSignal reference0 / CONDITIONAL_REFERENCEUnpowered wiring check; use correct common-ground topology and keep high-current panel returns out of thin signal paths.
display/peripheral / VCCverified supply / NonePeripheral powerNone / CONDITIONAL_REFERENCESupply voltage/current unknown at carrier level until reviewed; no assumed 5 V or 3.3 V instruction.

Software setup and dependencies

Open workspaces/esp32-wireless-dashboard in VS Code/PlatformIO. Configuration: workspaces/esp32-wireless-dashboard/platformio.ini. Platform: espressif32@6.12.0. Board/framework: esp32dev / arduino. Dependencies: olikraus/U8g2@2.36.5, bblanchon/ArduinoJson@6.21.5. Dependency resolution occurs during build; an include is not an installation. See LIBRARY_MATRIX.md and COMPILATION_AUDIT.md for exact verification limits. The default electrical-review flag remains false. Review the matching pins, power and logic before changing it; a build cannot complete that physical review.

Build it: checkpoint path

StageGoalEnvironmentExpected / gate
Local network diagnosticCreate the authored local access point and print its actual IP.checkpoint1Serial gives the reachable local AP address.
Validated incoming valuePOST a bounded JSON value to /sample.checkpoint2Accepted integer 0..1000 changes the display; invalid payloads are rejected.
Fresh/stale visualizationMark values stale five seconds after the last accepted message.checkpoint3A bar reflects the last accepted value while status distinguishes freshness.

Choose a stage deliberately. Project downloads include all authored environments; model-only project downloads include checkpoints1/2 and explicitly exclude the unfinished physical checkpoint. Stage3 for a port-gated project refuses download as finished firmware.

Understand it: software and physical model

network.cpp owns connectivity and server state. The handler rejects body lengths above sixty-four characters and parses into a bounded StaticJsonDocument. It accepts only an unsigned integer field in the specified range. Invalid requests do not refresh the last-success timestamp. The display continues to show the last value with a stale label after five seconds. The polling loop avoids an endless connection wait, but the synchronous WebServer library can still spend time handling clients; this baseline is not a hard-real-time or fully asynchronous guarantee.

Connect a client to DisplayLab, read the actual Serial IP and send a local POST whose JSON body contains value. A command using a client’s JSON option should set application/json; a plain-text invalid body should produce a rejection. The first checkpoint is a network diagnostic before integrating data graphics. AP startup failure is observed through Serial and the fresh predicate stays false; a blank value of zero is not treated as proof that a request arrived.

Source review precision: All environments start the AP and accept the bounded /sample POST. Checkpoint1 draws the AP diagnostic; checkpoint2 draws value/freshness; checkpoint3 adds the bar. Five seconds after the last accepted message the value is stale. AP readiness alone does not prove a valid sample.

Canonical code reading map

Real fileSource landmarks (1-based)Lines
workspaces/esp32-wireless-dashboard/include/board_profile.hSupporting declarations / portable helpers5
workspaces/esp32-wireless-dashboard/include/network.hSupporting declarations / portable helpers6
workspaces/esp32-wireless-dashboard/src/main.cpp9: void setup(){Serial.begin(115200); if(!kElectricalReviewComplete){Serial.println("STOP: complete wir; 11: void loop(){if(!ready)return;pollNetwork();uint32_t now=millis();if(!displaylab::elapsed(now,lastUpd20
workspaces/esp32-wireless-dashboard/src/network.cpp14: });server.begin();running=true;Serial.print("Local AP IP: ");Serial.println(WiFi.softAPIP());18
common-libs/DisplayCore/src/DisplayCore.h30: inline bool parsePacket(const char* text,Packet& result){; 40: bool accept(const Packet& p,uint32_t now){60

Read initialization and failure guards first, then the selected DISPLAY_STAGE region and its supporting modules. Source hashes, owners and roles are in code-assets.json. Shared software tests establish portable invariants only. No model substitutes for a physical driver.

Troubleshooting with evidence

Client cannot reach endpoint

Confirm it joined the ESP32 AP, use the printed local IP and inspect the request method/path. Mobile devices may try to leave a network without Internet.

400 or 413 response

Check JSON type/range/length. Quoted numbers and oversized bodies are intentionally rejected rather than coerced.

Display says stale

Send an accepted update and then intentionally stop. Distinguish absence of recent valid data from a broken OLED.

Experiments after the baseline

Use a local Pi script as the sender.

Add schema version and unit fields without unbounded allocation.

Measure the worst client-handler delay and decide if an asynchronous architecture is needed.

Challenge

Add a connection/error page that preserves a last-known measurement without labeling it fresh.

Verification and next work

No physical upload or bench observation occurred. Expected device results are targets. Native test output is recorded separately in validation/host-results.json. Current bounded build attempts are in validation/repair-compile-results.json; historical attempts remain under validation/history/. Embedded compile/link and hardware behavior remain unverified until actual evidence is recorded.

Source records: inventory-club-v3, inventory-member-v14, pio-deps, u8g2-api, u8g2-setup, pio-esp32, pio-ide. Verified repository destinations are recorded in repository-integration.json; only resolved IDs are exposed in relatedLabs/relatedLearnConcepts.

Build evidence and diagnostic references

Current compile attempts: not performed in this pass. Physical Upload and bench observation: not tested.

  • Stage 1: no successful compile in the dated embedded ledger. The supplied electrical-review flag is false.
  • Stage 2: no successful compile in the dated embedded ledger. The supplied electrical-review flag is false.
  • Stage 3: no successful compile in the dated embedded ledger. The supplied electrical-review flag is false.

Historical compile evidence is separate from the original guide's earlier unverified status and does not establish today's build or hardware behavior.

Diagnostics before integration

Technical sources and references