![]() This will switch the Q8 transistor OFF and the LED will turn OFF. ![]() First when the V+ is equal to Vcc (5 volt) the comparator output will swing to the logical high (Vout = Vcc) because the V+ is greater than V- (2.5 volt). The comparator non-inverting input is connected to the 10 K trimport which is also forming the voltage divider circuit where we could adjust the V+ voltage start from 5 volt down to 0 volt. The testing circuit simply connects the comparator inverting input to the voltage divider R1 and R2, with 5 Volt voltage supply the V- could be calculated as follow:įor more information about the voltage divider circuit please refer to my previous posted blog Basic Resistor Circuit. The maximum current that could flow on this Q8 transistor (output sink current) according to the LM339 datasheet is about 18 mA. Furthermore on this tutorial, I will use the term non-inverting and inverting instead of + input and – input on the comparator analog input.Īs you’ve seen from the LM339 equivalent circuit picture above, the LM339 use an open collector transistor Q8 for its output, therefore we have to use what is called “ pull-up” resistor connected to the Q8 collector lead with the Vcc in order to make this Q8 transistor work. When the analog input on + input (non inverting) is less than the analog input on – input (inverting) then the comparator output will swing to the logical “ 0” (the Q8 transistor turn OFF). The comparator circuit work by simply taking two analog inputs, comparing them and produce the logical output high “ 1” or low “ 0“.īy applying the analog signal to the comparator + input called “ non-inverting” and – input called “ inverting“, the comparator circuit will compared this two analog signal, if the analog input on + input is greater than the analog input on – input (inverting) then the output will swing to the logical “ 1” and this will make the open collector transistor Q8 on the LM339 equivalent circuit above to turn ON. Therefore you could say that the comparator is the modified version of the Op-Amps which specially designed to give the digital output. ![]() When you look closely to the comparator symbol, some of you will recognize it as the Op-Amp (Operational Amplifier) symbol, so what make this comparator differ from its big brother Op-Amps is designed to accept the analog signal and outputting the analog signal while the comparator only outputting the digital signal although the ordinary Op-Amp could be used as the comparator such as the popular National Semiconductor LM324 quad Op-Amps, but the real comparator is designed to have a faster switching time comparing to the multipurpose Op-Amps. Today the modern comparator is easily found in the form of integrated circuit such as the popular National Semiconductor LM339 quad (four) comparator 14 pins dual in line (DIL) package bellow: This is when the comparator circuit becomes handy as it’s designed specially for this purpose. Some example of this situation is to send the interrupt signal to the microcontroller operation when the temperature is already exceeds certain limit or the light intensity exceeds certain bright level. ![]() Sometimes in the embedded system world we need to process the analog world and sending the signal to the microcontroller when the analog signal exceed some predetermine limit we’ve set. Working with the Comparator Circuit Maby rwb, under Electronics. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |