Guitar Placer Sensor

Have you ever experienced the time when you practiced guitar for hours and forgot to put your guitar back on the placer and got punished by your parents? For me, this problem happens everyday, so I decided to create a device that solves this problem.

Supplies:

1. Arduino Leonardo

2. x8 Jump Wires (Recommended 5 long wires and 3 short wires)

3. x1 Light bulb (Any color)

4. x4 Cable

5. x1 Electric Resistance

6. x1 Ultrasonic Sensor

7. Computer with downloaded Arduino Software

8. Any box that fits your device

9. Marker

10. x2 pieces of paper

11. Utility knife

12. Tape or glue

Step 1: Wiring

(Use the picture to help you, and the file below)

1. Prepare all the supplies written above

2. Connect the wires as presented in the picture above

Step 2: Programming

Copy the code to your Arduino Software:

int _1_time = 0.0 ;

int ardublockUltrasonicSensorCodeAutoGeneratedReturnCM(int trigPin, int echoPin) { long duration; pinMode(trigPin, OUTPUT); pinMode(echoPin, INPUT); digitalWrite(trigPin, LOW); delayMicroseconds(2); digitalWrite(trigPin, HIGH); delayMicroseconds(20); digitalWrite(trigPin, LOW); duration = pulseIn(echoPin, HIGH); duration = duration / 59; if ((duration < 2) || (duration > 300)) return false; return duration; }

void setup() { digitalWrite( 7 , LOW );

pinMode( 12 , OUTPUT); _1_time = 0.0 ;

}

void loop() { if (( ( ( 1.0 ) > ( ardublockUltrasonicSensorCodeAutoGeneratedReturnCM( 7 , 6 ) ) ) && ( ( 50.0 ) < ( ardublockUltrasonicSensorCodeAutoGeneratedReturnCM( 7 , 6 ) ) ) )) { _1_time = ( _1_time + 1.0 ) ; delay( 1000.0 ); } if (( ( ( 1.0 ) < ( ardublockUltrasonicSensorCodeAutoGeneratedReturnCM( 7 , 6 ) ) ) && ( ( 50.0 ) > ( ardublockUltrasonicSensorCodeAutoGeneratedReturnCM( 7 , 6 ) ) ) )) { _1_time = 0.0 ; digitalWrite( 12 , LOW ); } if (( ( _1_time ) == ( 10.0 ) )) { digitalWrite( 12 , HIGH ); } }

Step 3: Decorating

1. Prepare a box, a marker, and two small pieces of paper

2. Put your breadboard including ultrasonic sensor into the box

3. Use your utility knife to cut two holes; one for the ultrasonic sensor, one for the power hole

4. Use your marker to draw any thing on your 2 pieces of paper

5. Stick the paper to the box

* You can add anything else as you wish!!

Step 4: Device Usage

As mentioned, this device was used for reminding me to put my guitar back on the placer after practicing it. This device used the ultrasonic sensor to detect wether the guitar sits on the placer. Initially, I was planning to set the time to 1 hour (I usually practice for 1 hr), but since this users must first test wether the device works, the timer for the program (Provided above) will be in a shorter time. I hope this device helps people who has the same problem as mines, and most importantly, enjoy!

Video URL: https://youtu.be/FWclYnZWrsg

Share

    Recommendations

    • Pets Challenge

      Pets Challenge
    • 1 Hour Challenge

      1 Hour Challenge
    • Frozen Treats Challenge

      Frozen Treats Challenge

    Discussions