MuTech RoboticsLearning Hub
Kids OK with adultESP32Level 2/3

Smart Medicine Box

At dose time the box beeps. A lid sensor confirms it was opened and the family gets a message.

Smart Medicine Box
Kids OK, with an adult

DIY project. Children must build this only with an adult (16+ years) beside them at all times. Not suitable for children under 8 years.

Power the clock module from 3V3, not 5V: its pull-ups would put 5V on the ESP32's I2C pins.

Strictly follow the description given with this video.

Video

The video link will be added here soon.

How it works

  1. The DS3231 clock knows the exact dose times.
  2. At dose time the buzzer beeps.
  3. A magnet on the lid moves away from the reed switch when the box is opened.
  4. Opened = a 'taken' message; not opened in time = a 'missed' alert.

Parts you need

  • ESP32 dev board× 1Buy
  • DS3231 real-time clock× 1Buy
  • Reed switch module + magnet (lid)× 1Buy
  • Buzzer× 1Buy
Kit for this projectPrice on request
Get the kit

Wiring

Wiring diagram
PowerGroundSignal
#FromConnect to
1 SignalRTC SDAESP32 D21
2 SignalRTC SCLESP32 D22
3 PowerRTC VCCESP32 3V3
4 GroundRTC GNDESP32 GND
5 SignalLid reed DOESP32 D23
6 PowerReed VCCESP32 3V3
7 GroundReed GNDESP32 GND
8 SignalBuzzer +ESP32 D13
9 GroundBuzzer −ESP32 GND

3D print files

This project has no 3D-printed parts.

Code

The tested Arduino / ESP32 code for this project will be posted here, ready to copy.