Embedded C pill dispenser with wheel calibration, timed dispensing, piezo-based dispense confirmation, non-volatile state storage, and LoRaWAN status reporting.
This project implements an automated pill dispenser designed to reliably dispense medication at scheduled times. The system ensures correct operation through calibration, confirmation mechanisms, and persistent state tracking.
- Wheel-based pill compartment system (8 slots)
- Calibration system for accurate positioning
- Timed dispensing logic
- Piezo sensor for dispense confirmation
- Persistent state storage across power cycles
- LoRaWAN communication for remote monitoring
- Error handling and system validation
The system includes:
- Motor control for rotating the compartment wheel
- Timing logic for scheduled dispensing
- Sensor-based validation to ensure pills are dispensed
- Communication layer for remote status updates
- C
- Embedded systems programming
- LoRaWAN communication
- Non-volatile memory handling
The project emphasizes reliability and fault tolerance, which are critical for real-world medical device scenarios.