How auxinnepaul/pads_vending_machine_with_coin_acceptor works
This is proof-of-concept ESP32 firmware for a coin-operated sanitary-pad vending machine. The principal workflow is coin detection, vend control and pad delivery, with pay-on-delivery protecting credit if a vend fails. The README also documents stock sensing, a customer retry button, and serial-console setup and diagnosis. The sketch was not excerpted, so the graph uses the README for relationships and does not infer internal call structure beyond these documented stages.
Main entry points: pads_vending_machine_with_coin_acceptor.ino Credit and vend
Components 14
Vend control
- Coin detection
pads_vending_machine_with_coin_acceptor.ino - Credit and vend
pads_vending_machine_with_coin_acceptor.ino - Stock guard
pads_vending_machine_with_coin_acceptor.ino - Pad delivery
pads_vending_machine_with_coin_acceptor.ino
Operator interface
- Serial console
pads_vending_machine_with_coin_acceptor.ino - Setup and diagnosis
pads_vending_machine_with_coin_acceptor.ino
Machine hardware
- Coin acceptor
- Pad stock switch
- Retry button
- Motor relay
- Motor and coil
- LCD
- Buzzer
Other components
- Customer
Connections 13
- Customer → Coin acceptor: inserts coin
README.md - Coin acceptor → Coin detection: sends pulses
README.md - Coin detection → Credit and vend: registers credit
README.md - Pad stock switch → Stock guard: signals stock
README.md - Stock guard → Credit and vend: gates acceptance
README.md - Retry button → Credit and vend: requests retry
README.md - Credit and vend → Pad delivery: starts vend
README.md - Pad delivery → Motor relay: drives
README.md - Motor relay → Motor and coil: switches
README.md - Customer → Serial console: enters commands
README.md - Serial console → Setup and diagnosis: configures and diagnoses
README.md - Setup and diagnosis → LCD: reports status
README.md - Setup and diagnosis → Buzzer: signals
README.md