Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 81
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
All today's birthdays', congrats!
dan (37)
rchydro (64)
CapRack (30)


Next birthdays
11/07 Dave Marshall (40)
11/07 Worms (46)
11/08 Bert (77)
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 »   

Control Loops, Nodes, Poles, Phase and Gain.

Move Thread LAN_403
Patrick
Thu Mar 05 2015, 03:56AM
Patrick Registered Member #2431 Joined: Tue Oct 13 2009, 09:47PM
Location: Chico, CA. USA
Posts: 5639
Ok will do the above, but also, im wondering how to quantify or qualify the measures on the machine. Ihings like mass, inertia, response time, and other vehicle features. These things need to be known regardless of control method. So im thinking of a micro-processor gyro-acc IMU device to record motion.

In any case, would a dihedral on each fan be meaningful? Or just a bogus "pendulum" fallacy?
Back to top
Uspring
Thu Mar 05 2015, 05:28PM
Uspring Registered Member #3988 Joined: Thu Jul 07 2011, 03:25PM
Location:
Posts: 711
Probably the most important parameters of a feedback loop are gain and phase. Think of a room heating control. You have a thermometer and a heater. The error signal is the difference between intended temperature and actual temperature. In case of a T too low, power to the heater is increased and the other way around.

If you feed an error signal corresponding to e.g. a 1 degree too low room T to your system and the room temperature will eventually rise by 2 degrees then your loop gain is 2. Note that in this experiment we don't use a thermometer to generate the error signal but set it manually. (Open loop)

Now consider a sinusoidal error signal with a very long period, e.g. days. The room temperature will also vary sinusoidally with a bit of lag behind the error signal. The phase difference due to the lag is phase of the control loop. For very slow error signal frequencies, the phase will be small and the gain, i.e. the ratio of room T amplitude and error signal amplitude will be 2, as above.

For higher frequencies, the gain will drop and the phase will increase. There will probably be a frequency, where the phase is 180 degrees, which turns the negative feedback loop into a positive feedback loop. This becomes a problem, when the gain at this frequency is above 1. Then the system will begin to oscillate.

This can be avoided by decreasing the gain of the loop, e.g. by reducing the heater power change for a given error signal. The drawback is, that the control accuracy drops, i.e. the room will see a bigger rise in temperature, when e.g. the sun shines through the window. The lower the loop gain is, the less the loop will be able to compensate for disturbances. A PID controller helps here.

The I part of a PID controller increases gain at low frequencies. Since the phase is low there, it doesn't hurt. The D part increases gain at higher frequencies, which can be problematic if the phase approaches 180 degrees. The D component will shift the phase back by up to 90 degrees, though, so positive feedback will happen not beginning with 180 degrees phase but somewhat later.

To establish the parameters of a PID controller you need to make an open loop experiment like I've described above, driving the system with sinusoidal error signals at various frequencies. For copters, that is difficult, since you need to keep the thing flying while driving the error signals.
Back to top
Ash Small
Thu Mar 05 2015, 08:00PM
Ash Small Registered Member #3414 Joined: Sun Nov 14 2010, 05:05PM
Location: UK
Posts: 4245
When I was considering a similar dynamic problem, I concluded that I'd probably want, say, 256 'output states'. If driving an electric motor using PWM 'chopping', this equates to pulse width.

Same with the input sensors, 256 corresponds to ~1./5 degrees, for example.

The algorythm between input and output does everything else. If you can adjust a few variables 'on the fly', you can trim the sensitivity.

These are only my own thoughts, when thinking through a similar problem. Maybe 256 is too many, it is only 8 bits of data, though.
Back to top
Patrick
Thu Mar 05 2015, 08:05PM
Patrick Registered Member #2431 Joined: Tue Oct 13 2009, 09:47PM
Location: Chico, CA. USA
Posts: 5639
Uspring, that was excellent, now i see without the math, the working factors.

Eventually, and i mean way down the line, i want to be able to fly a YF-23 Black Widow, and a Grumman X-29, and perhaps a near tail-less or canard-less design. but ill have to hire a mathematician and a physics PhD, im sure.

NASA, Northrop and Lockeed, must use fluid simulations, but even those must be based on previous wind tunnel measurements. then re-verified in a near-final design in another wind tunnel, else test pilots would be getting killed all the time when their machines ball-up at the end of the run-way on fire...

Back to top

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.