Rhythm Safe

by davidchen in Circuits > Arduino

116 Views, 0 Favorites, 0 Comments

Rhythm Safe

IMAG3365.jpg
Rhythm Safe
Rhythm Safe open & close

Today, we want to introduce an exciting device that is made with Arduino, which can be used to tap the side of a safe with the correct rhythm and open it. This device utilizes the detecting function of a microphone and the rotation of a stepper motor to achieve its purpose.


First, let's take a look at the components of this device. It consists of an Arduino control board, a microphone, a stepper motor, and some other electronic components. The Arduino control board is the brain of this device, it can read the sound signal received by the microphone and control the rotation of the stepper motor.


When we tap the side of the safe with the correct rhythm, the microphone will detect this sound signal and convert it into an electronic signal. The Arduino control board will read this signal and process it according to the pre-written program.


In this program, we will set a specific rhythm pattern. When the microphone receives a sound signal that matches this rhythm pattern, the Arduino control board will start the stepper motor to rotate, which will open the safe. After three seconds, the Arduino control board will start the stepper motor again, which will close the safe.


The principle of this device may sound simple, but in fact, it requires precise tuning and program writing to work properly. This is a great learning opportunity that can teach you how to use Arduino and other electronic components to create your own smart devices.


Overall, this device is a very interesting creation. It not only demonstrates the powerful functions of Arduino but also allows us to experience a different way of interaction, by starting and controlling the device with the correct rhythm. If you are interested in Arduino and smart devices, this device is definitely worth a try!


Supplies

IMAG3326.jpg
IMAG3328.jpg
IMAG3329.jpg
IMAG3331.jpg
IMAG3332.jpg
  1. Arduino control board
  2. Microphone
  3. Stepper motor
  4. breadboard

Prepare the Required Parts

IMAG3326.jpg
IMAG3328.jpg
IMAG3329.jpg
IMAG3331.jpg

Prepare the required parts: Arduino control board, microphone, stepper motor, breadboard, etc.

Insert the Arduino Control Board

Insert the Arduino control board into the center of the breadboard, and connect its pins to the vertical rows on the breadboard to facilitate circuit connection and fixation.


Connect the Microphone

IMAG3338.jpg

Connect the microphone to the left side of the breadboard, and connect its GND interface to the GND interface of the Arduino control board.


Connect the Stepper Motor

Connect the stepper motor to the right side of the breadboard, and connect its control wires to the digital output interfaces of the Arduino control board.


Connect the Circuit

IMAG3332.jpg

Use connection wires to connect the circuit to the components in the central area of the breadboard. Ensure the correctness and stability of the circuit wiring to prevent short circuits and other issues.


Write the Program

Write the program for the Arduino control board, design corresponding rhythm modes, and trigger the stepper motor to rotate and open the safe when the microphone detects the rhythm signal, and trigger the stepper motor again to close the safe after three seconds.

This project is based on the "Secret Knock Detecting Door Lock".

https://www.instructables.com/Secret-Knock-Detecting-Door-Lock/

Downloads

Burn the Program and Debug

Burn the program into the Arduino control board and debug it by connecting it to a computer with a USB cable.


Install and Test

IMAG3355.jpg

Fix the entire circuit to the safe, test and adjust it, and ensure the normal operation of the rhythm safe.


Note: When operating the breadboard, be careful not to let the components touch each other, and ensure the stability and safety of the circuit. When writing the program, design the rhythm modes carefully to ensure the correct opening and closing of the safe.