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.
Registered Member #30
Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
Hi Terry, all,
There's not really much point in phase-locking a DC motor, except that it's a fun project and has a lot of educational value. Jrz is about to learn a lot about control theory pretty quickly. Hopefully he's going to learn it from hazmatt, to save me doing it
Registered Member #135
Joined: Sat Feb 11 2006, 12:06AM
Location: Anywhere is fine
Posts: 1735
hehehe...oh man. You know..It would be fun, but its hard to remember controls when they have us jumping from topic to topic in college. My major is controls, but I also love instrumentation, which is a great mix, because after all how else can you control something without interfacing? you cant.
Lemme see what I can come up with after the semester ends. Maybe I can bug my controls teacher. He co-wrote a pretty good book on the subject, my major complaint to him was that his book wasn't procedure based! which doesn't help me one bit!
Hopefully I will have enough time after finals/before summer EE411 to work out the system. Getting the inertial response is going to be really critical, so I need to measure that with some real precision. But thankfully, the response is much like that of the Incubator system in the Basic Stamp Program. If you pick up that book/controller kit you will be on your way to having a good system.
Registered Member #242
Joined: Thu Feb 23 2006, 11:37PM
Location: Erie PA
Posts: 210
Those basic stamps are pretty expensive...compared to the free samples of PICs that I can get from microchip's website. Do you really need to take measurments for it? I was planning on just leaving the Kp Ki and Kd as variables and just tune those until I get a nice response. I'd be working on it right now, but I only have one more pic to use and it doesnt have the bootloader I need to load my programs.
Registered Member #135
Joined: Sat Feb 11 2006, 12:06AM
Location: Anywhere is fine
Posts: 1735
It's really not about the stamp, its about the compilier and some of the features they wrote into the compilier as reserved words. It also has its Incubator exercise which is pratically the same as a motor. You watch how the resistor heats a film canister and create a heater system with PID control.
What you're getting is a number of things, the controller, a procedure, and an implementation that's almost verbatum with code in the book. To me its worth the cost since I don't have the time to be making mistakes. Also, the compilier has a function RCtime so connecting a pot and cap to the pin and grabbing the variable is practically coded for you already!
Now you could just use pots and probably get on your feet sooner then I could with all the simulation, but I could probably get more efficiency out of simulation. I'm sure you will get really close though (90 percentile.) and I might get 95%. I'd prefer the practice though, and so I won't have to fiddle with the pots.
A place you might want to start is: Kp = 1 Kd = 10 Ki = .1 or .01 I think those were my values for my heater system. Good luck with design ;)
Registered Member #242
Joined: Thu Feb 23 2006, 11:37PM
Location: Erie PA
Posts: 210
I have the PWM signal working from the microcontroller, but the labs at school only have 1amp max powersupplies, which hampers the acceleration of the motor. So I came up with this little test bench in about an hour or 2. overall microcontroller motor
The motor assembly isnt attached to the powersupply base, it would have been too awkward to carry around school. And the motor isnt finalized either, I just mounted the sensor so I could test it
Registered Member #242
Joined: Thu Feb 23 2006, 11:37PM
Location: Erie PA
Posts: 210
So close.... I've made quit a bit of progress with the controller. I mounted an LED to shine on the disk and have it hooked up to a zero crossing detector, so its flashing at 120Hz. This will show if the disk is sync'd or not. The lines on the disk should appear to be stationary (like a timing light for a car). It's still kinda jittery (as you can kinda see from the movies) I noticed that my PWM signal is more of a full on/full off instead of a PWM, so I've got some adjustments to make with that. led1 led2 movie 1 movie 2 Sorry about the MOV format, thats what my digi uses.
Registered Member #242
Joined: Thu Feb 23 2006, 11:37PM
Location: Erie PA
Posts: 210
I got the controller all figured out, and the position holds pretty steady. Well atleast until I start to crank up the variac. Once I get to about 10V, the motor goes nuts. The spark gap doesnt even fire. I saw this problem coming, but atleast I know my speed controller works.
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.