Smart Medication Dispenser Design


Work completed
  • Project description updated to “Smart Medication Dispenser Controller – ESP32-Based with Dual Stepper Drivers, DS3231 RTC, Robust 12 V Power Tree, and Comprehensive Sensor/UI Interfaces”.
  • Added major ICs:
  • Added power components:
    • Reverse-polarity protection and TVS diode on the 12 V input
    • 5 V switch-mode buck converter stage
    • SGM2212-3.3XKC3G/TR as U2 for 3.3 V LDO
Tasks not done
  • Creating or saving the mermaid system architecture diagram (star-ground, domains) — you’ll need to supply that diagram manually.
  • Adding the NPN transistor for the buzzer driver.
  • Populating supporting passives:
    • Bulk (100 µF) and high-frequency decoupling caps (0.1 µF, 1 µF)
    • Buck converter inductors
    • I2C pull-ups (4.7 kΩ)
    • Flyback diode for the buzzer
    • RC-debounce footprints for the reed switch (DNP)
  • Adding connectors and headers:
    • 12 V barrel jack and motor (VMOT) connectors
    • I2C, UART, GPIO expansion, programming header, I2C OLED header
  • Wiring nets (power rails, I2C, STEP/DIR, sensors, LEDs, buzzer)
  • Schematic ERC and layout preparation (stackup, board shape, star-ground copper pour)
Success criteria review
  • Complete schematic coverage: ❌ not yet (passives, connectors, net wiring missing)
  • PCB layout (100×80 mm, motor/logic segregation, star-ground, trace widths): ❌ not yet
Next recommended step
Add the NPN transistor and flyback diode for the piezo buzzer driver, then proceed with placing all supporting passives in the power subsystem.

Flux stopped