|
G'day folks,
It's a while since I started a thread and it's a bit off track for the blog but it does involve a mode. I have been working feverously on my latest project which is the construction of a 1/32 scale model of the Apollo Command, Service and Lunar Modules and the Saturn V launch vehicle.
I will start a detailed threads on the model as I get the various modules finished but for the moment I would like to discuss how I plan to display the Apollo spacecraft.
The plan is to utilize a magnetic levitation device like the one on the right that in conjunction with a rare earth magnet can suspend up to about a 1 kg mass beneath it. The model is primarily constructed from 200 gm-2 cardboard so it weights bugger all and if I position a NeFeB magnet in the model so it's slightly above the centre of gravity it shouldn't have any problem holding it up.
To sense the position of the model I have built an ultrasonic proximity detector kit that returns a voltage signal that is directly proportional to the position of the model. I also intend to mount a couple of hall effect sensors on the electromagnet that can be used to directly measure the strength of the magnetic field.
To control all this I intend to feed it all into a PICkit 2 microcontroller that will control the electromagnet.
If this all works I would ultimately like to animate the system so that the lunar module starts off on the base then lifts off and lands again.
So far I have found numerous sites out there that discuss different approaches to magnetic levitation but as far as I can see they all use analogue circuitry rather than a microcontroller. To me it seems a little strange as the sites I have looked at state that you can't just use a proportional control loop. This is because you need to take into account the velocity of the object being suspended not just its position beneath the magnet. Getting a differential/proportional control loop working with analogue components isn't that easy whereas with a microcontroller setting up PID (Proportional Integral Differential) control loops is relatively simple. It's also a darn side easier to reprogram a microcontroller than it is to rehash an analogue feedback loop, especially a PID one.
My question is, has anybody ever tried setting up a magnetic levitation system based on a microcontroller and if so what were the end results?
Regards masu.
|
Good Answers: