mmnr00
Junior Member level 1
- Joined
- Mar 8, 2010
- Messages
- 17
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- sydney, australia
- Activity points
- 1,391
ye guys,
I'm building a comparator with hysteresis using an opamp, and I follow whats in the datasheets (LM324). Below is the circuit diagram of my design, and the output signal wave. I need to build a comparator which output voltage is +2V and -2V, and the hysteresis value Vt=1V. From the datasheets, i found that this formula is used to calculate the value of the resistors.
Vt=(R1/(R2 + R1))* (Voh - Vol), Voh is 2V and Vol is -2V. From the calculation, I got R2/R1=3. I choose R2=300Ω and R1=100Ω.
The output voltage is not like what I was expected. The output voltage is amplified by the value of 3. This means that the circuit is not working as it should as I got an amplifier rather that a comparator. I try to figure it out for hours but still got no solution. My input voltage is set 5V, and my Vref is =0.
Hope you guys can help me. I'm totally lost here. Thanks in advance for any help!
I'm building a comparator with hysteresis using an opamp, and I follow whats in the datasheets (LM324). Below is the circuit diagram of my design, and the output signal wave. I need to build a comparator which output voltage is +2V and -2V, and the hysteresis value Vt=1V. From the datasheets, i found that this formula is used to calculate the value of the resistors.
Vt=(R1/(R2 + R1))* (Voh - Vol), Voh is 2V and Vol is -2V. From the calculation, I got R2/R1=3. I choose R2=300Ω and R1=100Ω.
The output voltage is not like what I was expected. The output voltage is amplified by the value of 3. This means that the circuit is not working as it should as I got an amplifier rather that a comparator. I try to figure it out for hours but still got no solution. My input voltage is set 5V, and my Vref is =0.
Hope you guys can help me. I'm totally lost here. Thanks in advance for any help!