Back to engineering archive

Record 048 / Connected systems

Two-board controller CAN/PWM draft

The archived main/display pair for a hydrogen-controller project separates external CAN acquisition from a touch/OLED interface. Inter-board CAN carries status and settings; manual and optional test outputs require explicit enabling.

Archived integration draft
ESP32 targetCANTWAIMCP2515 APIPWMOLED / touch

Archived source flow

Selected archived main-loop and automatic CAN-start path. Boot clears both output flags and requests zero outputs, then initializes the inter-board CAN link. Each loop handles serial commands and private CAN, checks the pending automatic-start/display readiness conditions, services external CAN, services explicitly enabled output-test paths and requests zero outputs when load flags disallow them. This depicts software intent, not hardware safety or successful board communication.
Selected main-loop and automatic-start gate from archived v76 source. Software checks are shown; hardware interlocks, calibration and vehicle compatibility are unverified. View diagram at full size

Technical notes

Two CAN paths

The main draft uses ESP32 TWAI for external CAN and an MCP2515 interface for the display link. The display draft receives status and telemetry, renders an OLED interface and sends touch or setting commands back. Its 23 setting indices match the main draft.

Startup and settings

Both output flags are false at boot. The automatic CAN-start gate waits for a recent display acknowledgement and setup/OLED/CAN status flags before starting a detection phase. Settings are transmitted in a rotating sequence. Serial or display commands can also select CAN modes; the diagram shows the automatic gate only.

Output and evidence limits

Manual setters require output-enable and machine-on flags; optional automatic test modes add their own enable flags. External CAN includes OBD requests, so it is not universally passive. The v76 labels identify archived source, not a tested release. Some vehicle-specific fields are placeholders; calibration, physical output behaviour, vehicle compatibility, safety certification and emissions benefits are not established.

Engineering archiveArchive record

Project enquiries

Discuss your project.

Tell us what you’re developing and where you need engineering support.

Discuss your project