Posts Tagged ‘Tone’
My Stupid Pet Trick project is a proximity gauge. I am using a range finder sensor to detect how close an object is to the sensor. The proximity gauge will turn on a different LED’s depending how close the object is. A green LED will turn on when an object is more than 1 ft. away. A yellow LED will turn on when an object is within 6 inches away. A red LED will turn on when an object is within 3 inches away. When an object is an inch away the red LED will blink rapidly. I then added sound to the proximity gauge. A tone is emitted and changes pitch depending how close an object is. The higher the pitch is the farther an object is from the proximity gauge.