Ifor Bach
- 4
- 0
- TL;DR Summary
- I intend to phase lock the pendulum to an accurate off-air standard as non invasively as possible.
The idea is to use water to shift the centre of gravity of the pendulum by a small amount. The pendulum rod will have a tube closed at the bottom and open at the top. A second similar tube will be mounted nearby and will act as a reservoir.
The water will be transferred using a peristaltic pump driven by a stepper motor and will travel via a thin flexible silicon tube. A loop arrangement will minimise friction at the pendulum's fulcrum. The silicon tube will extend to the bottom of the tubes and as the total quantity of water will be slightly less than the volume of one tube, limit switches will not be needed. If something goes wrong and all the water from one tube is pumped to the other, the pump will simply pump air thereafter which will bubble up through the full tube but cause no spillage.
An optical detector will monitor the swing of the pendulum, and this signal will be compared with an accurate off-air standard by a microprocessor which will generate the appropriate pulses to drive the stepper motor in either direction.
My problem is how to stop the system 'hunting'. Ideally I'd like the system to settle down to a steady state. Can anyone suggest a simple algorithm that will adjust the frequency of adjustments and the amount of water transferred to achieve this over time.
The water will be transferred using a peristaltic pump driven by a stepper motor and will travel via a thin flexible silicon tube. A loop arrangement will minimise friction at the pendulum's fulcrum. The silicon tube will extend to the bottom of the tubes and as the total quantity of water will be slightly less than the volume of one tube, limit switches will not be needed. If something goes wrong and all the water from one tube is pumped to the other, the pump will simply pump air thereafter which will bubble up through the full tube but cause no spillage.
An optical detector will monitor the swing of the pendulum, and this signal will be compared with an accurate off-air standard by a microprocessor which will generate the appropriate pulses to drive the stepper motor in either direction.
My problem is how to stop the system 'hunting'. Ideally I'd like the system to settle down to a steady state. Can anyone suggest a simple algorithm that will adjust the frequency of adjustments and the amount of water transferred to achieve this over time.