Industrial & Biomedical Automation · Intermediate · Logging
ESP32 SD Card Data Logger
Samples to a card with a real header row, and keeps logging when the network drops.
Firmware status: Generated from this project's own pin map and compiled with arduino-cli for esp32:esp32:esp32 before publication; bench validation on your hardware is still required..
Hardware scope
SPI card access, append-with-flush writes, sensor sampling on a fixed interval. Pins assigned by the generator: sense → GPIO34, sd cs → GPIO4.
Components
- ESP32 board
- microSD card module (SPI)
- FAT32-formatted card, 32 GB or smaller
- Analog sensor
- Jumper wires
Tools
- USB programming cable
- Multimeter
- Current-limited bench supply (for anything that switches a load)
- Small screwdriver and wire cutters
Build steps
- Format the card as FAT32 and insert it before powering up.
- Flash and confirm the card type and the created header row in the log.
- Watch samples land, then remove the card while running and confirm the sketch reports it and continues.
- Open the CSV in a spreadsheet: the columns should line up on the first try.
Test and expected result
A header row and one row per sample, correct CSV structure, and the sketch survives the card being pulled.
Acceptance checks
csv parses, rows flushed, missing card reported and survived
Safety and limits
A card removed during a write can be corrupted. Power down before removing it, or accept that the log may end abruptly.
Guide source: Generated from this project's own pin map and compiled with arduino-cli for esp32:esp32:esp32 before publication; bench validation on your hardware is still required.
Download connection diagram SVG
Related projects
- Soft-Grip Servo Hand — Low-cost haptic mechanism designed around gentle contact with human-safe test objects.
- Tiny Conveyor Sorter — Tabletop conveyor line with presence sensing and servo diverter.
- Color-Based Part Sorter — Sensor-guided sorting of known, non-hazardous tabletop parts.
