Skip to content

Other Devices

Dario edited this page Jan 10, 2019 · 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

Other Devices

Library

Two (very) basic libraries have been developed to abstract buttons/switchs and buzzer behaviours.

Note: the button library implements debouncing logic.

(next - Conclusion)