Engineering Window Detector Circuit Design: LED Activation for Voltage Thresholds

Click For Summary
SUMMARY

The discussion focuses on designing a window detector circuit that activates an LED when voltage thresholds are crossed, specifically above 2V or below 1V. The relevant equations for voltage reference settings are provided as VREF1 = R3 / (R1 + R2 + R3) * V+ and VREF2 = (R2 + R3) / (R1 + R2 + R3) * V+. A key challenge identified is selecting appropriate resistor values, as the user finds R2 consistently calculates to 1/2, which conflicts with practical resistor values typically used. The suggestion to implement hysteresis around the comparators is made to prevent oscillation near the threshold points.

PREREQUISITES
  • Understanding of comparator circuits
  • Knowledge of voltage divider principles
  • Familiarity with resistor selection and values
  • Basic electronics concepts, including hysteresis
NEXT STEPS
  • Research open collector comparator configurations
  • Learn about implementing hysteresis in comparator circuits
  • Study voltage divider calculations for resistor selection
  • Explore practical applications of window detector circuits
USEFUL FOR

Electronics students, hobbyists designing voltage detection circuits, and engineers working with comparator applications will benefit from this discussion.

dylandrop
Messages
3
Reaction score
0

Homework Statement



I think I know how to do this but wanted to make sure before I actually make the circuit.

Here's a general diagram:
[PLAIN]http://forum.allaboutcircuits.com/image_cache/httphome.cogeco.ca~rpaisley4ComparatorWindow.GIF

So as you can see I'm trying to make a window detector circuit that makes an LED turn on if the voltage is below or above a certain threshold. In this case, I want the LED to turn on above 2V or below 1V.


Homework Equations




I think I know how to devise the relevant equations:

VREF1 = R3 / (R1 + R2 + R3) * V+
VREF2 = (R2 + R3) / (R1 + R2 + R3) * V+


The Attempt at a Solution



I'm just unclear on what to make R values. It seems that R2 always comes out as 1/2, which makes sense mathematically (if you set VREF1 = 2, VREF2 = 1) but makes no sense to me in the real world. I've always used resistors with usually at least 100 Ohm values. But maybe I'm wrong. Help?
 
Last edited by a moderator:
Physics news on Phys.org
What will be the output voltage when one of the comparators wants to drive it high while the other wants to drive it low? Which one wins? How can you prevent the fight?
 
dylandrop said:

Homework Statement



I think I know how to do this but wanted to make sure before I actually make the circuit.

Here's a general diagram:
[PLAIN]http://forum.allaboutcircuits.com/image_cache/httphome.cogeco.ca~rpaisley4ComparatorWindow.GIF

So as you can see I'm trying to make a window detector circuit that makes an LED turn on if the voltage is below or above a certain threshold. In this case, I want the LED to turn on above 2V or below 1V.


Homework Equations




I think I know how to devise the relevant equations:

VREF1 = R3 / (R1 + R2 + R3) * V+
VREF2 = (R2 + R3) / (R1 + R2 + R3) * V+


The Attempt at a Solution



I'm just unclear on what to make R values. It seems that R2 always comes out as 1/2, which makes sense mathematically (if you set VREF1 = 2, VREF2 = 1) but makes no sense to me in the real world. I've always used resistors with usually at least 100 Ohm values. But maybe I'm wrong. Help?

gneill said:
What will be the output voltage when one of the comparators wants to drive it high while the other wants to drive it low? Which one wins? How can you prevent the fight?

He's probably using open collector comparators. That would be the traditional way to do it.

@dylandrop -- I'd suggest adding hysteresis around the comparators. Comparator circuits without explicit hysteresis feedback generally oscillate/buzz near the switching points.
 
Last edited by a moderator:

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 28 ·
Replies
28
Views
3K
  • · Replies 26 ·
Replies
26
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K