Magnetic Kill Switch

BigBlock

100 W
Joined
Jun 3, 2021
Messages
121
Location
Italy
I would like to add a megnetic kill switch to stop my ebike without powering off the main braker. I think it gonna be good for security too, working as a key when temporary park the bike unattended.

ET10000023012.jpg


I bought several, but they all are normally closed when the magnetic key is removed and normally open once the key is attached.

It should work on the "key" contact that most eBike controllers provide, so ideally the switch shall be closed when the key is attached and vice versa.

I'm wondering if anyone knows if a similar switch exists.

Otherwise I plan to add a normaly closed SPST relais - but I do not like to have the coil powered all time when the key is removed.

Any suggestion is appreciated.
 
If your controller has a brake lever input, you could parallel it to one of those. It will stop the motor from running.
 
fechter said:
If your controller has a brake lever input, you could parallel it to one of those. It will stop the motor from running.

This is the easiest way to do it, for multiple reasons, including that you can use the switches you already have.

It won't power off the system but it will keep it from being used, *and* if your controller has hard regen braking at low speed, it will also make it difficult to roll the bike along, assuming either a DD hubmotor or a clutchless/freewheelless middrive.


BigBlock said:
I bought several, but they all are normally closed when the magnetic key is removed and normally open once the key is attached.

You don't want to use the word "normally" in your sentence the way you have; it is used to designate the type of switch, not the state the switch is in when describing the action you see. Just say it is open or closed, or just call them Normally Closed. (yes, this does matter; if you use both words to describe the same switch, it won't help you find the right kind).

There are numerous reed type switches; you're looking for Normally Open (NO, N.O.), meaning when it is not engaged by the magnet, the contacts are open.

Normally Closed (NC, N.C.) is the type of switch you already have; the contacts are closed when the magnet is not present.

Mouser, Digikey, Farnell, etc., have filters you can use to sort / include only those kinds of switches you need.

Note taht you need a switch that can handle the voltage you're going to potentially have across the contacts, and any current that flows thru it. If you are using the switch on the controller "enable" line like the KSI (keyswitch / ignition) that provides battery voltage to the controller's low-voltage power supply (LVPS) then the switch has to handle whatever the fully-charged battery voltage is, *and* it must also handle the inrush current into the capacitors on the LVPS.

If it's not rated for either of those, it may just weld together, and never open again when the magnet is removed. Or it may be damaged and arc between the contacts; I had this happen on a tiny reed switch I once tried to use on my brake lever for brake lights; only 15v but the current was too high and breaking the connection caused arcing. :(

If you can't find one that can handle the voltage / current you want to put thru it, then you'll need to use the switch to control a relay that *can* handle it. The relay will need coil voltage/current from something low-voltage, and there will be parasitic drain from the coil the whole time it is on.

You can either have an LVPS somewhere that will need to be powered all the time so the switch can turn it on, or you can use a voltage divider that will create the coil voltage/current only when the switch is engaged...but it will have some parasitic drain the entire time not only from the coil current but from the voltage divider itself.



If you can only find low-voltage/current NO switches, you could instead put it in the 5v line to the throttle. Same disadvantage as the brakeline switch, but is simple to do.
 
amberwolf said:
If you can only find low-voltage/current NO switches, you could instead put it in the 5v line to the throttle. Same disadvantage as the brakeline switch, but is simple to do.

I did it with a cheap relay for PCB and it works just fine. The coil is not designed for the voltage of the battery but it has to handle just few mAh for the limited time only (when the magnetic plug is removed). It's working just fine and even after a couple of hours the relais is not too warm.

If it will fail (and I'm sure it will do), I will definitelly try your suggestion to use the 5v line of the throttle. thanks.


O1CN01cCE3lQ1lUys8QGFjB_!!6000000004823-0-tbvideo.jpg
 
Back
Top