Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 87
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
One birthday today, congrats!
RateReducer (35)


Next birthdays
11/01 RateReducer (35)
11/02 Download (31)
11/02 ScottH (37)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: General Science and Electronics
« Previous topic | Next topic »   

3 phase PWM

1 2 
Move Thread LAN_403
Avi
Mon Apr 09 2007, 06:43AM Print
Avi Registered Member #580 Joined: Mon Mar 12 2007, 03:17PM
Location: Melbourne, Australia
Posts: 410
Does anyone know how the timing diagrams for 3 phase pwm should be both graphically and mathematically, to opeate a 3 phase motor?
I found a graph on google and edited+added to it but I dont know if it is correct specifically the first phase if it ever requires an offset.
Will what's in the graphic at any point become out of phase with the motor?
Back to top
Electroholic
Mon Apr 09 2007, 07:05AM
Electroholic Registered Member #191 Joined: Fri Feb 17 2006, 02:01AM
Location: Esbjerg Denmark
Posts: 720
if you want to do pwm, you will need 3 halls to sense the position of the rotor.(assuming its a brushless 3 phase in star configuration) then you will know which phase is suppose to be on, and then you pwm that.
Back to top
ragnar
Mon Apr 09 2007, 07:06AM
ragnar Registered Member #63 Joined: Thu Feb 09 2006, 06:18AM
Location:
Posts: 1425
Welcome Avi,
For three-phase motors, the PWM has to be applied to all the phases sequentially, right?

I'm not sure I'd understand why you'd ever require an offset -- normal turn-on and variable turn-off times / duty, each cycle, seems like the only way to me..? Jeez, this actually feels quite complex -- I'm having trouble getting my head around H-bridges for more than one phase.

Electroholic -- Avi already knows how to, and has driven, a three phase motor, I think he wants to know if there are exceptions involved in PWMing it.
Back to top
Avi
Mon Apr 09 2007, 07:41AM
Avi Registered Member #580 Joined: Mon Mar 12 2007, 03:17PM
Location: Melbourne, Australia
Posts: 410
Please note, i am not asking about motor or circuit design.
But i should point out that it has 3 hall sensors each with inverting and non inverting outputs.
the motor coils are a star configuration (with common not connected) but i would assume correct phase driving is importaint with all types of multiphase coil configurations.

I am questioning the timing diagram of the 3 PWM channels and how they relate to eachother and the hall sensor timings.

the PWM has to be applied to all the phases sequentially
all PWM channels are updated at the same time, the on and off points can be changed reletive to the cycle period length.

I'm not sure I'd understand why you'd ever require an offset

changing the offset would cause a potential difference between any 2 channels to either be present or not present. Additionally it also may relate to an amount of physical angle error with the motor, but im not sure.
Back to top
Electroholic
Mon Apr 09 2007, 10:53AM
Electroholic Registered Member #191 Joined: Fri Feb 17 2006, 02:01AM
Location: Esbjerg Denmark
Posts: 720
i still don't quite understand your question.

if you want to generate a 3 phase signal using pwm, there are two ways to do it. Edge aligned, and centre aligned.

if you want to vary the speed of a 3phase motor, its just the fundamental frequency of your signals.

if you want to vary the torque, then you will have to play with the PWM within the phases, to moldulate the pk-pk voltage of the phase signal.

and most of the time, the halls are designed/positioned to give a signal with 50% dutycycle and 120degree out of phase.
Back to top
Bjørn
Mon Apr 09 2007, 11:25AM
Bjørn Registered Member #27 Joined: Fri Feb 03 2006, 02:20AM
Location: Hyperborea
Posts: 2058
My feeling is that the reference point should not be the rising edge of the first pulse, but the middle of the first pulse and use dual edge PWM. If not you will get phase differences that are not optimal.

Imagine the pulses in the middle of sinewawes, if you stretch the first pulse it will not longer be in the middle of the sinewave unless you stretch both edges.
Back to top
Steve Conner
Mon Apr 09 2007, 12:49PM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
The textbook way of doing this (AFAIK) is to synthesize three sine waves 120 degrees out of phase by using PWM with a carrier frequency much higher than the actual motor drive frequency (aka modulating frequency) you're synthesizing. Then the phase relationship between the PWM carrier and the modulator doesn't matter, since they're not even the same frequency.

In your diagram, you have the carrier and modulating frequencies the same, so the question of phase becomes important. My solution would be to bump up the carrier frequency so you have, say, 5 pulses per half cycle of the modulator.

If you are driving a "brushless" synchronous motor with Hall sensor feedback, then the modulating waves need to be kept in a certain phase relationship with the outputs from the Hall sensors to make it work efficiently. IIRC, the motor works best when there are nearly 90 electrical degrees between the rotor and stator fields, since then the motor is giving the most torque it possibly can without slipping out of sync. An ordinary sync motor needs a wide safety margin to prevent this, but of course one with Hall sensor feedback can't slip out of sync.

I believe this is done by the motor designer physically putting the Hall sensors in the right place, such that their outputs can drive a 3-phase bridge directly. This gives square wave drive, not sine wave.

In this case, the best way to apply PWM is to keep the original drive circuit, and chop the DC bus voltage to the bridge at a frequency considerably higher than the highest speed you expect the motor to go. That's how a lot of inverter drives used to work before DSPs (and programmers!) got good enough to do the required math in real time, such that the 6 devices in the 3-phase bridge would do the PWM too. The inverter synthesized three square waves 120' apart with constant duty cycle, and a buck converter ahead of it adjusted the DC link voltage to change the motor speed. If it was an induction motor drive, the inverter frequency was changed along with the DC link voltage.
Back to top
Bjørn
Mon Apr 09 2007, 01:09PM
Bjørn Registered Member #27 Joined: Fri Feb 03 2006, 02:20AM
Location: Hyperborea
Posts: 2058
The controller in this case is a 60 MHz ARM7 with dual edge PWM in hardware. The main problem is to find the formulas for calculating the values.
Back to top
Steve Conner
Mon Apr 09 2007, 01:19PM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
Well, if I understood right, and you're going to have carrier and modulator frequencies the same like that picture suggests, and you're determined to use a DSP in the loop (though it's huge overkill since you have the Hall sensors: you should literally only need a TL494)

The centre of each pulse should correspond with the centre of the "High" portion of the square wave from the appropriate Hall sensor.

The width of each pulse you set depending on how much torque/speed you want. The pulsewidth does not relate directly to torque or speed, though. Instead, the motor will have roughly the same torque/speed characteristic as a brushed PMDC motor driven by a PWM'd DC voltage.

Starting the motor smoothly from a standstill, when none of the Hall sensors is giving output and you don't know the rotor position, is an exercise for the reader wink
Back to top
Avi
Mon Apr 09 2007, 01:56PM
Avi Registered Member #580 Joined: Mon Mar 12 2007, 03:17PM
Location: Melbourne, Australia
Posts: 410
The hall sensors are analogue, they output a sine wave. I’m not sure what voltage they are designed for but it seems to output nicely in the middle from a 3.3v supply.
The graphic is not very realistic however because they all show the same duty.
Back to top
1 2 

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.