# 1 switch controls 2 seperate lights

#### mgacuzar

Joined Oct 18, 2020
5
anyone knows what electronic device is connected between a 1-gang switch and 2 different light?

so the function is like this,

1st switch on - light-A lights up
1st switch off - light-A turns off
fast 2nd switch on - light-B on
2nd switch off - light-B off
fast 3rd switch on - both light up
3rd switch off - both turns off

thanks

#### SamR

Joined Mar 19, 2019
5,037
A wire? Pretty simple. Put both A&B on switch 3. Maybe you need to clarify the logic a bit? A sketch would help.

#### mgacuzar

Joined Oct 18, 2020
5

#### mgacuzar

Joined Oct 18, 2020
5
i know there a device on the market but i dont know what is it called

#### SamR

Joined Mar 19, 2019
5,037
You said 3 switches? I only see one... You also said gang switch. Are you talking about a relay? Do you mean a single pushbutton that is pushed 3 times?

#### BillB3857

Joined Feb 28, 2009
2,570
I have seen pull chain switches that will do something similar on ceiling fans. Pull once, HIGH SPEED, pull twice, SLOW SPEED, pull 3 times, OFF. They work by rotating an internal "wheel" by a ratchet mechanism.

#### djsfantasi

Joined Apr 11, 2010
9,160
I have seen pull chain switches that will do something similar on ceiling fans. Pull once, HIGH SPEED, pull twice, SLOW SPEED, pull 3 times, OFF. They work by rotating an internal "wheel" by a ratchet mechanism.
And that ratcheting mechanism is a mechanical implementation of a counter.

Use the single switch as a pulse to increment the counter. Wire successive outputs to the desired light combinations. You can use a 4017 ic as the counter as it provides discrete outputs.

There are several sub-problems to be solved. How to isolate the A+B output from the individual lights (diodes), making the lights go off between each state... (maybe a dual edge detector circuit to pulse on both switch closed and switch open states and using a dead output between states), debouncing the switch... I think that’s all but I haven’t made a complete design; just presented the basic concepts.

#### mgacuzar

Joined Oct 18, 2020
5

found it.

#### Tonyr1084

Joined Sep 24, 2015
7,886
Sounds like a touch lamp with dimmer. Touch it once and it's on low. Touch it again and it's on medium. Touch again, high.

Bought a couple of those modules and put them in a plastic double gang box and wired them to two independent extension cords. Now I can plug any lamp I want into the extension and the tapping of a sensing wire will turn the lamps on either side of the bed on low, medium or high without having to get out of bed. Convenient for turning the lights on and getting in bed, then turning the lights off. Lazy - yeah, I know.

#### btebo

Joined Jul 7, 2017
100
I just say "Hey Google - Good Night" and my lights turn off.....

#### Ramussons

Joined May 3, 2013
1,409
anyone knows what electronic device is connected between a 1-gang switch and 2 different light?

so the function is like this,

1st switch on - light-A lights up
1st switch off - light-A turns off
fast 2nd switch on - light-B on
2nd switch off - light-B off
fast 3rd switch on - both light up
3rd switch off - both turns off

thanks
Which switch over rides the other? For example, 3rd switch ON, 1st switch OFF, what happens to Light A?
Is the Lamp condition dependent on the Change in Switch Position or the Switch Position?

I think a Truth Table will make it clearer.

#### Tonyr1084

Joined Sep 24, 2015
7,886
I believe he's talking about a single switch activated (and probably held for set periods of time) to get one of three different outputs. Though the drawing he provided shows a green wire going to "?".

#### djsfantasi

Joined Apr 11, 2010
9,160
Is this a university project? There is a surfeit of new members asking the same question or a slight variant. See user Anderson for example.