Author Topic: Dither Amplitude and frequency for EDC valve  (Read 25255 times)

Offline Jpshockster

  • PLUS+1 Developer
  • ***
  • Posts: 21
  • Karma: +4/-0
    • Landoll
Dither Amplitude and frequency for EDC valve
« on: September 25, 2015, 04:49:55 PM »
Any recommendations welcome.

So I have read the API and every other document I could find with no answers to my question.

I'm working with a Linde Hydrostat HPV-02
My software drives the swash plate one direction for forward and the opposite for reverse, using C1p37 for Fwd and C1p38 for Rev.  Pinconfig 5 for both.  I have found the applying Dither 200mA @50hz to the Fwd (C1p37) gives me a very smooth transition from neutral to forward motion creep,  I apply the same values to the reverse (C1p38) and the transition is aggressive/jerky...... so I remove the Dither parameters from the Fwd (C1p37) and only use them on Rev (C1p38) and Reverse now has the very smooth transition from neutral to reverse motion creep. 
Now for the question
Is it ok to manipulate the Dither parameters or should they remain constant? 
I set it up now so that when the vehicle is in neutral there is no Dither applied to either output, once a direction is selected the Dither parameters are applied to the respective output.  I have noticed that a change to Dither parameters on C1p37 affects C1p37 - C1p40 so I have configured the application to only use 37 and 38 and moved my other output devices to C1p42 - C1p45
Has anyone ever dealt with this?
Could this be hard on the controller outputs?
TIA
Justin

Offline Marbek_Elektronik

  • PLUS+1 Guru
  • *****
  • Posts: 352
  • Karma: +8/-0
    • Marbek Elektronik
Re: Dither Amplitude and frequency for EDC valve
« Reply #1 on: September 26, 2015, 09:47:45 AM »
I can speak for Hawe valves:

ReqFreq: default 4000Hz
PinConfig: 5
Maximum current 1100mA
Dither frequenc 100Hz
CurChgLim: default 111
Dither amplitude 100mA

For all valves an all dirctions the same parameters.
Marbek Elektronik, Dipl.-Ing. Bernd Konrad
Dienstleistung, Entwicklung, Herstellung

Offline Jpshockster

  • PLUS+1 Developer
  • ***
  • Posts: 21
  • Karma: +4/-0
    • Landoll
Re: Dither Amplitude and frequency for EDC valve
« Reply #2 on: September 28, 2015, 02:53:39 PM »
Marbek_Elektronik,
What did you do for your Minimum current?  Do you have an issue with the cracking current being higher than the drop out current? 
For my valve I have found that 440mA is the cracking current regardless of Dither parameters.  Once the valve opens I can lower my minimum to 390mA and maintain motion at a slower speed than that 440mA it took to initiate motion. 

The other question I would have for you is.......Do you set your parameters the same in every vehicle or do you have to tweak them per vehicle?

Offline Marbek_Elektronik

  • PLUS+1 Guru
  • *****
  • Posts: 352
  • Karma: +8/-0
    • Marbek Elektronik
Re: Dither Amplitude and frequency for EDC valve
« Reply #3 on: September 28, 2015, 10:21:01 PM »
It was a 24V system.
And it was only 1 vehicle and I adjust the parameters to the vehicle.
I don't know the starting point.

My understanding is:
- if you use no dither, there will be a big hysteresis,
- if the dither frequence is low and the dither current is high, there will be a small hysteresis,
but: maybe the system works with the dither frequence and the life time is not high.
Marbek Elektronik, Dipl.-Ing. Bernd Konrad
Dienstleistung, Entwicklung, Herstellung

Offline FluidPowerTom

  • PLUS+1 Guru
  • *****
  • Posts: 363
  • Karma: +33/-0
Re: Dither Amplitude and frequency for EDC valve
« Reply #4 on: November 06, 2015, 11:49:19 PM »
Well, I've found that the code will compile if you have logic to switch PWM frequency during operation, but the code will not compile if you have logic to switch the dither frequency.  What I've done with this is instead of running high frequency PWM with dither (pinconfig 5) I just do low frequency PWM without dither (pinconfig 4).  This more or less allows you to change dither frequency within your programming since it derives from the low frequency PWM.  I haven't tried any such logic with dither amplitude though...
Controls Engineer
Hydra-Power Systems

Offline Marbek_Elektronik

  • PLUS+1 Guru
  • *****
  • Posts: 352
  • Karma: +8/-0
    • Marbek Elektronik
Re: Dither Amplitude and frequency for EDC valve
« Reply #5 on: November 07, 2015, 08:35:13 AM »
Hi FluidPowerTom,
nobody wants to change dither frequency during the running program.
But if you want to do it , it works: I have placed a NV-memory and changed it and it gives the value to the dither frequenc. It was a test.
You choose one time the correct dither frequency for your valve and then don't change it.

I think high frequency pwm is a good solution, because , it is like constant voltage.
Then add a am-modulation (dither) to change the current.

If you use low fequency, I think, it is very critical.
If the valve has another inductivity (tolerances!) the current will be not the same.
I don't think, it is a good way to do this.
You will have 100% dither, if you do it....
Marbek Elektronik, Dipl.-Ing. Bernd Konrad
Dienstleistung, Entwicklung, Herstellung

Offline FluidPowerTom

  • PLUS+1 Guru
  • *****
  • Posts: 363
  • Karma: +33/-0
Re: Dither Amplitude and frequency for EDC valve
« Reply #6 on: November 09, 2015, 11:33:34 PM »
Marbek, I'd done this on a control unit that is being used by our shop for testing valves.  We're using one of the old chipset controllers where the outputs are grouped, and the frequency needs to be 4,000 Hz for when they control PVE pilots and 100-200 Hz when they control typical proportional valves or an EDC.  It's a somewhat unique situation, but so far it's working.
Controls Engineer
Hydra-Power Systems

Offline oiltronic

  • PLUS+1 Guru
  • *****
  • Posts: 170
  • Karma: +15/-0
Re: Dither Amplitude and frequency for EDC valve
« Reply #7 on: November 13, 2015, 09:35:08 PM »
What did you do for your Minimum current?  Do you have an issue with the cracking current being higher than the drop out current? 
For my valve I have found that 440mA is the cracking current regardless of Dither parameters.  Once the valve opens I can lower my minimum to 390mA and maintain motion at a slower speed than that 440mA it took to initiate motion.
Hey Jpshockster, did you get it all figured out?  I thought one of the points of dither was to get rid of that hysteresis, though I haven't actually had a use for dither anywhere yet.  If I'm reading it correctly, note #3 of the MC050 API docs states that if .PinConfig is 5 or 8 (dither enabled) then the PWM frequency for all pins in that group is forced to 4000Hz, regardless of the ReqFreq for that group of pins.  And I think the Lynde HPV-02 needs either 100Hz PWM or analogue with 35Hz dither.

Did you measure what was being sent to the pump solenoids, or maybe look at the checkpoints for the actual frequency & current?

Offline Krusty

  • PLUS+1 Novice
  • *
  • Posts: 1
  • Karma: +0/-0
Re: Dither Amplitude and frequency for EDC valve
« Reply #8 on: September 12, 2016, 08:08:27 AM »
How are you figuring out what the perfect dither frequency is?
« Last Edit: December 08, 2023, 03:20:22 PM by Krusty »

Offline Jpshockster

  • PLUS+1 Developer
  • ***
  • Posts: 21
  • Karma: +4/-0
    • Landoll
Re: Dither Amplitude and frequency for EDC valve
« Reply #9 on: November 21, 2016, 03:39:15 PM »
What did you do for your Minimum current?  Do you have an issue with the cracking current being higher than the drop out current? 
For my valve I have found that 440mA is the cracking current regardless of Dither parameters.  Once the valve opens I can lower my minimum to 390mA and maintain motion at a slower speed than that 440mA it took to initiate motion.
Hey Jpshockster, did you get it all figured out?  I thought one of the points of dither was to get rid of that hysteresis, though I haven't actually had a use for dither anywhere yet.  If I'm reading it correctly, note #3 of the MC050 API docs states that if .PinConfig is 5 or 8 (dither enabled) then the PWM frequency for all pins in that group is forced to 4000Hz, regardless of the ReqFreq for that group of pins.  And I think the Lynde HPV-02 needs either 100Hz PWM or analogue with 35Hz dither.

Did you measure what was being sent to the pump solenoids, or maybe look at the checkpoints for the actual frequency & current?


Its been a while since Ive been to the forum but after exhaustive testing and tinkering Ive found that you must always double check what a mechanical engineer is doing with the valving.  Im not sure how to best explain this but i will do my best.... The system had a "Small" built in leakage at the neutral position that would return to tank for cooling purposes. Because these are pilot operated the pilot pressures were slightly different and the built in leakage for cooling purposes was causing me all kinds of grief.  It was recommended to use the case drain on the wheel motor to return to tank for cooling.  this theory was implemented on a completely different platform and I have not had the issues with this method.  With this method I have since returned to pin config to 4 and everything is smooth in both directions once you figure out the optimum cracking current and use the Knee profile on the operator input ie: foot pedal to further fine tune the feel of creep mode.  hope this helps.
 keep in mind I am no hydraulics major so my descriptions may be somewhat simplified as it took two mechanical engineers and two sales reps speaking to their engineers to figure this out.  (if you ask a Mechanical engineer, its always the codes fault)  LOL  programmers can fix anything!   

Offline Jpshockster

  • PLUS+1 Developer
  • ***
  • Posts: 21
  • Karma: +4/-0
    • Landoll
Re: Dither Amplitude and frequency for EDC valve
« Reply #10 on: November 21, 2016, 03:43:51 PM »
How are you figuring out what the perfect dither frequency is?


Lots of testing! I installed some memory so I could change the Dither freq and amplitude and just began playing and using the scope functionality of service tool the evaluate the results.  I highly recommend the API for your controller as there are only certain freq available and the max amplitude based on your application.   Good luck!

Offline mvanwiechen

  • PLUS+1 User
  • **
  • Posts: 7
  • Karma: +0/-0
Re: Dither Amplitude and frequency for EDC valve
« Reply #11 on: November 23, 2023, 07:59:41 PM »
I can speak for Hawe valves:

ReqFreq: default 4000Hz
PinConfig: 5
Maximum current 1100mA
Dither frequenc 100Hz
CurChgLim: default 111
Dither amplitude 100mA

For all valves an all dirctions the same parameters.
Sorry to dig up an old thread from 2015/2016.... I can create a new topic/thread if necessary.....

I am running into some Dither related questions, specifically on a HAWE valve.  Mainly it is the Slew/Swing valve of a crane.  24V system.  At first I was not using dither, and the control was not so precise.  Adding dither has helped, but it still isn't perfect.  I am trying to narrow down the right values for the Output Config.

Marbek_Elektronik..... I am essentially using the values you mentioned.  However you mentioned a Dither amplitude of 100mA.  Is that a value of DitherAmp=100, which is actually 10.0mA since the unit is 0.1mA?  Or DitherAmp=1000 which is actually 100.0mA?  I have tried both ways....
-Input value of 100, corresponding to 10.0mA, and it works fairly well.
-Input value of 1000, corresponding to 100.0mA, and it the movements seem very jumpy/jerky.
(I left it at 10.0mA for now)

Another thing I am noticing..... is this normal?
-When moving the joystick from Neutral to 1% (min), it commands 230mA to the valve, and it is a nice slow movement.
-However if I "slowdown" from max speed (100% joystick) down to the same 1% (min), command is back to the same 230mA, but the movement is noticeably faster (when compared to neutral to min).