AI summary by TwinMind
How do Digital and Analog Clocks Work?
Branch Education
15m 35s
Wall Clock Internal Systems
- Five unique systems enable $10 wall clock operation
- Gear train: 8 gears total with compound gear design
- Driver gear rotated by electromagnet (coil + iron strip)
- Electromagnet switches directions every second
- Driver gear rotates 180° to align permanent magnet with electromagnet field
- Full rotation every 2 seconds
- Gear reductions for clock hands:
- Second hand: 12:48 reduction + 8:60 reduction = 1 revolution/60 seconds
- Minute hand: 8:64 reduction to idler + 8:60 to minute hand
- Hour hand: 15:45 reduction to idler + 10:40 gear reduction = 1 rotation/12 hours
- Time setting gear: 13 teeth, rotates once every 69 minutes
- Directly rotates minute/hour hands
- Second hand doesn't move due to compound gear slip from high torque
Quartz Crystal Oscillator Technology
- Metal cylinder contains quartz crystal tuning fork
- Printed wires on legs connect to outside canister
- Crystal lattice structure: 1 silicon per 2 oxygen atoms with covalent bonds
- Piezoelectric effect mechanism:
- Negative charge applied: oxygen pushed away, silicon pulled toward wire = crystal lengthens
- Positive charge applied: oxygen moves toward charge, silicon away = crystal shrinks
- Two-leg design creates vibrational mode where prongs vibrate together, base stays stationary
- Manufacturers add metal to crystal ends for frequency tuning
Crystal Oscillation Circuit
- Requires changing voltage repeatedly applied to crystal wires
- Voltage must match crystal movement timing
- Circuit components:
- Integrated circuit with inverter for feedback loop
- Two capacitors for voltage timing assistance
- Inverter operation: flips input 1→0 and 0→1
- Feedback loop with crystal + capacitors regulates flipping between 1/0
- Wall clock timing: 30.52 microseconds per cycle = 32,768 cycles/second
- Binary counter counts cycles, sends signal to electromagnet after 32,768 cycles (1 second)
- Crystal accuracy: 20 parts per million = max 1.7 seconds/day or 10.5 minutes/year gain/loss
High-Speed Digital Clock Generation
- Computers/smartphones generate 1-5 GHz clocks (30,000-150,000x faster than quartz)
- Ring oscillator: 3 inverters in feedback loop
- Odd number of inverters causes rapid 1/0 oscillation
- Can reach gigahertz frequencies
- Problem: ±50% frequency variation due to temperature/geometry/transistor properties
Phase Locked Loop (PLL) System
- Stabilizes ring oscillator to few parts per million accuracy
- Components:
- Voltage Controlled Oscillator (VCO): ring oscillator with voltage-dependent frequency
- 16 MHz crystal oscillator: stable reference frequency
- Frequency/phase comparator: outputs difference between crystal and VCO
- Integrator: converts comparator output to steady voltage
- Frequency divider: divides VCO output (e.g., by 150 for 2.4 GHz from 16 MHz)
- Feedback loop drives VCO to match crystal frequency × division ratio
- Smartphones change division ratio to adjust processor clock frequency for battery conservation
Alternative Technologies
- MEMS oscillators sometimes used in smartphones to save space vs crystal oscillators
- Future episode planned on MEMS technology
