I want to produce different frequencies every 600us. Like between 0 - 600us, 60Hz, between 600- 1200us, 100Hz.
I want to convert pulse width produced between 50 and 100cm to one slow frequency. Then, from 50cm, I want to convert pulse width produced every 10cm to different frequencies. So when the object comes closer to the sensor, I would like to produce faster sound to alert.
I tested one sensor, and it is working!
I wanted to produce a sound at different speed, not tone. So once the object comes closer to the sensor, it will beep faster.
Wouldn't this delay entire code? then, the sensor wouldn't be able to detect an object approaching fast to the sensor.