Project tutorial

Make-It-Rain Clap Machine © GPL3+

Just got paid? Perfect! Time to make this fun Make-it-Rain machine. Clap your hands and let the money flow!

  • 5,977 views
  • 1 comment
  • 16 respects

Components and supplies

Swel30ysinrlyiqmmnfr
Arduino MKR Zero
×1
Medium breadboard
×1
Jumper Wires
×1
Diode
×1
Mosfet N-Channel
×2
ICS43432 I2S digital microphone
×1
micro servo motor+ DC motor
×1
0.1 uF ceramic capacitor
×1
100 uF electrolitic capacitor
×1
2.2Kohm resistor
×1
Rubber band
×1

Necessary tools and machines

Lasercutter
Laser cutter (generic)

Apps and online services

About this project

Introduction

With this project, you will be able to create a fun MAKE IT RAIN clap machine. To activate the machine just clap your hands and the machine will start running! The sketch uses the new ArduinoSound library to interface with an I2S digital microphone. A DC motor and a standard servo motor are used to push the money out. We used a laser cutter to make the MDF pieces for the box. A rubber band and a little bit of hot glue and your machine will be ready to go. Check the video below to see it in action!

Hardware

To run the sketch of the Make-it-Rain machine we use an Arduino MKRZero board. The small form factor will help us in hiding the board inside the box. In order to detect the clapping we are using a ICS43432 I2S digital microphone. To turn on the DC motor we use an N-Channel MOSFET, a diode and a 2.2Kohm pull down resistor. To provide the 5V PWM signal to the servo motor we use an N-Channel MOSFET and a 2.2Kohm pull up resistor. You will need a small breadboard and some jumper wires to make the connections. To block the noise from the DC motor that might interfere with the servo we use a 0.1uF and a 100uF capacitor.

You can power everything from your computer via USB or if you want to make it portable, you can use a LiPo battery to the MKRZero and an external battery to give the motor extra power.

Connecting the electronics

The I2S DAC used in this example needs only 3 wires for the I2S bus (plus power supply). Connections for the I2S on the Arduino MKRZero are the following:

  • SD (Serial Data) on pin A6
  • SCK (Serial Clock) on pin 2
  • FS (Frame or Word Select) on pin 3;

Follow the diagram to build your circuit. Notice that in order to make the diagram more clear we used a full size breadboard that will not fit into the box. Use a medium size breadboard instead.

Uploading the code

Okay, now you should have all the electronics in place. It's time to upload the sketch to the MKRZero board. For this project you will need the new AudioSound library, make sure you have it in libraries->ArduinoSound. The library will allow us to decode the I2S message from the digital microphone. Now you need to download the sketch for the Make-it-Rain clap machine and place it in the sketchbook folder. You can find the sketch down in the tutorial. Open your Arduino IDE and use the Boards Manager to install the MKRZero board. Once installation is finished you should be able to select the MKRZero board from the menu Tools->Board. Now connect the MKRZero to your computer using the USB cable. In the IDE, go to File->Sketchbook->MKRZero_MakeItRainMachine and open the sketch. Compile and upload to the board.

Assembling the Make-it-Rain box

To assemble the Make It Rain box:

Note: You will need to adjust the pieces to fit your particular components. Use hot glue to secure any loose parts.

  • Lasercut the pieces out of 4 mm MDF.
  • Take a rubber band and weave it into the spokes of the wheel as shown in the photo.
  • Attach the wheel to the DC motor gear.
  • Take the lifting arm and glue on the round gear holder.
  • Attach the lifting arm to the micro servo.
  • Place the DC motor and micro servo into their respective holders.
  • Assemble the base of the box and lid with the DC motor arms.
  • Cut a small piece of card stock and tape it over the lifting arm slot as shown in the photo.
  • Assemble the electronics and connect the motors.
  • Upload the code.
  • Place bills onto the Make It Rain box and test!

Make it Rain!!

Custom parts and enclosures

LaserCutterTemplates
Templates for the box.
I6neCvVZL9MBbADnderV.rar

Schematics

Circuit Diagram
Fevtlljfzypwrliv8wul

Code

Make-it-rain machine code

Comments

Similar projects you might like

Arduino Obstacle Avoidance Robot with Ultrasonic HC-SR04

Project tutorial by Jorge Rancé

  • 141 views
  • 0 comments
  • 2 respects

Using Finite State Machines

by Gustavo Gonnet

  • 5,162 views
  • 2 comments
  • 16 respects

Alexa: "Your Clothes Are Dry"

Project in progress by TNunnster

  • 1,060 views
  • 0 comments
  • 5 respects

Temperature Streaming with Arduino + Big Data Tools

Project showcase by Gabriel Rodriguez

  • 1,143 views
  • 1 comment
  • 13 respects

Bluetooth Speaker w/ Music-Reactive LED Matrix

Project tutorial by Modustrial Maker

  • 2,343 views
  • 0 comments
  • 7 respects

Climate Cube for Greenhouse

Project in progress by Istvan Sipka

  • 5,592 views
  • 2 comments
  • 30 respects
Add projectSign up / Login