Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

2 LED's act as switch for 3rd?

Status
Not open for further replies.

Roto

New Member
Have 2 LED's they each have there own switch for on/off. I wish to add a 3rd LED but I only want the 3rd to light up when the 1st two are both on. How do I do this?
 

Attachments

  • led_switch_2.jpg
    led_switch_2.jpg
    18.1 KB · Views: 682
Would this work? Switch one LED at the negative side and the other at the positive side. Then wire the third LED between the two switches.
 
Although I think my suggestion is still valid, you'll need to rewire the existing LEDs. BTW, where are the current limiting resistors?
 
I like your idea. I guess some back ground would help. The 1st dawing is for my general goal.


Have multiple inductive loops in roadway with unmarked leads coming to side of road. Using loop detectors and combining them to make this work. Each loop detector will flash an LED when a car drives over an individual loop. My problem is that I have a lot of loops in road. Need to see which are lead or trail loops. Loops are 6' diameter and 16' leading edge to leading edge. When a car sets on 2 loops at same time within same lane I want a 3rd LED to light up which in turn tells me I have the correct 2 loops leads and correct lane.
If a car in lane A sets on a lead loop and car in lane B sets on trail loop then the 3rd LED will not light up.
This is my concept and I think it will work just need help on the electronics part of it.
 

Attachments

  • detector_concept_1.jpg
    detector_concept_1.jpg
    11.5 KB · Views: 667
  • detcector_2.jpg
    detcector_2.jpg
    11.2 KB · Views: 660
Forgot to mention that my switch in the first drawing represents my loop detectors which switch on/off the individual LED's.
Was hoping to only splice into the wiring of the LED's on the loop detectors to somehow make the 3rd one light up. Did that statement make sense I hope?
 
If you connect the input of opto-couplers in series with each red LED then connect the outputs in series and to the green LED the green LED will only come on when both red LED's are on.
 
why not use two transistors?
 

Attachments

  • nand.jpg
    nand.jpg
    10.5 KB · Views: 626
I'm not sure if 74ALS08 could provide sufficient current for the 3rd LED in
such configuration even to get it enough to turn on. TTLs usually can
sink more current so NAND gate would be better (the ALS08 gate can
sink only ca 8mA).
 
panic mode said:
I'm not sure if 74ALS08 could provide sufficient current for the 3rd LED in
such configuration even to get it enough to turn on. TTLs usually can
sink more current so NAND gate would be better (the ALS08 gate can
sink only ca 8mA).
you are right i should have drawn it to sink the current ..but what the heck it was the idea of using an AND gate that i was trying to get across.
the ALS08 was just the first one i came across.. a 7408 would work..
 
The and function is taken care of the opto coupler outputs being in series, plus using opto couplers does not require using an additional 5V power source.
See attached schematic
 

Attachments

  • opto.jpg
    opto.jpg
    14.9 KB · Views: 561
Need individual signal from each loop. On Your sematic the third LED have same criteria for ON and OFF state...
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top