Magnet operated kill switch?

I placed an switch between the BEC and the receiver and water pump. This switch is just touching the bottom of the lid when it is on tight, Rider weight Flexes the lid, pushes the switch and connects the receiver. If you fall off it takes 1 second for the receiver to drop signal to the ESC and everything stops. It seems to work well so far. It also keep the water pump from running unless it is in the water and weighted.

@NDH sounds very interesting. do you have any details / pictures of that?

Nice. It means that your micro switch doesn’t need to be waterproof. Interested to see your setup too :wink:
Waterproof micro switched do exist though like:
Waterproof Micro Switch Factory | China Waterproof Micro Switch Manufacturers, Suppliers “only” IP67. Would they resist to a sea use ?

Got a magnetic kill switch up and running yesterday and it works very well.

Only issue I see is if you happen to have your throttle pushed at the time you put the magnet back on it jumps straight back to that throttle setting instead of you have to zero the throttle before you can throttle up again.

I know you can set that just have not found it when the speed is done through the UART with VESC remote.

1 Like

Can you show how you made the magnetic kill switch?

all you need is a magnetic hall effect module, power it from the UART port with 3.3v and connect the digital output to the ADC2.

Then in the VESC tool go to App Settings, General and under the General Tab you see the last row is labeled kill stitch, and select mode ADC2 High

Then when a magnet is near the hall it turn the output to the motor on and when the magnet is taken away it kills the motor

5 Likes

You seem to be the first forum member to implement the VESC kill switch feature on an efoil.
Do you still keep a disconnection mean between battery and ESC ?
You’ve chosen ADC2 with a 3.3V detection. Would it work equally with PPM High same wiring ?
On the 3356 post given above, when choosing LOW, PPM is grounded when a normally open regular ice lanyard is pulled off.

And are you talking about the Flipsky 75200 here?

The kill switch feature signals the VESC to stop the motor, no power will be interrupted. PPM signal will just be ignored as long as the kill signal is active. It requires VESC FW5.3

Its only blocking the throttle signal as a kill function so there is still power coming in.

The way to get that done is to add a relay to the main battery terminal or if you have your battery running through a bms to do it that way.

It really depends why you need the kill switch.

Keep in mind with a remote if you fall off and the remote is far enough away to loose signal and you forget to take your finger off the throttle it still cuts out the motor based in loosing signal to the VESC. So by adding a kill you have 2 forms of protection from runaway if you fall off, and effectively 3 if you consider the throttle is snap back to

Would do it this way with ADC1 set to HIGH in the Flipsky FSESC 75200 n°7 COM connector?

image

3 Likes

My feedback after a lot of tests.

My magnetic switch is connected on 3.3V and ADC2 and my firmware is 5.3 on my VESC maytech
I tested ADC2 High on VESC tool but didn’t work, the motor runs even with the switch open.
I tested ADC2 LOW, it works but not all the time
you can see how it works on my youtube video

Maybe the problem is that I don’t use a magnetic hall effect module

1 Like

Do you use a reed switch? I tried the same with my esc and a reed and it didn’t work reliably, the reed was not consistent. Can’t understand why though as they are used in many other applications.

Perhaps the reed became magnetized?
I ve been used a big reed swtich and so far it has worked consistently

https://groups.google.com/g/sci.electronics.design/c/AGG65Xi3wac?pli=1

TL;DR
Reeds are crap. They can get stuck for being closed for too long, a bit of current or even a shock…

1 Like

Interesting read :stuck_out_tongue_closed_eyes:
I’m switching to a hall sensor instead, will be more reliable.

I check the VESC output voltage and I have only 1.3V
instead of 3.3v, and my switch is normaly open, that why I need to put ADC2 low
So when I close the switch I have 0V at ADC2, and when I open the switch I have 1.3V at ADC2
I think to solve the problem I must either increase the voltage to 3.3V, but I don’t know how, or install a normally closed switch, but i think i will an issue during the run due to a false detection.

So I think I have no choice if I want to use this function I must increase the output voltage at 3.3V

I test again the voltage, in fact I have between vesc 3.3V and the GND => 3.3V
So all is ok at the VESC output.
but ADC2 and the GND => 1.2V

The question is, why I have 1.2V at the ADC2 when is disconnected ?

Perhaps it’s the same issue at this link
ADC1 problems with Firmware/Hardware issue? | VESC Project (vesc-project.com)

I found a solution
I plug a 10k pull-down resistor on ADC2 and all works fine :slight_smile:
Very happy


0V on ADC2 when kill switch is open

3.3V when kill switch is close

3 Likes

@FoilEngineer you can’t simply block the main battery while the motor and ESc are running full power, it will send back a high voltage pulse and destroy your electronics.

to kill propulsion power, you need to ramp down to zero RPM and then kill power.

We have not found anything that will do that.

I have four fully stuffed Maytech electronic switches that say they can switch high current, but they can’t.