This article describes a method for the very precise measurement of a frequency difference using an oscilloscope with multiple channels.
The following video shows the display of an oscilloscope whose four channels are connected to four different Temperature Compensated Crystal Oscillators (TCXOs).
As seen in the above video, four different waveforms originating form the oscillators are displayed on the oscilloscope screen. The TCXOs are very accurate and are rated at , so their frequencies are very close to each other. The waveform on channel 4 (dark blue) has been used as the trigger source, this waveform shall represent the reference frequency . The waveforms on channels 1, 2 and 3 (yellow, light blue and purple) are slowly drifting relative to the reference waveform. Thus, these waveforms have ever so slightly different frequencies whose difference we are about to determine.
In order to determine the exact frequency difference , we need to first measure how fast the corresponding waveform is scrolling relative to the reference waveform. For this purpose, we shall define as the time duration in seconds that is required for the waveform to move by one whole period relative to one of the fixed vertical lines on the oscilloscope screen. can be determined by visually observing the waveform and measuring one period scroll duration using a stopwatch.
If a waveform is scrolling towards the left side relative to the reference waveform, then its frequency is larger than and shall have a positive sign. The opposite is true if the waveform is scrolling towards the right side, then its frequency is smaller than and shall have a negative sign.
Whenever elapses, the measured waveform will advance or retard by one full period duration relative to the reference waveform.
For , the measured waveform will advance by exactly one period per second. Consequently, the frequency difference relative to would be . This behaviour can be generalised by the following formula:
The difference in parts per million can be calculated as follows:
The TCXOs measured in the above setup have been used for increasing the accuracy of a classic Casio digital wrist watch. Hence, it is of our interest to calculate the particular oscillator’s drift in seconds per day. This can be done using the following formula:
Taking the purple waveform on channel 3 as an example, we can measure . This would yield to .
For the above example, and .
I hope that you found this article useful. Please be welcome post your feedback and comments below.
The following article explains the theory of operation of an ideal diode circuit implemented using a p-channel MOSFET and a matched PNP transistor pair. Typical applications for the ideal diode are devices such as solar chargers, where power efficiency is of a great importance.
Table of Contents
Diodes are devices that allow the electric current to flow in only one direction. As shown in the image below, the current is allowed to flow from the anode towards the cathode but not the other way around.
Diodes have many applications ranging from simple reverse polarity protection to full bridge rectifiers. There is plenty of available material explaining the diode basics, therefore I would like to skip this part and only cover one particular aspect of diodes which makes them rather power inefficient devices. This article shall cover the forward voltage drop denoted in the datasheet as .
is the voltage measured between the anode and the cathode of a diode subjected to an electric current in its forward direction. Whereas the anode corresponds to the positive side and the cathode to the negative. Typical values of are 0.6 Volts for a standard silicone Diode and as low as 0.1 Volts for a Schottky type diode. The value of is a function of the forward bias current as shown in the diagram below.
The above diagram plots the forward voltage drop (horizontal axis) versus the forward bias current (vertical axis) for a 1N4007 or similar diode. As one can see, can go as high as 1 Volt for 1 Ampere of current, which results in a dissipated power loss of 1 Watt.
As the name of this article suggests, the ideal diode is one which exhibits no (or very little) power loss. Thus, it should have (or close to) for a wide range of . Presented in this article is a small circuit that mimics the behavior of of a diode with a near zero forward voltage drop.
As seen in the schematic below, the ideal diode consists of a p-channel MOSFET Q2 and a voltage comparator consisting of a matched PNP transistor pair Q1A and Q1B.
The IRLML2244 p-channel MOSFET Q2 is driven in the reverse direction, whereas its drain pin 3 is connected to the input voltage and its source pin 2 provides the output voltage . This ensures that the MOSFET’s intrinsic diode is aligned in the direction of forward current flow and prevents any reverse current from flowing through it.
This MOSFET exhibits a very low static drain-to-source on-resistance at a gate-source voltage of and a drain current of (see datasheet). The resulting measured forward voltage drop amounts to at .
A voltage comparator circuit has been implemented around the PNP transistors Q1A and Q1B. It is important that these transistors have identical characteristics, otherwise the comparator will not have the required precision. Thus, these transistors part of a BC857BS matched transistor pair sharing the same package. Having both transistors inside one physical package ensures that they are thermally coupled and avoids diverging characteristics due to different junction temperatures.
The voltage comparator compares the voltages to and controls the MOSFET gate voltage across the resistor R2.
The following equations apply for the voltage between the transistor’s base and the power supply ground:
where and are the emitter-base voltages of transistors Q1A and Q1B. And:
Where is the specified base-emitter voltage drop for BC857BS (see datasheet). Due to the properties of the base-emitter junction which is essentially a diode, the voltages and are clamped to . A current can only flow through the emitter-base junction of Q1A or Q1B if the corresponding emitter-base voltage or reaches (gets slightly higher than) .
The following holds true when the ideal diode is forward biased:
The larger of and will be clamped to which leads to the following statements:
Consequently, current will flow through the emitter-collector path of transistor Q1A while no current will flow through the emitter-collector path of Q1B. Thus, the voltage across the resistor R2 will be equal (or near equal) to 0V. This will lead to a negative gate-source voltage and cause the MOSFET Q1B to turn on.
The following holds true when the ideal diode is reverse biased:
The larger of and will be clamped to which leads to the following statements:
Consequently, current will flow through the emitter-collector path of transistor Q1B while no current will flow through the emitter-collector path of Q1A. Thus, the voltage across the resistor R2 will be equal (or near equal) to . This will lead to near zero gate-source voltage and cause the MOSFET Q1B to turn off.
The circuit has been implemented on a SMD prototyping board as shown in the pictures below. The surface mount MOSFET, transistor pair and 0805 resistors have been connected using jumper wires. The three terminals of the ideal diode have been connected to a pin header.
The left picture shows the top side of the PCB with the visible MOSFET (3 pin package) and dual transistor (6 pin package). The right picture shows the backside of the PCB with the two 0805 resistors. Note that the pads on both sides are connected through the holes.
Following are the pin assignments on the pin header, assuming pin 1 is the leftmost pin and pin 3 is the rightmost pin on the left picture:
Pin 2: GND
Bill of Material
Following is the list of parts required for building the ideal diode. Please consider supporting this website by purchasing your the required parts using the affiliate links below:
I’ve been lately searching for an entry level digital sampling oscilloscope (DSO) around the 400€ price tag. Having exhaustively read through the various forums and watched the numerous product reviews on YouTube, it became pretty clear that there are currently two major candidates on the market that fulfil the current price tag and provide a decent feature set.
Most of the product reviews that I have come across were clearly biased towards the one or the other device. Thus, I have ordered and tested both devices whose specs and reviews are widely available on the web. I have created the following decision matrix that I would like to share with you, hoping to provide you with a more objective opinion about the two great devices from an electronics hobbyist’s point of view.
The Decision Matrix
Following is the decision matrix that i have used in order to come to a final decision on the device i should keep.
Important: Please bear in mind that the resulting score largely depends on your individual preferences and is by no means an absolute verdict over the goodness of the particular device. Thus, applying different grades and using different priorities might lead to a completely different outcome.
Following is the Excel table that i have used for the generating the above snapshot: