SNIP_____________________________________________________________________

>
>
> The next step was to spin the motor, and that's where I'm running into
> issues.  At 0% duty cycle the motor is stopped, and at 100% it runs fast,
> so that's good.  However, the mapping from duty-cycle to rpm is confusing.
> Duty cycles from 0 to about 55% give me increasing whining from the
> motor but no movement at all.  55 to 100% gives increasing motor speed
> and torque.


This is the expected behavior of an simple HBridge operating in 
'Fast-Decay-Mode' that is the switch elements are turned off in the off part 
of the PWM cycle.


What is happening is this: In the ON time portion of the cycle the current 
through the motor increases at a rate of Vsupply/Lmotor. In the off time 
the current decreases at the same rate. At duty cycles up to ~50% the current 
has dropped back down to 0 before the next ON part of the cycle begins. This 
means that the average current in the motor is quite low (and current ripple 
quite high). If you look at motor current on an oscilliscope you will see that 
at 50% duty cycle, the current will look like a triangle wave with the peak 
current being Vsupply*Ton/Lmotor and a minimum of 0. If your PWM frequency is 
high enough, the average current in this region will be quite small (So your 
motor will not move)

Once you get to PWM duty cycles greater than 50%, the current triangular wave 
never decays to 0 in the off portion of the PWM cycle, so the average current 
increases quickly with greater duty cycle.

To solve your problem there are a couple of things to try:

1. Live with it and offset you PDM

2. Use PWM instead of PDM (If the software PWM rate is not too low). The 
ripple will be higher, but the average current in the 0 to 50% duty cycle 
range will be will be higher as well.

3. Setup your HBridges to use 'Slow decay mode' if possible. This usually 
means that the bottom 2 switch elements are turned on in the off part of the 
PWM cycle, (shorting out the motor) causing the stored energy on the motor 
inductance to be 'saved' between PWM cycles. This results in lower ripple, and 
more linear current versus duty cycle.

4. Use an HBridge with current feedback


>
> I'm using a driver circuit basically identical to the one published by
> Jeff Epler (thanks Jeff!).  The only power supply I have access to right
> now is an ATX one scrounged from some dead computer, so I'm driving
> the motor at only 12 V; it's rated for 19.1 V so that's probably part
> of my problem.  Just like in Jeff's example, I run a PDM pulse train
> into the H-bridge enable pin, and direction and not-direction signals
> into the two H-bridge inputs.  The resolution of my pulse generation
> is 100 us, so the pulse train has transitions at no more than 10 KHz,
> well below the 25 KHz nominal commutation frequency of the L298 H-bridge.
>
> So my main question is: What, if anything, can/should I do about the
> dead band from 0 to 55% duty cycle?  Live with it and tune it out in the
> PID loop?
>
> I built this big goofy HAL "circuit" that adds 0.56 to duty cycles above
> 0.01, it worked but feels kind of kloodgy.
>
> What causes this motor behavior?  I guess at those low duty cycles
> (especially given the low input voltage) the energy being fed to the
> motor is not enough to overcome inertia or static friction or something.
>
> I tried increasing the pulse-generating period, up around 1 KHz the motor
> became more responsive but also more "clicky" and it ran kind of rough.
> I think 10 KHz is about as slow as I want to go.
>
>
> If I can get this servo moving reliably I'll build two more, and put
> them on a McWire Mill [2].
>
>
> 0: http://pittmannet.com/series8000motors.html
> 1: http://emergent.unpythonic.net/projects/01142347802
> 2: 
> http://www.instructables.com/id/Easy-to-Build-Desk-Top-3-Axis-CNC-Milling-Machine/?ALLSTEPS
>
>
> -- 
> Sebastian Kuzminsky
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users
>

Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to