issues with maglev
I built a maglev system and ran into the same issues as above.
there are multiple things going on here.
1) the control loop being unstable is due to pole locations. gain can change this but to acquire a real stable controller, the pole locations must be adjusted.
2) stable then dropping off is caused by two things a) bias to the system needs to be adjusted so that the drive transistor is in the linear region b) thermal heat up of the drive transitor and core of the magnet can/will cause poles to shift. see #1 above. put heatsinks on the magnetic core and on the drive transistor.
You can model the system in the freq domain and see if the poles are correct or you can put a pot in your compensation circuit between your amps, along with an adjustment on the gain of the output and do the following...
1) adjust gain down until stable
2) tweak the compensation in very little increments
3) watch levitating object ("ball") closely for oscillations.
4) when you turn and oscillations happen, turn back and go the other way.
5) adjust bias so ball more evenly floats in middle range of optical sensor
6) adjust gain down.
repeat in order or not whichever seems best or appropriate. adjsuting gain, compensation, and bias. you can watch the output of the optical sensor on a scope for better judgement of stability.
I built a maglev system and ran into the same issues as above.
there are multiple things going on here.
1) the control loop being unstable is due to pole locations. gain can change this but to acquire a real stable controller, the pole locations must be adjusted.
2) stable then dropping off is caused by two things a) bias to the system needs to be adjusted so that the drive transistor is in the linear region b) thermal heat up of the drive transitor and core of the magnet can/will cause poles to shift. see #1 above. put heatsinks on the magnetic core and on the drive transistor.
You can model the system in the freq domain and see if the poles are correct or you can put a pot in your compensation circuit between your amps, along with an adjustment on the gain of the output and do the following...
1) adjust gain down until stable
2) tweak the compensation in very little increments
3) watch levitating object ("ball") closely for oscillations.
4) when you turn and oscillations happen, turn back and go the other way.
5) adjust bias so ball more evenly floats in middle range of optical sensor
6) adjust gain down.
repeat in order or not whichever seems best or appropriate. adjsuting gain, compensation, and bias. you can watch the output of the optical sensor on a scope for better judgement of stability.