Testing / Displays / 13
E-Ink Information Board
Coalesce slow display updates, preserve provenance and plan stale/offline presentation.
Host software model · physical driver still required
What you'll build
Coalesce content changes into a low-rate update request.
First model result: The host run verifies two scheduled update requests.
What you need
A computer with VS Code, PlatformIO and a working native C++ toolchain. No display hardware is needed for this model.
The eventual physical port also requires the following hardware; it is not needed to run stages 1 and 2.
Check availability and exact module markings before starting.
Connections / current hardware gate
Before connecting power. The supplied host model demonstrates scheduling policy only. It does not render an offline display, store records or implement a physical e-paper driver.
- Run the native scheduling fixture without connecting display hardware.
- Keep its example refresh interval distinct from a panel specification.
- A physical information board still needs the exact G driver, verified electrical interface and a separate implementation of the stated presentation features.
Start building
- 1
Refresh policy model
Coalesce content changes into a low-rate update request.
- 2
Offline presentation contract
Inspect the scheduler policy disclaimer and design offline presentation separately from this executable scheduling fixture.
- 3
Physical information board port
Bind local sample records and layout to the verified exact panel driver.
Physical driver not implemented · no firmware download
Download host models (stages 1–2)
Each stage has its exact environment, complete source and expected result. Editor and tools setup →
Troubleshooting
Refresh on every loop
Check dirty-state and eligibility logic rather than adding delay inside the display driver.
Stale image mislabeled current
Record source acquisition time and display update time separately. Retained pixels alone cannot reveal system failure.
Repeated updates of identical content
Compare meaningful normalized content, not irrelevant field order or fetch time, before marking the layout dirty.
More detail
Foundations, safety and learning objectives
230 minutes · Editorial learning estimate excluding unresolved procurement/driver-port time
Two host-model checkpoints and an unimplemented physical driver gate.
- Keep electrical review false until the exact wiring/power/logic checklist is completed.
- No power budget is inferred from successful compilation.
- Coalesce slow display updates, preserve provenance and plan stale/offline presentation.
- A persistent display is well suited to information that changes slowly.
System diagram and electrical boundaries
Show the meaningful subsystem and signal/power boundary for E-Ink Information Board. Conceptual system view; physical connections remain conditional.
- ELEGOO ESP-WROOM-32 development boardClub-owned
- Waveshare 3.5-inch e-Paper (G) with driver boardClub-owned
The model does not communicate with the screen. Stage 3 requires the exact board and driver integration.
Signals and interfaces
No physical connection is specified for this boundary.
Power and common reference boundary
- Waveshare 3.5-inch e-Paper (G) with driver boardExact G-driver contractELEGOO ESP-WROOM-32 development boardUnresolved · do not wire
- display/peripheralSignal referencecontrollerConditional reference
- display/peripheralPeripheral powerverified supplyConditional reference
Interfaces: SPI · BUSY
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.
- Physical driver port required.
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.
product family verified · preflight required
Compatibility and unresolved details
- Resolution: 384 × 184
- Colors: Red, yellow, black, white
- Interface: SPI
- Driver-board supply/logic revision: Verify board labels/manual
- ELEGOO ESP-WROOM-32 development boardClub-owned
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 / pin | To device / pin | Signal / voltage | Connection status and notes |
|---|---|---|---|
Waveshare 3.5-inch e-Paper (G) with driver boardVCC/GND/DIN/CLK/CS/DC/RST/BUSY | ELEGOO ESP-WROOM-32 development boardPin unresolved | Exact G-driver contract Voltage unresolved | Unresolved · do not wire Board revision and exact driver must establish pin mapping, allowed rails, reset and BUSY contract. |
display/peripheralGND | controllerGND | 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/peripheralVCC | verified supplyPin 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/eink-information-board
Stages 1 and 2 only; no physical stage 3 firmware is included.
workspaces/eink-information-board/src/main.cpp
#include <DisplayCore.h>
#include <iostream>
#include <cassert>
int main(){uint32_t lastRefresh=0;bool changed=true,busy=false;unsigned updates=0;
for(uint32_t now=0;now<=180000;now+=1000){
if(changed&&!busy&&displaylab::elapsed(now,lastRefresh,60000)){++updates;lastRefresh=now;changed=false;}
if(now==90000)changed=true; // new local content; defer to the next allowed slot
}
assert(updates==2);std::cout<<"coalesced slow-display update requests: "<<updates<<"\n";
#if DISPLAY_STAGE >= 2
std::cout<<"Refresh interval is a policy example, not a verified panel limit or driver.\n";
#endif
}
Source integrity · SHA-256
e9f38214a2157823efb28651e44144c0e9dce6d44124f0b6ae6c8675dc0c3cebRaw 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.
Coalesce slow display updates, preserve provenance and plan stale/offline presentation.
Status: ARCHITECTURE_COMPLETE_PORT_REQUIRED. SOFTWARE_MODEL_AUTHORED; embedded build NOT_APPLICABLE_HOST_MODEL; hardware NOT_TESTED. Two host-model checkpoints and an unimplemented physical driver gate.
What you are building
A persistent display is well suited to information that changes slowly. Calendar-style local content, a club schedule or a sensor summary can remain visible between updates. The danger is also persistence: an old image can appear current after software or power failure. Therefore an information board needs an explicit last-updated field or stale/offline indication in its content model.
Before you start
Estimated learning time: 230 minutes, excluding unresolved hardware/port work. Required prerequisites: display-eink-hello-world. 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 ID | Access scope | Expected snapshot quantity | Preflight |
|---|---|---|---|
| club:elegoo-esp-wroom-32-development-board | CLUB_OWNED | 3 | PREFLIGHT_REQUIRED |
| club:e-ink-display-with-driver-pcb | CLUB_OWNED | 1 | PREFLIGHT_REQUIRED |
Checkpoints1/2 run on a computer and require no connected display, MCU or physical wiring. The table describes the later physical checkpoint.
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.
| From | To | Signal | Voltage / gate | Condition |
|---|---|---|---|---|
| club:e-ink-display-with-driver-pcb / VCC/GND/DIN/CLK/CS/DC/RST/BUSY | club:elegoo-esp-wroom-32-development-board / None | Exact G-driver contract | None / UNRESOLVED_DO_NOT_WIRE | Board revision and exact driver must establish pin mapping, allowed rails, reset and BUSY contract. |
| display/peripheral / GND | controller / GND | Signal reference | 0 / 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 / None | Peripheral power | None / CONDITIONAL_REFERENCE | Supply voltage/current unknown at carrier level until reviewed; no assumed 5 V or 3.3 V instruction. |
Software setup and dependencies
Open workspaces/eink-information-board in VS Code/PlatformIO. Configuration: workspaces/eink-information-board/platformio.ini. Platform: native@1.2.1. Board/framework: host computer / native C++. Dependencies: no external lib_deps. Dependency resolution occurs during build; an include is not an installation. See LIBRARY_MATRIX.md and COMPILATION_AUDIT.md for exact verification limits. These are native software models. Run .pio/build/checkpoint1/program or .pio/build/checkpoint2/program after a successful native build. Do not upload them to a display board. Direct-GCC reproduction is available through python3 validation/host_tests.py from the package root.
Build it: checkpoint path
| Stage | Goal | Environment | Expected / gate |
|---|---|---|---|
| Refresh policy model | Coalesce content changes into a low-rate update request. | checkpoint1 | The host run verifies two scheduled update requests. |
| Offline presentation contract | Inspect the scheduler policy disclaimer and design offline presentation separately from this executable scheduling fixture. | checkpoint2 | The executable still verifies two update requests, then prints that its interval is a policy example. It does not implement timestamps, offline storage or stale-layout rendering. |
| Physical information board port | Bind local sample records and layout to the verified exact panel driver. | PORT_REQUIRED | PORT_REQUIRED: no hardware refresh or partial-update support is claimed. |
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
The authored scheduler model changes content independently from refresh eligibility. A change is retained until the next permitted request rather than discarded or causing an immediate full refresh. The example uses a sixty-second request policy to test coalescing; it is not a researched minimum interval for the actual panel. The physical port must combine that policy with the vendor BUSY sequence, full-refresh requirements and board power state. Partial refresh is disabled in the plan until this exact four-color panel/driver supports it.
The base content source should be a small local fixture with no private keys or inaccessible service. A later Pi/ESP32 fetcher can publish validated records with timestamps, but network arrival must not be equated with truth. Keep validation, layout composition and physical update as separate subsystems. If content arrives during a refresh, retain the newest desired state and schedule another permitted update after the current operation completes.
Source review precision: Both native checkpoints execute the same two-request scheduler assertion. Checkpoint2 adds a policy disclaimer only. Offline timestamps, retained-record persistence, missing-data presentation and BUSY fault simulation are design exercises, not implemented model behavior. No native output is a panel refresh.
Canonical code reading map
| Real file | Source landmarks (1-based) | Lines |
|---|---|---|
| workspaces/eink-information-board/src/main.cpp | 4: int main(){uint32_t lastRefresh=0;bool changed=true,busy=false;unsigned updates=0; | 13 |
| common-libs/DisplayCore/src/DisplayCore.h | 30: 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
Refresh on every loop
Check dirty-state and eligibility logic rather than adding delay inside the display driver.
Stale image mislabeled current
Record source acquisition time and display update time separately. Retained pixels alone cannot reveal system failure.
Repeated updates of identical content
Compare meaningful normalized content, not irrelevant field order or fetch time, before marking the layout dirty.
Experiments after the baseline
Use a local schedule fixture and simulate a network outage.
Separate acquisition timestamps from display-update timestamps.
Measure changes accumulated during a long physical refresh after port validation.
Challenge
Design a persistent stale indicator that still tells the truth after the computing layer loses power.
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/. The exact physical driver is still PORT_REQUIRED.
Source records: inventory-club-v3, inventory-member-v14, pio-deps, epaper-product, epaper-manual, 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.
- Stage 2: no successful compile in the dated embedded ledger.
- Stage 3: no successful compile in the dated embedded ledger.
Historical compile evidence is separate from the original guide's earlier unverified status and does not establish today's build or hardware behavior.
Technical sources and references
- PlatformIO dependencies
Dependency installation occurs during package/build processing
- Waveshare 3.5-inch G product
384×184, red/yellow/black/white; driver/board compatibility still required
- Waveshare exact G manual
Direct fetch blocked; no driver timing/palette transport inferred
- Official PlatformIO IDE installation
Official VS Code extension includes Core and project environment tasks