r/ArduinoProjects • u/milosrasic98 • 11h ago
Showcased Project I Hid an ESP32 and 7 Hall Effect Sensors Inside a 3D Printed Pillbox to Check if Grandma Took Her Pills
My grandma takes a lot of medication throughout the day, and when everyone is at work nobody can double check whether she took the right pills at the right time. So I made a pillbox that looks like an ordinary plastic box, but knows when each of its lids has been opened.
There is no screen, no LEDs and no buttons on purpose, she shouldn't even know there are electronics inside. Each lid has a small magnet on it, and behind a thin plastic wall there is a long thin PCB with 7 hall effect sensors, one for each day of the week, and a XIAO ESP32-C3. The ESP32 hosts a small web dashboard on the local network where you can see the lids live, set up the schedule and check the history. In the video you can see the dashboard on the laptop behind picking up every lid I open.
The enclosure is 3D printed, and the clear lids are cut out of a 4 mm polycarbonate sheet. Funny enough, it ended up looking really close to the sketches I drew for it back in 2023.
It is a V0 and definitely not a medical device, it can only tell that a lid was opened, not that the pill was actually taken. That part is next on the list!
I documented the whole build, including the mistakes I made on the PCB, in a video for element14 presents: https://www.youtube.com/watch?v=0s0xqveTLLo
The whole thing is open-source, so the PCB files, CAD files, firmware and the dashboard are all on GitHub: https://github.com/MilosRasic98/EasyPillV0