I have a 3 pole switch I want to use to restrict and derestrict an Ebike. The controller only has 1 input for on/off which means both positive poles of my switch need to be connected to it
Problem, I need to feed a 5v signal ONLY when 1 of the 2 poles are selected.
When the 5v signal is received the bike is restricted, my switch looks like this "L1/0/L2".
I presume I want to put a diode on L1 just before it joins to L2 and feeds the controller and take a spur off of L1 before the diode, now when L2 is selected on the switch the spur from L1 will not be live, correct?
The spur coming from L1 will then feed the signal wire (thus restricting the ebike) on the controller, and only be live when L1 (low power mode) is selected on the switch, correct?
L1 and L2 have variable voltage of 42-58Vdc and draw 0.3mA, I want the spur from L1 to have a fixed voltage of 5Vdc, its draw is 0.02mA. What is the correct way to do this? A very rudimentary diagram would be helpful, I have no clue about electronics.
I did look at a DC/DC buck converter but, most only allow from 40Vdc to 5Vdc and even the higher voltage variable ones mostly say Max -33v output, which ofcoarse is no good to me
1. Will my idea work, with a spur before a diode on L1?
2. Should I use 2 variable buck converters in parrallel on the spur, 42-60Vdc -> 30Vdc -> 30Vdc -> 5Vdc?
3.. Is there an easier cheaper way?