FreeRTOS data logger with SD card and web view
Split an ESP32 program into FreeRTOS tasks: one reads a sensor, one writes to an SD card, one serves a web page, all talking through a queue.
What this proves to recruiters
- You can design with an RTOS, as most embedded products do.
- You understand tasks, queues and priorities.
- You can avoid race conditions.
Skills you will use
- FreeRTOS
- Tasks and queues
- SD card (SPI)
- Concurrency
Parts list
You can buy the listed parts online here:
| Part | Qty | Approx. price | Shop |
|---|---|---|---|
| ESP32 DevKit V1 board | 1 | ₹400 | Find on Amazon |
| BMP280 pressure and temperature sensor module | 1 | ₹120 | Find on Amazon |
| microSD card module | 1 | ₹60 | Find on Amazon |
| microSD card, 8 GB or more | 1 | ₹250 | Find on Amazon |
| Breadboard, 830 points | 1 | ₹90 | Find on Amazon |
| Jumper wire set (male-male and male-female) | 1 | ₹120 | Find on Amazon |
| Total, about | ₹1,050 | ||
Prices are rough online prices in India and change with the seller. You may already have some parts, or find them in your college lab.
As an Amazon Associate I earn from qualifying purchases. Buying through these links costs you nothing extra and helps keep this site free.
Free software
- ESP-IDF or Arduino IDE with ESP32 support
Steps
- Draw your tasks and how data moves between them before writing code.
- Create a sensor task that reads every second and sends a struct to a queue.
- Create an SD task that waits on the queue and appends each reading to a CSV file.
- Create a web task that shows the latest reading, protected by a mutex.
- Give the sensor task the highest priority and explain why.
- Pull the SD card out while running and make the program recover without crashing.
Make it stand out
- Add a watchdog that restarts a stuck task.
- Measure each task’s stack use and trim it.
Put it on your resume
Designed a FreeRTOS data logger on ESP32 with producer-consumer tasks, a queue and mutex-protected shared state; logged to SD and served a web view.
Replace each [x] with a number you measured. Real numbers make a line believable.
Keep going
This project fits stage 3, “RTOS and system design”, of the Embedded systems and firmware roadmap. See also how freshers get into embedded C developer jobs.
More Embedded systems and firmware projects
- Wi-Fi thermometer with an OLED displayBeginner1 weekend~₹1,050
- Bare-metal I²C driver on STM32Intermediate2–3 weekends~₹1,900
- Smart plant watering with a phone dashboardBeginner1–2 weekends~₹900
- Line-following robot with PID controlIntermediate2–3 weekends~₹1,850
- Linux character driver for an LED on Raspberry PiAdvanced3–4 weekends~₹5,900