Quantcast
Channel: Arduino Forum - Latest topics
Viewing all articles
Browse latest Browse all 15317

Make a paranormal music box - is this possible ?

$
0
0

I am trying to make a paranormal music box . I have my code working but I am curios if what I am thinking would be possible to code. I am using the hc-sr04 sensor to detect the distance of 10 feet atm . If anything is closer it will turn my servo which turns the crank on my music box. It also displays the distance in inches to the l2c lcd display because I couldn't get the code to write it in feet and inches . what I am curious to try is have the sensor calibrate the distance at start up and have that set as the starting distance then anything that gets closer will activate the servo. Example : I have a door way with a wall 12 feet away it reads it as 12 feet and automatically sets that as the starting point at startup . or if its 6 feet it sets that ... is this possible? I can post my code if needed

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 15317

Trending Articles