Showing posts with label simulation. Show all posts
Showing posts with label simulation. Show all posts

Sunday, January 6, 2019

Should you add more weight to the pendulum bob when the clock doesn't run?

Short answer: no!

Medium answer: adding more weight to the bob increases the per-period energy requirement of the clock, but only up to a limit.  So once you have the clock running reliably, you can (and should) add more weight to the bob to improve its timekeeping stability.

When clock doesn't run because not enough energy is getting refreshed into the pendulum (or other resonator), it's tempting to look for easy fixes.  Adding more weight to the pendulum bob certainly delays the inevitable, since the clock will run longer before stopping.  But it has a certain futile feel to it... will you ever add enough so that it will never stop?  Sadly, you cannot.  Fixing the frictional losses (best) or increasing the drive power are the only solutions.

The reason is a straightforward derivation ending in a simple formula.

First of all, let the angular deflection of the pendulum be A = A(t), a function of time t.  For small angles, this is governed by

A'' + (c/m) A' + (g/L) A = 0,

where m is the pendulum bob mass, g is the acceleration due to gravity, L is the length of the pendulum, and c is the frictional loss constant.  By the usual process for solving such a differential equation, the envelope of the oscillations will naturally decay like

A(t) = exp( - ct/(2m) ) A(0) ( .. trig functions .. ).

If T is the time of one period, the max amplitude is given by

A(T) = exp( -cT/(2m) ) A(0).

Now switching to discuss energy, the height of the pendulum is found by a little geometry...

... to be given by

h = L(1-cos A(t)).

Therefore, the energy change from one period to the next is

dE = mgL(cos(A(T)) - cos(A(0))) = mgL(cos(exp( -cT/(2m) ) A(0)) - cos(A(0)))

again applying a small angle approximation,

This expression is the one we're after, and really we want to know how it changes as we change m.  Clearly at m = 0, the change in energy is zero. Taylor expanding in m, we have the behavior for large m is approximately

Here is a plot of the overall behavior

The takeaway is that as you increase the mass of the pendulum bob, you must supply more energy to sustain oscillations, but only up to a limit.  For stable, reliable operation, you should ensure that the drive supplies at least that limiting amount of energy first first, before increasing bob weight.  Minimizing frictional losses should be the first priority -- which decreases c -- before trying to increase drive weight.  Only after the clock runs reliably should you attempt to increase the pendulum bob weight.

Thursday, December 11, 2014

Omnidirectional sonar antenna

Because I'm interested in collecting indoor sonar data that has lots of multipath, it is useful to have an omnidirectional antenna either for reception or transmission.  Here's a simple design for an antenna that radiates omnidirectionally in the azimuthal plane, but rejects sound from above and below.  Roughly, it consists of two round disks with a speaker or microphone placed in the center of one of them.  This acts like a cylindrical waveguide.

Before building this, I wrote a simple boundary element method simulator in GNU Octave to test the radiation pattern.  This was helpful to choose dimensions for the disks and the spacing between them.  The simulator used a dense grid of boundary points (blue below) and propagated to a dense slice of points (green).
After a bit of tweaking, I settled on a separation of 20 cm and a diameter of 60 cm.  This yielded a radiation pattern that's roughly flat for equatorial elevations, and drops off sharply beyond that.
Here's a near field plot as well, showing the standing wave structure between the disks.
I constructed the antenna from 1/4" plywood, using 1" dowels as standoffs between the disks.  To ensure the standoffs were reasonably precisely made, I faced off their ends in the lathe, and used the lathe to drill pilot holes for mounting screws. 

I also cut a tripod mounting bracket using the router.





The speaker is mounted in the center of the top disk. 



Here is the finished antenna.


The antenna seems to reject sound from above and below pretty noticeably, but as could be expected from an omni, its overall gain is not very high.