This circuit can be used as a shield for sensors or analog circuits connected to the digital input of microcontrollers. It is basically a TTL voltage-frequency converter. The supply must be 5 V and the transistor can be BC557. The frequency range depends on the capacitors. The input voltage must be between 0 and 6 V.