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 / 18

Final Display Console

Build a modular sensor/network device with page state, persistent settings and visible failures.

Firmware source authored · compile not attempted in this pass

What you'll build

Bring up the verified OLED and DHT11 path as separate modules.

First result after hardware review: Measurement page shows valid temperature/humidity or an explicit sensor error.

What you need

Check availability and exact module markings before starting.

Connections / current hardware gate

Before connecting power. Qualify the SSD1309 carrier, DHT11 voltage and button wiring before integration. Network and NVS features are stage-specific; SD, RTC and touch are not baseline implementations.

  • Establish the reviewed OLED/sensor and input baselines first.
  • Keep the supplied multi-file layout and shared library intact when opening the complete project.
  • Test each subsystem's errors separately after qualification; stage 2 intentionally has no network/NVS integration.

Start building

  1. 1

    Acquisition and screen

    Bring up the verified OLED and DHT11 path as separate modules.

  2. 2

    Input and page model

    Add page navigation with independent debounced input.

  3. 3

    Persistent/network integration

    Add local HTTP JSON input and NVS page persistence.

Download complete PlatformIO project

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

Troubleshooting

Complete device shows sensor error

Return to the raw DHT checkpoint and identify pin/type/polling failure. Do not debug the whole network/UI stack at once.

Page not restored

Check NVS begin/write results and stored enum range. Distinguish a failed save from a wrong displayed page.

Stale value appears current

Inspect the last accepted request time. Invalid requests, render cycles and a running AP must not refresh measurement freshness.

More detail

Foundations, safety and learning objectives

420 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.
  • Build a modular sensor/network device with page state, persistent settings and visible failures.
  • This capstone is a small embedded product rather than a list of unrelated sensor demos.
System diagram and electrical boundaries
Final Display Console · subsystem relationships

Show the meaningful subsystem and signal/power boundary for Final Display Console. 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
  • DHT11 humidity-temperature moduleClub-owned
  • Small tactile pushbuttonClub-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
  • DHT11 humidity-temperature moduleDHT11 digital dataELEGOO ESP-WROOM-32 development boardConditional reference
  • Small tactile pushbuttonActive-low buttonELEGOO ESP-WROOM-32 development boardConditional reference

Power and common reference boundary

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

Interfaces: GPIO · I2C · WiFi · HTTP

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
  • product family verified · preflight required

    Compatibility and unresolved details
    • Contact/header current rating: Unverified; use as signal input
  • product family verified · preflight required

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.

DHT11 humidity-temperature module
verified DATA label
ELEGOO ESP-WROOM-32 development board
GPIO26
DHT11 digital data
3.3 V
Conditional reference

Choose a compatible module supply and data pull-up; do not apply 5 V DATA to ESP32.

Small tactile pushbutton
contact side A
ELEGOO ESP-WROOM-32 development board
GPIO27
Active-low button
3.3 V
Conditional reference

Other contact side to GND; INPUT_PULLUP.

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/final-console

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

  • olikraus/U8g2@2.36.5
  • adafruit/DHT sensor library@1.4.6
  • adafruit/Adafruit Unified Sensor@1.1.15
  • bblanchon/ArduinoJson@6.21.5

workspaces/final-console/src/main.cpp

main.cpp
#include <Arduino.h>
#include <DisplayCore.h>
#include "board_profile.h"
#include "display.h"
#include "sensors.h"
#include "ui.h"
#include "network.h"
#include "storage.h"
bool ready=false,storageOk=false;uint32_t drawn=0;
void setup(){Serial.begin(115200); if(!kElectricalReviewComplete){Serial.println("STOP: complete wiring/power review in guide before enabling hardware.");return;}beginDisplay();beginSensors();
 #if DISPLAY_STAGE >= 3
 storageOk=beginStorage();beginUi(loadPage());beginNetwork();
 #else
 beginUi(0);
 #endif
 ready=true;}
 void loop(){if(!ready)return;uint32_t now=millis();pollSensors(now);const bool changed=pollUi(now);
 #if DISPLAY_STAGE >= 3
 pollNetwork();if(changed)storageOk=savePage(page());
 #endif
 if(!changed&&!displaylab::elapsed(now,drawn,250))return;drawn=now;
 #if DISPLAY_STAGE == 1
 drawConsole(0,reading(),false,0,false);
 #elif DISPLAY_STAGE == 2
 drawConsole(page(),reading(),false,0,false);
 #else
 drawConsole(page(),reading(),networkFresh(now),networkValue(),storageOk);
 #endif
 }
Source integrity · SHA-2565911cd8f34e79875ea610dd326152918ddcb9d09bbde711c6bec17a2ecf55152

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.

Build a modular sensor/network device with page state, persistent settings and visible failures.

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

This capstone is a small embedded product rather than a list of unrelated sensor demos. The OLED is the main user interface, the button selects pages, DHT11 supplies local acquisition, a local HTTP endpoint supplies remote input, and ESP32 NVS stores the selected page. It is intentionally based on the classic ESP32 and inventory-established SSD1309 path. Touch, SD and a second display are well-defined optional expansions, not falsely implemented baseline features.

Before you start

Estimated learning time: 420 minutes, excluding unresolved hardware/port work. Required prerequisites: display-esp32-wireless-dashboard, display-lcd-menu-system, 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
club:dht11-humidity-temperature-moduleCLUB_OWNED4PREFLIGHT_REQUIRED
club:pushbutton-smallCLUB_OWNED20PREFLIGHT_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.
club:dht11-humidity-temperature-module / verified DATA labelclub:elegoo-esp-wroom-32-development-board / GPIO26DHT11 digital data3.3 / CONDITIONAL_REFERENCEChoose a compatible module supply and data pull-up; do not apply 5 V DATA to ESP32.
club:pushbutton-small / contact side Aclub:elegoo-esp-wroom-32-development-board / GPIO27Active-low button3.3 / CONDITIONAL_REFERENCEOther contact side to GND; INPUT_PULLUP.
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/final-console in VS Code/PlatformIO. Configuration: workspaces/final-console/platformio.ini. Platform: espressif32@6.12.0. Board/framework: esp32dev / arduino. Dependencies: olikraus/U8g2@2.36.5, adafruit/DHT sensor library@1.4.6, adafruit/Adafruit Unified Sensor@1.1.15, 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
Acquisition and screenBring up the verified OLED and DHT11 path as separate modules.checkpoint1Measurement page shows valid temperature/humidity or an explicit sensor error.
Input and page modelAdd page navigation with independent debounced input.checkpoint2The button cycles Environment, Network and Diagnostics. Networking/NVS are disabled at this checkpoint: Network is stale/zero and Diagnostics reports NVS unavailable.
Persistent/network integrationAdd local HTTP JSON input and NVS page persistence.checkpoint3Freshness and storage errors are visible; the chosen page survives reboot when persistence succeeds.

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

main coordinates display, sensors, ui, network and storage modules. Each has a narrow header contract and owns its internal state. Sensor polling at two seconds is independent from 250 ms drawing and per-loop input/server work. Validity and freshness remain distinct. Preferences opens a named NVS namespace, validates the stored page domain and checks write results. Saves happen after a page change rather than every loop, limiting pointless repeated writes. This still needs a wear policy for a product with extremely frequent changes.

Integration should preserve evidence from individual subsystems. Run the acquisition checkpoint before networking, then input/page state, then persistence/HTTP. The third page reports a storage-success state; it is not a general flash-health test. The baseline has no SD CSV log or calendar clock. Adding them requires an adapter/voltage/RTC contract and recovery tests, not merely including another header. The display library’s full-buffer allocation and synchronous server work constrain response time, so measure longest loop duration before adding higher-rate tasks.

Source review precision: Checkpoint1 always renders the Environment page, though input polling still runs. Checkpoint2 exposes three pages while network and NVS initialization remain disabled: the network is stale with value zero and the diagnostic reports NVS unavailable. Checkpoint3 adds the actual AP/server and NVS page restoration/writes. No SD logging or touch driver is part of this baseline.

Canonical code reading map

Real fileSource landmarks (1-based)Lines
workspaces/final-console/include/board_profile.hSupporting declarations / portable helpers5
workspaces/final-console/include/display.hSupporting declarations / portable helpers5
workspaces/final-console/include/network.hSupporting declarations / portable helpers6
workspaces/final-console/include/sensors.hSupporting declarations / portable helpers6
workspaces/final-console/include/storage.h4: uint8_t loadPage();; 5: bool savePage(uint8_t page);5
workspaces/final-console/include/ui.hSupporting declarations / portable helpers5
workspaces/final-console/src/display.cpp6: void beginDisplay(){Wire.begin(21,22);screen.setI2CAddress(kOledAddress7<<1);screen.begin();screen.s11
workspaces/final-console/src/main.cpp10: void setup(){Serial.begin(115200); if(!kElectricalReviewComplete){Serial.println("STOP: complete wir; 12: storageOk=beginStorage();beginUi(loadPage());beginNetwork();; 17: void loop(){if(!ready)return;uint32_t now=millis();pollSensors(now);const bool changed=pollUi(now);; 19: pollNetwork();if(changed)storageOk=savePage(page());29
workspaces/final-console/src/network.cpp14: });server.begin();running=true;Serial.print("Local AP IP: ");Serial.println(WiFi.softAPIP());18
workspaces/final-console/src/sensors.cpp6: void beginSensors(){dht.begin();}8
workspaces/final-console/src/storage.cpp4: bool beginStorage(){open=preferences.begin("displaylab",false);return open;}; 5: uint8_t loadPage(){const auto page=open?preferences.getUChar("page",0):0;return page<3?page:0;}; 6: bool savePage(uint8_t page){return open&&page<3&&preferences.putUChar("page",page)==1;}6
workspaces/final-console/src/ui.cppSupporting declarations / portable helpers7
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

Complete device shows sensor error

Return to the raw DHT checkpoint and identify pin/type/polling failure. Do not debug the whole network/UI stack at once.

Page not restored

Check NVS begin/write results and stored enum range. Distinguish a failed save from a wrong displayed page.

Stale value appears current

Inspect the last accepted request time. Invalid requests, render cycles and a running AP must not refresh measurement freshness.

Experiments after the baseline

Add an encoder using an independently verified input decoder.

Add SD logging with bounded writes and power-loss recovery policy after adapter verification.

Add a small secondary display through a safe bus boundary.

Challenge

Add an integration test mode that injects sensor failure, stale data and failed persistence without changing hardware drivers.

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, preferences, json-lib, dht-lib, 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