I'm developing an active sonar using Costas arrays and Golomb rulers. I need the Arduino to switch between frequencies very quickly to shorten the length of the ping, both to improve processing and to lessen speed of sound limitations. I also need to know the exact times each frequency will be released from the Arduino so the real time computer can ignore those frequencies.
I'm able to generate the melodies I want using the
tone() command, but I couldn't find the time required to change frequencies or the standard deviation of that time. I'm also not sure what the minimum length of PWM is.
So I want to know, what is:
- The switching time for changing PWM frequencies
- The standard deviation of that switching time
- The minimum length PWM pulse that can be generated
- The standard deviation of the length of that minimum PWM pulse.
And how might I achieve those minimums?