I had this happen twice. The problem turned out to be moisture in the throttle cable connector which caused erratic motor behavior. As you experienced, the bike would sometimes take off on it's own.
The fix was to unplug the connector and dry it out with a heat gun or hair drier. The manufacturer sent a repair kit which included heat shrink tubing to keep moisture out of the connector.
As Thomas Jaszewski suggests, as a safety precaution, I've gotten in the habit of turning off the PAS & throttle when dismounting the bike.
Had it happen several times.
1) Bike went thru water and throttle connector got wet. Bike ran on its own.
2) Folded another bike for first time and throttle connector gets stretched. One of the three wires came loose. It was the ground wire. Bike took off.
Later I found that almost all throttles will do that if the ground wire breaks off or is loose.
I did a bunch of research and testing on e-bike throttles and found that All my Hal sensor throttles behaved the same way, but a proper motor speed controller using the right resistors and potentiometer doesn't do it.
I followed
@6zfshdb 's throttle schematics,..
I occasionally get a cramp in my right hand when using my half grip twist throttle. As a remedy, I built this small control box as an alternate way to adjust speed. In doing some research, I discovered a 3 wire hall effect throttle can be emulated with a variable resistor. I wired the control...
forums.electricbikereview.com
,.. and the basic throttle information and the "Speed Set" or "Throttle" parameters found on Every type of controller stating that throttle voltage ranges from ~1v to ~4v ,..
My first hub motor e-bike has a proprietary throttle with the connector plugs reversed.
It turned out that the voltage was also reversed, in that the throttle output is ~1V at full throttle and ~4V at zero throttle.
Does anyone know the pinout for the Das Kit switch throttle? Specifically, I know which pin is +5V, but I don't know which pin is signal and which pin is ground. I cant' find the diagram online. I tried to switch to a Bafang half twist throttle, but it didn't work so I'm thinking Banfang...
forums.electricbikereview.com
When the ground wire is disconnected on my Das-Kit throttle, the throttle goes to zero instead of full throttle.
And I found out that the reversed throttle is for a mid-drive motor and Das-Kit just adjusted their software to work with it.
It's a much safer design to go to zero throttle when the ground is disconnected.
With a proper Speed Controller, the voltage goes to 5V when the ground is disconnected, and that triggers a fault in the controller to shut off the power.
Or with a mid-drive throttle, the voltage goes to 0V which also triggers a fault in the controller
The voltage SHOULD go to zero or 5 volts when the ground is disconnected, not 1 volt or 4 volts.
The Entire built-in safety of a 1-4 volt throttle input is negated with a Hal sensor throttle.
And there's No Damn reason why they can't redesign the Hal sensor circuit so it goes to 5 volts with no ground.
The throttle is being fed 5 volts.
It should put out 5 volts with no ground.
1) Bike went thru water and throttle connector got wet. Bike ran on its own.
Water could still affect the throttle and make it go, but if they used a mid-drive type throttle on a hub motor (like my hub drive Et.Cycle with a Das-Kit throttle), then the ebike would probably slow down when it got wet not power up ?