i want to make a program that senses high frequency sensor to make sound by tone function.
so exact question would be every 10 centimeter the frequenct goes, it rings from c ~ b
at 0~10 , c
10~20 d etc..
i want to make a program that senses high frequency sensor to make sound by tone function.
so exact question would be every 10 centimeter the frequenct goes, it rings from c ~ b
at 0~10 , c
10~20 d etc..
(deleted)
Find an example that reads the distance from an ultrasonic distance sensor. Get it working.
Find an example that plays notes. Get it working.
Mix the two. Add some 'if' statements to check for distance ranges and play the appropriate note.
Easy!
If you run into problems, ask specific questions.