You are here

Duty cycle mode with neutral

14 posts / 0 new
Last post
titoxd10001
Offline
Last seen: 1 year 5 months ago
Joined: 2017-09-04 22:26
Posts: 6
Duty cycle mode with neutral

Hello, is it possible to get Duty Cycle control mode with neutral. Neutral so when you let go of the trigger it doesn't automatically try to brake for you. It's unusable for e-boarding at the moment.

Danny Bokma
Offline
Last seen: 1 hour 50 min ago
VESC FreeVESC Original
Joined: 2017-05-24 12:11
Posts: 50

Yes this should be possible right out of the box (I use it), please take a close look at your configuration (or share yours with us so we can check). 

titoxd10001
Offline
Last seen: 1 year 5 months ago
Joined: 2017-09-04 22:26
Posts: 6

Under control type when I select : duty cycle it brakes when I let go of the throttle

When I select : duty cycle no reverse it doesn't seem to work and there is no motor movement

I'm using Focbox. Also when I changed to duty cycle my slave focbox was accelerating on its own while the master was stationary. When I change to "current no reverse with brake" it seems to be working fine. Didn't notice slave acting up last time not sure if made wrong setting after firmware update

benjamin
Offline
Last seen: 5 days 4 hours ago
VESC FreeVESC Original
Joined: 2016-12-26 15:20
Posts: 292

Duty cycle mode should not be used for eboarding in general. Current control is probably what you want.

titoxd10001
Offline
Last seen: 1 year 5 months ago
Joined: 2017-09-04 22:26
Posts: 6

From what I understand every other esc uses Duty Cycle. For example I have experience with hobbywing escs. I much prefer the throttle curve of that esc vs current control. When I use current control I rarely use full throttle only on occasion when I want to go quick acceleration, but probably only use 1/4-1/2 throttle to get to 30mph speed. Even something as simple as going up a drive way is simpler for me with my single motor duty cycle equiped board vs my dual motor board with current mode equiped. It's just more intuitive for me. Im use to having to pull full tthrottle for full speed and having instant torque without having to jam the throttle. I would much appreciate duty cycle. Why wouldn't you recommend duty cycle?

benjamin
Offline
Last seen: 5 days 4 hours ago
VESC FreeVESC Original
Joined: 2016-12-26 15:20
Posts: 292

Most hobby ESCs have duty cycle mode implemented without active freewheeling, so setting a lower duty cycle than the current motor back emf will not cause any braking (braking is actually not possible at all with that kind of modulation, so they use a completely different braking mode which makes terrible noise and is very inefficient). With BLDC and active freewheeling, or FOC which has a fundamentally different modulation technique altogether, duty cycle mode will always cause braking when setting a value lower than the back emf. There is support for running in BLDC mode without active freewheeling, which gives roughly the same behavior as crap ESCs without proper switching and current feedback, but it is less efficient and braking won't work properly.

Also, I can't imaging how duty cycle mode would feel better unless it is because you are used to it. Current is proportional to torque, and torque is what you feel. This gives the same feeling when using the throttle regardless of the speed you have, and you can always use the full throttle range. Duty cycle mode makes the acceleration you feel from a given throttle completely speed dependent and you have to be very gentle on the throttle at low speeds as you get full torque with a millimeter of throttle movement.

titoxd10001
Offline
Last seen: 1 year 5 months ago
Joined: 2017-09-04 22:26
Posts: 6

Yes that is exactly what I'm looking for actually, instant torque and speed based control. I find duty cycle more predictable when switching terrain or going up inclines or even just cruising around knowing I have all the throttle range to get to my top speed instead 1/2. It's personal preference. I think that's what evolve and boosted use. 

So it's difficult/not possible to implement due to hardware? How will braking suffer? Forum member said duty cycle is working for him but maybe it's not possible on Focbox?

RSR
Offline
Last seen: 1 week 5 days ago
VESC Original
Joined: 2017-05-24 12:46
Posts: 37

@titoxd10001:  You can try "Control type: PID Speed control" with only P-gain (set Speed PID Ki = 0).

titoxd10001
Offline
Last seen: 1 year 5 months ago
Joined: 2017-09-04 22:26
Posts: 6

I tried PID today. My slave just spins on its own while master is still. Strange this happens in duty cycle also but not in current mode. Forgot to do the (PID KI=0) so I wonder if that's the issue. After a bit though my master disconnected and couldn't connect until I disconnected my slave from it. A little frustrating so I'll give another shot in a few days. Might have to switch to y splitter to get it to work

titoxd10001
Offline
Last seen: 1 year 5 months ago
Joined: 2017-09-04 22:26
Posts: 6

With PID I get some weird noises coming from the motor. I wonder how Danny was able to get Duty Cycle to work with neutral

isabar
isabar's picture
Offline
Last seen: 7 months 2 weeks ago
VESC Free
Joined: 2017-11-03 15:17
Posts: 2

I agree with the importance of this feature request.  I am the founder of Metroboard Electric Skateboard.  We are considering using the VESC in future Metroboard models, but the lack of Duty Cycle control with the ability to coast is currently a deal breaker.  In response to Benjamin's comment about "active freewheeling" above, I assume you mean "synchronous rectification" (SR for short).  Normally when driving a motor from a higher speed to a lower speed when using SR it will force the motor speed down which effectively brakes the motor which is undesirable on a skateboard where you really want it to coast or freewheel.  However, thermally it keeps the Mosfets cooler to run the motor with SR.  What we do to address this on the Metroboard Motor Controller: Normally we run with SR turned on, but we are constantly monitoring the battery current and if we ever sense the current goes negative (meaning the battery is being charged and regen braking is occurring, which will happen if you go from a higher to lower speed with SR turned on), we simply disable SR for that cycle, and this effectively allows the board to coast.  On the next cycle, we re-enable SR and again as needed disable based on polarity of battery current.  With all the sophistication of the VESC, I would imagine this should be a no-brainer to implement, unless I am missing something.  Would really like to see this implemented on future firmware versions (regardless of some people's preference of Current/Torque Control).

-ILAN SABAR

Metroboard Founder and Owner

Roger Wolff
Offline
Last seen: 3 days 20 hours ago
VESC Original
Joined: 2017-05-24 12:27
Posts: 198

Pure dutycycle control mode is not nice to ride. But if you like it, be my guest. 

In FOC mode, as far as I can see dutycycle mode will command a current and try to reach the specified dutycylce. An optional "keep current positive" would allow the coasting that you want. 

benjamin
Offline
Last seen: 5 days 4 hours ago
VESC FreeVESC Original
Joined: 2016-12-26 15:20
Posts: 292

One way would be to run duty cycle control as usual in the forwards direction with a braking current limit of 0, and then switching to current control with the normal braking current limit when the trigger is pulled towards braking. I will have a look the next time I work on the firmware.

Badkad
Offline
Last seen: 2 months 3 weeks ago
Joined: 2018-05-02 21:29
Posts: 1

Did this ever get implemented? I want to buy the new 75v Vesc but this is a concern of mine and holding me back.