Advancing the state of Ebike Electrical Wiring

Kingfish

100 MW
Joined
Feb 3, 2010
Messages
4,064
Location
Redmond, WA-USA, Earth, Sol, Orion–Cygnus Arm, Mil
Related Thread: DOT Vehicle Lighting

Greetings

I am preparing to upgrade my ebike to accept a parallel lighting system that enables Motorcycle-style control lighting.

At present, I use a DC-DC converter that takes 33-75 VDC in and has 3.3 & 12 VDC out. The 3.3V is used to run my High-Powered Cree LED flashlights as headlamps, and for driving the flashy red-white Blinkys in the rear. Each unit has their own circuit switch. The 12V channel is unused at present, however in the new schema this will be used to power running lights, signal, brake light, and quite possibly a future horn & central headlamp. I tender two schematics; present and future:

P1-Electrial-V0.png

Planned revised system

* Please excuse my lame schematics; I used Visio and the component selections are not the best. The key pieces are that the Controller = Infineon PWM Controller, and DC-DC = the DC-DC Converter previously mentioned.
I think everything else is straight-up. :)

The present system works, it’s just cumbersome because the switches are inline and float; there are three total: DC Converter On/Off, Headlight On/Off, and the Controller On/Off (not illustrated).


P1-Electrial-V1.png

Present system

The revised system is obviously more complicated. The key features are that I am tapping into the 12V leg of the DC converter to power the automobile-class electricals such as the running lights, brake, and indicators. For the Brake light, I thought of using a simple inline 5VDC relay to close the circuit. However I don’t know if the current drop will overload the PWM controller electronics. The optimum solution would be a DPDT however I have not been able to source a single micro lever switch for cheap. The relay looked like a very inexpensive way to go. Thoughts?

I did source a Flasher for LEDs and this is indicated in the system schematic.

The 12V supply would get an electrolytic capacitor; I’m thinking 220μF would be enough. The whole leg is all low-power LED, and even the flasher is supposed to be solid-state.

Finally, the On/Off power switch to the DC converter would be replaced by a keyswitch, but the one I wish to use is not a DP so again I was thinking either use another inline relay, or bypass the LM317 & R1 business altogether and directly inject conditioned 12V into the controller before the 5V regulator. I think this would simplify the On/Off problem and cut out the pesky trickle-down drain. I don’t know how this would affect the inrush current though.

MotorcycleHdbrCtrlLtSw.jpg

Motorcycle Handlebar Controls for headlights, Indicators, & Horn

The Low/High Beam and Indicator switches are integrated into a new handlebar controller for motorcycles. At preset the high beam and horn will not be used. To make room, the present 3-way Speed control and Cruise Control module will go from the left to the right side (even though I prefer having Cruise on the left). This will make for a crowded handlebar. To regain needed real estate the gear shifters are being swapped out from Shimano to SRAM Attack.

That’s the Plan anyway. Except for the taillight – all the pieces have arrived. Restating the questions:
  1. Would a 5VDC relay work inline on the Ebrake circuit to complete the Brake-Light? I would be most grateful for a little help speccing one out. The alternative is a DPDT micro/mini lever switch. Presently I have a SPDT from RadioShack and it is doing a bang-up good job well and above the magnetic reed switch.
  2. Likewise would it be possibly to bypass LM317 with 12VDC from the converter?
Threads for the DC-DC converter (VKP60M312) and inplimentation are given below:
DC-DC Converters
Cree HP-LED Conversion & DC-DC Converter Assy

It’s a little bit ambitious, but then so is the whole hobby :D
Thanks kindly, KF
 
Way cool!
 
OK, I have done a bit of research and developed a small revision; update below:

P1-Electrial-V1A.png

Revision -A- to the Revision

Item 1:
I sourced a proposed Ebrake Relay at Digikey; details:
  • RELAY GP SPST-NO 3A 5VDC PCB
    Circuit SPST-NO (1 Form A)
    Contact Rating @ Voltage 3A @ 250VAC
    Coil Current 40mA
    Coil Voltage 5VDC
    Control On Voltage (Max) 3.75 VDC
    Control Off Voltage (Min) 0.25 VDC
    Incredibly inexpensive at $1.49
My hope is that the coil current is sufficiently low enough to not adversely affect the ebrake circuit; really all we need to do is pull the leg high on the MCU.

Item 2:
Below is a snip from the schematic for the Infineon 116-based controller; this maps directly to my circuit board version.

Controller_PowerRegulation.png

It is watt it is...

After a bit of study I realized I could just use my Keyswitch which is rated at 2A-250VAC instead of a DPST relay; it should be fine for handling low current at 75VDC. It then looks to me that I can pull a single wire after the keyswitch and run it to the VCC-L pad, bypassing the On/Off switch on the controller. I couldn’t cut out the VCC-L circuit altogether because the CA and the LV sense need it for reference.

There is still an option to bypass the R1 & LM317 components (12V regulator) and use the 12V supply from the DC-DC converter, with the advantage being one less source of heat inside the controller. :)

My hope is that one of the EE graybeards on ES will sanity-check this thinking.

Perhaps an offering to the ES-demigods will be enough…
<bowing low in their general direction… “Oooooohm”>
~KF
 
Kingfish said:
  1. Would a 5VDC relay work inline on the Ebrake circuit to complete the Brake-Light?

  1. Yes. I used that method on the first setup of DayGlo Avenger's brakelight relay, using the Fusin controller that has a hall for ebrakes, tapping the power off of that. ONce I changed to the 9C/Lyen 6FET, I used a 12V relay powered off teh DC-DC, as that controller didn't have ebrake power to tap off of (only a two-wire ebrake line).

    I would be most grateful for a little help speccing one out.
    I just used one out of a little UPS (the type that has a 7Ah SLA in it), for the 5V one, IIRC. I think the 12V one came out of some other random PCB I had laying around.

    If you want to minimize the load on the controller's 5V, if tapping ebrake line power, then get the lowest coil current unit you can. It doesnt' matter too much about the contact ratings, because I think just about anything is good enough for a brake light, assuming less than an amp or two.


    [*]Likewise would it be possibly to bypass LM317 with 12VDC from the converter?
    Possibly; I've never tried to do that.
 
<In my best Mr. Burns voice>
Excellent! :)
</Mr. Burns>

I ordered Qty-2 of the RELAY GP SPST-NO 3A 5VDC PCB from Digikey. They were dirt-cheap. I was hard-pressed to find a lower Coil Current below 40mA; that’s not much of a draw.

Pretty much just waiting on that now – and the rear taillight which should be here any day.


Chillin’ KF
 
Hey, Kingfish,

What taillight/turn signal did you decide to get, I couldn't find it in this or your previous thread?

And, where did you find that headlight/taillight/turn signal handlebar switch? I haven't been able to find one at a decent price.

Thanks,

Cameron
 
Hey OldPiper

Here’s the Parts et al...

  • Motorcycle LED Rear Tail Light: Item# TL-GJ-022-1 from kapscomoto.com ~ $36
    Alternatively – browse your local Auto Parts stores for items of similar ilk. :idea: I haven’t received this item yet so I cannot lend an opinion about the quality. The one detail I did like was that it was narrow and possibly able to remove the license plate mounting bracket. I recommend a standalone light over a motorcycle part replacement. The challenge will be how to mount it to the rear rack.
  • Motorcycle Turn Signal Blinker Flasher LED Bike Black: From PlanetBolts on eBay ~ $26 each set, Qty-2 pairs
    Rear mounting TBD. Front mounting will use these fork clamps…
  • 1-1/8" - 1-1/4" P-CLAMP BLK - KURYAKYN – 4023: From Amazon for $16 each, Qty-2
    The 8mm mounting bolt from the Turn Signal Blinker Flasher barely fits inside the P-Clamp.
  • 3 pin Electric LED 12V Flasher Relay Fix Turn Signal#84: Found on eBay for $10
  • Motorcycle Handlebar Control Light Blinker Horn Switch; From eBay for $30
    These used to be a lot easier to find.
I think that about covers it, yes? :)

Motor on, KF
 
Back
Top