DIY Arduino Coin Eater | Coin Bank

DIY Arduino Coin Eater | Coin Bank © CC BY

Make your own Arduino coin eater/bank. A DIY Arduino idea.

  • 995 views
  • 1 comment
  • 6 respects

Components and supplies

Necessary tools and machines

Hy gluegun
Hot glue gun (generic)

Apps and online services

About this project

VISIT PROJECT

#include <Servo.h>

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

}

Code

ARDUINO CODEArduino
#include <Servo.h>



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
  
}

Custom parts and enclosures

ARDUINO CODE
mini_coin_eater_V074y5BfgX.ino

Schematics

NOT AVAILBLE
visit link to see diagram
mini_coin_eater_7YgfTQblEw.ino

Comments

Similar projects you might like

DIY Auto Voice Record and Playback

Project tutorial by Team gadgetprogrammers

  • 8,229 views
  • 5 comments
  • 14 respects

Autonomous Yard Scooping Entity

Project in progress by Mitomon

  • 3,256 views
  • 0 comments
  • 18 respects

DIY Solar Tracker Arduino Project ITA

Project tutorial by Ingeimaks Ingeimaks

  • 6,821 views
  • 1 comment
  • 27 respects

Arduino Bluetooth Robot for Android Device

Project showcase by aip06

  • 3,617 views
  • 2 comments
  • 16 respects

DIY Air Humidifier with Backlight Controlled by Alexa

Project tutorial by Andrii Romanenko

  • 2,043 views
  • 0 comments
  • 8 respects
Add projectSign up / Login