Arduino-Powered Coin Box Is the New Way of Saving Money

Forget your old piggybank, this next-gen coin box is just the thing you need to save your money.

If the video player is not working, you can click on this alternative video link.

"Save for a rainy day," as the saying goes. But that doesn't mean saving money has to be boring and analog. 

Bring your coin box into the 21st century with this awesome DIY Arduino-powered solution

coin box complete
Source: Interesting Engineering/YouTube

Before you begin building this amazing device, you are going to need a few materials. 

 The first step is to wire up the servo motor to the Arduino Nano. Watch the video for more details on this. 

coin bank nano
Source: Interesting Engineering/YouTube

Next, grab your cardboard circles, you will only need one. Poke some holes through it using a sewing needle as shown in the video. 

Now, grab a 10K and a 4.7K resistor and affix to the cardboard circle as instructed in the video. 

Advertisement
diy coin bank resistors
Source: Interesting Engineering/YouTube

Next, grab some wires, and solder to the resistors as shown. 

diy coin bank wire resistors
Source: Interesting Engineering/YouTube

Now, solder the other ends of the wires to the Arduino Nano. 

diy coin bank resistors
Source: Interesting Engineering/YouTube

Now, plug in the USB cable to the Nano and upload the all-important code. We have included the link above to the .ino file, but here it is in all its glory: 

#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(65);
delay(1500);

}

Upload it directly to the Nano, as usual. 

Next, grab a small cardboard box (or build one to size). 

Advertisement
coin bank cardboard box
Source: Interesting Engineering/YouTube

Mark out and cut out a circle to one face of the box. 

coin bank cut circle
Source: Interesting Engineering/YouTube

Next, using a hot glue gun, affix the servo motor to the box lid, as shown. 

coin bank glue servo
Source: Interesting Engineering/YouTube

Using the hot glue gun again, also glue the Arduino Nano to the cardboard too. 

Next, take a small strip of cardboard, and glue it to the cardboard circle as shown. 

coin bank cardboard strip
Source: Interesting Engineering/YouTube

Then glue the other end of the cardboard strip to the servo motor arm. 

coin bank servo arm
Source: Interesting Engineering/YouTube

The cardboard circle should now close off the hole you made in the cardboard box lid. This will act to open and close the coin box. 

arduino coin box lid
Source: Interesting Engineering/YouTube

Now, grab your battery holder, poke another hole through one side of the cardboard box, and feed the battery holder wires through it. Using your hot glue gun, glue the battery pack to the cardboard box.

Advertisement
coin base battery
Source: Interesting Engineering/YouTube

Wire the battery pack to the Arduino Nano, as shown in the video.

coin bank wire battery
Source: Interesting Engineering/YouTube

Now affix the lid to the box, stick in some batteries, and play with your new Arduino-powered coin box. Hours of fun are now to be had!

Enjoy it. 

Interesting Engineering is a participant of the Amazon Services LLC Associates Program and various other affiliate programs, and as such there might be affiliate links to the products in this article. By clicking the links and shopping at partner sites, you do not only get the materials you need but also are supporting our website.

Follow Us on

Stay on top of the latest engineering news

Just enter your email and we’ll take care of the rest:

By subscribing, you agree to our Terms of Use and Privacy Policy. You may unsubscribe at any time.