Electrical Systems
Power Distribution
The vending machine's electrical system is powered by a 9V AC-to-DC adapter connected to the Arduino, which regulates and distributes 5V to all components through an internal buck converter—ensuring efficient and safe operation of servos, sensors, LEDs, and the keypad.
Core Components
Servo Motors
Four high-torque 5V servo motors drive the spiral coil dispensers
IR Sensors
Detects whether an item is dispensed successfully
Arduino Mega 2560 Rev3
Central controller for all electrical components, provides I/O for all components
Toggle Switch
Enables reverse motor operation for easy restocking
Specifications
| Component | Voltage | Function |
|---|---|---|
| Servo Motors | 5V, 160mA per motor | Rotates the spiral coil to dispense items |
| IR Sensor | 5V, minimal current draw | Detect item presence |
| LED Strip | 5V, 140mA | Illuminates the interior, signal low stock |
| Arduino Mega 2560 Rev3 | 9V input -> 5V regulated output | Control logic, I/O, power distribution |