We can control the frequency of an oscillator from digital circuits or from the output of a microcontroller with the circuit shown in the figure. Depending on the activated control output or its combination, we put capacitors of different values in the circuit and thus we have different frequencies for the 555. The control is made by the voltage of the microcontroller that must supply the CMOS switch although the 555 can be supplied with other voltage.
