กลับไปหน้ารวมไฟล์
smart-coin-dispenser-b34ab9-en.md

This is another "Thing" I made inspired in my previous project Cuckoo IR Alexa exploring the home automation with the combo " Alexa and Universal Remote Control" people who loves (oh my...) Alexa, use to have. As mentioned before in the Cuckoo project, it will work with any other voice assitants.

This project uses an ordinatry Nano board, Servo, Keypad and an IR receiver led. No need the Arduino Iot Cloud.

The nerdie fountain of wishes.

Browsing for project ideas, I start to give attention to these ingenious pet feeders. So do I need a pet feeder? No. I need a... Money Dispenser! kkkkkkk.

The here comes the idea: A coin dispenser. A device who give an exact amount of them.

Nothing exceptional, Some Servo motor with a lever that pushes the coins with a keypad command to set que amount needed.

This can be done in a infinite ways... Distance Sensor, proximiy sensor, light sensor, push buttons, etc.

This is also be developed with lcd, oled displays, password security, and so on.

But my thing is keep it as simple as possible. Only push a number on keypad and retrieve de coins.

And finally, the voice comand like " Alexa, give me 3 coins" and get them.

The device at that time will be operated manually (boring...) and through voice commands (yep").

Construction: Some Legos do hold the Servo and serve as base for the coins to be dropped down.

Construction: Lego blocks in place, power outlet and a tube for the coin pile.

Its unbelievable but I forgot to photograph the assembling with Arduino and all the wiring...my mistake. Please refer to Mounting Scheme.

Constriction: Cardboard base.

Construction: The coin ramp.

Core and Base.

Assembles and decorated. Notice the 9V battery for test.

All the wiring was made with ordinary jumper coneceted and fixed togheter with scotch tape. Easy and quick. No bread boards or custom pcb boards. No weldings.

Trick to made gnd or 5v wiring many devices. Be careful when build this.

The code is simple and I think more experienced users will write this code in a more economic and efficient way and I will aprecciate a lot some suggestions.

The libraries are IRemote.h, Servpo.h and Keypad.h.

The main Funcions are "pushPull" that makes the servo moves to push one coin. the other functions are "pushPull1. pushPull2, pushPull3... that uses one, two, three...N pushPull for each amount of coin.

You press 1 on keypad, pushPull1 will move one pushPull. You press 2 on keypad, pushPull2 will move two pushPull and so on until 9.

This is the "Manual" module.

The Code continues with routines to each Infrared remote control for each numbers of coins needed, using the same amount of"pushPulls".

Veru simple, very straightforward I think.

The power system I recommend is a 127-240V to 5V 1A power conected to a smart plug so you can keep the device off and initialize it only when needed, adding this command to Alexa Routine, and of course another scene to turn it off.

In future who knows I get an Iot Arduino Board to acheive real IOT monitoring the number os coins retrieved and any other possible data.

EXPANDED TECHNICAL DETAILS

Mechanical Currency Management

This project automates the sorting and dispensing of physical coins for DIY kiosks or vending machines.

  • Solenoid Actuation: Uses a high-speed 12V push-pull solenoid to eject coins from a vertical stack. The Arduino drives the solenoid via a logic-level MOSFET or relay.
  • Inventory Sensors: Uses IR proximity sensors to detect when a coin hopper is low or empty.

Interaction Layers

  • Universal Remote & Alexa: Dispensing can be triggered via a standard IR remote or by voice command (e.g., "Alexa, dispense two quarters").
  • Logic Sync: The firmware maintains a digital count of the "Inventory" in EEPROM, ensuring that the machine never tries to dispense a coin it doesn't have.

ข้อมูล Frontmatter ดั้งเดิม

title: "Smart Coin Dispenser"
description: "Retrive coins the old way pushing buttons or the future way through Alexa or any voice assistant."
author: "NerdFatherRJ"
category: ""
tags:
  - "infra red"
  - "home automation"
  - "smart appliances"
  - "remote control"
  - "internet of things"
views: 6350
likes: 0
price: 1499
difficulty: "Intermediate"
components:
  - "1x Arduino Nano R3"
  - "1x IR receiver 3pin"
  - "1x Keypad"
  - "1x Jumper wires (generic)"
  - "1x Duble taped 3M"
  - "1x SG90 Micro-servo motor"
  - "1x Cardboard"
tools: []
apps:
  - "1x Arduino IDE"
  - "1x Universal Remote app and device"
  - "1x Alexa Voice Service"
downloadableFiles:
  - "https://projects.arduinocontent.cc/2b6c47b6-22ae-488e-b3fb-c63517337423.ino"
documentationLinks: []
passwordHash: "8b2a150125e54a12f2417c4a70eec9c57bd9c97229d6175800feb0c71be5485c"
encryptedPayload: "U2FsdGVkX1/bBcsDytWauvXXl5RVtrwXgNVvMdncUdSL7GxAILnJJFgePCAdZ+irxV1WFEgpERDpaeokJRHXoh/OK17B6XB0SxIxXQlauhr8PvQfuYQTYv53wun4REJrWXKawluLVO/kjRZ76uFd7vlVpaJIe5OGM3XQFlsS32K8+1TYjDFTX8mfwN1LK36E"
seoDescription: "Build a Smart Coin Dispenser to retrieve coins using buttons or voice commands via Alexa and Voice Assistant."
videoLinks:
  - "https://www.youtube.com/embed/9ov-SRHREdM"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/smart-coin-dispenser-b34ab9_cover.jpg"
lang: "en"