Multisim and Ultiboard

cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic & manual Headlights alarm circuit with LDR

I'm having a little trouble trying to modify this circuit I found online to make it work with a LDR (simulated with potentiometer), I almost got it working the way I want it. OK... here is the scenerio:

 

1. Turn on the engine in the car (switch S2) turns on the motor (LED2)

 

2. As the sun goes down and gets darker, the LDR (potentiometer) automatically turns on Headlights (LED1)

 

3. we can optionally turn on manually the headlights with switch (S1)

 

4. If we turn off the car and forget to turn off the headlights manually, the alarm (buzzer) sounds.

 

The only problem is that if the potentiometer is active (dark or night) and we do not turn off the lights manually, it also turns on the LED2 (motor). This would means that if is dark outside, the car would turn on... which is obviously a big problem.

 

 

 

Automatic headlights.JPG

 

 

 

0 Kudos
Message 1 of 5
(8,244 Views)

Hi,

 

What I see is that even though S2 is open the current is finding a path through S1. How does the original circuit look like?

 

Regards,

Fernando D.
National Instruments

0 Kudos
Message 2 of 5
(8,209 Views)

The only difference from the original circuit is the portentiometer. I placed the potentiometer to simulate a Light dependent resistor (LDR). If you take out the potentiometer, then you will have the original circuit. It almost works the way I want it to, but like I explain before "If it dark outside the LDR will be activated, plus I forgot to turn off the switch S1 off manually, the LDR will turn on the motor (LED2) as I said before a big problem. 

 

Thanks for your help

0 Kudos
Message 3 of 5
(8,200 Views)

Hello,

 

As I mentioned, in this scenario the current is finding a path to LED2. So here is my suggestion: use a diode to block the current.

 

headlights.png

 

Furthermore, with this configuration the alarm also goes off to alert the user that the headlights are on. Note that I decreased the values of R4 and R6 so that they can activate the LEDs. Also, the 1N4001 is a common diode, but you should do further research to see if there are better options.

 

I also attached the circuit, hope this helps.

Fernando D.
National Instruments

0 Kudos
Message 4 of 5
(8,170 Views)

It finally works... thank you. I had explored other options and I've been told it can be done with a 741 op amp, but I want it to do it with the most basic and the least amount of components as possible. It is for a school project; where the requierement was to use limited resources.

0 Kudos
Message 5 of 5
(8,159 Views)