How to Determine Frequency from a Lissajous Figure.

How to Determine Frequency from a Lissajous Figure.
Схемотехника

One of my previous articles described how to determine the phase difference of two signals from a Lissajous figure. But Lissajous figures have another interesting property: if the frequency of one of the oscillations is known, you can determine the frequency of the other from the shape of the figure. To determine the frequency ratio, draw a horizontal and a vertical line crossing the figure. These...

How to Run a Crystal on Its Third Overtone.

How to Run a Crystal on Its Third Overtone.
Схемотехника

The other day I came across an interesting way to run a crystal on its third overtone. It works like this: in a crystal oscillator built as a Colpitts (capacitive three-point) circuit, a trap filter tuned to the crystal's fundamental frequency is connected in the emitter; it blocks the oscillator from starting on the fundamental, and the crystal, and with it the oscillator, start on the third overtone...

How a Zener Diode Works.

How a Zener Diode Works.
Схемотехника

A Zener diode is named after Clarence Zener, the discoverer of tunnel breakdown, and is shown on schematics as follows. But unlike a rectifier diode, current can flow through it in both directions. To better understand how it works, you can think of it as two diodes connected in anti-parallel, but with different voltage drops. For any Zener diode, the drop...

Connecting an Incremental Encoder to a Microcontroller.

Connecting an Incremental Encoder to a Microcontroller.

An incremental encoder looks like a potentiometer, but unlike a potentiometer it has no end positions: it can rotate in both directions an unlimited number of turns. It should also be noted that an incremental encoder doesn't rotate smoothly like a potentiometer, but in steps. You can see one on car radios, oscilloscopes, stereo systems, washing machines and other...

SPI Protocol Basics.

SPI Protocol Basics.

SPI (Serial Peripheral Interface) is a serial peripheral communication protocol. It was developed by Motorola but is now used by many manufacturers. It is designed for communication between microcontrollers, as well as with all kinds of peripherals: sensors, ADCs, memory chips, clocks. But still, the most common use of SPI is writing a program into the memory...

How to Test a Quartz Crystal Resonator.

How to Test a Quartz Crystal Resonator.
Схемотехника

One of the main reasons quartz crystal resonators fail is simply being dropped, so if a TV remote, a car alarm key fob or any other device containing a crystal stops working, the first thing to do is check it. Checking the oscillation on the board isn't always possible, because the oscilloscope probe has some capacitance, which is usually...

How to Get DC from AC Voltage, or How a Diode Works.

How to Get DC from AC Voltage, or How a Diode Works.
Схемотехника

To understand how to get DC voltage from AC, we need to figure out how alternating current differs from direct current and how a diode works. Alternating current (AC) is an electric current that changes in magnitude and direction over time or, in a special case, changes in magnitude while keeping its direction in the electrical circuit...

How to Light an LED by Clapping Your Hands, or How a Peak Detector Works.

How to Light an LED by Clapping Your Hands, or How a Peak Detector Works.
Схемотехника

First of all, a peak detector is designed to register the maximum or minimum amplitude of a signal. The simplest peak detector can be built from two parts, a diode and a capacitor. When a signal of arbitrary shape is applied to the input of a peak detector, the capacitor charges as shown in the picture below, so the voltage across the plates...

How to Suppress Inductive Spikes, or Why a Diode Is Connected in Parallel with a Relay.

How to Suppress Inductive Spikes, or Why a Diode Is Connected in Parallel with a Relay.
Схемотехника

In circuits where a relay coil is driven by a transistor, a diode is always connected in parallel with the coil. Let's figure out what role the diode plays. Below is a circuit showing that if a certain voltage is applied to the gate of a field-effect transistor, the transistor becomes equivalent to a wire, meaning its resistance tends to zero. Let's build the circuit shown below and...

Transistor Circuit Configurations.

Transistor Circuit Configurations.
Схемотехника

However a transistor is connected in a circuit, the input and output currents will flow through one of its terminals; this terminal is called common. There are three bipolar transistor configurations: common emitter; common collector; common base. Let's start with the common emitter circuit. the input signal is applied to the base; the output signal is taken from the collector;...

How to Measure the Length of a Coaxial Cable and Its Characteristic Impedance with an Oscilloscope.

How to Measure the Length of a Coaxial Cable and Its Characteristic Impedance with an Oscilloscope.
Схемотехника

To transmit information over a transmission line, the load impedance must equal the line's characteristic impedance. If this condition isn't met and the load impedance at the end of the line is high, the signal energy, having reached the end of the line, can't leave it and is reflected back. After some time the reflected signal returns to the input of the line and adds to...

How to Calculate Phase Difference from a Lissajous Figure.

How to Calculate Phase Difference from a Lissajous Figure.
Схемотехника

I'd long been curious how Lissajous figures can be used in practice. The other day, leafing through the documentation for Rigol DS series oscilloscopes, I found how to use Lissajous figures to measure the phase difference between two signals under test. The method described in the documentation is called the ellipse method, and it works like this: in X-Y mode, signals of equal frequency but shifted in phase form an ellipse. On...

How to Measure a Capacitor's ESR with an Oscilloscope and a Signal Generator.

How to Measure a Capacitor's ESR with an Oscilloscope and a Signal Generator.
Схемотехника

When repairing electronics, you often have to replace swollen capacitors. If a capacitor has swollen, it means its capacitance has decreased and its equivalent series resistance (ESR) has increased. Sometimes a capacitor isn't swollen but its ESR is above normal; for this case I built a little MasterKit device and used it to check suspicious capacitors. At some point I got curious what...