You are here

Runaway on throttle disconnection

4 posts / 0 new
Last post
DavidBike
Offline
Last seen: 2 years 8 months ago
Joined: 2021-06-01 00:20
Posts: 3
Runaway on throttle disconnection

Hi,

I'm running a small sensored hub motor, vesc 6 mkv, twist throttle and 10s lipo batteries on a bike.

It all runs ok.

But when I hop off the bike and go to disconnect, if I disconnect the throttle first the motor starts to run. Not absolutely flat out, but at partial speed.

Obviously I don't want this to happen while I'm riding - for example if I managed to catch the throttle connection by accident and disconnect it 

If I connect up power to vesc and motor before connecting the throttle, no issue. It doesnt run

But after I have run the motor, I have to be careful on the order i disconnect things

My set-up and knowledge is fairly basic - and as far as I'm aware, I've only set some motor power and current limits and adjusted the throttle response curve. Certainly haven't written any code or anything.

Im not sure why it would be fine if I connect everything but the throttle, but start to run by itself after I disconnect the throttle.

Suggestions welcome

TIA

vadicus
Offline
Last seen: 1 day 4 hours ago
VESC Free
Joined: 2018-08-17 07:26
Posts: 427

You didn't specify the type of the throttle you are using. That would be the most important detail to know before giving you any advise.

It's also not clear why a part of of your shutdown procedure includes throttle disconnection.

My best guess here is that the input is floating once you disconnect the throttle or you disconnect the ground on the throttle and leave signal and 3.3v/5v connected. This would definitely cause the signal to go up if you switching off the ground on the throttle. 

The issue seems to be self inflicted. Just stop disconnecting throttle and it should be OK. Additionally, you may whant add a 2-10k pull down resistor on throttle signal to make sure it's not floating when throttle is not connected. Also set Safe Start option to True to prevent the motor from spinning if your throttle is faulty/fully opened when you turn the controller on. 

 

 

NextGen FOC High voltage 144v/34s, 30kw (https://vesc-project.com/node/1477)

DavidBike
Offline
Last seen: 2 years 8 months ago
Joined: 2021-06-01 00:20
Posts: 3

Thanks for your suggestions. The reason for disconnecting the throttle is that when I park the bike, I remove the frame pouch containing my vesc and batteries (so that no-one else does!).This necessitates disconnection of the throttle cable. Of course I now disconnect the power first. But that's not really the point. The point is that I have identified a runaway issue and I don't want the motor to runaway if the throttle connection gets pulled apart while I'm riding, for example when I am riding offroad through trees. 

The throttle is a twist throttle - a cheap one off ebay described as "ABS Hall Handle Turn Accelerator 24V 36V 48V 3 Wire Twist Throttle Grip Speed Governor Electric Vehicle Handlebar Controller"

I have connected it to VCC GND and ADC1 and mapped it at Min .81v Max 2.55v Centre 1.68v. When I disconnect the throttle all of VCC GND and ADC1 are disconnected - but the motor takes off

Safe start is set to True.

I wonder what I'm doing wrong because surely this cant be the default position

 

 

DavidBike

vadicus
Offline
Last seen: 1 day 4 hours ago
VESC Free
Joined: 2018-08-17 07:26
Posts: 427

It makes sense to turn off power before you start disconnecting anything. That should be the normal procedure.

But the reason your wheel start spinning after disconnecting the throttle is that the signal does not default to a safe value. For some reason, it's goes above your min threshold of 0.81v. 

Like I said, you can try to add a pull down resistor on the signal/ADC input. Chances are it will resolve this specific issue.

 

 

 

NextGen FOC High voltage 144v/34s, 30kw (https://vesc-project.com/node/1477)