Use a microcontroller to modulate frequencies.…