• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Need help wiring power push momentary switch

Taly.21@live.com

New Member
Joined
Aug 5, 2013
Messages
12 (0.00/day)
http://item.mobileweb.ebay.com/viewitem?sbk=1&nav=SEARCH&itemId=140961093961

I recently bought this switch but have no idea how to wire it.
What I'm planning on doing is connecting my led light(interior) to turn on when my car's head lights are on. But as a back up I wanted a switch just in case I wanted my head lights on but not the LEDs. I want to momentary factor to stay in.
I saw a video that should me how to wire the led to the headlights(by wiring the + to a green cable) but I need help adding the switch.

It would also be awesome if my LEDs could turn on with my dome light when the door opened. I saw a video which they said to connect the + to any 12v + connection and connect the negative to the negative wire on the dome switch in the door.

So over all my plan is to have LEDs that turn on when my headlights are one, have a switch to turn off and on, and for them to turn on with dome light .plz help
 
Last edited:
Joined
Jun 23, 2011
Messages
396 (0.08/day)
System Name potato
Processor Ryzen 9 5950X
Motherboard MSI MAG B550 Tomahawk
Cooling Custom WC Loop
Memory 2x16GB G.Skill Trident Z Neo 3600
Video Card(s) RTX3090
Storage 512GB, 2TB NVMe + 2TB SATA || 32TB spinning rust
Display(s) XIAOMI Curved 34" 144Hz UWQHD
Case be quiet dark base pro 900
Audio Device(s) Edifier R1800T, Logitech G733
Power Supply Corsair HX1000
Mouse Logitech G Pro
Keyboard Logitech G913
Software win 11 amd64
you will need a relay, preferably a non solid state one.

+12v at the common of the momentary switch
connect the momentary switch's NO to + side of the relay's coil
connect the momentary switch's NC to relay's NO in series to the + side of the relay's coil
connect - side of the relay's coil to neutral/gnd.
 

Taly.21@live.com

New Member
Joined
Aug 5, 2013
Messages
12 (0.00/day)
Purpose

you will need a relay, preferably a non solid state one.

+12v at the common of the momentary switch
connect the momentary switch's NO to + side of the relay's coil
connect the momentary switch's NC to relay's NO in series to the + side of the relay's coil
connect - side of the relay's coil to neutral/gnd.

What Is the purpose of the relay? Where can I find a non solid ? And after the relay how would I connect to LEDs?
 
Joined
Mar 23, 2012
Messages
777 (0.17/day)
Location
Norway
System Name Games/internet/usage
Processor I7 5820k 4.2 Ghz
Motherboard ASUS X99-A2
Cooling custom water loop for cpu and gpu
Memory 16GiB Crucial Ballistix Sport 2666 MHz
Video Card(s) Radeon Rx 6800 XT
Storage Samsung XP941 500 GB + 1 TB SSD
Display(s) Dell 3008WFP
Case Caselabs Magnum M8
Audio Device(s) Shiit Modi 2 Uber -> Matrix m-stage -> HD650
Power Supply beQuiet dark power pro 1200W
Mouse Logitech MX518
Keyboard Corsair K95 RGB
Software Win 10 Pro
do you want the switch to also turn the leds on again? Also, getting the leds to be controlled by either the dome ligth OR the head light would be rather simple, just not with a momentary switch.
 

Taly.21@live.com

New Member
Joined
Aug 5, 2013
Messages
12 (0.00/day)
Yeah

do you want the switch to also turn the leds on again? Also, getting the leds to be controlled by either the dome ligth OR the head light would be rather simple, just not with a momentary switch.

Yes, I would want the switch to turn on the LEDs again. For instant , If I'm driving down the street with my headlights on and I get tired of the interior LEDs I would wanna turn them off with the switch, but also be able to turn them back on.

So if I understood right, the LEDs can't be controlled by both the head lights and dome light? And do you recommend me buying just a simple push power button?
And is there any way the one I bought can just be used as a simple push switch?
 
Last edited:

de.das.dude

Pro Indian Modder
Joined
Jun 13, 2010
Messages
9,118 (1.72/day)
Location
Internet is borked, please help.
System Name Monke | Work Thinkpad| J1nnx took Old Monke
Processor Ryzen 5600X | Ryzen 5500U | FX8320
Motherboard ASRock B550 Extreme4 | ? | Asrock 990FX Extreme 4
Cooling 240mm Rad | Not needed | hyper 212 EVO
Memory 2x16GB DDR4 3600 Corsair RGB | 16 GB DDR4 3600 | 16GB DDR3 1600
Video Card(s) Sapphire Pulse RX6700XT 12GB | Vega 8 | Sapphire Pulse RX580 8GB
Storage Samsung 980 nvme (Primary) | some samsung SSD
Display(s) Dell 2723DS | Some 14" 1080p 98%sRGB IPS | Dell 2240L
Case Ant Esports Tempered case | Thinkpad | Antec
Audio Device(s) Logitech Z333 | Jabra corpo stuff
Power Supply Corsair RM750e | not needed | Corsair GS 600
Mouse Logitech G400 | nipple
Keyboard Logitech G213 | stock kb is awesome | Logitech K230
VR HMD ;_;
Software Windows 10 Professional x3
Benchmark Scores There are no marks on my bench
isnt driving with interior lights on illegal in most places?
 
Joined
Mar 23, 2012
Messages
777 (0.17/day)
Location
Norway
System Name Games/internet/usage
Processor I7 5820k 4.2 Ghz
Motherboard ASUS X99-A2
Cooling custom water loop for cpu and gpu
Memory 16GiB Crucial Ballistix Sport 2666 MHz
Video Card(s) Radeon Rx 6800 XT
Storage Samsung XP941 500 GB + 1 TB SSD
Display(s) Dell 3008WFP
Case Caselabs Magnum M8
Audio Device(s) Shiit Modi 2 Uber -> Matrix m-stage -> HD650
Power Supply beQuiet dark power pro 1200W
Mouse Logitech MX518
Keyboard Corsair K95 RGB
Software Win 10 Pro
the ting is, with a momentary switch you need come complicated relay setups with delays to turn it on AND of. getting the light from one stat to the other is not a problem, its getting it back that poses a challenge.

One solution would bee to turn the headlights of and then on again, sort of reseting the control circuit.

Getting another momentary switch to act as a off switch makes the circuit rather simple again.

Getting the leds controlled by only one momentary switch, reacting to the headlights AND the dome light is probably easiest with a simple microcontroller (audrino, AVR or similar), you only need 3 input (one for the momentary switch, one from the dome light and one form the headlight) and one output to control the leds.
 

Taly.21@live.com

New Member
Joined
Aug 5, 2013
Messages
12 (0.00/day)
Okay

the ting is, with a momentary switch you need come complicated relay setups with delays to turn it on AND of. getting the light from one stat to the other is not a problem, its getting it back that poses a challenge.

One solution would bee to turn the headlights of and then on again, sort of reseting the control circuit.

Getting another momentary switch to act as a off switch makes the circuit rather simple again.

Getting the leds controlled by only one momentary switch, reacting to the headlights AND the dome light is probably easiest with a simple microcontroller (audrino, AVR or similar), you only need 3 input (one for the momentary switch, one from the dome light and one form the headlight) and one output to control the leds.

So if I understood right, lets say I get a simple rocker or just push power on/off switch , with the micro controller I can control that kind of input my out(LEDs) get? So for my inputs I would connect a + tap from each source(dome light,headlight) and I would just tap the headlight source going to the micro controller to insert the rocker switch( so when on it'll allow the flow automatically but when pressed off it'll cut the flow of energy)

Can you give me a link of an example of the microcontroller I would need and which ones are the input and output?
 
Joined
Mar 23, 2012
Messages
777 (0.17/day)
Location
Norway
System Name Games/internet/usage
Processor I7 5820k 4.2 Ghz
Motherboard ASUS X99-A2
Cooling custom water loop for cpu and gpu
Memory 16GiB Crucial Ballistix Sport 2666 MHz
Video Card(s) Radeon Rx 6800 XT
Storage Samsung XP941 500 GB + 1 TB SSD
Display(s) Dell 3008WFP
Case Caselabs Magnum M8
Audio Device(s) Shiit Modi 2 Uber -> Matrix m-stage -> HD650
Power Supply beQuiet dark power pro 1200W
Mouse Logitech MX518
Keyboard Corsair K95 RGB
Software Win 10 Pro
So if I understood right, lets say I get a simple rocker or just push power on/off switch , with the micro controller I can control that kind of input my out(LEDs) get? So for my inputs I would connect a + tap from each source(dome light,headlight) and I would just tap the headlight source going to the micro controller to insert the rocker switch( so when on it'll allow the flow automatically but when pressed off it'll cut the flow of energy)

Can you give me a link of an example of the microcontroller I would need and which ones are the input and output?

Arduino boards are easy to start with, rather powerful and have a ton of accessories. Programing directly on the AVR gives more options, but is more complex.

The one i liked to can take the voltage from the dome light, headlight and the switch you linked to and depending on how you program it, turn on or off the led lights.

Lets say you primarily want the leds to be on when the headlights or the dome light is on, but the switch you linked to to change the state. that is rather simple with that microcontroller.

I would like to say that i have never used a Arduino myself, have used several AVRs tho, and seen 8 year old programing Arduinos, so it should not be any problem for you either, but fro curiosity, what are your electronics and programing skills.
 

Taly.21@live.com

New Member
Joined
Aug 5, 2013
Messages
12 (0.00/day)
Okay

Arduino boards are easy to start with, rather powerful and have a ton of accessories. Programing directly on the AVR gives more options, but is more complex.

The one i liked to can take the voltage from the dome light, headlight and the switch you linked to and depending on how you program it, turn on or off the led lights.

Lets say you primarily want the leds to be on when the headlights or the dome light is on, but the switch you linked to to change the state. that is rather simple with that microcontroller.

I would like to say that i have never used a Arduino myself, have used several AVRs tho, and seen 8 year old programing Arduinos, so it should not be any problem for you either, but fro curiosity, what are your electronics and programing skills.

I myself am good with electronics however don't know much about programming however I have a friend that programs numerous things I'll see if he can help me, is there any specific arduino I could use or just which ever? You've been of great help , thank you.
 

Taly.21@live.com

New Member
Joined
Aug 5, 2013
Messages
12 (0.00/day)
Picture

I wanna knw what goes in the ? Box so that the LEDs won't get the power from both sorces and burn.. I was the LEDs to turn on with the headlights switch, but I also want another switch In the middle that would allow me to turn off the LEDs but still have my headlights on. So when the cars off the power for the headlights will be off too so the LEDs won't turn on, so I wanted to get the power from the domelight(the light that turns on in your car when yuh open the door) so the LEDs would turn on with the domelight..pero idk what goes in the middle so it can distribute power
 

Attachments

  • image.jpg
    image.jpg
    217.7 KB · Views: 842

de.das.dude

Pro Indian Modder
Joined
Jun 13, 2010
Messages
9,118 (1.72/day)
Location
Internet is borked, please help.
System Name Monke | Work Thinkpad| J1nnx took Old Monke
Processor Ryzen 5600X | Ryzen 5500U | FX8320
Motherboard ASRock B550 Extreme4 | ? | Asrock 990FX Extreme 4
Cooling 240mm Rad | Not needed | hyper 212 EVO
Memory 2x16GB DDR4 3600 Corsair RGB | 16 GB DDR4 3600 | 16GB DDR3 1600
Video Card(s) Sapphire Pulse RX6700XT 12GB | Vega 8 | Sapphire Pulse RX580 8GB
Storage Samsung 980 nvme (Primary) | some samsung SSD
Display(s) Dell 2723DS | Some 14" 1080p 98%sRGB IPS | Dell 2240L
Case Ant Esports Tempered case | Thinkpad | Antec
Audio Device(s) Logitech Z333 | Jabra corpo stuff
Power Supply Corsair RM750e | not needed | Corsair GS 600
Mouse Logitech G400 | nipple
Keyboard Logitech G213 | stock kb is awesome | Logitech K230
VR HMD ;_;
Software Windows 10 Professional x3
Benchmark Scores There are no marks on my bench
since u say its illegal, connect them to the interior light that goes on when off. To find the wire go into the fuse box with a multimeter, and check which wire stays 12v only when door is open anf the interior light is on.

Mark these off, then run the led wires to there and you will be set. You may or may not solder. Twisting an inch around works as well.
 
Joined
May 14, 2009
Messages
2,132 (0.37/day)
Location
Chicago burbs
System Name Halloween Boo!
Processor Intel Core i7 3770K
Motherboard Gigabyte Z77-Up7
Cooling Custom Water/ Thermalchill TA 120.3/ Swiftech Apogeee XT/ MCP655/ Swiftech M icrores/ XSPC RX 240
Memory 16G G.Skill trident 2400MHz
Video Card(s) 3 x Radeon 7970
Storage OCZ Revo Drive 240G
Display(s) 24 inch Viewsonic
Case Phobia WayCoolIt Test Bench
Power Supply Nexus 1100 watt
This cannot be done
 
Joined
Jun 23, 2011
Messages
396 (0.08/day)
System Name potato
Processor Ryzen 9 5950X
Motherboard MSI MAG B550 Tomahawk
Cooling Custom WC Loop
Memory 2x16GB G.Skill Trident Z Neo 3600
Video Card(s) RTX3090
Storage 512GB, 2TB NVMe + 2TB SATA || 32TB spinning rust
Display(s) XIAOMI Curved 34" 144Hz UWQHD
Case be quiet dark base pro 900
Audio Device(s) Edifier R1800T, Logitech G733
Power Supply Corsair HX1000
Mouse Logitech G Pro
Keyboard Logitech G913
Software win 11 amd64
What Is the purpose of the relay? Where can I find a non solid ? And after the relay how would I connect to LEDs?

nope, sorry, what i posted earlier would not work, not with single relay. maybe with a pair of relays and a capacitor. or perhaps with simple flip-flop circuit or a simple counter chip?

it would be much much simpler if you change that momentary switch to a toggle one.
 

Taly.21@live.com

New Member
Joined
Aug 5, 2013
Messages
12 (0.00/day)
True

nope, sorry, what i posted earlier would not work, not with single relay. maybe with a pair of relays and a capacitor. or perhaps with simple flip-flop circuit or a simple counter chip?

it would be much much simpler if you change that momentary switch to a toggle one.

Yeah I'm over with trying to do the momentary switch. What's your opinion on the whole headlight, dome light thing?
 
Joined
Mar 23, 2012
Messages
777 (0.17/day)
Location
Norway
System Name Games/internet/usage
Processor I7 5820k 4.2 Ghz
Motherboard ASUS X99-A2
Cooling custom water loop for cpu and gpu
Memory 16GiB Crucial Ballistix Sport 2666 MHz
Video Card(s) Radeon Rx 6800 XT
Storage Samsung XP941 500 GB + 1 TB SSD
Display(s) Dell 3008WFP
Case Caselabs Magnum M8
Audio Device(s) Shiit Modi 2 Uber -> Matrix m-stage -> HD650
Power Supply beQuiet dark power pro 1200W
Mouse Logitech MX518
Keyboard Corsair K95 RGB
Software Win 10 Pro
Using a momentary switch is possible, but it need some extra logic (microcontroller or a large relay setup).
The simples solution is a on off on switch like these and doing the cabling like this:


That would send 12 volt to the leds if either the dome light or the headlight is on, but that would depend on the position of the switch.

Now, the Arduino Leonardo board should be a good starting point it you want to use that momentary switch you linked to in you first post, and to make the control a bit more advanced, like this:

Its more complicated, but can be expanded to also control color and you get a lot more options.
 

Taly.21@live.com

New Member
Joined
Aug 5, 2013
Messages
12 (0.00/day)
Thanks

Using a momentary switch is possible, but it need some extra logic (microcontroller or a large relay setup).
The simples solution is a on off on switch like these and doing the cabling like this:
http://img.techpowerup.org/130806/leds1.png

That would send 12 volt to the leds if either the dome light or the headlight is on, but that would depend on the position of the switch.

Now, the Arduino Leonardo board should be a good starting point it you want to use that momentary switch you linked to in you first post, and to make the control a bit more advanced, like this:
http://img.techpowerup.org/130806/leds2.png
Its more complicated, but can be expanded to also control color and you get a lot more options.

Than you and everybody else that replied to my post you have been of great help and I'll let you knw how everything ends up.
 
Joined
Mar 23, 2012
Messages
777 (0.17/day)
Location
Norway
System Name Games/internet/usage
Processor I7 5820k 4.2 Ghz
Motherboard ASUS X99-A2
Cooling custom water loop for cpu and gpu
Memory 16GiB Crucial Ballistix Sport 2666 MHz
Video Card(s) Radeon Rx 6800 XT
Storage Samsung XP941 500 GB + 1 TB SSD
Display(s) Dell 3008WFP
Case Caselabs Magnum M8
Audio Device(s) Shiit Modi 2 Uber -> Matrix m-stage -> HD650
Power Supply beQuiet dark power pro 1200W
Mouse Logitech MX518
Keyboard Corsair K95 RGB
Software Win 10 Pro
Than you and everybody else that replied to my post you have been of great help and I'll let you knw how everything ends up.

I think i made a bit of an mistake with the ebay link, those are on/off (two position) switches, you need a on/off/on switch (tree postion) like this, or this, or this or this or this
 

de.das.dude

Pro Indian Modder
Joined
Jun 13, 2010
Messages
9,118 (1.72/day)
Location
Internet is borked, please help.
System Name Monke | Work Thinkpad| J1nnx took Old Monke
Processor Ryzen 5600X | Ryzen 5500U | FX8320
Motherboard ASRock B550 Extreme4 | ? | Asrock 990FX Extreme 4
Cooling 240mm Rad | Not needed | hyper 212 EVO
Memory 2x16GB DDR4 3600 Corsair RGB | 16 GB DDR4 3600 | 16GB DDR3 1600
Video Card(s) Sapphire Pulse RX6700XT 12GB | Vega 8 | Sapphire Pulse RX580 8GB
Storage Samsung 980 nvme (Primary) | some samsung SSD
Display(s) Dell 2723DS | Some 14" 1080p 98%sRGB IPS | Dell 2240L
Case Ant Esports Tempered case | Thinkpad | Antec
Audio Device(s) Logitech Z333 | Jabra corpo stuff
Power Supply Corsair RM750e | not needed | Corsair GS 600
Mouse Logitech G400 | nipple
Keyboard Logitech G213 | stock kb is awesome | Logitech K230
VR HMD ;_;
Software Windows 10 Professional x3
Benchmark Scores There are no marks on my bench
why not jsut buy a friggin push button switch XD use the momentary in ur pc or something.

the momentary switch is unnecessarily complicating things by 100%
 
Joined
Jun 23, 2011
Messages
396 (0.08/day)
System Name potato
Processor Ryzen 9 5950X
Motherboard MSI MAG B550 Tomahawk
Cooling Custom WC Loop
Memory 2x16GB G.Skill Trident Z Neo 3600
Video Card(s) RTX3090
Storage 512GB, 2TB NVMe + 2TB SATA || 32TB spinning rust
Display(s) XIAOMI Curved 34" 144Hz UWQHD
Case be quiet dark base pro 900
Audio Device(s) Edifier R1800T, Logitech G733
Power Supply Corsair HX1000
Mouse Logitech G Pro
Keyboard Logitech G913
Software win 11 amd64
Yeah I'm over with trying to do the momentary switch. What's your opinion on the whole headlight, dome light thing?

go with a toggle switch. if you want it to lit with headlight & dome light, you just gonna have to get 2 relays, solid state is okay (if the load are just LEDs)

take the + from headlight indicator lamp (or from the headlight's switch or relay or lamp) use it to power the 1st relay. do the same for the dome light. and then take + from battery, pass it on the NO (normally open) contacts of the relays, wire them in parallel and then to the toggle switch and the to the + of the LED. connect the - of LED to ground wire, and you're done.

hope it helps.

PS: i couldn't draw in autocad coz am on vacation. but maybe i can use ms paint should you need it, just ask :)
 

Taly.21@live.com

New Member
Joined
Aug 5, 2013
Messages
12 (0.00/day)
go with a toggle switch. if you want it to lit with headlight & dome light, you just gonna have to get 2 relays, solid state is okay (if the load are just LEDs)

take the + from headlight indicator lamp (or from the headlight's switch or relay or lamp) use it to power the 1st relay. do the same for the dome light. and then take + from battery, pass it on the NO (normally open) contacts of the relays, wire them in parallel and then to the toggle switch and the to the + of the LED. connect the - of LED to ground wire, and you're done.

hope it helps.

PS: i couldn't draw in autocad coz am on vacation. but maybe i can use ms paint should you need it, just ask :)

Honestly I'm new to all this relay things and switches but it would be greatly appreciated if you could draw it. I can wait till your back from vacations I'm still waiting on the pieces to arrive
 

sneekypeet

not-so supermod
Staff member
Joined
Apr 12, 2006
Messages
29,623 (4.34/day)
System Name EVA-01
Processor Intel i7 13700K
Motherboard Asus ROG Maximus Z690 HERO EVA Edition
Cooling ASUS ROG Ryujin III 360 with Noctua Industrial Fans
Memory PAtriot Viper Elite RGB 96GB @ 6000MHz.
Video Card(s) Asus ROG Strix GeForce RTX 3090 24GB OC EVA Edition
Storage Addlink S95 M.2 PCIe GEN 4x4 2TB
Display(s) Asus ROG SWIFT OLED PG42UQ
Case Thermaltake Core P3 TG
Audio Device(s) Realtek on board > Sony Receiver > Cerwin Vegas
Power Supply be quiet DARK POWER PRO 12 1500W
Mouse ROG STRIX Impact Electro Punk
Keyboard ROG STRIX Scope TKL Electro Punk
Software Windows 11
I don't see what is with all the complication. Assuming these are 12V LEDs, grab any 12V switched power wire in the car, or from the battery is better, add in a switch, and ground them. Switch on when you want lights, switch off when you want them off!


If you were to go and look and truck and van accessories, they make strips that come with the swtich and wire in with a 12V+ and a ground, it really is that simple.

something like this....http://www.trucknvans.com/product-p/cz-3008w.htm
 
Joined
Jun 23, 2011
Messages
396 (0.08/day)
System Name potato
Processor Ryzen 9 5950X
Motherboard MSI MAG B550 Tomahawk
Cooling Custom WC Loop
Memory 2x16GB G.Skill Trident Z Neo 3600
Video Card(s) RTX3090
Storage 512GB, 2TB NVMe + 2TB SATA || 32TB spinning rust
Display(s) XIAOMI Curved 34" 144Hz UWQHD
Case be quiet dark base pro 900
Audio Device(s) Edifier R1800T, Logitech G733
Power Supply Corsair HX1000
Mouse Logitech G Pro
Keyboard Logitech G913
Software win 11 amd64
Honestly I'm new to all this relay things and switches but it would be greatly appreciated if you could draw it. I can wait till your back from vacations I'm still waiting on the pieces to arrive
well, lets see what i can come up with ms paint :D

Bencrutz is this what you mean?
yep, solid state type.

basically, relay is just an electrically controlled switch. apply a voltage and the switch will close / open.
there are 2 type of contact on relay, a NO (normally open) means a contact that are open in un-powered/de-energized state and will close when you energized the relay; and a NC (normally close) which is the opposite.

i'll come back with schematic drawing.

EDIT:
here's the schematic, well, sort of :laugh:

schem.png
 
Last edited:
Top