Simply this project depends on two ultrasonic sensors to get the distance between the music player and the person stands in front of it. and according to the values of the two sensors the player will detect if there is someone stands in front of it to play the music and to control the sound volume, sound track, playlist, ...etc, or it will turn off the music player to save the power.
For example if your right hand get closer to the left ultrasonic sensor the music player will decrease the sound volume and you can use your left hand to play the desired sound track, you can play next or previous track.
Tools: 1. Circular Saw. 2. Laser Cutter. 3. Screwdriver. 4. Screws. 5. 6 mm Female Female Copper Spacers ( To fix the Arduino Board). 6. Nylon Cable Tie Belt. 7. Stainless Steel Angle Brackets.
Materials: 1. Plywood sheets 3mm. 2. Pine Wood.
Electronics Components: 1. Arduino UNO. 2. 1Sheeld 3. 2 x Ultrasonic sensors 4. 5V / 2A DC Adapter 5. Male Female Jumper Wires
I used SolidWorks to design this project and to make sure from
its stability then I tried to create it as simple and modular as
possible so: 1. I used a pine wood block to cut 1 inch x 1 inch rods to create the frame. 2. I used the laser cutter machine to cut the front and back parts from a 3mm plywood sheet. 3. I used stainless steel angle brackets to fix the Music player to the table. 4. I used some screws to assemble this project parts with each other.
This project based on Arduino UNO, 1Sheeld and an Android smart phone. 1Sheeld consists of two parts: The first part
is a shield that is physically connected to your Arduino board and
acts as a wireless middle-man, piping data between Arduino and any
Android smartphone via Bluetooth. The second part
is a software platform and app on Android smartphones that manages
the communication between our shield and your smartphone and let
your choose between different available shields.
In this project we will use Music Player shield and Terminal shield for debugging issues.
Music Player Shield: Music player library turns your smartphone to an MP3 player where you can control it using your Arduino board and take actions.
Terminal library simulates a serial terminal on your smartphone so that
you can display any serial data on it even data of the 1Sheeld
sensors shields. For more information about each shield you can visit
this link: http://1sheeld.com/docs/
Now lets connect Arduino & 1Sheeld to your PC or laptop
Adjust 1Sheeld: Warning!
If you have the Arduino Due or any board that works on 3.3V, you must
switch your 1Sheeld to operate on 3.3V since it may damage your
board. To switch 1Sheeld to 3.3V locate the toggle switch on the top
of the board and switch it to the 3.3V position. Place your 1Sheeld on
your Arduino board then plug the Arduino to your laptop or
PC. i.e: 1Sheeld works on Arduino (Uno/MegaADK/Mega2560/Leonardo/Due).