A situation in place was the next – my half done amplifier was working already 3 years just proving the statement “there last longing device is a temporary one”. It was kind of fine – but it consumes an energy. In a fact a solid chunk of the energy – it is class A amplifier. At some point in time I started to think – why to not switch on/off the amplifier in dependence on the signal presence.
Creating of a comparator model is described below.
What we need from a comparator usually?
- The high level value
- Slew Rate
I have added a small additional pcb for my diy amp project, which is dedicated to detect the drop of VDD voltage level and saving the data to EEPROM at reaching of the certain threshold. All how I described here, I used the built-in comparator from PIC168f877a.
It is a pity that I have not added this feature to the main pcb, so now all solutions looks unaesthetic.Continue reading
The task: To learn how to use the comparator
Tools: PIC16f628a, proteusContinue reading