Skip to content

Other Devices

Dario edited this page Dec 23, 2018 · 17 revisions

The money box monitors requires a few additional devices to work:

  • a microswitch to detect presence of coin container;
  • a microswitch to detect if door is closed properly;
  • a pushbutton to reset amount;
  • a passive buzzer to provide acoustic feedback;

Connections

Arduino Pin Function
A0 coin container microswitch
A1 amount reset pushbutton
A2 door microswitch
D3 passive buzzer

Library

Two (very) basic libraries have been developed to abstract buttons/switchs and buzzer behaviour.
Button_1.0
Beeper_1.0

(next - Appendix A: State Machine)