A while back, I threw some semi-decent 32.768 kHz crystals onto a Digikey order. I had
some plan for them at the time, but they ended up sitting around. Today I decided to make one jiggle and see how good they really are.
I popped a 74LVC1GX04 on the breadboard and some passives to make up a Pierce oscillator. Of course my passive values were all wrong at first, so I messed around with that for a while, and ended up using a decade box to find Rs. Then it came to C1 and C2. C2 was happy at 68 to 100 pF paired with a very low value for C1. Something
around 5 pF. But of course this is where I ended up spending most of my time, because I had to play the game of seeing how close I could get to spot on. Just using a 4.7 pF for C1 worked, but the frequency was too high. My entire bag of 4.7pF caps measured about 3.8, and I actually needed somewhere around 5 pF to "zero" in the frequency. Not having a variable cap handy, I put two 10 pF in series and that got me really close. 32.768071 kHz (yes my counter is calibrated). I tried several caps from the bag hoping to find that magic pair, but alas, I was still out. I needed half a bee's dick more capacitance on C1, as Dave would say.
I then tried something a little odd. I hooked up the big electrolytic seen in the picture below to ground, and left it unconnected on the positive side. It's just pushed into the breadboard close to the C1 capacitors but not connected. The pin from the adapter board in that row is a non-connect. This big electrolytic just being physically close to the others got me what I needed. It's actually pretty fun, I can push it around and "trim" the frequency of the circuit. Pushing it closer to the two caps near it (probably their leads actually) increases the C1 capacitance and reduces the frequency of the circuit a tiny amount. Similar to interfering with a circuit by touching components with your hand, but more controlled.
Of course this is totally impractical. Once the temperature changes a degree C or a butterfly farts I'll be off again, but it made for a fun hour or so messing around on the breadboard. These crystals seem pretty good, I'll probably use them for a RTC some time in the future. I don't usually see careful trimming on RTC circuits, but maybe I'll try to make a really accurate one with some trimmers. Oh, and of course gravity compensation!
