Projet PROTY : Boîte À Musique
by ines_et_maude in Circuits > Arduino
213 Views, 0 Favorites, 0 Comments
Projet PROTY : Boîte À Musique

This project was realized in the framework of the Rapid Prototyping module at the Ecole des PontsParistech, by Maude Zerhouni and Inès Vanlaeys. The goal was to create an object with no particular use, reacting to its environment. We chose to create a music box, which plays a particular melody according to the parameters of our body.
Supplies
Write the Code
The code works as follow:
- We introduce all the needed notes with their frequencies, as well as the songs which are lists of notes. We then write a function who allows the buzzer to play the required note. In facts, the buzzer only plays two tones: HIGH and LOW. Each note can be obtained with a special combination of these HIGH and LOW tones, thanks to the given frequency of the note.
- The main loop is constituted of a "if" condition:
- If the hand is dry (<30% moisture):
- If the pulse is low, Little Santa Claus
- If the pulse is high, Jingle Bells
- If the hand is neither dry nor wet (30%-40% humidity):
- If the pulse is low, Mario Bros Main Theme
- If the pulse is high, Mario Bros Underwater Theme
- If the hand is wet (>40% moisture):
- If the pulse is low, Pirate of the Caribbean
- If the pulse is high, Indiana Jones
If you want to take a look, here is the full code. Feel free to modify and improve it.
Downloads
Electrical Assembly



If you want to recreate the project, here is the Fritzing of the electrical assembly.
Design and Cute Out the Music Box




We used Catia to design the box. The small details not to be forgotten are the two holes on the upper side for the sensors, and the hole for the cable that connects the Uno card to the computer. Two 1.1mm thick thin rails are dug to hold two 1mm MDF rails, in order to install the breadbord.
Then, we printed the box with laser. You can find here the .dxf of each side of the box:
Assemble Everything

The pieces should fit perfectly together. Insert the breadboard in the box and wedge the part in the thin rails. Let the buzzer inside, and let the sensors out.
Congratulation !


You can now evaluate anyone's heartbeat and hands humidity by listening to some groovy music!