Draw a circuit with a voltage divider, two comparator ICs, LDR sensors

Thread Starter

imtrouvaille

Joined May 2, 2018
2
I got this last question to practice for my exam and I got stuck. The question is draw a circuit with

  • a voltage divider circuit,
  • two Comparator ICs,
  • LDR(Light Dependent Resistor) sensor
Outputs:

  • If LDR at dark, comparator 1 = high and comparator 2 = low.
  • If LDR under the light, comparator 1 = low and comparator 2 = high.
  • If LDR at dark, the value of R in LDR becomes higher.
Assume that the range of R value in LDR = 0-100 kohm.

I've just tried to draw it as I understand it. If there's anything wrong, please kindly tell me. Thank you

 

MrAl

Joined Jun 17, 2014
11,496
I got this last question to practice for my exam and I got stuck. The question is draw a circuit with

  • a voltage divider circuit,
  • two Comparator ICs,
  • LDR(Light Dependent Resistor) sensor
Outputs:

  • If LDR at dark, comparator 1 = high and comparator 2 = low.
  • If LDR under the light, comparator 1 = low and comparator 2 = high.
  • If LDR at dark, the value of R in LDR becomes higher.
Assume that the range of R value in LDR = 0-100 kohm.

I've just tried to draw it as I understand it. If there's anything wrong, please kindly tell me. Thank you

Hi,

Did you think about your circuit if it works as needed?
The resistance goes higher when dark so what does that mean for the voltage across the 10k resistor? What does that mean for the output of say cmp 1?

It looks like you have the two comparators swapped but you should think this out to see if that conclusion is right or wrong.
 

Thread Starter

imtrouvaille

Joined May 2, 2018
2
Hi,

Did you think about your circuit if it works as needed?
The resistance goes higher when dark so what does that mean for the voltage across the 10k resistor? What does that mean for the output of say cmp 1?

It looks like you have the two comparators swapped but you should think this out to see if that conclusion is right or wrong.
I've just revised my circuit and it becomes like this. So, you said that voltage input from resistor LDR should be in V- on CMP 1 instead of V+?
and V+ on CMP 2 instead of V-?
 

WBahn

Joined Mar 31, 2012
30,082
Your specs imply just two regions of operation. Your second circuit has three. If the specs really want just two regions of operation, I'd recommend chaining them instead of putting them in parallel.

You need to decide what the resistance of the LDR is at the boundary between "light" and "dark". Don't spend a lot of time on this part -- just pick a reasonable value. Then design the circuit so that the input to the comparators is half the supply voltage at this point.
 

dl324

Joined Mar 30, 2015
16,943
Welcome to AAC!
I've just revised my circuit and it becomes like this.
Since you're still learning, you should learn to draw more readable schematics. Avoid unnecessary wire crossings and wire jogs. Use connection dot methodology or don't, but don't mix. If you use connection dots, you don't use "humps" when wires cross.

This is your schematic drawn more conventionally:
upload_2018-5-30_11-28-35.png
You still need to address any functionality issues.
 

MrAl

Joined Jun 17, 2014
11,496
I've just revised my circuit and it becomes like this. So, you said that voltage input from resistor LDR should be in V- on CMP 1 instead of V+?
and V+ on CMP 2 instead of V-?

Hello again,

When the LDR is dark the resistance is highest (assume 100k) and when the LDR is lighted the resistance is lowest (assume 0k). The requirement is that CMP1 goes high when dark, and goes low when lighted.
Your circuit seems to do the opposite but now that you've added a third resistor (for some reason i dont know) you created a point where neither CMP1 nor CMP2 is high, so that does not satisfy the requirement that one be low when the other is high.

A comparator ouput goes high when the non inverting input voltage is higher than the inverting input voltage. Look again at your first circuit and see if you can find out what is wrong. To find out, just replace the 100k LDR with either a 100k resistor (dark) or a 0k resistor (lighted). Make a table of what happens for each of those two conditions for both comparators. Compare the table to what is required from the problem statement.
 
Top