Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

1 mosfet square wave driver doubles 24 V at output

anotherbrick

Full Member level 4
Joined
Jan 10, 2009
Messages
217
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,298
Location
Istanbul , Turkey
Activity points
3,143
resim1.jpg
resim2.jpg
resim3.png

dear forum members
I am driving an magnetic clutch with 1 mosfet between 0- 100 % duty
however the output signal is weird
it sinks below ground and outputs AC
what am I doing wrong with such simple circuit, thank you

resim1.jpg
resim2.jpg
 
When you pass current through the clutch inductor it creates a magnetic field. When you turn the current off, the field collapses and produces a voltage with the opposite polarity, hence looking like AC. Depending on the material you are holding/braking, it's own magnetic field may also be inducing a voltage into the clutch inductor.

Be careful of the voltage of that initial spike as the MOSFET turns off, make sure it can withstand it or alternatively use a snubber or clamp across the inductor.

Brian.
 
> what am I doing wrong with such simple circuit?

Hmm everything. This is normal without understanding the expected behaviors.

No datasheet links for clutch and FET and gate driver.
No values of inductance and DCR
0V reference is undefined. No test points defined.
No theory of operation for using 22 kHz.
Probe ground length is probably too long and gets impulse noise coupling
Is there a clamp diode or RDC snubber for opening an inductive current?.
Duplicate photo inserted.

Show complete schematic with all inputs. Add power diode in opposite polarity across clutch coil.
Repeat.
 
Last edited:
dear all,

with your advice I put a fast power diode across clutch coil and I got the correct square wave PWM output,

now I have another problem

I want to tension control a reel while it unwinds the sheet paper material

I want to use PID control with STM32 uC

error = Reference - Actual ( potentiometer connected to free roller which goes up or down according the paper tension - analog reading of STM32)

U = Kp * error + ( integral ) + Kd ( error - previous error )

( integral = integral + Ki*error )


I limit integral value between -1000 and 1000

the U output is fed to the actuator which is the clutch in my original question

now the U can be negative or positive becouse every element of U can be negative or positive

however the actuator can receive only positive input which is the PWM

for preventing the U output go to the sky, I limit the U with | 1000 |

and transfer the U to PWM linearly

my question ;

shall I limit U between -1000 and 1000 , ( by then PWM = U *0.5 +500 ) ,or

between 0 and 1000 ( by then PWM = U )

thank you
 
You didn't respond to my questions. Does the clutch release slower with the diode? It should it you do a fast step off.
But you can fix it if its a problem. But my guess is you want to run this in CCM. (continuous triangle current mode)
 
Controller output U will be limited to actuator control range, surely not -1000 to 1000. Also integrator shouldn't be allowed to ramp up or down beyond control value limits. Ideal anti-windup logic would freeze integrator when it tries to pull control value beyond the limits and frees it when error term changes sign.
 
Either polar 0 to 1000 or bipolar -1000 to 1000 works. You will find using Kp where the nominal load is for 0 reference error to height manually and it may never be 500 or 0 anyways so use either method.

Tuning:
Due to gravity, the acceleration vs motor speed torque/load in the vertical axis will be asymmetrical and nonlinear. You want to maximize damping but make the response as fast yet smooth as possible to a step start and stop response. The elasticity also changes with tension which may cause different resonant frequencies and will vary depending on the mass of the spool. By slowly making PWM changes you avoid stimulating high frequency resonances. But if drag changes alot with spool size then optimal Kp may be dynamic.

Here's what GPT 3.5 recommends.


Choosing the optimum PID (Proportional-Integral-Derivative) controller parameters is a critical step in achieving effective and stable control in a system. The process of tuning PID parameters often involves a combination of theoretical analysis, simulation, and practical experimentation. Here's a general guideline for tuning PID parameters:

1. Start with Default Values:

  • Begin with the default PID values. In many systems, a good starting point is often having all three gains (Kp, Ki, Kd) set to zero.

2. Proportional Gain (Kp):

  • Purpose: Adjusts the response based on the current error.
  • Tuning:
    • Increase Kp until the system starts to oscillate.
    • If the system becomes unstable, reduce Kp.

3. Integral Gain (Ki):

  • Purpose: Eliminates steady-state error.
  • Tuning:
    • Increase Ki to reduce steady-state error.
    • Be cautious, as too much Ki can lead to instability or overshooting.

4. Derivative Gain (Kd):

  • Purpose: Reduces overshooting and improves stability.
  • Tuning:
    • Increase Kd to improve stability and reduce overshooting.
    • Be cautious about too much Kd, which can lead to increased noise sensitivity.

5. Iterative Tuning:

  • Start with Kp, then Ki, and finally Kd.
  • Repeat the process: Adjust Kp, then Ki, and finally Kd. Continue iterating until the system performance meets the desired criteria.

6. Performance Criteria:

  • Overshooting: Minimize overshooting without sacrificing settling time.
  • Settling Time: Achieve a fast response without excessive oscillations.
  • Steady-State Error: Minimize any remaining steady-state error.

7. Simulation and Analysis:

  • Use simulation tools or models to analyze the system response under different PID parameters.
  • Simulate disturbances and changes in setpoint to evaluate the controller's robustness.

8. Practical Experimentation:

  • Implement the PID controller in the real system.
  • Experiment with different parameter values while observing the system response.

9. Ziegler-Nichols Method (Optional):

  • The Ziegler-Nichols method involves systematically increasing the gains until the system becomes oscillatory, and then adjusting the gains based on the observed oscillation characteristics.

10. Adaptive Control (Optional):

  • For systems with varying dynamics, consider adaptive control techniques to adjust PID parameters dynamically.

Tips:​

  • Start Conservatively: Begin with conservative gains to avoid instability or excessive oscillations.
  • Small Adjustments: Make small adjustments to PID gains to avoid abrupt changes in system behavior.
  • Understand the System: Gain insights into the dynamics of the system to make informed decisions during tuning.
  • Consider System Limits: Take into account any physical limitations or constraints in the system.
Remember that PID tuning is often an iterative process, and it may require a combination of theoretical understanding and practical experimentation to achieve the desired control performance. Additionally, each system is unique, so there is no one-size-fits-all approach to PID tuning.

1. Always start with your spec for height error which translates into tension error.

2. Then after calibration test it for extreme start stop speeds with full and end of spool loads. record limits of Kp,Ki , Kd for marginally unstable response then relax to allow margins for spool and motor fatigue from line variations or temperature/ humidity.

Then plot the results and get the reward of perfecting your control system under any disturbance you might expect, like a brownout or a power surge or tap change in the field.

From my experience , I would start with a low Kp and Kd only target position with 10% then enable Ki by changing these gain factors in real-time until PES (Position Error Signal in software in SW ) acquires lock without overshoot in the fastest time then , change to gains to optimize errors to "environmental disturbances" This is how we designed high speed servos for HDD's. We had an acceleration profile to max velocity up-flat-down then go into position error near the locked position mode by changing K factors depending on the position error. Then there was temperature compensation for motor torque variations in either direction. (Magnetic flaws )
 
Last edited:
You didn't respond to my questions. Does the clutch release slower with the diode? It should it you do a fast step off.
But you can fix it if its a problem. But my guess is you want to run this in CCM. (continuous triangle current mode)
with the diode, the clutch current increase from near zero PWM on and grasp earlier than without diode
without diode, current increase from %50 PWM on

thank you for your help
 

LaTeX Commands Quick-Menu:

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top