How to generate square pulse from 1hz to 80hz without additional hardware

you will see I am in a simulation project of automotive sensors and I need to generate square signals to that frequency, the objective is that with a potentiometer varies the frequency of the pulses, I have tried everything but the registers since I do not know very well how they work, I would be satisfied with being able to generate them from 10hz if someone has some suggestion I would appreciate it.

If that's all you need the Arduino to do then simple digitalWrite(pin, HIGH), delay(value), digitalWrite(pin, LOW), delay(value) should work, where value is set by the potentiometer to half the pulse length e.g. 500 for 1Hz down to 5 for 100Hz.

That was surely part of the "everything" that you tried. What was wrong with it?

Steve