You are here

Duty cycle mode with neutral

26 posts / 0 new
Last post
titoxd10001
Offline
Last seen: 8 months 4 days 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: 9 months 1 week ago
VESC Original
Joined: 2017-05-24 12:11
Posts: 53

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: 8 months 4 days 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: 2 weeks 17 hours ago
VESC FreeVESC OriginalVESC Platinum
Joined: 2016-12-26 15:20
Posts: 490

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

titoxd10001
Offline
Last seen: 8 months 4 days 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: 2 weeks 17 hours ago
VESC FreeVESC OriginalVESC Platinum
Joined: 2016-12-26 15:20
Posts: 490

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: 8 months 4 days 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: 2 months 1 week ago
VESC Original
Joined: 2017-05-24 12:46
Posts: 38

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

titoxd10001
Offline
Last seen: 8 months 4 days 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: 8 months 4 days 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: 4 months 1 day ago
VESC Free
Joined: 2017-11-03 15:17
Posts: 3

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: 2 years 4 months ago
VESC Original
Joined: 2017-05-24 12:27
Posts: 202

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: 2 weeks 17 hours ago
VESC FreeVESC OriginalVESC Platinum
Joined: 2016-12-26 15:20
Posts: 490

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: 1 year 1 day ago
VESC Free
Joined: 2018-05-02 21:29
Posts: 3

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

Filcas
Offline
Last seen: 2 weeks 3 days ago
VESC Free
Joined: 2019-06-03 21:16
Posts: 17

Hello Guys, 



we are building a machine that need a bit more precise control and also to be able to "free spin" the motors. Duty cycle offer us the possibility to control better the position, specially if the machine have no load on it.



If we use current control, the "free spinning" is good, but if the machine is empty, we can't get control of the speed. It simply goes 100% speed. We had already two crashes of the carrier due to this issue.

Anyone can help us achieving to use duty cycle and still have "free spinning"? Thanks

TechAUmNu
Offline
Last seen: 3 weeks 4 days ago
VESC Free
Joined: 2017-09-22 01:27
Posts: 575

If you don't need to brake then you can just set the Motor Current Max Brake to 0. Then duty cycle will work for accelerating and it should freewheel as it won't be able to brake.

(There is probably a more elegant way to do this)

Filcas
Offline
Last seen: 2 weeks 3 days ago
VESC Free
Joined: 2019-06-03 21:16
Posts: 17

Thanks for feedback.

I had done it already, and I tried again when I read your reply, but it does not work. Motor starts to "whisper" and it's still locked. I also put battery current max regen to 0, Same results.

Are we missing something? It's very dangerous for us to use the current control, due to the sensibility in the throttle when our machine is unloaded. We just broke another carrier due to this current mode that is very sensitive to the throttle input when no load on the machine. But is actually the only mode we can use with "free wheel" :(



Will be very nice for our application to have this new mode of "current smart reverse" but "duty cycle smart reverse".

If someone could help us to achieve this behavior, it will be much appreciated.

Thank you. 

spacewalker
Offline
Last seen: 1 year 4 months ago
Joined: 2020-06-10 12:30
Posts: 29

Hi guys 

Seems like I am also interesting brake function but cant find it , maybe some1  can  explain ?

I want to use   bicycle   brake disc   and  handle  with sensor 

so  once  brake is apply , motor should not be control by ESC , otherwise will overload ESC , and is doesn't make any sense 

E-bike  use  a typical controller with function like  that , when brake is apply, throttle is disconnect , like  in gokart  (if you ever drive) they always said -  when press  brake, do not  accelerate 

 

any advice  welcome 

Martin

BDJ
Offline
Last seen: 1 year 6 months ago
Joined: 2021-08-11 00:35
Posts: 3

Hello! 

Exactly as Filcas, I'm looking for a way to use duty cycle control with freewheeling on zero throttle. Because in my application, I want to control the motor speed even without load.

Filcas, did you find a solution? 

I tried a lot of parameters on vesc tool but none of them seemed to allow free spinning. 

I tried to modify the firmware, but I couldn't find a  workflow guide to do this. Is there a tutorial available and up to date?

I work on a VESC 4.20 with ADC input

 

Many thanks! 

Kujawiak
Offline
Last seen: 1 year 2 months ago
Joined: 2018-09-11 22:50
Posts: 1

Hi everyone!

So, is there any way to achieve freewheeling with duty cycle control? i prefer duty cycle over current control, because constant throttle position in current control provide constant current, and constant current generate constant torque which generate constant acceleration and it is no no.

Elwin
Offline
Last seen: 1 day 13 hours ago
VESC Free
Joined: 2021-09-30 16:41
Posts: 76

Constant current indeed gives constant torque. But typical applications have a speed dependent friction, causing constant torque to lead to a constant speed. Is this not the case for your application?

sp3swj
Offline
Last seen: 3 months 18 hours ago
Joined: 2020-11-16 01:10
Posts: 9

I'm interested with DUTY CYCLE - to use in RC CAR. Now VESC can not fully work as  "ordinary" ESC like  Castle or Tekin or Hobbywing, 

Missing  "drag brake" simmilar function  :-(

Missing "brake force" proportional to  throttle reverse - and not switching to REVERSE when you hold throttle reversed.

Is any one use VESC FOC with similar settings like "ordinar RC car ESC???

What is SUPER  in FOC - is extremly quiet   https://www.youtube.com/watch?v=ma4RZBzJ-dQ

 

 

Jarek sp3swj

argon338
Offline
Last seen: 1 year 5 months ago
Joined: 2022-05-10 12:51
Posts: 4

.

Gatze
Offline
Last seen: 1 year 5 months ago
Joined: 2018-02-03 18:06
Posts: 55

Is this already implemented ? I can not use duty cycle control with freewheeling when no throttle (put brake current to 0), it works with current control. I have better control with duty cycle then with current, so thats why the question. In duty cycle control with braking current set to 0, the motor starts acting strangely, a user in this topic is talking about 'whispering' I guess thats a good explenation. You can see the current going randomly crazy, but with small steps.

immiklos
Offline
Last seen: 1 year 6 months ago
Joined: 2022-10-17 20:23
Posts: 1

How can I setup the braking as you state in your post, Benjamin?    Is it possible to have Duty cycle with the brakes controlled with ADC2.

I have a power wheels car with this dual vesc. Worked fine with brushed motors but when i changed to brushless current control no longer works and the pedal just is an on / off again.  when i use duty cycle the pedal works like it should variable control for the speed of the wheels/motors.   The pain with Duty cycle though is missing the options for ADC2 to be the brakes so right when the throttle is let off the brakes go to full stop =( .  I tried to fix current control but I had no luck there by messing with max current settings. 

nyc
Offline
Last seen: 10 months 3 weeks ago
Joined: 2021-11-24 03:27
Posts: 4

can add "active freewheeling" option in PPM app to choose whether it is enable?