Variable Ultrasonic sound using Arduino

Hi everyone
How are you all

I have a big doubt in my project which I couldn't solve yet which iam searching the solution for it more than months

You guys please give the solution.

My project is to varry the ultrasonic sound generator which I made, I don't know how to varry it's frequently using microcontrollers

If anybody knows , let me know the coding of it l.

Thank you all :hugs:

Why you need change the US frequency ?

Did you think we can see the generator you made?

You could have a potentiometer connected between 5V and GND, with the wiper connected to an analogue input.

Do an analogRead(), and based on the result that you get, set the frequency you are generating to a new value.