TIC4 Logger5 Clock Monitor (“TIC4LOG5”): update and test data

A quick update on the clock monitor/time interval counter project, TIC4 Time Interval Counter. Main objective is to have a clock analyzer that will keep track of every tick of mechnical clocks and watches, in particular, of one of my precision pendulum clocks operated in Germany. These clocks are pretty accuarate, but are impacted by air pressure and temperature fluctuations. Ideally, rather than the air pressure, it would be great to measure the air density directly, but there aren’t any easy ways to do this (might be considered for a project later).

The TIC4, we have already discussed, it is based on an AVR Atmega32L, which eventually will be running of a 10 MHz OCXO ultra-stable clock, provided by a Trimble OCXO, more on this to come. For now, the circuits are running on ordinary crystal oscillators, fair enough.

The TIC4 circuit has now been combined with another Atmega32L, which I call the “controller”, aka “Logger5” here. Its only function is to wait for a TIC event to happen (timestamp received), and the the determine (room/clock) temperature, air pressure, and real time (from a real time clock, which is not very accurate, just for the purpose of keeping track of actual time and date, UTC time plus minus a few seconds, e.g, to correlate clock issues with events like earthquakes or sun storms…).

This setup represents the temporary “TIC4LOG5” wire rats nest, which will be put into a proper case once all has been tested thoroughly.
tic4log5 scheme

For the TIC4 and Logger5 Atmegas to work together, they need to run on the same serial baud rate. With the desire to run the logger at 16 MHz, and the TIC4 at 10 MHz, this leaves 38400 baud as a good compromise.

baud rates

Some small console programs are used at the host PC to gather the data, and store them in files, about 4 Mbyte a day, for 1 s pendulum, or 40 for the 10 Hz clock under test now.
All has been designed for clocks up to about 10 Hz, but the circuit can work up to 100 Hz no problem, provided that the pressure measurement (which takes about 10-25 ms, depending on the resolution mode – selected the ultra high mode, 25 ms per sample).
A note on the BMP085 – this is a quite common part, and pretty ordinary to program and work with – typical accuracy is +-1 mbar, with max. 2.5 mbar specified. Typical noise is about 0.05 mbar, but can be significantly reduced with averaging (there aren’t any fast second-time-scale pressure changes anyway).

That’s how the console works away: recording RTC (in unix time seconds, counting the events, recording the timestamp, temperature and pressure). Two files are generated, one the has the full data, and a second one that only records to event numer (TIC events recorded- and reconstructed to actual clock ticks in case a few ticks are missed) and the absolute clock deviation (time gained or lost, in seconds). For those more familiar with electronics engineering, this time gained or lost is nothing else than the phase shift of the clock under test vs. the 10 MHz precision ultra-stable OCXO, measured in seconds.

For test purposes, and to get a lot of TIC events, a 10 Hz clock source is in use as the test clock. This will be replaced by a pendulum clock, or mechanical watch, eventually.

tic4log5 clock
The boards and cables…

tic4log5 assys

…and their output, one data package, 29 bytes, every 100 ms.

logger

Some records of the last few days (pressure is as-measured, no corrections, location is Westfield, NJ, USA) – all working pretty well with no hick-ups or restarts so far!

day513

day514

day515

day516

day517

Also the Allan Deviation looks ok, and plenty accurate to measure the drift of even the most precise pendulum clocks, or similar. From the temperature effect, it seems that the test clock is speeding up a bit, with increasing temperature, but overall the effects seems to be just some random drift. Hope you also notice that the workshop here is nicely thermostated at about 22.3+-1 degrees centigrade.

allen dev 1

With the software now pretty much established, it is time to look at the precision clock source. Sure, it would be best to run this of a hydrogen maser or caesium clock, but all a bit too much for the given purpose, und consuming too much electricity. So I settled for a Trimble 65256 OCXO (oven controlled xtal oscillator), having a few of these on hand. They run at 12 V (note: which needs to be well stabilized, otherwise you will get a good amount of phase noise – not relevant for this application, but for others), consuming about 0.3 Amps, chiefly, 4 Watts.

tic4log5 trimble 65256

The output of the Trimble is a sinewave, about 3.6 V p-p when terminated with a few kOhms (no need to terminate such osciallators in 50 Ohms). This signal can’t drive the Atmega32L directly, it needs to be properly squared up. This is acomplished by a 74HCU4, which also generates an auxilliary output 10 MHz signal, handy for other uses, and for alignment of the Trimble vs. a GPS or DCF77 frequency standard.
The OCXO may drift about 10e-8 per 10 years, 10e-10~10e-9 per day. This is 10 to 100 microseconds drift per day. Not sure about the Trimble units, but they seem pretty good based on past observations.

tic4log5 trimble squared

Everythings squared up properly, x axis is 10 ns per div. Well, this is close to to the limits of the 60 MHz BW scope used here.

tic4log5 trimble risetime 10 ns per xdiv

Some data on the Trimble 65256 units – interestingly, they have a 2.6 V reference, but the VFC (variable frequency control) needs to be set to about 3.2 for this unit, to get exactly 10 MHz.

tic4log5 trimble 65256 serial 12315-10040 connectors and data

Here are some of the key source files, for those interested:

tic4 avrgcc tic4_10mhz_stable160423

logger5 avrgcc logger5_stable160430

console data logger log5_main_stable160501

USB control program log5usb_main_stable160430

tic5eval R script to make the daily plots

Micro-Tel MSR-902C Microwave Surveillance Receiver: a very intriguing, 60 pound briefcase

A few days a ago, a most intriguing briefcase arrived, brown color, looking like the late 70s… Samsonite. It is heavy! Really heavy!!

msr-902c briefcase

Inside – a fully equipped MSR-902C receiver, including all cables (which are rare, and extemely expensive to fabricate, because they use special military connectors). This receiver can more or less receive any signal, down to very low levels, and comes in 3 modules, the actual receiver, a 1-18 GHz tuner, and a 18-26 GHz tuner. Other tuners and harmonic mixers were also available from Micro-Tel, but most likely, not many of these have ever been sold.

msr-902c view1

A brief description of the MSR-902, which is very close to the 902C:

msr-902 description

Unfortunately, there is very little literature or even manuals on the MSR-902C, no instructions, no schematic – fortunately, is shares some circuits with the MSR-904A, and 1295 Micro-Tel receiver, and it is an all-discrete construction, with a lot of wires and circuit boards, so it is repairable, even without schematic (just taking 10x longer….). Should you have a manual, or any other related documentation for the MSR-902C,

Inside of the main receiver (the tuners have not yet been touched), a most amazing combination of wires, switches, boards, and so on. All hand-soldered in Maryland, USA.

msr-902c wires

msr-902c wires2

msr-902c wires3

It is a marvel of engineering, but, currently, not in working order. It blows the fuse, as soon as it is connected to mains power. Something wrong with the power supply. After removing a cup full of screws, here it is.

msr-902c pwr supply

Strongly shielded by a thin magnetic shield, all nicely machined and assembled. Now all has to come apart for repair.

msr-902c mag shield

The internals of the power supply, a good number of boards and parts. The power supply can either work from AC mains, or from 12 VDC. The 12 VDC section appears to be find.

msr-902c side view

msr-902c top view

After some tests, found the first suspect item, a full short on one of the MJ12002 transistor that drive the primary of the switchmode power supply converter.

msr-902c dead mj12002

msr-902c transistor short

It a quite old-fashined part, but could still find 3 pieces, USD 5 each. Not cheap, but OK.

msr-902c pwr transistor mj12002

Once the transistor had been removed, time for some checks of the drive circuit. This circuit is based on an MC3420 switchmode controller.

msr-902c pwr supply disassembled

As you can see, the switch mode regulator is working, just no drive transistors around that could actually drive the transformer. But will be only a matter of days.

msr-902c pwr supply drive signal

For those interested, here are the specifications (of the very closely related MSR-902).

msr-902 specifications

More to come – stay tuned!

1″x30″ Belt Sander: re-wiring a capacitor motor from 115 VAC to 230 VAC

The world could be a better place if all people would agree to use the same measure, voltage, frequency, etc., but this is not going to happen soon. For me, constantly moving forth and back and living on various continents, this causes additional hardship. In the US, I own a 1″x30″ belt sander, which is available from Harbor Freight, at about USD 50. That’s a remarkable price, because the unit is actually quite well-build, has roller bearings, polyamide rollers, a motor, a cast-aluminum case, a base plate, and so on. No idea how the Chinese make this for less than USD 50 – the 4 6202RS bearings alone are more than $10, if not more.

beltsander hf

Moving back to Germany soon, this nice litte machine will be a heavy doorstop – because there ain’t no 115 V power in Germany. What about the motor?

belt sander motor

As it turns out, it is a capacitor motor, more precisely, a permanent split capacitor motor – the capacitor remains permanently connected to one of these windings. Such motors don’t have massive torque at start-up, and are typically used for fans, pumps, and the like. While some of these motors can be easily re-wired to 230 V, the belt sander motor only has 4 wires coming out.

So, we need to have a look inside. Make sure not to damage any of the windings!

beltsander 115v wiring

A quick schematic – there are two main coils, and one started coil. Great! This means, we can rewire it…

beltsander schematic

Be sure you know what you are doing – this is all mains voltage, and the wires need to be properly wrapped and insulated (especially, the now exposed connection point inside of the motor).

beltsander rewired

Still puzzling how such a nice machine can be made for so little money… the motor alone – just rewiring it takes the better part of 1 hour…. all nicely wrapped.

beltsander wire wrap

The capacitor, a CBB60 grade, 250 V, PP metallized capacitor. 12 µF.

beltsander ccb60 12uf capacitor

Finally, the belt sander assembled again – and ready for 230 VAC.

beltsander assembled

Some consideration of belt speed – the sander has a 95 mm diameter drive roll. A 60 Hz 2 pole induction cage capacitor motor will have about 3300-3400 RPM at full speed – that’s about 16 m/s grinding speed – OK for most materials (you might want to go a little faster on steel, and slower for touch-up and last steps of sharpening of knives, and similar objects).
Running at 50 Hz will reduce the speed to 13-14 m/s, fair enough.

HP 11683A Range Calibrator: no power meter calibration without it

With all the various HP power meters for repair, it would be really handy to have a range calibrator, HP Agilent Keysight 11683A. These have been around for 40+ years – any still not easy to find at any reasonble price – even used and non-calibrated units may be as much as 500 to 1000 USD. You can still buy it new:

11683a range calibrator

The internals, check out the picture provided by Keysight – there is a modified 8481a power head (using the same FET chopper assembly), a range switch using high quality 140 series Micro-Ohm non-inductive wire-wound resistors (0.1%, +-10 ppm temperature coefficient).

11683a internals

11683 schematic

Note that the schematic shows the H01 option – which allows an external DC connection, from a calibrated DC source. This is much preferred over the build-in power supply and resistive divider (which has known issues at low output voltages). The design of the 11683a also has some ground loop issues, better to just leave it disconnected from mains, and supply the DC voltage from a known-good source.

11683a calibrator instrument

These issues are known to the experts of the field, see, e.g., this comment from the Keysight EPM-P power meter manual.

11683a accuracy

Now, a very complicated issues with the range calibrator – it’s output isn’t strictly linear over the dB range, because the power meters have a shaping circuit, to compensate for the somewhat high output of the 8481A and similar sensors, above about 5 dBm of input power. Accordingly, the sensitivity is reduced for this range.

11683a 436a pwr meter high input signal adjustment

Furthermore, the 11683a has ranges labelled in mW, e.g., 3 mW, but the output actually is calibrated in 5 dB steps…. so the output power is more like 3.16 mW, etc.
To figure this all out, a thorough calculation has been done, considering the FET input impedance, the resistive network, and the range switch.

11683 nominal output

11683 dc calibrator input

At the 10 mW and 100 mW ranges, calibrations applied in the 11683A (and the 43x series power meters) were determined to be different from the newer EPM-P meters – quite surprising. The reason for this difference of the older meters, to the new EPM-P meters is rather hard to guess, but thanks to a kind engineer at Keysight, we now know: the EPM-P meter reacts differently to the 11683A (because it measures in virtually one range), in contrast to the 43x series meters that have several ranges. So, there is no difference in the actual power meter calibration, it is just a difference needed when considering using the 11683A for either 43x or EPM-P meters, because of the different response to the level calibration, but not actually different response to the power head when measuring actual RF power.

11683 correction

This table has the voltages that should be provided to the calibrator, depending what you want to do – (1) calibrate a EPM-P meter, (2) calibrate a meter “simulating” the acutal 11638A range switch voltages, (3) calibrate an old 43x power meter, with corresponding scaling factors for 10 mW and 100 mW ranges.

11683a ideal voltages

A quick scheme of the 11683A power supply, and the clear-written resistor values, which are not so clearly seen in some of the schematic copies.

11683 pwr supply

Now, how to get a 11683A range calibrator at reasonable cost? Turns out, you can build your own from one of the many defective 8481A that are around in most labs, and on xbay. Well, in fact, most “working” powerheads sold only for below USD 100 are dead anyway… but this is different story. These powerheads hardly ever have any issue with the copper and FET boards, but in most cases, the thermistor is dead, blown by too much input power.

11683 436a voltage check

The modification – a wire has to be added to connect signal and guard ground (brown wire), and a 196 ohms resistor soldered over the FET input (I used a 220 ohm resistor for the test, but will replace one 196 ohm on hand). Also, you need to add a 196k resistor to the input, according to the 11638A schematic (this can be assembled from some other resistors, if no 196k in stock).

11683 8481a modification

Make sure not to bend the wires – this can affect the FET chopper balance (see 8481A or 11683A service manual to re-adjust if needed).

11683 8481a board

The input is currently still arranged with open wires, but I will fit a 1n feedthrough cap soon – will modify the original N-connector (the golden part holding it). But this will need to be done back at the main workshop in Germany – need to use a lathe for it.

8481a n conx disassembled

Some test results will follow soon – but so far, everything is working just fine.

HP 11708A 30 dB Reference Attenuator: less than 0.0005 dB drift per year?

One of the products that have been in the HP/Agilent/Keysight catalog for 3 or 4 decades, or more, the 11708A reference attenuator. Specified at +-0.05 dB, it is a remarkably simple device – it just provides 1:1000 attenuation, chiefly, 30 dB. It’s main application is the calibration of 8484A power sensors, from a 1 mW source – the 8484A needs a 1 µW reference level.

Unfortunately, it doesn’t come cheap, when ordered from Keysight today, at least for a hobbyist’s budget. So I got mine used, aged (30 years?), and at a minor fraction of the cost.

11708a keysight

Before using it for a considerable number of power measurements, it is a good idea to confirm it’s performance. Measuring attenuation to +-0.05 or better is no easy tasks, but fortunately enough, a tractable one, with a 8642A signal generator, and a Micro-Tel 1295 precision attenuation measurement receiver. The Micro-Tel is specified to +-0.02 dB, plus +-0.02 dB for each 10 dB, say, +-0.08 dB. Actual performance, of a well-calibrated and well-heated-up unit is considerably better, but only in combination of other high quality components, like, a stable source (the 8642A has virtually no measurable drift), and, good test cables (using Suhner Sucoflex).

The Micro-Tel 1295 employs IF substitution to determine attenuation, and the IF attenuator works in 10 dB steps. Therefore, for best accuracy, the tests should be done at various power levels, to use various combinations of x0 dB segments, of the IF attenuator.

The results, quite remarkable!

11708a low level

11708a low level2

11708a high level2

One thing to consider for the test – the input and output matching losses. Neiter the source nor the cable/receiver are perfect 50 Ohm terminations – but the 6 dB pads will ensure only very minor losses. Obviously, you need to use high quality pads here, specified to small return loss, 18 GHz parts preferred.

First step – reference measurement is taken without the attenuator-under-test:

11708a test atten 1

Second step – actual measurement is taken with the attenuator-under-test installed between the two 6 dB pads:

11708a test atten 2

Before the start – best to check reproducibility and repeatability. With good cables and hardware, +-0.005 to +0.01 is achievable with the current setup.

Well, let’s say, chances are that the 11708A is +-0.02 off its nominal value, most likely, it didn’t drift at all over the last 30 years.

TIC4 Time Interval Counter: 64 bit timestamps – 100 ns resolution

A time interval counter – this little device, based on an Atmel AVR ATMega32L assigns 64 bit time-stamps to events (event being a rising edge on INT1 interrupt), based on a 10 MHz OCXO, a Trimble 65256 10 MHz double oven oscillator. So, 100 ns resolution. The main purpose: precise monitoring of pendulum clocks – in combination with a temperature-air pressure-real time clock data logger.

Why TIC4 – well, there are several other (earlier designs), some with better resultion by interpolation (via a clock synchronizer and interpolation circuit). But for the given purpose, there is no need for any more than a few microseconds of resolution, because it is really hard to detect the zero-crossing of a mechnical pendulum to any better resolution.

For test purposes, I had the circuit running on a 16 MHz clock, with ordinary (not very precise or phase locked) 20 Hz, and 2 Hz signals at the input – running overnight to check for any glitches.

tic4 allan dev 50 ms

tic4 allan dev 500 ms

The Allen deviation plots show that for single events, the timing accuracy is about 150-200 ns, close to what is theoretically possible for a 16 MHz clock.

The AVR program code, it looks simple, but believe me, it isn’t. There are quite a few pitfalls, because for any timing of the interrupt, there needs to be a precise time-stamp generated, and transmitted to the host. Maximum time stamp rate is 100 Hz nominal (1 timestamp every 10 ms), but will work up to about 150 Hz, without missing any events. Timestamps are transmitted with every 16 bit timer overflow, chiefly, every about 6.6 ms (65535 x 100ns). Each timestamp and control info is 120 bit long (12 bytes, 8N1 protocol, 57600 baud) – 2.1 ms.

tic4.c AVR code

For test purposes, the serial data is sent to a PC, via a MAX3232 TTL to RS232 converter. Alavar is used to process the information into Allan deviation plots.
Test showed absolutely no glitch in about 1.3 million events – fair enough!

More details to follow.

Ordinary Wheat Bread: well-proven US recipe

This is a good, fast and simple wheat bread. Optimized for baking in gas-fired ovens.

1600 g wheat flour (1:1 mix of ordinary and bread flour; up to about 300 g wholewheat flour is OK)
30 g salt
1 package dry yeast

Dry-mix thoroughly.

Add 1200 mL of warm water.

Mix/knead. Let rise thoroughly. Knead again – add some flour as needed.

Form elongated shape breads. Let rise.

Bake in pre-heated oven to 425 F. For best result, add water in tray at start of baking.

ordinary wheat bread

Some (good old German) baking recipes: strudel, marble cake, Gugelhupf

Gugelhupf

500 g Weizenmehl Type 405
1 Msp. Salz
1 Würfel Hefe
150 g Butter
100 g Zucker
3 Eier
225 mL Milch

Hefeteig zubereiten. Gehen lassen.

100 g Rosinen (abbrühen und durchsehen – schlechte aussortieren) unterkneten.

In Gugelhupfform geben, gehen lassen

180 Grad Unter-/Oberhitze, 50 min backen – etwas in Form auskühlen lassen, dann stürzen. Puderzucker aufbringen wenn kalt. Fertig!!

gugelhupf

Marmorkuchen

250 g Butter
260 g Zucker
6 Eier
1 Msp. Salz
Gründlich schaumig schlagen.
400 g Mehl mit 1 Pck. Backpulver mischen und durchsieben.
170 mL Milch

Rührteig zubereiten.

Hälfte davon in Gugelhupfform.

Zum Rest: 100 g geriebene Bitterschokolade und 40 g Kakao. Gründlich durchrühren.
In die Form geben und mit Messer durchmischen (marmorieren)

Backen: 160 Grad Umluft, 50-55 Minuten (mit Holzstab prüfen)
In Form etwas abkühlen lassen, dann stürzen. Puderzucker drauf oder Glasur (nach Geschmack). Fertig!!

Strudel (Quark- und/oder Kirsch)

Strudelteig zubereiten aus
500 g Weizenmehl Type 405
1 TL Salz
1/4 L lauwarmes Wasser
80 g geschmackloses Öl (Sonnenblume, Raps)

30-60 Minuten ruhen lassen!!

Füllung:
500 g Magerquark
200 g 40% Fett Quark
4 Eier
120 g Zucker
40 g Gries
Alles gut mit Schneebesen durchrühren.

150 g Mandeln gemahlen (auf Füllmasse aufbringen)
1 Glas Kirschen (gründlich abtropfen, für Kirschstrudel), oder 200 g Rosinen (gut wässern und aussortieren), fuer Quarkstrudel

Zweckmässig 3 Strudel formen auf bekannte Art (Teig dünn ausziehen, Quarkmasse aufbringen, gemahlene Mandeln aufbringen, Kirschen oder Rosinen aufbringen, Strudel zusammenrollen)

100 g geschmolzene Butter – Form gut ausstreichen, Strudel gut streichen.

Evtl. Vanillesauce dazu.

175 Grad Umluft, 45 Minuten backen. Fertig!!

strudel

quarkstrudel

kirschstrudel

HP 436A Power Meter: smoke and stench – X-rated cap failure

By coincidence, another HP 436A power meter – this one, emitting smoke and terrible stench! The culprit was easily found, a defective X-rated cap. One of the known-bad epoxy covered capacitors that tend to blow after about 30 or 40 years of service.

436a x2 capacitor 100 n

The residue, oily stuff, terrible smell. Use plenty isopropanol or methylated spirits to clean – otherwise, the stench will stay with the instrument for years, and I can’t say that it is a healthy smell.

436a 100n oily

The cap is of the well-known PME271M series. Still available, but hopefully, with improved construction.

436a pme 271 m 610

436a pme271 series

A replacement is easily found – taken from an old switchmode power supply. Make sure to take a “X2” cap, not an ordinary cap. Only X2 caps are specified for mains voltage service, and self-exinguishing, anything else will present a major fire hazard, don’t compromise on the choice of capacitor!

436a 100n x2 replacement

Fix complete – new cap soldered in, and insulated with some electrical tape. In general, I tend to avoid electrical tape where possible, but in this case, it appears to be the only viable solution.

436a fix complete

HP 436A Power Meter: a strange analog ground issue

This power meter had been received with strange defect, a permanent overrange error, irrespective of any settings or input to the sensor. Sure enough, in most cases, this would be because of a dead sensor – but not here.
The 436A is a really simple instrument, at first glance, but with its design dating back over 40 years (mid-1970s), it has a remarkable complex design to achieve the A/D conversion, and to use something close to a CPU, at the time, called a state controller.

What was wrong with this unit? Something with the analog ground driver.

Checking the A2 and A3 assemblies, it turned out that the analog ground was floating, at about -6 V. Strange! And, simple enough, grounding the analog ground on either A2 or A3 solved the issue! For a temporary fix, a wire was added, from the board edge connector, to chassis ground. Need to look at the analog ground driver…

436a analog ground wire

Using chassis ground for general grounding – an indication of the dated design, and some of these board use 3 or 4 separate grounding path to keep noise down…

436a analog gnd schematic

After this fix, working again (still need to check out what it wrong with the analog ground driver).

Update: found the issue – lower right and corner of above diagram, this is the analog ground driver (also supplying analog ground to the A3 assembly (via mother board) – transistor Q1 found dead, a 1854-0003 (which is equivalent to 1854-0637, JEDEC 2n2219A, or any other ordinary 0.8 W NPN transistor).

436a 1854-0003 2n2219a

Soldered in a 2n2219A, and removed the temporary ground wire. Fix done.

436a analog ground circuit

After a full calibration and extended test, the instrument is rock stable, both for zero point, and 1 mW input. Also checked linearity, and it appears to be better than any means available here to check… most likely, better than 0.1 dB.

Output of the 50 MHz 1 mW cal source – cross checked with a calibrated HP power meter, 437B , and in agreement within 0.01 dB – good enough!

436a pwr meter working

Some other issue with this unit – a stuck analog indicator. After disassembling the front panel, used a razor blade to open up the plastic case of the indicator, and some mechanical adjustment of the inner workings fixed the issue.

436a analog indicator

436a front panel

The 7 segment decoders, these use heat transfer compound, for some pretty unusual way for HP design – being pushed vs. the front panel for cooling. To make sure these stay cool, I added some fresh white stuff.

436a dm9374 7seg decoder driver latch

The decoders are quite remarkable anyway, for their time – these are latching decoders with constant current output, high level integration for the early 70s….