Loading 3D model… large boards can take a moment.
This project implements a dual-mode ESP32 application for capturing and storing CAN bus data onto an SD card,
while also providing a temporary WiFi access point with a web-based file browser to retrieve logged data.
CANxxxxx.BIN.fsync() to ensure data integrity.CAN_RX Task: Receives frames from TWAI driver.CAN_Proc Task: Packs messages into binary structures.SD_Writer Task: Buffers and writes batches to SD card.cangen can0 -D i -I i -L 4 -g 0.5 resulted in a transmission rate of | ESP32 Pin | Function | Connected To | Notes |
|---|---|---|---|
| GPIO1 | SPI MOSI | SD Card MOSI | Data out from ESP32 → SD |
| GPIO3 | SPI MISO | SD Card MISO | Data in from SD → ESP32 |
| GPIO2 | SPI SCLK | SD Card SCLK | SPI clock |
| GPIO41 | SPI CS | SD Card CS | Chip select |
| GPIO9 | CS | LCD Chip Select | Active low |
| GPIO10 | PCLK | LCD SPI Clock / Pixel Clock | QSPI clock |
| GPIO11 | DATA0 | LCD Data 0 (D0) | QSPI data line |
| GPIO12 | DATA1 | LCD Data 1 (D1) | QSPI data line |
| GPIO13 | DATA2 | LCD Data 2 (D2) | QSPI data line |
| GPIO14 | DATA3 | LCD Data 3 (D3) | QSPI data line |
| GPIO21 | RST | LCD Reset | Optional, active low |
| GPIO18 | CAN TX | CAN Transceiver TXD | Transmit to CAN bus |
| GPIO17 | CAN RX | CAN Transceiver RXD | Receive from CAN bus |
| 3V3 | Power | SD Card VCC, CAN VCC | Ensure 3.3V compatible |
| GND | Ground | SD Card GND, CAN GND | Common ground reference |
| CANH/— | — | CAN Bus High Line | Differential bus line |
| CANL/— | — | CAN Bus Low Line | Differential bus line |
ESP32 Development Board
SD Card Module (SPI interface)
CAN Transceiver (connects ESP32 to CAN bus)
| Number | Part | Qty | Picture | Source |
|---|---|---|---|---|
| 1 | ESP32-S3 1.64inch AMOLED Touch Display Development Board | 1 | AMOLED Touch Display Development Board | |
| 2 | SN65HVD230 CAN Board | 1 | SN65HVD230 CAN Board | |
| 3 | Step Down Converter Modul | 1 | Step Down Converter Modul | |
| 4 | M12 5 Pin Cable Connector | 1 | M12 5 Pin Cable Connector | |
| 5 | micro sd card | 1 | ||
| 6 | M2x5 round screw | 4 | ||
| 7 | M2.5x5 countersunk screw | 1 | ||
| 8 | M2.5x4 insert | 1 | ||
| 9 | Optional: SD-TF-extension-cable | 1 | SD-TF-extension-cable |
If you see warnings like:
it means the producer tasks (CAN reception/formatting) are temporarily faster than the consumer (SD writer).
The firmware includes several mitigations:
Additional steps you can take
Notes
No comments yet. Be the first to ask about this board.