กลับไปหน้ารวมไฟล์
diy-arduino-coin-eater-coin-bank-33d20b-en.md

VISIT PROJECT

#include

Servo myservo; // creating myservo object

int buttonPin = 11;//set button pin

int buttonState = 0; // set buttonState

void setup()

{

myservo.attach(12);// attach the 13 pin to servo

pinMode(buttonPin, INPUT); // set button to input

}

void loop()

{

buttonState = digitalRead(buttonPin); // read and save to the variable "buttonState" the actual state of button

if (buttonState == HIGH)

myservo.write(0);

else

myservo.write(95);

delay(1500);

// IF YOU LIKE THIS PROJECT PLEASE SUBSCRIBE ; https://www.youtube.com/channel/UCk9UflimfCIAv7kdAWBxyuA

}

EXPANDED TECHNICAL DETAILS

Interactive Mechanical Savings Hub

A fun and engaging project that turns saving money into a robotic show, where a character "eats" coins placed on its sensor.

  • Force-Triggered Event Logic: Uses an IR break-beam or a small limit switch inside the "Coin Tray." When a coin is detected, the Arduino initiates a complex mechanical sequence.
  • Servo-Driven Jaw Mechanism: Manages two SG90 servos to open the "Mouth" and tilt the tray into the bank. The firmware ensures the movement is comical and smooth, providing an interactive reward for saving.

Audio Feedback

  • Seasonal Sound FX: Every time a coin is eaten, the Arduino plays a "Nom-Nom" sound or a celebratory chime via a piezo buzzer, further encouraging children to save money.

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

title: "DIY Arduino Coin Eater | Coin Bank"
description: "Make your own Arduino coin eater/bank. A DIY Arduino idea."
author: "helloanimesh390"
category: "Gadgets, Games & Toys"
tags:
  - "coin eater"
  - "home automation"
  - "internet of things"
views: 9314
likes: 5
price: 1120
difficulty: "Easy"
components:
  - "1x SG90 Micro-servo motor"
  - "1x Arduino UNO"
  - "1x Hot glue gun (generic)"
  - "1x Jumper wires (generic)"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles: []
documentationLinks: []
passwordHash: "0b1a0dfe311c2186888cf43aeab443823f8d163e699a1110f322a28da81a6144"
encryptedPayload: "U2FsdGVkX1/PSklXZfBDIqcJbDuunLDhfJ4LCjJTgLICfQl4+qFi3UKM8Et1dV0AWf2aP+rrPA+pYaXfB/bOA9N3GxDQOL9S6HLSze+wTwM="
seoDescription: "Build your own DIY Arduino coin eater bank. A fun and easy Arduino project for beginners and makers."
videoLinks:
  - "https://www.youtube.com/embed/jDoO1ZONK3g"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/diy-arduino-coin-eater-coin-bank-33d20b_cover.jpg"
lang: "en"