0
\$\begingroup\$

enter image description here

I've implemented above circuit and it was successful. The given circuit needs 12VDC to run properly.

I want to run this circuit on 5-6VDC or 9VDC whichever is possible. I know I have to change resistors but not confirmed which to use.

Also if I use 9V battery only to activate 6V relay for 8hrs daily, for how many days will that battery work?

\$\endgroup\$
2
  • \$\begingroup\$ You already asked this question.......... \$\endgroup\$
    – Trevor_G
    Commented Jun 8, 2017 at 15:28
  • \$\begingroup\$ All you need to change is the relay - pick one with an appropriate coil voltage to match your supply. The resistor values stay the same since they're all used in voltage divider networks off the supply - they're 'ratiometric'. Except maybe R2 - you could reduce that one a little in proportion to the supply voltage. \$\endgroup\$
    – brhans
    Commented Jun 8, 2017 at 15:41

4 Answers 4

3
\$\begingroup\$

All you really need to change is the relay - pick one with an appropriate coil voltage to match your supply.
The resistor values on the opamp inputs all stay the same since they're used in voltage divider networks off the supply - they're 'ratiometric'.
The only resistor you might consider changing is R2 - you could reduce that one a little in proportion to the supply voltage.
So for a 6V supply I'd consider changing R2 to a 5k6 or 4k7.

The LM358 Opamp in this circuit is an example of a "single supply" opamp and its input common-mode voltage range includes ground.
A different Opamp (like the dreaded 741) may not have this feature and so you wouldn't be able to simply reduce the supply voltage and trust in the ratiometric nature of the inputs.

\$\endgroup\$
2
\$\begingroup\$

Other than the relay this circuit will run on anything from 3V to 32V.

R2 is the only other component that will need to change. 10K is way too high anyway, make it like 1K.

In order to change it you need to use a different relay, and since you are running it off a battery you are probably better off with a solid-state relay that can tolerate a larger drive voltage range.

As for battery life... it really depends on the battery, but there is not much you can do to improve it with this circuit other than what I have already mentioned and increasing the size of the pot.

BTW: This circuit needs some hysteresis or it will turn itself off again when the light turns on.

\$\endgroup\$
3
  • \$\begingroup\$ This was what I wanted to see written! +1. The hysteresis is kind of important. And the point about it being ratiometric that you started with, plus the relay change. I think there's a limit against the upper rail of about 2 V. But dropping to 6 V, it may still be fine. \$\endgroup\$
    – jonk
    Commented Jun 8, 2017 at 15:56
  • \$\begingroup\$ But I've also connected 6V relay and changed power source to 6V but still it doesn't work. \$\endgroup\$
    – A_47
    Commented Jun 8, 2017 at 17:35
  • \$\begingroup\$ CHange R2 to 1K \$\endgroup\$
    – Trevor_G
    Commented Jun 8, 2017 at 17:38
1
\$\begingroup\$

I'll give you something to get started. LDR is a resistor that goes from very high value (100k-1M Ohm) when dark and a low value when light is on.

The LDR is forming a voltage divider with R1, the result of which goes to one of the inputs of the OPAMP U1, which is being used as a comparator. The other input of this very comparator is tied to a potentiometer. So the comparison of the voltages resulting of the voltage divider and the potentiometer is what sets wether the Relay should act or not.

Knowing this you should evaluate:

  • Getting another relay which can operate at a lower voltage.
  • Keeping R1 but adjusting manually the potentiometer or changing R1 and leaving the pot untouched.

Regarding to the battery: duration of the battery is dependant on the current that is drawn from it. It is not possible to answer that question with the information you provided.

\$\endgroup\$
0
\$\begingroup\$

You have 4 components dependent upon VDD:

1) OpAmp/comparator will work at 6 volts? check it

2) base drive to bipolar is adequate to saturate? you need the standard operating current of the (new 5 volt relay you must chose), and add 10% for winding wire tolerance, and reduce the bipolar beta by 90% to get deep into the saturation region, to avoid time*power product overheating of the bipolar (SOA safe operating area); thus you compute R = 4v/Ib_to_saturate; this assumes your opamp/comparator serves as good comparator without 1Meg resistor from VIn+ to Vout

3) a relay for 5 volts

4) replace the 1n4148 with diode able to handle (one-time-pulse rating) the 200 or 500 milliamp of you new relay

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.