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
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.
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
@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.
@ausdroid it is not blocking the main battery, it is turning off the PWM or whatever you use to control the motor speed. It has nothing to do with the battery or high current killing
It is the same as going full throttle then taking your finger off the throttle or loosing signal so no need for any of those Maytech electronic switches. Those are used to switch on the VESC under no load to stop spark during battery connection. If you use it to connect or disconnect the battery under load it will surely blow the unit as that is not its intention.
I like the idea of using the VESC killswitch feature together with a hall (or similar) sensor.
Does anyone have a recommendation on which sensor to buy?
Just a question: If your switch is normally open (open circuit with lanyard attached) then connecting a pull-down resistor from adc2 to ground will ensure low status during riding but when you pull lanyard the circuit closes and ADC2 goes high, therefore the kill switch setting in the VESC should be ADC2 high, right?
It seems to me you describe the opposite?
EDIT: tried it connected and set up like i describe it above, works as intended
Would you recommend I add a magnetic kill switch? I have been considering one as I will be using mine in the ocean, so if I fall and the board takes off I’m out of luck. I’m not sure what the advantage is of having the VESC cut power after loosing reception.
Hi - so essentially your connecting the 3.3V pin in the Comm port cable to the ADC2 pin - with a switch in the middle - correct? You could even use a physical switch?
Hi ! Thanks for sharing ! I wondering where you find the screen ch1 et ch2 monitoring in Vesc-tool. I use Vesc tool last and Vesc 3.02 and wasn’t t able to see the voltage monitoring. Thanks for your help
How would you connect the hall sensor? By my understanding, when switching with a digital unipolar hall sensor, it is the ground (gnd) connection which is being switched, as per the attached picture, correct?
As we want to open and close the circuit between the +3,3V and ADC2 or ADC1 on the common port, regardless of high or low mode, I dont see how such a connection is made?