12 volts overhead leds in trailer that switch on if either or both doors open

Thread Starter

LEEQ

Joined Jul 5, 2024
23
Hello. I'm not formally trained in electronics, but I have done some simple projects like hook up a pid controlled system to a kiln, wire a vfd and controls to a lathe, wire battery powered leds. The last time I wired some leds in a trailer I used a dewalt battery for power. There was a switch on the socket you plug the battery into. 20 volts came from the battery to a buck converter when the switch was on. From the converter to the leds it was stepped down to 12 volts. I want to do another trailer in a similar fashion, but I want to put switches against each door that will turn on the lights when the door swings away from the switch. I want the lights to come on when either door is open, or when both doors are open. Even more amazing if you could also switch it on from a simple on/off switch. I'm thinking I can figure out what switches, lights, and buck converter to buy, but I don't know what else I need to make this work, or how to wire it. If this topic is covered, my apologies, I did try find it.
 

sghioto

Joined Dec 31, 2017
8,633
With the proper switches I don't think you will need anything else.
All you would need to do is install both door switches and the on off switch in parallel with each other. One side of the switches connects to the + output of the 20 volt battery the other side to the positive input of the buck converter.
The LEDS connect to the + output of the converter.
Negative side of LEDs to negative output of converter
Negative side of the battery to the negative input of the converter.
 

Thread Starter

LEEQ

Joined Jul 5, 2024
23
Could that be done on the lower voltage side? ie the converter output goes to one side of the switches, and the other side of the switches goes to the leds.
 

Thread Starter

LEEQ

Joined Jul 5, 2024
23
Ahh, ok then. I just need to hunt down the switches for the doors and I will be ready. I'm finding mostly stuff rated at .6 amps at 125 volt dc. Would those be up to the task when wired in before the buck converter? It looks like each of the four led's will draw 1.67 amps and I don't want to have my switches undersized. Any thoughts?
 

Thread Starter

LEEQ

Joined Jul 5, 2024
23
Would a switch rated at .6 amps at 125vdc be sufficient for 15amps at 12vdc? How do I figure that? It seems like what I'm finding is not saying anything about amp ratings at 12 or 20volts.
 

crutschow

Joined Mar 14, 2008
38,322
The current rating of a switch is only slightly affected by the voltage so don't used the switch for above its 0.6A rating.

Likely would be better to use the switches to control a 12V, 20A relay (example).
That allows the use of those switches, and you can use small wire to go to the switches since it only has to carry the low relay coil current of a few tenths of an amp.
 
Last edited:

Thread Starter

LEEQ

Joined Jul 5, 2024
23
If I understand correctly, I would then need to somehow step my voltage down for the switches, then use the relay to give the buck converter full voltage. I think I would rather the more simple circuit if I can find more robust switches. Any suggestions as to a source of switches rated at 10 or 15 amps?
 

crutschow

Joined Mar 14, 2008
38,322
If I understand correctly, I would then need to somehow step my voltage down for the switches, then use the relay to give the buck converter full voltage.
No.
The relay and switches still operate from the 12Vdc but the switches just handle the low current needed to operate the relay coil.
The relay's contacts then switch the high-current 12V to the converter.
 

Thread Starter

LEEQ

Joined Jul 5, 2024
23
sghioto
Joined Dec 31, 2017 5,464
Yesterday at 9:47 PM
With the proper switches I don't think you will need anything else.
All you would need to do is install both door switches and the on off switch in parallel with each other. One side of the switches connects to the + output of the 20 volt battery the other side to the positive input of the buck converter.
The LEDS connect to the + output of the converter.
Negative side of LEDs to negative output of converter
Negative side of the battery to the negative input of the converter.
 

Thread Starter

LEEQ

Joined Jul 5, 2024
23
If the switches are in between the battery and the buck converter, do they draw the full load of the led's? I feel like I was so close and now I'm confused, lol.
 

Thread Starter

LEEQ

Joined Jul 5, 2024
23
My understanding was that the switches would experience the full load when the lights are switched on. They are in between the 20v and the converter that is drawing power for these lights. At 20v, 20 watts would be 1 amp each for a total of 4 amps. If I used switches rated twice that size, they would need to be rated for 8 amps at 20 volts. That is why I was hunting 10 amp rated switches. I just rounded up a bit.
 

MrChips

Joined Oct 2, 2009
34,628
If the switches are in between the battery and the buck converter, do they draw the full load of the led's? I feel like I was so close and now I'm confused, lol.
Use power calculation and assume equal amount of power consumed.
LED power = LED volts x LED current
Battery power = Battery volts x Battery current

Then take the battery current and multiply it by 1.2 to take into account 20% loss in power.
 
Top