the idea of anything can be an instrumental music has been always in my mind so i made a wooden tissue box that i installed inside it a guitar of light strings
Step 1: Building Box
i made this wooden tissue box
Step 2: Wiring
we make the LDR wiring on a the top shelf of the box … while the Led’s are on the buttom shelf we place them under the LDR’s directly to make the light effective on the LDR.
Ultrasonic Sensor we place it on the front side of the tissue box so it could be able to see when people comes close to it and give the servo the order to open the shelf here the servo pushes the shelf of the Led’s up and they will be visible to the user !
P.S: ALL THE WIRING SHOULD BE MADE ON THE WAVE SHIELD NOT ON THE ARDUINO DIRECTLY.
i couldn’t find a figure for the wave shield here
for the sound all you have to do is to get a .Wav files of guitar strings ! or anything else you like … and install them on the Waveshield Memory card.
Step 3: Coding
#include < NewPing.h > #include < SoftwareServo.h > #include < FatReader.h > #include < SdReader.h > #include < avr/pgmspace.h > #include "WaveUtil.h" #include "WaveHC.h" #define TRIGGER_PIN 7 #define ECHO_PIN 6 #define MAX_DISTANCE 500 SdReader card; FatVolume vol; FatReader root; FatReader f; WaveHC wave; NewPing sonar(TRIGGER_PIN, ECHO_PIN, MAX_DISTANCE); SoftwareServo servo1; unsigned int pingSpeed = 50; unsigned long pingTimer; byte buttons [] = { A0, A1, A2, A3, A4, A5}; #define NUMBUTTONS sizeof(buttons)
equipments:
1 x Arduino Uno
1 x Adafruit Wave Shield
1 x Servo
6 x LDR
12 x 1k Resistors
6 x LED
WIRES
For more detail: Tissue Box Guitar – Light Strings using Arduino