Nutsvolts20190304 DL PDF
Nutsvolts20190304 DL PDF
www.hitecnology.com
1:1 4:1
Balun Balun
Coax Coax
9:1
unun
4:1
unun
Coax
1:1 choke
Coax unun Coax
91 Open Communication
The Latest in Networking and
Wireless Technologies
Waiting for 5G Wireless
By now, you’ve certainly heard of the
forthcoming fifth generation (5G) wireless
technology. There’s a tremendous amount
of hype about 5G as the various cellular
operators try to pre-sell you on the new
benefits and services. Commercial 5G services
won’t go online until later this year, but we
should see plenty of 5G action in 2020. For
that reason, you’ll need to know more about
5G to understand what impact it will make on
you and the world in general. Here’s a status
report to bring you up to speed.
Synthesis
computer and a couple of tricks can be used to calculate
the time dependence of much more complex circuits
Like most vintage audio gear, modular synthesizers have involving not just resistors but capacitors, inductors,
been steadily gaining popularity and accessibility since op-amps … you name it! In this article, I’ll describe a
the mid-1990s for both hobbyists and electronic musicians simple numerical method that is intuitive and solves
alike. Providing a hands-on experience into the deep many complex problems with just a few lines of code. No
world of sonic exploration, modular synthesizers are simulator needed!
an unbeatable way to understand the building blocks of ■ by C.A. Hamilton
March/April 2019 5
DEVELOPING
PERSPECTIVES
by
Bryan
Bergeron,
Editor
Published Bi-Monthly By
T & L Publications, Inc.
2279 Eagle Glen Pkwy #112-481
Corona, CA 92883
OFFICE: (951) 371-8497
FAX: (951) 371-3052
WEBSTORE: (800) 783-4624
www.nutsvolts.com
HOW TO LEARN CW
SUBSCRIPTION
Toll Free: (877) 525-2539
I
Outside US: (818) 487-4545
P.O. Box 15277
f you’ve picked up your amateur discussion using a microphone. That North Hollywood, CA 91615
radio license in the past dozen said, my primary reason for using CW [email protected]
years, then there was no CW isn’t practical or logical — I simply
component of the test, and you enjoy it. FOUNDER
may not know CW. However, It’s fun decoding a noisy signal Jack Lemieux
whether or not removing the code from the crud and then using a
component of the FCC (Federal quality straight key or iambic keyer PUBLISHER
Communications Commission) test to connect with the operator on the Larry Lemieux
was a good thing for the amateur other end of the signal chain. [email protected]
radio hobby, there is merit in learning So, let’s say you’re at least
and using CW. Why? intrigued with the possibility of using ASSOCIATE PUBLISHER/
Well, there are the often touted CW as a radio amateur. What are the ADVERTISING SALES
practical and theoretical technical best ways to get up to speed? Robin Lemieux
benefits of CW over SSB (single-side Well, you’ll need to address both [email protected]
band), and some forms of digital sending and receiving CW. To learn to
communications: Minimal bandwidth send CW, you’ll need a straight key, EXECUTIVE DIRECTOR/
and power requirements; simplicity an audible oscillator, and a pair of ear PRODUCTION
Sean Lemieux
of transmitter and receiver circuitry; buds or headphones. For receiving,
[email protected]
relative immunity from noise; and you could rely on a receiver tuned to
security and privacy. W1AW, one of the many YouTube
EDITOR
My chief practical reason for CW communications videos, or, Bryan Bergeron
using CW over voice is the ability to better still, a dedicated CW training [email protected]
operate in the early morning without device or any number of apps for
disturbing anyone. Straight keys and your smartphone or laptop. CONTRIBUTING EDITORS
iambic paddles don’t make much For sending, my recommendation Ward Silver Kristen McIntyre
noise compared with loud verbal is to pick up an affordable straight Lou Frenzel Ed Andrews
Jon Titus George Steber
C.A. Hamilton Michael Banks
Roger Secura Steve Harmon
Steve Jackson Jim Teixeira
SHOW COORDINATOR
Audrey Lemieux
WEBSTORE MARKETING/
COVER GRAPHICS
Brian Kirkpatrick
[email protected]
Copyright © 2019
by T & L Publications, Inc.
All Rights Reserved
All advertising is subject to publisher’s approval.
We are not responsible for mistakes, misprints, or
typographical errors. Nuts & Volts Magazine asumes
no responsibility for the availability or condition of
advertised items or for the honesty of the advertiser.
The publisher makes no claims for the legality
of any item advertised in Nuts & Volts. This is the
sole responsibility of the advertiser. Advertisers
and their agencies agree to indemnify and protect
the publisher from any and all claims, action, or
expense arising from advertising placed in Nuts &
Volts. Please send all editorial correspondence, UPS,
overnight mail, and artwork to: 2279 Eagle Glen Pkwy
#112-481, Corona, CA 92883.
6 March/April 2019
key/practice oscillator combination. For the iambic oscillator, the on and listen to a simulated CW
The best I’ve used is the Japanese most affordable option I’ve used is communication in about a second —
made High-Mound TC-701 Practice an electronic keyer module from less time that it would take me to find
Key, available for $54 from Morse www.elecrorresales.com ($18). The an app icon on my cell phone.
Express (morsex.com). website provides full schematics and For the latest in full-featured
Unlike most key/oscillator printed circuit board layouts for each electronic tutoring for CW, my pick
combinations, the TC-701 is based practice oscillator model. is Morse-it by ICOM. I’m running
on a regular key, but with a code If price is no object, then version 8.1.1 on my iPhone and
oscillator built into the base. When consider the MFJ-407E Deluxe iPads, and it’s by far the most feature
you’re done learning to send CW, Electronic Keyer with Memory packed, easy-to-use Morse Code
you can easily remove the oscillator available from Amazon and ham training app available. At $5 from
circuit and use the key with your radio stores, such as GigaParts ($99). the App Store, it’s still a bargain,
HF transceiver. A slightly cheaper The MFJ-407E is a desktop unit with even compared with the free Morse
option is the MFJ-557 code practice a self-contained speaker and easy-to- tutoring apps.
oscillator/key. It’s about double use front control knobs for volume, I keep the app on my cell phone
the size of the TC-701, but it’s also speed, tone, and weight. for practice on long trips. Because it
significantly cheaper at $37 from For learning to receive CW, can use any text file as an input, the
GigaParts (www.gigaparts.com). my all-time favorite is another MFJ content never grows stale.
Although it’s more challenging product: the MFJ-418 Pocket Morse So, there you have it. Technology
than using a straight key, you could Code Tutor. About the size of a deck aids are readily available. All you
also start learning to send CW by of cards, this unit with LCD screen need is the discipline to spend 10-20
using an iambic keyer and an iambic and internal 9V battery is out of minutes/day practicing and you’ll be
practice oscillator. Check out Morse production but turns up regularly on sending and receiving CW at 10-15
Express for a variety of iambic keyers. eBay. Expect to pay $20-30. WPM before your next issue of Nuts
eBay is, of course, another option. It’s simple to use. I can turn it & Volts arrives. NV
READER FEEDBACK
Mims the Word Thermocycler,” and “Your Amigo Does detector during a flight to 90,000 feet
The January/February 2019 issue of Bluetooth, Live Wi-Fi Webcam.” is worthy of publication in a scientific
Nuts & Volts is absolutely superb! The Finally — and best of all — is Paul paper.
cover story photo collage and article by Verhage’s “Cosmic Rays Redux.” Paul All this in a single issue of Nuts
George R. Steber about “The Discovery has an astonishing record of building & Volts is absolutely amazing. Those
of Radio Waves” is excellent. I was many kinds of payloads that he flies who bemoan the supposed collapse
especially glad the article cited Michael from high-altitude helium-filled balloons. of hobby electronics need to check
Faraday’s connections with James Clerk His Figure 4 showing the supermiposed
Maxwell that led directly to Maxwell’s flux from a muon and cosmic ray Continued on page 95
famous equations.
My next stop was Bryan Bergeron’s
editorial on “The Egonomics of
Learning.” As usual, Dr. Bergeron is THE MOST COMPLETE PROGRAMMING TUTORIAL!
totally on target. Those of us into DIY
electronics should be thankful that a • Everything you need to learn to program PIC® micro-
man with his credentials and immense controllers is included in this package
experience is editor of Nuts & Volts.
Ward Silver’s (NØAX) article about • Learn the fundamental concepts of programming,
antenna rotators took me back to 1958, including program flow, loops, coding techniques, binary
when my father installed a rotator on
our rooftop TV antenna. It seems that manipulation, device-to-device communication, user
the technology worked as well then as interface design, in-circuit debugging, and more!
today.
• Includes all the necessary the software, compiler,
David Goodsell’s article, “Build the
Laser Pencil Engraver” is outstanding. I
$99.99 trainer board, cable, tutorial with exercises and sample
Academic and bulk pricing available
especially liked how he included in this code!
high-tech piece how the pencil being
engraved is mounted on double-sided Check out our other popular products
tape. for PIC® developers including:
PBP3
Then, there’s “Build a Fun U2 Programmer
Stylophone,” “Build an Internet PBP3 Compiler
Digital Clock,” Build an RF Frequency
Counter Buffer for HF,” “More Tricks Prototyping Boards
PICBASIC PRO™ Compiler Experimenter Boards
with Old-School Digital Clocks,” C www.melabs.com
Processor Reduces Debug Headaches,” Contact us at [email protected]
“DIY Biotech: Open Source PCR
March/April 2019 7
Q&A
■ WITH KRISTEN A. McINTYRE
In this column, Kristen answers questions about all aspects of electronics, including
computer hardware, software, circuits, electronic theory, troubleshooting, and anything
else of interest to the hobbyist. Feel free to participate with your questions, comments, or
suggestions. Send all questions and comments to: Q&[email protected].
reduced as the grid goes negative with respect
• Firebottle Gain to the cathode.
In the tube tester you describe, a shortcut
• Attenuating the Calculations they often use is to apply some AC voltage
(often from a transformer secondary possibly
Firebottle Gain connected to the filament supply) to bring the
Q
grid negative relative to the cathode for part of the cycle.
I talked my dad into letting me have his tube The meter measures the plate current. The tube is judged
tester, but it only checks that the tube conducts. to be “good” if the right amount of average plate current
It has selector switches that will connect each reduces the meter current.
pin to either plate voltage, filament voltage, or There’s probably some resistor network being switched
ground. If you set all the switches as instructed, you get in that’s putting the meter’s deflection into the right range
a “good” indication on the meter, but I’d like to get an for the expected plate current change. This is indeed a kind
indication of Gm. of measurement of Gm.
If I look up the tube diagram in my old ARRL The question, though, is how accurate it is and how
handbook and set the cathode to the filament voltage, do you calibrate it. This depends on the design of the tube
it makes the conductance indication on the meter drop tester.
some because — for at least part of the cycle — the grid is I think it might be easiest to bring out a voltage that
negative with respect to the cathode. represents the absolute plate current. This would require
My question is can I quantify the Gm value by doing putting a resistor somewhere in the plate or cathode circuit
this? I could add some banana jacks to add an external to measure that current.
meter if that would help. The cathode works because we assume that the grid
Chuck Bade N0CPF current is very small — essentially zero. A possible issue is
A
that a resistor in the plate circuit will probably be at a high
I love tubes! A wonderful friend of mine, now voltage with respect to the chassis, making it both hard to
deceased, used to call them firebottles. I still measure and a bit of a safety hazard. Of course, a current
refer to them that way. meter could be near the plate voltage if it’s well insulated.
For the uninitiated, let’s discuss Gm. Gm is This argues for measuring from the cathode, which is
defined as the mutual transconductance of an amplifying usually at a low voltage with respect to the chassis. The
element. Transconductance relates input voltage to output Good/Bad meter is likely in a relatively safe spot, so that’s
current as a ratio. So, we put the change in voltage on the a good place to look on the schematic.
top of a fraction and the resulting change in current on Knowing that the grid is seeing part of a sine wave, a
the bottom. We use this on tubes because of the way we peak detector could be used to calculate the tube’s Gm
model their impedance characteristics. more accurately, making sure it’s well into conduction. If
Tubes, like FETs (field-effect transistors), look like the grid voltage is constant for all tubes being tested, then
voltage controlled current sources. The plate current over we can treat the peak negative grid voltage as a constant.
much of the operating range looks like a current source, That makes things easier.
attempting to set its voltage to supply a given amount of The plate current will then be just Gm multiplied by a
current to whatever load is connected to the plate. The constant proportional to the resistor used to measure the
amount of current the plate supplies is set by the grid plate current. This technique avoids the unclear averaging
voltage multiplied by some characteristic constant. That effect of the meter’s internal elements.
characteristic constant is Gm. Of course, like all real world
devices, Gm varies with a number of parameters like Attenuating the Calculations
Q
frequency, operating voltages, etc.
The comparison of tubes to FETs can be extended I was looking at my old (1983) ARRL Antenna
a little further in that they are like a depletion mode Handbook and came across this attenuator
N-channel FET. This means that they conduct (have plate circuit (see Figure 1). I did the calculations to
current) without any grid voltage, and that conduction is verify that the resistor values are all correct by
8 March/April 2019
QUESTIONS and ANSWERS
Post comments on this article and find any associated files and/or downloads at
www.nutsvolts.com/magazine/issue/2019/03.
n FIGURE 1.
putting a 50 ohm resistor across the output. Starting at the slow algorithm, but it’s effective. In the general case for
final stage, I verified that it presented a 50 ohm input to circuits with linear elements, we can use one of two
the previous stage and that it did indeed attenuate by the standard techniques to solve the circuit that will leave us
correct amount. This is really all that is needed to show the with those simultaneous equations to solve.
whole thing works. The two techniques are node analysis and mesh
analysis. The former works with currents and the latter
Question 1: with voltages. They are systematic methods for analyzing
How do you approach this kind of messy problem? a circuit. In the node case, we write current equations for
- Do you generally use numerical methods? each node in the circuit. In the mesh case, we write voltage
- Or, do you derive some sort of simplifying equations for loops that exist in the circuit. See Figure 2 for
assumption to make the system of equations easier to an example of those loops.
solve? The lazy engineer can just plug this circuit into a
simulator and let it do all the work. It will do things like
Question 2: node or mesh analysis and give us an answer. We can do
Is the reason the resistors in the legs of the pi’s have better, though, because this circuit is relatively simple. Only
equal resistance to limit the unknowns to two because two equations are required if we make an assumption.
there are only two conditions? In this case, I can think of a couple of simplifying
Greg Cook KE7DO assumptions — yes, EEs do that all the time! Let’s look at
A
your hand drawing in Figure 3 for reference.
This is a great pair of questions! Numerical Making R3 = R1 reduces the number of variables.
methods — where we try to solve the governing It also helps constrain this under-constrained problem;
equations by plugging numbers in and moving meaning that with less variables, we can calculate an exact
them around a bit until we find a solution — will solution. The other assumption is to collapse the network
certainly work. This type of analysis is often used when the to produce the second constraint equation. This allows a
closed form solution (just doing the algebra) is very difficult simplified two resistor parallel equation — (Ra • Rb)/(Ra +
or cumbersome. We find this to be the case when circuit Rb) — to be used.
topologies get complex and the number of variables is With this, we can generate two simultaneous equations
large. In this case, we get several simultaneous equations that are easy to solve with some algebra. One equation
that must be solved. expresses the attenuation for each stage, assuming a 50
If the equations are linear, we can use a technique ohm load. The second equation enforces the 50 ohm input
called Gaussian elimination. It sounds messy, but it’s not impedance.
really. This is an algorithm that allows us to numerically I’ll leave the algebra as an exercise for the reader. Have
solve such a system in a well understood way. It’s a very fun and send me your solutions! NV
n FIGURE 2.
n FIGURE 3.
March/April 2019 9
SDS1202X-E
$
379!
2-Channel 200MHz Super Phosphor Oscilloscope
“Very capable Oscilloscope for $379!” RB “Great scope, great value.” CM “Best scope for the money!” RM “Perfect for this hobbyist.” KL
■ Figure 1. This graph shows the rectangular coordinates for any impedance.
The X axis represents resistance (R) and the Y axis represents reactance (X).
Inductive reactance is positive (+Y axis) and capacitive reactance is negative (-Y
axis). Positive resistance which represents loss is on the positive X axis.
12 March/April 2019
PRACTICAL TECHNOLOGY FROM THE HAM WORLD
Post comments on this article and find any associated files and/or downloads at
www.nutsvolts.com/magazine/issue/2019/03.
■ FIGURE 2.
Distorting or Smith Chart Construction
mapping the
rectangular The equation describing how that impedance point
coordinate graph moves around on a graph of rectangular coordinates is
by bending the pretty intimidating:
Y axis toward the
positive X axis Z = ZO [ (ZL + j ZO tan (βl)) / (ZO + j ZL tan (βl)) ]
captures all of its
right-hand side
and the path it describes on a rectangular graph does
impedances inside
the circle formed
not lend itself to easy use. (βl gives the electrical
by the bent position along the line.) What Smith discovered,
reactance axes. however, was that if you distort the rectangular graph
This is the basis of in a certain way (called a mapping), the path of Z along
the Smith Chart. the line becomes a circle on the distorted graph. This is
a lot easier to work with!
different What is this magic mapping? Imagine yourself standing
from the on the origin of the rectangular graph with the positive
characteristic resistance axis in front of you and the negative behind. The
impedance of positive reactance axis starts at your feet and goes straight
the transmission line, Z0, some of the energy in the wave up and the negative straight down. All of the axes extend
is reflected back towards the wave’s source. The phase to infinity.
of the voltage and currents making up the reflected wave Now imagine reaching up over your head and bending
will differ from those in the incoming or incident wave the positive reactance axis down in front of you (make your
depending on the value of the impedance causing the favorite bending noise) in a semicircle whose far end meets
reflection. up with the far end of the positive resistance axis. Do the
The incident and reflected voltage and current waves same for the negative reactance axis, bending it up instead.
combine at every point along the line. At each point, The negative resistance axis still extends behind you, as
the combination results in voltage and current with a straight as ever. This process is sketched in Figure 2.
phase relationship different from either the incident or Viewed from the side, you see a circle created from
reflected waves. It is as if the same energy in the line had the two reactance axes, bisected by the resistance axis.
been applied to an impedance with values of resistance The infinity points of all three join together at the right of
and reactance that create the same phase relationship. the chart. All of the points that were once in the right-hand
If you cut the line at that point and replace the section side of the rectangular graph are now somewhere inside or
beyond the cut with actual components of the equivalent on the boundary of that circle. Points on the left-hand side
impedance, there would be no change to
the waves in the remaining section of the
line! What is Negative Resistance?
The voltages and currents of both
waves also vary with distance along You can’t go to an electronics parts store and buy a negative resistor, but
the line because of the AC nature negative resistance isn’t that unusual. Ordinary positive resistance follows
of the waves. This results in different Ohm’s Law in which voltage and current increase together and consume
combinations of incident and reflected power, dissipating it as heat or doing some kind of physical work.
voltages and currents and their equivalent Instead of consuming power, a negative resistance can generate power
impedance. For example, if the equivalent — even amplify a signal. Negative resistance is usually found in nonlinear
impedance looks like 5Ω of resistance electronic components that have a resistance which varies between positive
and +20Ω of reactance at one point, a and negative regions as current through the component varies. A good
bit farther along the line the equivalent example of such a device is a Gunn diode which is used in oscillators at the
heart of portable radars.
impedance might be 20Ω of resistance and
Gas discharge tubes like neon lamps also show negative resistance,
-5Ω of reactance. That means the point on
acting like a very high positive resistance at low voltages but then switching
the graph of resistance and reactance also to negative resistance when the gas breaks down and conducts. Negative
moves around with position in the line, resistances can’t be created inside transmission lines, so the Smith Chart
returning to its original position every half- only covers the right half of the impedance graph.
wavelength (1/2λ) as it turns out.
March/April 2019 13
PRACTICAL TECHNOLOGY FROM THE HAM WORLD
■ FIGURE 3. Several
impedance values are plotted
on the Smith Chart; 0.2 + j0
is on the center axis at the
point labeled 0.2. The value
3.0 + j1.0 is found by locating
the value 3.0 on the center
axis, then moving upward
along the constant resistance
circle to the arc labeled 1.0
on the outer circle. To find
the value 1.0 — j0.5, start at
the point labeled 1.0 on the
center axis and move down
to the arc labeled 0.5 on the
outer circle; 0 + j0.7 and 0 —
j1.6 are located on the outer
circle where resistance is 0.
Plotting Points on
the Smith Chart
An impedance of R + j X
is plotted at the intersection
of the constant resistance
circle with a value of R and
the constant reactance arc
with a value of X. R values for
the constant resistance circles
are labeled along the center
axis. X values for constant
reactance arcs are labeled
around the outer circle with
positive values along the top
half of the circle. In Figure 3,
several points are plotted as
an example.
of the rectangular graph are now outside the circle. Most RF feed lines and antenna systems are designed
Nothing has been lost, just squashed or stretched. The to work with impedances of 50Ω. If you look for the
Smith Chart ignores everything outside the circle because point of 50Ω of R and 0 X, you will find it squashed way
those points have negative resistance values and cannot be over in the nest of circles at the right-hand side of the
present in a transmission line. chart — not very easy to use. Smith avoided this problem
The straight lines on the rectangular graph after by normalizing all the coordinates to the characteristic
remapping are now circles and arcs on the Smith Chart in impedance of the line, ZO. Normalization replaces the
Figure 3. Lines of constant resistance — originally vertical values of all points by their ratio to ZO; in this case, dividing
and on which all points had the same value of resistance them by 50Ω. An impedance of 50 + j 0 Ω is right in the
— are now nested constant-resistance circles that come middle of the chart at 1.0 + j 0.
together at the far right of the Smith Chart.
That should make sense because all those straight lines
originally went where? To infinity — now the point at the
The Half Wavelength Circle
right side of the Smith Chart. Horizontal constant-resistance The value for Z given in the equation above repeats
lines of points having the same reactance are now bent when βl changes by 1/2λ. On a Smith Chart, this means
into constant-reactance arcs with one end on the outer the value for Z will be in the same spot every 1/2λ along
circle (the original vertical reactance axes) and the other the line. You can see that in the outer circle’s calibration
end at ... yes, that’s right ... infinity (but not beyond)! marks, which are in fractions of a wavelength. Each circuit
14 March/April 2019
around the chart corresponds to moving 1/2λ (electrically) impedance Smith Chart, first flip the chart horizontally
along the line. about a vertical line drawn through the center of the chart.
You can see how this works by plotting the circle That changes all of the constant-resistance circles, touching
for yourself. You’ll need an SWR analyzer (or impedance at the right-hand side of the resistance axis (where R = ∞
meter or network analyzer) that shows both resistance (R) and G = 0), into constant-conductance circles that touch at
and reactance (X) values. It doesn’t need to show the sign the left-hand side of the axis (where G = ∞ and R = 0). All
of the reactance. the constant-susceptance arcs still start on the circle’s outer
Start with a 10 meter long piece of 50Ω RG-58 (any rim, but now meet at the left-hand side of the horizontal
solid-polyethylene 50Ω line will do). This is approximately axis at G = ∞; just as the constant-reactance arcs met at R
one electrical half wavelength long at 10 MHz. Put a coax = ∞.
connector on one end, short the other end, and use your Now flip the chart vertically about a horizontal axis
analyzer to find the lowest frequency at which the meter through the center of the chart. This accomplishes the final
shows zero or a minimum value of X. That is the frequency part of the transformation, adding the effect of the minus
at which the line is electrically 1/2λ long. sign in the equation j B = –j / X.
Note this frequency. Replace the short with a 150Ω Many problems in transmission lines are worked out
resistor. Your meter should now show an SWR of 3:1 and using a combination of Z and Y. Some parts of the problem
the impedance at the analyzer should be 150Ω of R and 0 are easiest working with Z, while others are easiest using Y.
X. On the Smith Chart, this point is at (150 + j 0) / 50 = 3.0 It would be awfully inconvenient to use two separate charts
+ j 0, on the horizontal axis to the right of center. for this, so engineers did the logical thing and printed both
Increase the frequency in 0.5 MHz steps, recording sets of coordinates on a single chart!
R and X at each step and plotting the normalized values The result would be hopelessly cluttered except that
on the Smith Chart. Because you may not know the sign some bright person decided to use two different colors. A
of the reactance, assume the reactance values become sample is downloadable at www.dartmouth.edu/~sullivan/
negative (capacitive) as you increase frequency. colorsmith.pdf. The admittance coordinates are in blue
Stop when you see the reactance go to zero again; and the impedance coordinates in red.
halfway around the chart near 50/3 = 16.6Ω, plotted as Look carefully at the labels on the outer circle axis
0.33 on the horizontal axis. This is the frequency at which near the left-hand side of the chart. You’ll see that the top
the line is 3/4λ long — approximately 13.3 MHz. While label, for example, is “Inductive Reactive Component (+jX/
you’re recording the points, note that the SWR reading ZO), or Capacitive Susceptance (+jB/YO).” Susceptance
doesn’t change. is normalized (just like reactance) by dividing it by the
The points you have plotted should form a semicircle characteristic admittance (YO = 1/ZO) of the transmission
with its lowest point at approximately 0.6Ω of R and –0.8Ω line. If ZO = 50Ω, then YO = 0.02S.
of X. (This is an un-normalized impedance of 30 – j40 Ω.)
Continue increasing the frequency until the points return to
the horizontal axis near the 3.0 mark at which you started. Trivia Night
The line is now 1λ long and the frequency should be twice When you’re out with the other electronic-ers, you can
what it was when you started. impress them by knowing the answer to:
The complete circle of points is called a constant-SWR
circle because all the points on that circle cause the same What single point is the same on both types of Smith Charts?
SWR. (If you dare, plot the points on a rectangular graph — That’s right — 1.0 + j0 at the very center. That is the
which would you rather work with?) only complex number whose reciprocal is the same as the
original number!
Free Admittance!
Impedance, however, is not the only way to work with
voltage and current in a transmission line. Admittance (Y) is
Putting the Smith Chart to Work
the reciprocal of impedance; Y = 1/Z. Similarly, admittance The Smith Chart is a great tool for working out all
is made up of conductance (G) and susceptance (B), which kinds of problems involving impedances, admittances, and
are both in units of siemens (S). G and B are the reciprocals transmission lines. One of the most common is impedance
of their counterparts in the impedance world; G = 1/R and matching. (See the March 2016 Ham’s Wireless
j B = –j / X. (Note that 1 / j = –j.) Impedance is sufficient Workbench for a column on that subject.) The Smith chart
for most problems, but admittance comes in very handy at is a guide to how those transformations can be made using
times. For example, admittances in parallel add together, Ls and Cs by moving along the various circles and arcs to
just as impedances in series add together. the desired impedance, such as the normalized 1.0 + j 0.
To create an admittance version from a “regular” But what does “moving” on the Smith chart mean?
March/April 2019 15
■ FIGURE 4. Beginning with
Point A (3.0 + j0) representing a
resistance of 150 ohms, the effect
of adding series and parallel
components is shown by the red
arrows. See text for discussion.
SimSmith: An Online
Charting Tool
You might be sweating a little
bit and that’s pretty normal for a
first encounter of the Smith Chart
kind! While a lot of eraser crumbs
and compass pencils got worn down
designing circuits and antenna systems
this way, there are online versions that
do a lot of the hard work for you.
The best one I know is the free
SimSmith program by Ward Harriman
AE6TY, available at harriman.ddns.
net/Smith_Charts.html. Figure 5
susceptance in parallel to get a combined admittance shows a typical screen. You can build
(remember, they just add together) of 0.33 + j1.0S. Travel up systems of transmission lines, including stubs, plus
along a constant-G circle (because the conductance was lumped-L and -C and -R components, S-parameter blocks,
not changed) at 0.33S (between the 0.3 and 0.4S circles) and even arbitrary circuits described by data files. There’s
to the constant-B arc labeled “1.0.” This point is shown at E an active user’s group and a number of great tutorials by
in the figure. Larry Benko WØQE. It’s a terrific resource.
Now, add 0.67S of conductance, also in parallel. This I hope you enjoyed this introduction to the Smith
moves the point along a constant-B arc to the constant-G Chart. It’s an amazing tool that brings the arcane math
circle with a value of 0.33 + 0.67 = 1.0S. The result is the of transmission lines to visual life so you can understand
Point F at 1.0 + j1.0S as shown in the inset circuit. them. NV
ACTUONIX
R SERIES IOT WIFI WIFI
MICRO LINEAR ENABLED
ACTUATOR BUNDLE DEVICE
March/April 2019 17
PRODUCTS
■ HARDWARE
■ SOFTWARE
NEW
■ GADGETS
■ TOOLS
T
generator standard on all models he Torus Power PB 5 is a five For more information, contact:
• 10.1” wide-screen 1024x600 amp toroidal isolation transformer Torus Power, Inc.
color display www.toruspower.com
The 2.1 GHz model 2682 and the
3.2 GHz model 2683 have list prices If you have a new product that
at $2,950 and $4,490, respectively, you would like us to run in our
and come with a three year warranty. New Products section, please
email a short description (300-
For more information, contact: 500 words) and a photo of your
B&K Precision product to: newproducts@
www.bkprecision.com nutsvolts.com.
March/April 2019 19
BUILD IT YOURSELF
T
he downside to a voltage reference is that it only Notice that the OPA551 output is a negative voltage.
generates a single voltage and has limited current The path from the REF102 to the final output is inverting,
output. I decided to design a circuit that could so plus 10 volts appears as minus 10 volts at the output. I
generate any voltage between zero volts and 10 could have used the REF102 as a negative reference (see
volts in 0.1 volt increments; for example, 4.8 volts with a the REF102 datasheet for how to do this), but I found that
basic accuracy of 10 millivolts and an output current of it performed better (less variance from the 10.000 volts) as
100 milliamps (or one ampere with a power booster; see a positive reference.
the TI OPA551 datasheet). Another source of error is how the circuitry is
To achieve this accuracy requires analysis and assembled. I used a solderless plug-in breadboard for the
mitigation of all possible sources of voltage errors. This will initial testing and the results were bad. The wire leads on
be discussed in the following sections. the resistors are thinner than the wire normally used (22
AWG) and they don’t make reliable contact, so I would see
variations in the output by just touching one of the ladder
Block Diagram resistors or tapping on the breadboard.
Figure 1 is a block diagram of my variable voltage So, I went with an SB404 solderable breadboard and
reference (VVR). Starting at the
left is the 10 volt REF102C which
has an error of ±2.5 millivolts. This
■ FIGURE 1.Variable voltage
is within the 10 millivolt design
reference block diagram.
goal. A 10 resistor ladder network
(a voltage divider) breaks down
the 10 volts into 10 integer volts
as shown. This network is the first
(and largest at about 10 millivolts)
source of voltage error since the
resistors are only 0.1%. I’ll address
this later.
Next in the block diagram are
the two front panel rotary switches:
one for volts and the other for
tenths of volts. It may seem strange
that both switches are wired the
same since the tenths switch works
in tenth volt increments, but I’ll
explain how this works shortly as
well. that completely solved the problem. This breadboard is
It’s very important that the resistor network not be very convenient and it may be possible to thicken the
loaded down by its following circuits, so I have a dual low resistor leads by applying a thin coating of solder.
input offset op-amp (LT1013) wired as a unity gain, very
high impedance buffer. It has about one millivolt input
offset to contribute to the error. Reducing the Resistor
Now comes the fun part. The OPA551 is a very nice Ladder Error
op-amp with a 200 milliamp output and a typical input
offset of one millivolt. It also functions well as a summing I chose 0.1% resistors for everything, but even this
amplifier. precision can give a 10 millivolt error — my entire error
The gain of the amplifier is the ratio of the feedback budget. The ladder resistor value isn’t the critical thing, but
resistor (R13) divided by the input resistor (R11 for the all resistors in the ladder should have the same (or close)
volts path and R12 for the tenths path). Therefore, the value. This also applies to R11 and R13. They should both
gain for the volts path R13/R11 is one and the gain for the have the same value, but not necessarily the same value as
tenths path R13/R12 is 1/10. The summing amplifier simply the ladder resistors.
adds the two inputs in this ratio. I needed a total of 10 1,000 ohm resistors for the
For example, if the volts switch is set to four volts and ladder and two 1,000 ohm resistors for R11 and R13.
the tenths switch is set to eight tenths, the output will be I bought 25 1,000 ohm resistors for 52 cents each
4/1 plus 8/10 or 4.8 volts. from Digi-Key intending to select 10 resistors having
March/April 2019 21
be absolute, only relative accuracy; that is, if
one resistor gives a reading of 0.6 millivolts
and another resistor gives a reading of 1.0
millivolts, we can expect that all resistors
that give a reading of say zero to 1.0
millivolts will be very close in value.
Look at Figure 2. It’s a list of the
measurements on the 22 resistors. The
first column is the resistor ID number, the
second column is the Wheatstone bridge
measurement, and the third column is the
actual resistance measured by an accurate
5-1/2 digit DVM. The list is sorted low to
high on the Wheatstone bridge values.
The highest value in the third column
is 100031 (resistor 20) and the lowest is
99933 (resistor 19); a difference of .98
ohms — almost exactly 0.1% as expected.
■ FIGURE 2. Ladder If we look at the resistors having a
network resistor selection.
Wheatstone voltage between 0 and 0.8,
we get a high of 99957 (resistor 14) and a
low of 99933 (resistor 19) — a difference of
close to the same value for the ladder. You also need two .24 ohms or about 0.02%. Five times better
matched resistors for R11 and R13. than 0.1% and a contribution to the error budget of about
Now comes the challenge: how to measure each of two millivolts!
the 25 resistors to better than .1%. A typical 3-1/2 digit Since the Wheatstone voltages measured are in
handheld meter won’t do it; all resistors would read as the low millivolt range, it’s best if the resistors in the
1,000 ohms! A 4-1/2 digit meter or better yet a 5-1/2 Wheatstone bridge are tack-soldered together at the ends
digit meter is required if we use this direct measurement of the resistor leads. This will reduce undesired voltage
method. drops.
I used an alternate technique for measuring resistance The Xs in the fourth column are the best candidates for
called a Wheatstone Bridge method, with three 1,000 ohm the resistor ladder and the Zs are perfect for R11 and R13.
0.1% resistors from the batch of 25 and a +15 volts power In Figure 2, I also show both the Wheatstone and
source. The voltage measured by the bridge is quite small the 5-1/2 digit DVM results. Clearly, if you have a 5-1/2
(low millivolts) but the two 3-1/2 digit meters I own read digit meter, you won’t have to do the Wheatstone
voltages as low as 0.1 millivolts. measurements. I’m just trying to show how they correlate.
I’m not sure of their accuracy, but we don’t need it to
Detailed
Circuit
Diagrams
Figures 3 and 4 are the
detailed schematics for the VVR
principal circuits. They just add
detail to the block diagram.
Power Supply
The VVR operates from ±15
volts at about 100 milliamps. It can
be supplied in several ways; for
example, AC/DC converters using
■ FIGURE 3.Voltage reference and switches. normal house power for the AC.
22 March/April 2019
These are low priced and available with
dual outputs of ±15 volts.
I get a little nervous about having
120 volts AC floating around in a metal
box that I will come in contact with, so I
looked at alternatives and found a great
one: the Traco Power TEL 3-0523 (Digi-
Key, $16). This is a DC/DC converter
with 4.5V to 9V input and dual outputs
of +15V and -15V at 100 milliamps
each. The input and output are isolated
from each other and it can be powered
with a cell phone charger.
Unfortunately, these chargers
typically use a USB to micro-USB cable.
I couldn’t find a suitable panel mounted ■ FIGURE 4.Voltage reference buffer and output amplifiers.
micro-USB jack, so I just changed the
cable from a USB to a type M barrel
cable. Or, you can just cut off the micro-USB connector
Construction
and run the open end through a grommet and hard-wire it Figure 5 is the assembly diagram for the principal
to the power supply. components of the VVR. As I mentioned earlier, I prefer
I had to cut back the VVR output current to 80 a soldered assembly for best accuracy and stability. I
milliamps because the OPA551 uses 20 milliamps used the SB404 board for this project, but if you prefer a
internally. solderless assembly, then the assembly drawing shown in
Performance
Figure 6 shows the actual VVR output at
various volts and tenths switch settings. The VVR
performance far exceeds my expectations! I think
the accuracy of the ladder network is the main
contributor at an additional cost of less than $7.
In addition, the output voltage with 0.0
volts/0.0 tenths is only 0.2 millivolts. This means
that the sum of the input offsets of the LT1013
and the OPA551 is close to zero.
The VVR is expected to be used in a
hobbyist workshop environment. However,
it’s still important to evaluate what variations
in performance to expect with changes in the
environmental temperature.
The datasheets for the critical components
are the REF102C; the resistors in the ladder
and R11, R12, R13; the input offset voltage
of the LT1013; and the input offset voltage of
the OPA551. The parameter changes due to
temperature are typically expressed in parts per
million (ppm) per one degree Celsius change in
temperature.
■ FIGURE 6.VVR performance test. The REF102C has an output voltage change
of 2.5 ppm per degree change in temperature.
Parts List We need to determine how many millivolts this
represents. The REF102C has a nominal output
QTY DESCRIPTION SOURCE
of 10 volts. We divide this by one million and
1 REF102C Digi-Key Part#: 296-17005-5-ND get 0.00001 volts or .0.01 millivolts. Since the
REF102C has a ppm of 2.5, we multiply the 0.01
1 LT1013 Digi-Key Part#: 296-7044-5-ND
by 2.5 and get 0.025 millivolts per one degree
1 OPA551 Digi-Key Part#: OPA551PA-ND change in temperature.
25 1,000 ohm 0.1% resistors Digi-Key Part#: 10KADCT-ND The resistors have a resistance change of 25
2 10K ohm 0.1% resistors Digi-Key Part#: BC4503CT-ND ppm per degree change in temperature. Here,
we take 1000 ohms and divide it by 1,000,000
1 Traco Power Supply Digi-Key Part#: 1951-2536-ND
and then multiply by 25 and get 0.025 ohms per
1 Solderable Prototyping Board Jameco Part#: 2191402 degree change for each resistor. Each resistor
1 Heatsink Digi-Key Part#: 345-1089-ND sees only one volt, so the change is 0.025 divided
1 Enclosure Jameco Part#: 208911 by 1000 + 0.025 which is .000025 or .025
millivolts per one degree change in temperature.
2 Rotary Switch Jameco Part#: 576501
Since there are 10 resistors in the ladder,
2 Knobs Jameco Part#: 264955 we get 10 times 0.025 or 0.25 millivolts per
1 Dual Banana Jack Jameco Part#: 2144024 one degree change in temperature. This seems
1 Mini Toggle Switch Jameco Part#: 317287 like a lot but remember that all the resistors are
subjected to the same temperature and will
1 Misc Capacitors mostly experience the same change. The ratio
24 March/April 2019
of the resistors to one another doesn’t change much, and
that’s what is really important. A Wheatstone bridge is a simple circuit for measuring
The LT1013 input offset is a maximum of one millivolt an unknown resistance by connecting it, so as to form a
over the full range of temperatures (-55°C to +125°C). It
quadrilateral with three known resistances and applying
has a typical offset of 0.2 millivolts at room temperature.
The OPA551 has a typical input offset of one millivolt a voltage between a pair of opposite corners.
at room temperature and a maximum of five millivolts over
the full range of temperatures (-55°C to +125°C). your favorite microcontrollers. For example, ever wonder if
What is the maximum error? It’s difficult to determine, the A/D converter on the Raspberry Pi is more accurate or
but I think that based on my test unit results shown in more linear (or both) compared with the A/D converter on
Figure 6 (I didn’t do any component screening except for the Arduino? Well, here’s your chance to find out. NV
the resistors), your error should be less than three millivolts;
probably less than two millivolts over ±20 degrees from
normal room temperature.
Post comments on this article and find any associated
files and/or downloads at www.nutsvolts.com/magazine/
Putting It to Work issue/2019/03.
March/April 2019 25
BUILD IT YOURSELF
I live in the Midwestern region of the US where every winter, it gets cold.
Those of us in the region become focused — dare I say, obsessed — with
the outdoor temperature and the near term predictions and trends.
Recently, I began to explore ways to improve and upgrade my “thermal
monitoring technology” and came up with this simple, easy to build
trend-plotting thermometer. This project features a large color graphics
display to show the current temperature in big bold digits. Better than
that, it also graphs the temperature trends over the most recent 4, 8, 16,
or 24 hour period.
For me and my temperature obsessed brethren, it provides insights into
overnight changes as well as mid-winter encouragement whenever we
see upward trends!
26 March/April 2019
By Ed Andrews WA9UQN Post comments on this article and find any associated files and/or
downloads at www.nutsvolts.com/magazine/issue/2019/03.
T
his project joins an Arduino CPU (central
processing unit), some temperature/humidity
sensors, and a real time clock (RTC) module
to a large (3.5 inch) high resolution color LCD
graphics display to create a fun and useful “graphing
thermometer.” The outcome of this effort is an easy-
to-build device that has the following features and
functions:
X Axis Graph
Scaling
■ FIGURE 6.The map function converts data for graphing. It’s also necessary to scale and map the
X axis properly. This process is slightly more
X coordinate. This might be a difficult task were it not for complicated since the user can select trend plot periods
the handy Arduino map(…) function. As shown in Figure of 4, 8, 16, or 24 hours. We are further challenged by the
6, this function will convert an input value (In_Value) to an ‘circular nature’ of the trend memory Tdata[ ] array. To
output value (Out_Value) using a linear straight-line transfer scale X, we need to have an algorithm that will ‘cherry-pick’
function. The passed parameters In_Low, In_Hi, Out_Low, and extract just the 380 points that we need to plot to the
and Out_Hi define the equation of a straight line with an screen from the Tdata[ ] “database” of 1530 readings.
appropriate slope and offset. The function then accepts the This is done by hopping/skipping through the trend
In_Value in “tenths of a degree” and returns the mapped data array in defined steps in order to pick out just
Out_Value in Y axis pixel coordinates. temperature readings that are within the time period we
are showing in our graph. The “Skip_Step_Size” value is
calculated as shown in Figure 7. To trace the graph, we
Y Axis Graph Scaling always begin plotting from the right side of the screen,
To better visualize trends and accentuate even small starting with GLB_TdataNewPtr — the newest and most
temperature changes, we perform automatic “Y axis recent array element stored. In concept, we then march
scaling” every time a new trend graph is drawn. In order from the right screen edge towards the left screen edge,
to do this, the data to be plotted is quickly pre-scanned to pixel by pixel, while repetitively subtracting the Skip_Step_
find the MaxTemp (highest) and MinTemp (lowest) values Size value from GLB_TdataNewPtr.
within the plot data set. In this way, we are ‘stepping back in time’ to retrieve
With these limits in hand, the Y axis graph can be and plot the stored temperature history values as we
“centered” about the mid-point of these two limits. Then, go. We keep doing this until we have plotted all X axis
the overall graph “gain” is adjusted so that MaxTemp values locations of our graph (about 380 points). If you pay close
plot at or near the very top of the graph, while MinTemp attention during graph updates, you’ll see that the graph
values plot at or near the bottom of the graph. does indeed paint to the screen from right to left.
The Lines
Between the
Points
In order to avoid a dotted-line
effect, we actually draw short lines
between adjacent data points to fill in
any spaces that might appear during
large temperature swings. Because
our pixels are so small, we also take
steps to draw “double-wide lines” to
make the trace easier to see.
Enhancements
and Other
Project Ideas
Falling prices for high quality
female-to-female socket wires to link the RTC to the CPU. color LCD graphics displays make them viable alternatives
Pushbuttons, Sensors, +5V, and Ground Wiring: For to the plain old monochrome text displays or even the
the remaining connections, I used a 36-pin double-row seven-segment LED digital readouts that we’ve come to
male header to make an 18-position U-turn connector. rely on for our microcontroller projects.
By first clamping the header into the vice, I was then able While I’ve described a ready-to-go weather-watch
to bend the short pins close enough to one another, so I device using a graphic display in a fun and useful way,
could make a solder bridge across each of the pin pairs the packaging and design concepts presented here can
(Figure 14B). Build Note: Don’t skip the “vice” as the serve as a launch-point for other projects. In fact, this core
plastic pin frame is easily broken while attempting to bend design has all the elements needed to build a great looking
the individual pins. graphics clock. With the addition of a small speaker, adding
a wake-up alarm is easy.
Once you insert one row of pins into the Mega, Whether it be temperature trends, time and date,
carefully form a slight angle onto each of the outer rows current/voltage readings, battery status, or other variables,
of pins as shown in Figure 14A. This makes it possible to consider giving your next project some extra pizazz by
connect female socket wires from the back side of the including an LCD color graphics display into the design!
CPU board. From this U-turn connector, we can get to +5V, Take care and happy graphing! NV
ground, and all the odd-numbered I/O ports from D23 to
D53. Since the 1x4 membrane switch already terminates
in a .1 in pitch SIP female connector, it can plug right onto
the U-turn connector (pins D37, D39, D41, D43, and D45 REFERENCES
of Figure 14A).
I used discrete female-to-female socket wires to link Arduino IDE, Arduino libraries, useful guides, and references
to the temp/humidity sensor signal lines (Mega pins D23 https://www.arduino.cc
and D25), and the +5V and ground wires to the sensor Graphics thermometer software and hardware details
interface board. Just be sure to count pins carefully so as to https://github.com/Ed-EE-Eng/Graphics_Thermometer
locate and plug everything into the right pins!
As indicated back in the schematic (Figure 3), the gfx Graphics Library
RTC module gets its power and ground from the sensor https://github.com/adafruit/Adafruit-GFX-Library
interface board using a couple more female-to-female Documentation/guideline for using AdaFruit gfx Library
socket wires. https://learn.adafruit.com/adafruit-gfx-graphics-library
RTC Library
Need to Change Port https://github.com/adafruit/RTClib
Assignments? Guideline for Installing and using MCUfriend graphics helper library
https://forum.arduino.cc/index.php?topic=366304.0
While the SDA and SCL wire pair going to the RTC Bounce2 Pushbutton Debouncing Library
are locked pin assignments that you won’t want to https://github.com/thomasfredericks/Bounce2
change, wiring to all the other devices can be moved to
any open pins that might work better for you. This can be DHT Sensor Library
https://github.com/adafruit/DHT-sensor-library
done by simply editing the source code to match the pin
34 March/April 2019
PARTS LIST
ITEM QTY DESCRIPTION SOURCE PN/ORDERING INFO NOTES
1 1 ARDUINO MEGA CPU Arduino.cc ARDUINO MEGA CPU Alt: Search eBay for MEGA compatible
+ Others
https://store.arduino.cc/usa/arduino-mega-2560-rev3
2 1 ARDUINO AC POWER SUPPLY Various, UNO/MEGA POWER SUPPLY, 9 VDC 1A 5V phone charger + cable is an option
eBay
eBay Search: Arduino Uno Power Supply Adapter 9 VDC
3 1 3.5 IN 480x320 LCD DISPLAY eBay 3.5 IN TFT LCD SCREEN MODULE 480x320 Consider adding “Touch Screen” to eBay
FOR ARDUINO UNO & MEGA quiry
Search for: TFT LCD Screen Module 480x320 Arduino UNO MEGA
4 1 DS3231 RTC MODULE Various, DS3231 RTC MODULE
eBay
eBay Search: DS3231 RTC Real Time Clock Module
5 1 CR2032 BATTERY Various, CR2032 BATTERY For use with item 4
eBay
eBay Search: CR2032 BATTERY
6 1 PB1, PB2, PB3, PB4. Various, MEMBRANE 1x4 PUSHBUTTON ARRAY Not req’d if item 3 has touch screen
1x4 PUSHBUTTON ARRAY eBay
eBay Search: 1x4 Matrix Array Keypad
7 1 SENSOR INTFC PCB ASSEMBLY ----- Consists of items a-e below
7a 1 PCB - PROTOTYPE CIRCUIT BOARD Various, DIY Prototype Circuit Breadboard PCB See online build layout details to match 3D
eBay Universal Board 2x8 cm case mtg holes
eBay Search: 2x8 cm Double Side PCB
7b 2 P1, P2. TERM BLOCK HDR 3-POS Digi-Key PCB PART: WM7752-ND @ .78 ea
VERT 3.5 MM PCB MNT. NOTE: MATING PART: WM7733.ND @ $1.14 ea
SCREW TERM MATE REQUIRED
eBay eBay Search: 3-pin 3.5 mm Pitch PCB Plug in Terminal Block
7c 1 P7. 3-PIN RT ANG MALE TERM Digi-Key SAM1051-03-ND @ .25 ea ALTERNATE: Cut from longer strips; eBay
link is for 10 Pcs x 40-pin @ $3.80
eBay eBay Search: 40-pin 2.54 mm Single Row Right Angle Pin Header Strip
7d 1 P5. 6-PIN RT ANG MALE TERM Digi-Key AM1051-06-ND @ .46 ea ALTERNATE: Cut from longer strips
(See notes for item 8)
7e 2 R1, R2. RES 4.7K 1/4W 1% AXIAL Digi-Key 4.75KXBK-ND Value not critical. Can use 4.7K to 10K value,
5-10% precision OK
eBay eBay Search for: 4.7K .25 watt Metal Film Resistor
8 2 S1, S2. DHT21 TEMP/HUMIDITY Various, DHT21 AM2301 DIGITAL TEMPERATURE/
SENSOR MODULE eBay HUMIDITY SENSOR MODULE FOR ARDUINO
eBay Search: DHT21 AM2301 Sensor Module
9 4 NO_4 x .25 IN SELF-TAP SCREW Various STEEL, NUM 4, 1/4 IN SHEET METAL SCREW See McMaster PN for more details
McMaster 90077A106 (Box of 100 Pcs @ $1.45)
10 4 NO_4 x .5 IN SELF-TAP SCREW Various STEEL, NUM 4, 1/5 IN SHEET METAL SCREW See McMaster PN for more details
McMaster 90077A110 (Box of 100 Pcs @ $42.21)
11 4 4-40 x .5 IN SOCK HD MACH Various STEEL, NUM 4, 1/4 IN SHEET METAL SCREW See McMaster PN for more details
SCREW
McMaster 92196A110 (Box of 100 Pcs @ $4.20)
12 4 4-40 x .25 IN SOCK HD MACH Various STAINLESS STL SCKT HD SCRW 4-40 x 1/4 IN See McMaster PN for more details
SCREW
McMaster 92196A106 (Box of 100 Pcs @ $3.92)
13 4 4-40 x .75 IN PHIL HD MACH Various STAINLESS STL PHIL HD SCREW 4-40 x 3/4 IN See McMaster PN for more details
SCREW
McMaster 92196A113 (Box of 100 Pcs @ $4.97)
14 4 4-40 HEX NUT Various STAINLESS STL HEX NUT 4-40 See McMaster PN for more details
McMaster 91841A005 (Box of 100 Pcs @ $3.02)
15 1 INTERNAL WIRING Various MISC PINS, CONNECTORS, WIRES Misc odds and ends
16 1 ENCLOSURE - FRONT PANEL 3D PRINTED FRONT PANEL, 3D PRINTED (PLA) SEE ONLINE DOCS FOR DETAILS
17 1 ENCLOSURE - REAR PANEL 3D PRINTED REAR PANEL, 3D PRINTED (PLA) SEE ONLINE DOCS FOR DETAILS
18 1 CPU/LCD MOUNTING FRAME 3D PRINTED MOUNTING FRAME, 3D PRINTED (PLA) SEE ONLINE DOCS FOR DETAILS
19 2 TILT BASE, CASE MOUNT 3D PRINTED TILT-CASE MNT, 3D PRINTED (PLA) SEE ONLINE DOCS FOR DETAILS
20 2 TILT BASE, FOOT 3D PRINTED TILT-FOOT, 3D PRINTED (PLA) SEE ONLINE DOCS FOR DETAILS
March/April 2019 35
CNC ROUTERS:
BACKLASH
What It is
and How to
Backlash can have a
Measure It
detrimental effect on
tool life and on your CNC
router’s ability to maintain
accurate positioning of
the X, Y, and Z axes. In
this article, we’ll look at
the problem of backlash
in CNC routers. Once you
understand what role
it plays, you’ll want to
diminish its impact on
By Roger Secura
your machine. Whether
you own or intend to build/
buy a CNC router, make it
a habit to routinely check
for backlash. It could save
you some money and/or
aggravation.
36 March/April 2019
I
f you have a metal or wood bench vise in
your workshop, you’ve probably experienced
“backlash” and not even noticed the problem.
FIGURE 1.
For example, if you secure a piece of wood in
a vise and then begin to loosen the jaws, you’ll
notice that the vice handle will rotate somewhere
between 10 to 90 degrees or more before you
see any movement of the jaws.
In other words, the amount of “slop” or “play” in
between the threads of the large lead screw and the
threads within the vise jaws creates a backlash situation.
It’s important to note in our bench vise example
that the delay in the movement (backlash) of the jaws
happens in both directions — tightening or loosening of
the vice.
On a vise, backlash is not too big of a problem, but
on CNC routers, it can put a dent in your tool life and
the accuracy of your X, Y, and Z axes.
Figure 1 shows a cutaway view of the Acme lead
screw and nut setup on my desktop CNC router.
Depending on which direction the stepper motor
rotates, the nut and lead screw attached to the
gantry support board will move the Y axis forward or
backwards.
A close-up view of the Acme lead screw and nut
is shown in Figure 2 below. Notice in the top diagram
how each Acme lead screw thread is engaged on the
right side of each nut thread. Now, when the lead
screw is rotating clockwise (CW), backlash is not a FIGURE 3.
problem because both the lead screw
and nut threads are fully engaged bit (cutting tool) should make wood
with each other (no gap). However, chips no larger than .005” and no
backlash is introduced into the system smaller than .003” in width. In other
when the lead screw changes to a words, you should see wood chips
counterclockwise (CCW) rotation. (not sawdust) flying off your tool bit
Notice in the bottom diagram as it cuts into the workpiece.
how the lead screw threads must Chip load size is important
traverse the gap between the because wood chips remove heat
nut threads before they become from the tool bit. Having too small
fully engaged again. The gap in of a chip load builds up excess heat
between the forward and backward in the tool bit. Heat buildup shortens
engagement of the lead screw and tool life. On the other hand, too
nut threads is called backlash. In big of a chip load can break a small
other words, backlash (hatched diameter tool bit.
area in Figure 2) can be seen in Backlash can change the
either direction as a direct result of recommended chip load size. During
rotational shifts made by the lead a “climb” cut scenario, the cutting
screw. tool edge (flute) tends to grab the
Even though we’re talking about workpiece. Consequently, the cutting
thousandths of an inch here, it can tool will move a distance equal to the
be enough to cause a couple of amount of backlash in the system.
problems. For example, look at the As you can imagine, backlash
“Chip Load” chart in Figure 3. also diminishes the accuracy of a
The chart is recommending that CNC router. Accurate positioning of a
for hardwood, a 1/8” diameter tool FIGURE 2. tool bit is essential when locating the
March/April 2019 37
FIGURE 4. FIGURE 5.
center of a hole, engraving an intricate pattern, or adhering
to drawing tolerances.
Parallax Board of Education Full Kit BOE Full Kit $98.90 0603ZD98
48W Soldering Station
USB version with Stamp and USB Cable. Parallax 7.5V Power Supply $8.95 Temp. Controlled
$15.25
310oF~840oF
some backlash in the amount the dial needle is away from STEP AND REPEAT
the zero mark.
For example, if the dial indicator needle moved from Checking for backlash on the Y axis and Z axis on your
zero to .010” in the forward direction on the X axis, then router is just a matter of repeating the procedure we used
it should move from .010” to zero in the reverse direction. on the X axis. Figure 8 shows how I checked for backlash
If you find when you reverse the movement on the X axis on my Y axis. Figure 9 shows the setup for my Z axis.
that the needle lands on the four thousandths mark on the After you test for backlash on the X, Y, and Z axes,
dial, you have .004” of backlash on your X axis. calculate an average for each axis.
Now, repeat the above procedure a few times at Now, enter the test results into the CNC motion
different locations along the length of the X axis. controller’s backlash screen.
Finally, once the
PARTS LIST backlash problem
is eliminated from
ITEM QTY DESCRIPTION PART# SOURCE APPRX COST your machine, run
1 1 Neodymium Round Base Magnets HLMAG05 Amazon.com $8.99
with Mounting Screws (pack of 4)
the setup procedure
for “Steps per Unit”
2 1 Magnetic Base for Dial Indicator KAMB50F Amazon.com $22.99 in Mach 3 (or in
whatever CNC
3 1 Triton 1” Dial Indicator, ALL-52000 Amazon.com $14.45 control software
.001” Graduation Travel
you’re using). This
40 March/April 2019
will insure the stepper motors are rotating the correct
number of steps for a given unit of measurement.
In other words, when the digital readout (DRO) in your
FIGURE 10.
CNC control software displays 7.00” of X axis movement,
your router will have moved exactly 7.00”.
COMBATING BACKLASH
There are two ways you can reduce the effects of
backlash on a CNC router: software compensation or
hardware compensation.
On the software side, you can manually adjust the
amount of backlash compensation on the X, Y, and Z axes
through your CNC control software. For example, go to the
main screen in Mach 3, and select ‘Config’ from the menu.
Then, select ‘Backlash’ from the list.
On the hardware side, backlash can be corrected by
adding a spring loaded “anti-backlash nut” assembly to the
lead screws on all three axes (see Figures 10, 11, and 12).
Users who own or are building a rack-and-pinion type
of CNC router can employ spring-loaded tensioners, anti-
backlash split pinion gear, or a dual pinion drive to
reduce backlash.
Nut strips.
somewhere to house the modules and to attach a power Once you’ve selected your enclosure or ends,
supply (and power bus, etc.). Of course, you can bypass you’ll need a way to mount your rails. Most people use
this section and move straight to power if you want to aluminum slotted rails that contain small square nuts or
purchase a premade unpowered case from the many nut strips that fit into the slotted channel. Companies that
manufacturers out there. You can even buy a kit if you like produce these are TipTop, Vector, and Synthrotek.
for this part. First, you need to determine if you want your If you don’t want to purchase this type of hardware,
case to be portable (such as a suitcase) or something that you can always use some thin strips of wood. One major
is intended for studio and mostly indoor use. If you intend downside to using wood is that your mounting holes will
on performing live music or noise with your modular, you eventually become loose or split if you plan on moving
may want to opt for a portable case that will keep your your modules around (which is quite common and part of
equipment more secure. the fun).
Eurorack modules have exposed PCBs (printed circuit Eurorack modules have a constrained height of 5.06”
boards) and components that are not intended to be (128.5 mm) and the width can vary in HP (Horizontal
exposed to weather and moisture, so choose something Pitch). Each HP is .2” and modules can vary from 2HP to
like a suitcase, make/find a wood box, or even use some 60HP and even more!
cheek ends (or brackets that allow your modular to fit into Module depth varies quite a bit also, but I’d
19” or 23” racks) that can be attached to mounting rails. recommend around 4-5” of depth for your case —
44 March/April 2019
especially if you plan on building
many of your own modules.
In short, you need to have an
opening of at least 5.06” (perhaps a
smidge larger) per row of Eurorack
modules. Eurorack is mostly
considered a 3U sized format
(although 1U modules also exist
and are growing in popularity), so
folks will describe the size of their
system in these terms: “I have a 9U
104HP Eurorack system.”
Vector and Synthrotek rails are
9/32” (7 mm) tall. If you plan on
using wood for mounting rails, it
would be wise to make these no
more than 25/64” (10 mm) tall so
Eurorack flying bus cable and Eurorack power distribution board.
as not to bump into the module
PCBs or components.
In order to mount your rails and support your modules. There will be some templates
precisely, some manufacturers have made various brackets available in the downloads for this article.
that attach to their rails. Pulp
Logic, Synthrotek, and TipTop all
have various solutions for these
The “U” designation
mounting brackets. If you’ll be
refers to the size of a
drilling out the sides of your case
module; specifically, its
or cheeks to mount the rails, just
height. For example, 1U
make sure they are 4.741” hole
is 1.75” H, while 5U is
to hole for 3U and 1.389” for 1U
8.75” H.
when you’re using Vector and
Synthrotek brand rails. Refer to the
manufacturer’s specifications if
using a different brand.
Mounting
Modules to
Rails
If using wood to mount your
modules, choose small and shallow
3/32” or 1/8” (2.5 mm or 3 mm)
shaft diameter wood screws. When
using aluminum extruded rails,
you’ll have to choose between
sliding square nuts or strips of metal
that have pre-drilled and tapped
holes (aptly called nut strips). These
also come in 3/32” or 1/8” holes
and will require matching machine
screws. Most modular companies
ship 1/8” x 9/32” (3 mm x 7
mm) mounting screws with their
modules or kits.
As you can see, there are
many options on how to enclose Synthrotek MST System 104 on workbench
March/April 2019 45
Finding a pre-made power supply that has all three rails
is less common in a wall wart type of supply. Your options
to source or make this supply are quite expansive. You
can buy assembled or kitted power supplies from various
modular manufacturers, but you can also make your own
linear or switching supply. What you want in the end is a
power supply that will be able to handle the amount of
current draw that your modules will require.
How much power will you need? That greatly depends
on how many modules you’ll be using. There is no perfect
rule of thumb, but you can plan on at least 1A for the
+12V rails, .5A for the -12V rail, and 0 to 250 mA for the
+5V rail. You very well may need more!
Some commercially-available power supplies are Row
Power from 4MS company, TipTop μZEUS, and Synthrotek
Super Power. These three options are made into 4HP
modules for very easy case mounting that requires no
additional hardware.
Most manufacturers provide their modules’ current
draw for each rail in their product documentation
since they tend to make multiple versions. If buying
commercially-available units, there’s a great resource at
Eurorack power supply specifications. modulargrid.net that allows you to spec out your system’s
power needs. You can mount your power supply in various
Power ways such as with glue (we like E6000), double-stick 3M
Most Eurorack modules require power in order to foam tape, or screws.
operate. There are a host of unpowered or passive utility Once you have the appropriate amount of power
modules such as mixers, multiples, and some logic, but for your system, you’ll need to get that power to your
these are less common and must be used with modules modules! Eurorack uses 2x5 or 2x8 rows of 2.54 pitch
that are powered. header pins and sockets to connect the power, so you’ll
The Eurorack power standards have three isolated need a bus system that utilizes this standard. Many
power rails which are +12 VDC, -12 VDC, and +5 VDC, manufacturers produce power bus boards and kits as well
and shared ground. Most all modules use +12 volts and as flying bus cables that connect power headers to ribbon
some -12 volts (as most op-amps require dual power cable (this works quite well in open cases such as those
supplies). Some modules — especially digital — use a +5 that are made up of cheek ends and rails).
rail, but it’s less common and not necessary when you are Spend some time figuring out what type of case you’re
getting started. interested in (portable for gigs or a studio solution) before
jumping in. If you’re on a budget (or thrifty!), you
can find an old hard suitcase or shelving unit at a
local thrift store. You can even find the parts you
need to make a power supply quite easily. Just take
2x 12V wall warts and wire them up according to
the diagram included here.
Closing Thoughts
Know that modular synthesis is highly addictive!
You’ll probably outgrow your first case and/or power
in short order.
Make sure you keep an eye out for future
articles that will give you more info on how to start
building your own modules and start making some
noise! NV
Post comments on this article and find any
Eurorack +12V and -12V power supply using two associated files and/or downloads at www.
ungrounded walwarts. nutsvolts.com/magazine/issue/2019/03.
46 March/April 2019
Extreme Robot Spring HamFest Season Specials!!
Motor Control Use 10% off promo code “HAM2019”
www.robotpower.com
Scorpion Ultra for any in stock items on our website!
The BIGGEST 7V - 36V
Featured Items This Month!!
6
2x - 70A Peak H-Bridges
Scorpion EVER Big Power!
6
6 50A continuous w/cooling
Current/Temp protected
Hantek D272 $209.95
6
Big Bots! 6 R/C inputs w/mixing
6
6
4.50" x 2.35" x .7”
Enclosure available
70 MHZ Oscilloscope, Waveform
Generator & Digital Multimeter
www.CircuitSpecialists.com/hantek2d72
MADE IN
CSI-TC1 $27.95
The Tiniest Electronic Component Tester
THE USA Scorpion EVER Detects many common components!
www.CircuitSpecialists.com/csi-tc1
Scorpion Nano
6 4V - 16V
6 2x - 4A Peak H-Bridges
6 2A continuous
6 Current/Temp protected
R/C inputs w/mixing
6
6 18.5mm x 15mm x 5mm www.CircuitSpecialists.com
6 ~5g 800-528-1417 - 480-464-2485
Phone: 360-515-0691 s [email protected]
March/April 2019 47
JUST FOR FUN HISTORY
The Radio
Station that
Bridge Built
I
t was 1923, and radio was the learn from lecturers holding forth on their
phenomenon of the day. Over 600 areas of expertise. A few tried to make sense of
broadcast stations were on the air, broadcast guitar or swimming lessons.
and Americans bought 100,000 Those without radios gathered in taverns
receivers that year. (Sales would jump to and restaurants to listen to election returns and
1,500,000 in 1924.) descriptions of baseball games.
This new instant mass medium flashed New radio owners everywhere strung wire across
their rooftops to make aerials, and then puzzled out how
news of important events around the country
to connect a loudspeaker to the set, along with the A, B,
in minutes instead of days. In addition to news, and C batteries the setup required. (Soon enough, “house-
tens of thousands tuned in to hear music and current” radios would come along; most of the early ones
I
f you have written a program for a microcontroller libraries without thinking much about them.
board such as the Arduino, Raspberry Pi, or Propeller In this tutorial, I’ll explain how software uses libraries
QuickStart, you have relied on software libraries that and how you can create your own.
provide constants and functions. Often, we use software Each software development tool has its own way
52 March/April 2019
By Jonathan A. Titus Post comments on this article and find any associated files and/or
downloads at www.nutsvolts.com/magazine/issue/2019/03.
to create libraries. For the examples that follow, I’ll use so now we would have the file SimpleTest.o. The suffix
the Parallax SimpleIDE for the Propeller microcontroller indicates object code. However, the compiler doesn’t
(MCU). Several reasons explain why we use libraries: have all the information it requires to give us ready-to-run
machine code. It still needs information from library files
1. They save time. Libraries give us the foundations for such as stdio.c or servo.c.
languages such as C and C++. They comprise functions, The header file gives the compiler spaces for the linker
operations, and constants so we don’t need to create to fill with the library function call, arguments, and returned
them. Think about functions printf() and putc(), as well as value so a precompiled function can be linked.
constants pi (3.14159...) and e (2.71828…). The final step sends all the object files for SimpleTest,
2. They separate us from implementation details. We stdio, servo, and others to a linker that combines all object
don’t need to know how the printf() or I2CStart() functions files seamlessly. Lastly, we get an executable machine
work, for example. We know they work, and we use them language file for our MCU. Our executable file often goes
according to published specifications. through a loader that translates the addresses from the
3. We can create our own libraries and re-use them linker into the addresses required by a specific MCU’s
many times. memory map and register arrangement.
4. They simplify processor upgrades and library In many cases, we use precompiled library files to save
software changes. Suppose you create a motor control time. Then, our software tools don’t need to compile large
project around an X board and use a motor control library libraries each time we make a change to SimpleTest.c.
that includes functions such as set_FWD(), set_REV(), and Precompiled object libraries have a dot-o extension.
Motor_Start(). After a while, you decide to upgrade to the Precompiled functions also offer security because users
company’s XQ board and use the new XQ motor control do not see the source code. That becomes important for
library. The new library provides the same functions, so companies that aim to keep their intellectual property
your software doesn’t need revision. The library’s code confidential.
changes are hidden from us. In general, we create static libraries for MCUs that our
compiler incorporates into our application program. These
To be fair, we can find several reasons to not use a static libraries have a dot-a (archive) extension. Operating
library: systems such as Windows and Linux provide static and
dynamic libraries. The operating system links dynamic
1. Can we trust the code? Who wrote it, and did they libraries to programs at run time, so several applications
document the interface or functions and how they work? that run simultaneously share a single dynamic library. In
Did they add “protection” code? (You’ll learn about that Linux, for example, you would see dynamic library files
later.) with a dot-so (shared object) extension. (File extensions
2. Often it’s easier to copy and paste functions as may vary by compiler type.)
needed. Luckily for us, when we click on an IDE (integrated
3. Creating a library can get complicated and involve development environment) menu item such as
many steps. Is it worth the effort if you only use the library “Build,” “Build Project,” or “Verify/Compile,” the IDE’s
once in a while? preprocessor, compiler, and linker work their magic and
automatically combine the needed object files. The IDE
Even if you never create a library, you probably want to might also let you immediately load the code into your
know how they work and what they contain. This tutorial MCU so you can test it.
provides information that gives you a good start. For various reasons, some programmers take a
command-line approach to compiling and linking code
How Our Tools Work
Before we discuss library details, you should References
understand how programs go from text files to the machine 1. ISO/IEC 9899:2017, “C17 Ballot,” www.open-std.
language (1s and 0s) that tells an MCU what to do. When org/jtc1/sc22/wg14/www/abq/c17_updated_proposed_
we key a program into a text window and save it as, say,
fdis.pdf. Section 6.10.2, “Source file inclusion.”
SimpleTest.c, we have created source code. When we’re
ready, our software development “tools” pass SimpleTest.c 2. “Name Mangling,” Wikipedia, https://en.wikipedia.
through a preprocessor that executes directives such as org/wiki/Name_mangling.
#include.., #define.., and #endif. 3. Drysdale, David, “Beginner’s Guide to Linkers,”
The “preprocessed” information next goes to a https://www.lurklurk.org/linkers/linkers.html.
compiler that converts the software into an object file,
March/April 2019 53
files. For more information, refer to the Resources. SimpleIDE to flash LEDs on a QuickStart board. The first
statement indicates my code needs the standard Propeller
library Simpletools.h:
Use a Library
The IDE you use (say, Microchip MPLAB, Parallax /*
Blink_Lights.c
SimpleIDE, mbed, or Arduino) must include standard Blink all LEDs on QuickStart board five times
libraries specified in the C language standard. Commonly */
used libraries offer math, string, time, input-output, and
#include “simpletools.h” // Include simpletools
other functions.
When you look at a program listing, you’ll see void LED_Test (void)
precompiler directives at the top that indicate the library {
int n;
(or libraries) the program needs. The necessary #include int cycle_count;
statements supply a library file name followed by a dot-h cycle_count = 5;
extension. We call the dot-h files header files. while(cycle_count > 0) // Loop 5 times
{
Here’s a simple program I created with the Parallax for (n = 16; n<24; n++)
{
Resources high(n);
pause(100);
//
//
Set I/O pin n high
Wait 0.20 seconds
low(n); // Set I/O pin n low
To download the improved instructions needed to create a pause(100); // Wait another 0.02
Propeller library with the Parallax SimpleIDE, go to this article’s seconds
downloads. }
cycle_count--; // decrement loop
counter
For more information about the gnu compiler collection and }
the compilation and linking processes, please refer to, “An }
Introduction to GCC for the GNU Compilers gcc and g++,” by
int main() // main code
Brian Gough, Network Theory Limited, Bristol, UK. 2005. ISBN:
{
9780954161798. LED_Test();
}
Parallax SimpleIDE User Guide, https://learn.parallax.com/sites/ // End of Blink_Lights.c
default/files/content/propeller-c-reference/landing/SimpleIDE-
User-Guide-9-26-2.pdf. The functions high, low, and pause do not occur in
the C language. They get declared and defined in the
“Propeller C Library Studies,” a multipart series about libraries simpletools.h file or in its subfiles. Parallax documents
and how to create them at https://learn.parallax.com/tutorials/ clearly explain the functions and constants available, so I
language/propeller-c/propeller-c-library-studies. use them without a second thought. I don’t need to know
how the high, low, and pause functions work, although I
“How to Compile and Run a C Program on Ubuntu Linux,” Keld could investigate them if I chose to. (Caution: Some IDEs
Helsgaun, http://webhotel4.ruc.dk/~keld/teaching/CAN_e14/ use complicated “trees” to arrange library files, so a search
Readings/How to Compile and Run a C Program on Ubuntu through them might seem like a trip down a rabbit hole.)
Linux.pdf.
56 March/April 2019
an executable program cannot match a mangled C++ compiler. So, in this example, assume it is defined. The
function name with one un-mangled by a C compiler. statement extern “c” { (#2) indicates, “OK, __cplusplus is
To prevent name mangling and linker errors, we direct defined here, so from this point on the left brace -- { -- the
a compiler to treat sections of code as written in C, rather compiler will not mangle names.
than in C++. This protection lets linkers use our library in C We can use them as written in a C or C++ program.
code without problems. A detailed description of function The #endif directive (#3) ends this group of three
overloading and name mangling goes beyond the scope of directives. (You can’t apply extern to code written
this tutorial (see Reference 2 for more details). To ensure specifically for C++.)
names in a C language header file do not get mangled, you The final #ifdef __cplusplus directive (#4) again tests
must add six more preprocessor directives (shown here in __cplusplus which, in this case, remains defined. So, the
bold and numbered for discussion): right brace (#5) ends the no-mangle section of the library’s
C code. The final #endif directive (#6) ends this group of
//Start of servo.h file three directives. The include guard and the prevention
#ifndef servo_H //Library starts here
#define servo_H of name mangling can help you avoid errors that might
challenge your debugging skills.
#ifdef __cplusplus //#1
extern “C” { //#2
#endif //#3 That’s a Wrap
all servo.h library code goes here... You now have had an introduction to how libraries
#ifdef __cplusplus //#4 get created, how to protect library code from a C++
} //#5 compilation, and how to guard against multiple library-
#endif //#6 inclusion attempts. As your next step, learn more about
#endif //Library ends here how your IDE creates libraries and try to create a simple
one. NV
The first new directive (#1) tests for a declaration of Thanks go to my friends, Dr. Michael Batchelder and Mr. Len Bayles
__cplusplus, which gets defined automatically by a C++ whose suggestions improved this article.
www.embeddedARM.com
TS-7180
Single Board Computer
March/April 2019 57
By Bryan Bergeron
DIY Biotech:
A Spectrophotometer for
Measuring Bacterial Growth
In this DIY Biotech
article, we’ll build
an Arduino-based
spectrophotometer
to explore how the
optical density of
bacteria suspended
in a liquid can be
used to measure
Photo 1. DIY spectrophotometer. the rate and stage
of bacteria growth.
INTRODUCTION growth, then you’ll have better success in your DNA
manipulation experiments. Similarly, some experiments
The cultivation of bacteria such as E Coli is a significant require a minimum concentration of bacteria in order to
part of DIY Biotech. Bacterial DNA can be modified, for produce meaningful results.
example, to produce insulin and other lifesaving drugs, and Enter the spectrophotometer, which measures
to display certain characteristics such as glowing in the wavelength-specific optical opacity of a fluid. By shining a
dark. Modifying the bacterial DNA usually requires working light of a particular wavelength — most commonly 600 nm
with organisms that are rapidly dividing because this is or orange — through a suspension of bacteria in a nutrient
when cell wall integrity is compromised. broth and measuring the absorbance of that light at regular
If you know how to identify this stage of rapid bacterial intervals, the concentration (and therefore number) of
58 March/April 2019
Post comments on this article and find any associated files and/or downloads at www.nutsvolts.com/
magazine/issue/2019/03.
THE SCIENCE
Key STEM Concepts
The change in optical density at 600 nm
(OD600) for a growing bacterial suspension follows
a characteristic curve.
Figure 1. Typical bacterial
• The four phases of bacterial growth, in order, are population growth curve.
the: 1) lag phase; 2) logarithmic or log phase; 3)
stationary phase; and 4) decline phase.
• The Beer-Lambert law essentially states that
absorbance of light by a fluid is a function of: 1)
the concentration of the absorptive substance(s)
in the fluid; and 2) the length of the path the light must bacteria might last from, say, six hours to 12 hours after
make through the fluid. the bacteria are introduced to a nutrient bath. However,
• The relative change in the turbidity or optical density a rough estimate may not be good enough for a specific
at 600 nm of a suspension of bacteria can be used study or genetic manipulation procedure. For example, if
to determine the relative rate and stage of bacterial six hours after introducing bacteria to a nutrient bath the
growth. bacteria population used for a DNA experiment is still in
• Given a known optical path length, the absolute the lag phase, the experiment will likely fail.
optical density at 600 nm of a suspension of bacteria Figure 2 shows another use for determining bacterial
can be used to measure the concentration and number population growth curves: that of identifying optimal
of bacteria in a suspension. environmental conditions including temperature, nutrient
concentration, and oxygen/carbon dioxide concentration
Bacterial Growth for maximum growth rate. Conditions associated with
growth curve Log A are superior to those associated with
Figure 1 shows the typical bacterial population growth curve Log B which, in turn, are superior to those associated
curve. Note that the X axis is time and the Y axis is the with curve Log C. A greater slope corresponds to a greater
logarithm of the concentration of bacteria in the container. rate of growth.
When viable bacteria are suspended in a nutrient
bath, there is a lag time wherein the bacteria grow in size
but not in number. This is followed by a period of rapid
logarithmic growth in the number of bacteria, referred to
as the log phase. Each parent bacterium divides into two
identical daughter bacterium (through a process called
binary fission), each of which grow and divide into two
additional daughter bacterium, and so on.
This log phase of rapid growth in the number of
bacterium eventually comes to a halt when the nutrients
in the bath have been exhausted. This stationary phase is
marked by a constant population of bacteria. Eventually,
bacteria begin dying and the number of bacteria falls.
As shown in Figure 1, the number of bacterium Figure 2. Different
log phase growth
in this decline phase approaches but may not fall to curves resulting from
the level of the initial lag level because of survival different environmental
mechanisms. conditions.
Given a set of conditions in terms of nutrients,
temperature, oxygen, and carbon dioxide in the
atmosphere, the log phase of a particular population of
March/April 2019 59
through a fluid will undergo some degree of
attenuation, as a function of the interaction
of light with the fluid and any particles (e.g.,
bacteria) suspended in the fluid. All else
held equal, the more particulate matter
suspended in the fluid and the more the
particulate matter interacts with the light,
the greater the attenuation.
Similarly, the light traversing a one inch
diameter tube of fluid should be attenuated
less than a beam traversing, say, three feet
of the same fluid. It also stands to reason
that pure water with no particulate matter
should provide the least optical attenuation.
This common-sense view of light
absorption by a fluid is quantified in the
Beer-Lambert Law. The mathematics isn’t
important for our discussion, but the law
Photo 2. The ubiquitous Bausch & Lomb Spectronic 20 spectrophotometer, produced essentially states that absorbance of light by
from the mid ’50s through the mid ’80s.
a fluid is a function of: 1) the concentration
Many of the strains of E Coli available for DIY Biotech of the absorptive particle(s) in the fluid; and 2) the length
are designed for maximum growth at the normal core of the path the light must make through the fluid. In our
body temperature of 37°C. However, I’ve used E Coli to case, the absorptive particles are bacteria and the beam
manufacture the glow-in-the-dark compounds found in must travel the diameter of a test tube — about 1”.
jellyfish, and these bacteria exhibit the maximum rate of An added twist is that bacteria exhibit a peak in light
growth at cooler temperatures. absorption around 600 nm (or orange). That is, if you were
Similarly, E Coli are aerobic bacteria that thrive in an to sweep the spectrum of colors through a sample of E
oxygen-rich environment. Increasing the ambient oxygen Coli or other common bacteria, you would find a peak in
level could be expected to shift the log phase from, for absorbance (or a dip in transmission) at 600 nm. This is in
example, Log B to Log A in Figure 2. contrast with, for example, the chlorophyll found in green
plants, which has a peak absorbance around 400 nm or
Light Absorbance/Transmittance violet.
We can take advantage of this peak in bacteria
It should be obvious that a beam of light traveling absorbance at 600 nm by using a light source of the same
wavelength. This increases the signal/noise
ratio of our measurements compared to
using, say, white light, because absorbance
due to other particles suspended in
the fluid have relatively little effect on
absorbance at 600 nm. By the way, OD600
measurements not only apply to bacteria,
but they are commonly used to quantify the
concentration of yeast in a suspension (think
beer brewing) and to establish a growth
curve of a yeast culture.
PHOTOSPECTROMETER
DESIGN
Commercial Standard
If you search for “photospectrometer”
Photo 3. Internal view of my Spectronic 20 spectrophotometer. on eBay, you’ll likely see dozens of listings
60 March/April 2019
for the Bausch & Lomb Spectronic 20. It’s the most
popular photospectrometer ever sold. Photo 2
shows my eBay purchase ($150), complete with
minor smudges accumulated over 40+ years of use.
The left knob on the front panel is for power and
to zero the 5-1/2” absorbance/percent transmittance
meter. The right control on the front panel is to
set the analog meter to 100%. On the top of the
unit are the sample holder on the left, and the
wavelength selector on the right.
Photo 3 shows the photospectrometer with
the cover removed. The wavelength selector disc
marked from 340 nm-960 nm is in the bottom center
of the photo. The underside of the tube socket for
the photomultiplier tube can be seen on the far left.
Under the wavelength selector disc are the Tungsten
lamp, an objective lens, and a diffraction grating.
Rotating the diffraction grating relative to the
yellow-white Tungsten light source produces a light Photo 4. Note the 600 nm 1W LEDs and heatsinks.
from 340 nm-960 nm with a spectral bandpass of
20 nm. This colored light is directed through the eBay and specialty sites such as Adafruit.com. A bag
test tube containing the bacteria in suspension and to a of 10 Chanzon 1W 600 nm LEDs is available for $5.70.
photomultiplier tube. The circuitry to the right of the meter Similarly, a bag of 25 Chanzon LED heatsinks is available
amplifies the signal to drive the meter. for $7. I used Arctic Silver Arctic Alumina Thermal Cooling
There are, of course, clones of the Spectronic 20 adhesive, available from Amazon for $22/5 gm. There
manufactured in China. The better domestic units are a are less expensive sources for the LED and heatsinks, but
little more compact and feature a digital display. Expect shipping costs add up quickly when you deal with multiple
to pay several hundred dollars for a fully functional vendors.
refurbished unit. Much of the cost and complexity is
related to support for a range of wavelengths, from near IR Power Supply
to near UV. For most of my work — and I suspect for most
DIY Biotech experimenters — OD600 measurements are The Chanzon LEDs used in this project require 300-
sufficient; 600 nm or orange light can be obtained from a 350 mA at 2.0-2.4V. This is easy enough to supply from a
simple LED circuit. constant current bench supply. However, if you want a self-
contained spectrophotometer, there are several options,
LED Light Source such as a Chanzon constant current 300 mA LED driver,
also available from Amazon for $7. The only downside of
Instead of starting out with a white light source such this driver is that it runs on 110V AC, and I like to work
as a halogen or Tungsten bulb and then using a filter or with lower voltage DC supplies.
diffraction grating to select for 600 nm, it’s much simpler
to use a 600 nm LED. High-intensity 600 nm LEDs — which Photodetector
are usually made with aluminum indium gallium phosphide
(AIndGaP) — are affordable, readily available, and easy With a little tweaking, any number of photodetectors
to use. Photo 4 shows several 1W LEDs and a sheet of and photodetector circuits can be used to create a 600
heatsinks, as well as an LED mounted on a heatsink with nm photospectrometer. For example, one of my early
thermal adhesive. prototypes is based on the TEMT6000 phototransistor and
An LED heatsink isn’t strictly required for this voltage divider breakout board (available from Amazon for
application because it’s possible to strobe the LED for a $7). Hookup and the related Arduino code for this analog
second to take a reading. That said, I like a margin of safety light sensor is about as simple as it gets.
and the heatsink pads make wiring simple. Furthermore, I found the TEMP6000 limited in dynamic range,
the solder pads on the heatsinks make the LED units easier however. I sometimes had trouble differentiating the
to handle. control (no bacteria) from the sample containing bacteria.
I sourced the components for this project through My current photospectrometer is based on a powerful
Amazon, at a modest premium over what’s available on and flexible photodetector: the Adafruit TSL2591. This
March/April 2019 61
Uno to control the TSL2591 photodetector. The TSL2591
is an I2C device with a non-alterable address of 0x29. Even
if you’ve never utilized an I2C device before, you’ll find the
TSL2591 a joy to work with. The Adafruit library takes care
of all the low-level details.
THE BUILD
Detector
I chose to use a simple direct wired design to minimize
build time. There are only four 6” jumper wires between
the female sockets on the Arduino Uno and the male
pins on the TSL2591 as shown in Photo 6. It’s possible
to use a traditional breadboard circuit in the form of
a miniature breadboard, so that the TSL2591 can be
mounted vertically. The sensor and light source should be
perpendicular to the long axis of the cuvette or test tube
Photo 5. The Adafruit TSL2591. containing the suspension of bacteria. Table 1 shows the
connections between the TSL2591 and the Uno. Using
high dynamic range digital lux sensor which has separate only four male-female jumper cables, build time for the
sensors for visible and infrared light and user-definable gain detector is on the order
Table 1. Arduino Uno Connections.
from unity to 428X, is available for $10 from Amazon (see of five minutes.
Photo 5). Recall that lux is a measure of light intensity and Arduino TSL2591
5V Vin
that 1 lux equals 1 lumen/m2. Light Source GND GND
Exhaustive documentation and example Arduino code A5 SCL
and associated libraries are available for free download The 600 nm light A4 SDA
from Adafruit. As you’ll see later, the example code is all source is a 1W LED USB Port Mac/PC USB
you need to create a fully functional photospectrometer. connected to my
bench supply in constant current mode. The build involves
Microcontroller soldering 12 inch lengths of 22 gauge copper wire leads
to the LED as shown in Photo 7. Alternatives to a bench
Given the libraries and example code available on the supply include the Chanzon LED driver discussed earlier, or
Adafruit website, it’s only reasonable to use the Arduino any number of LED drivers available online. For example,
Adafruit sells a variety of LED drivers compatible
with high power LEDs starting at about $7.50.
SOURCE CODE
The source code for this project is a slight modification
of the sample code that’s available from the Adafruit site. Photo 7. A 1W 600 nm LED wired and ready to go.
(The entire source code is only six lines, shown here.) The
most difficult step is installing the Adafruit_TSL2591 library That’s it, thanks to the fantastic example program! The
as well as the Adafruit_Sensor library from the Adafruit program will run continuously and return the real time
repository. Go to https://github.com/adafruit/Adafruit_ values of luminosity every 500 ms or so. Of course, for our
TSL2591_Library. needs, one measure per sample will do.
From the Examples menu, select Adafruit_TSL2591 and Note that the luminosity value obtained from
run the code. When you open the serial monitor window, measuring a test tube of pure broth must be subtracted
you should see the instantaneous lux value scroll down from the value obtained from measuring a test tube of
the window, tagged with the time. All you have to do with the same size and composition that contain the bacteria
the example code is decide on the gain and integration suspensions. In this way, the test tube, broth, and other
time by uncommenting the appropriate timing and gain sources of common error do not contribute to the growth
declarations. For example, the statement: curve or other analysis.
tsl.setGain(TSL2591_GAIN_MED);
sets the gain to medium, or about 25x. Low gain has a
gain of 1x, and high gain has a value of 428x. Similarly, the
statement:
tsl.setTiming(TSL2591_INTEGRATIONTIME_100MS)
sets the integration time to 100 ms. This is appropriate for
bacterial suspensions that are almost clear. Increasing the
integration time to, say 600 ms, is appropriate for highly
turbid suspensions (i.e., low-light conditions). The only
other parameter to consider is what to measure: infrared,
visible light, or a combination of the two. Because 600 nm
is clearly in the visible spectrum, we can ignore the infrared
sensor. The main loop in the program becomes:
void simpleRead(void)
{
uint16_t x = tsl.getLuminosity(TSL2591_VISIBLE);
Serial.print(F(“Luminosity: “));
Serial.println(x, DEC);
} Photo 8. LED, sensor, and test tube (center) embedded in a foam
whiteboard eraser.
March/April 2019 63
photospectrometer, let’s create a growth curve for
E Coli. First, create a liter of standard Luria Bertani
(LB) broth. This involves dissolving 25.0 grams of
LB powder (see Photo 9) into 1,000 ml of distilled
water, and then heating the broth to 121°C for 15
minutes to kill any bacteria.
Next, cool the broth to 37°C and inoculate
the broth with E Coli. Before placing the flask in an
incubator set to 37°C, stir the suspension so that the
E Coli are evenly distributed in the broth and take
a few cc’s and place it in a clean test tube. Insert
the tube into the photospectrometer and watch
the lux values scroll up the screen. Continue taking
samples every hour and recording the lux value.
Make certain you use clean — not necessarily sterile
— test tubes and that you stir the suspension before
taking a sample for measurement. A plot of the
measurements should resemble the classic bacteria
growth chart described earlier.
Photo 9. Luria Bertani (LB) powder, a set of glass test tubes, and a liter Once you’ve obtained a growth chart, make
Erlenmeyer flask filled with LB broth.
another batch of broth and vary the incubation
DEMONSTRATION temperature; say, setting your incubator to 35°C
instead of 37°C, and repeating the measurement sequence.
To demonstrate the capabilities of your OD600 You should see a change in the slope of the log phase —
the magnitude and direction of the change dependent on
the strain of E Coli.
Introducing the DISCUSSION
1(:39-U
0LQL&LUFXLW%RDUG+ROGHU
An inexpensive DIY photospectrometer dedicated
to OD600 measurements is both easy to build and
useful in the DIY Biotech lab. A quick Internet search on
OD600 will reveal tables that you can use to calibrate
your photospectrometer to the absolute concentration of
bacteria per ml.
'(6,*1(' If you’re interested in exploring photospectrometers
in more depth, then consider constructing a unit using an
)25 29(5 RGB LED. You won’t need to modify the receiver hardware
or software, but you may want to leverage the power of
7+(('*( the Uno to accurately control the mix of red, green, and
blue output.
&20321(17 Of course, if you’re new to DIY Biotech and have
%2$5'6 never heard of Luria Bertani broth, then consider an intro
text to Biotech, such as the Illustrated Guide to Home
Model Biology Experiments, by Thompson and Thompson.
220 Another resource is the Carolina Supply website (https://
www.carolina.com), which has an extensive library of
online tutorials.
Innovative H
Holding
olldi
o din
ngg SSolutions
olutio
olutiio
ut ons
n If you’re affiliated with a school, then you should
consider Carolina Supply for E Coli, LB Broth, and
800-759-7535 other supplies. If you’re an independent DIY Biotech
experimenter, then Carolina — among other suppliers — will
not sell you active biologicals. Instead, consider Amino.bio
and The-Odin.com. NV
64 March/April 2019
Bench and Builder
USB Add USB to your next project--
Electronics
www.dlpdesign.com
START CREATING!
www.sdp-si.com 516-328-3300
March/April 2019 65
After reading the May-June 2018 NV article on Ohm’s law, I thought a follow-
up article that goes a little deeper might be in order. Specifically, how
Ohm’s Law together with a computer and a couple of tricks can be used to
calculate the time dependence of much more complex circuits involving
not just resistors, but capacitors, inductors, op-amps ... you name it! Let’s
skip the academic approach that you learned in EE101. Real world problems
are usually too difficult for analytics. In this article, I’ll describe a simple
numerical method that is intuitive and solves many complex problems with
just a few lines of code.
B
efore diving into this, we need Suppose that the input to the circuit is a
one more famous law: Kirchoff’s step function; that is, the input voltage
Law, which says that the sum instantaneously goes from Vin = 0 to
of the voltages around a loop 10V at time t = 0. What is the time
is always zero. Take a look at Figure dependence of the output voltage? The
1 which is a circuit with two voltage analytic result using calculus is:
sources and a capacitor. We want to
know the voltage on the capacitor. Vout(t) = Vin(1 – e -t/RC) Equation 1
Applying Kirchoff’s Law, we can
write the loop equation: Figure 1. A simple circuit to illustrate Now suppose that the input is a
Kirchoff’s Law. square wave. For an analytic solution,
V1 – VC – V2 = 0 we have to solve the circuit at every
transition of the square wave until after a few cycles it
It’s important to keep track of the polarities. Since settles down to a periodic waveform — a daunting task.
the polarity of VC and V2 oppose the polarity of V1, those There’s a much easier way. Let’s use a computer and a
terms have a minus sign. Solving for VC, we have: little trick to get the complete solution in just a few lines of
code. Here’s the trick: A capacitor can be described by the
VC = V1 – V2 equation:
For our first problem, let’s find the time dependence ∆Vc = Ic ∆t / C Equation 2
of the voltage VC in the simple RC circuit of Figure 2.
66 March/April 2019
By C. A. Hamilton Post comments on this article and find any associated files and/or
downloads at www.nutsvolts.com/magazine/issue/2019/03.
Vin – ICR – VC = 0
Figure 8. A
breadboard
test showing
the input and
output of the
three-stage filter
circuit in Figure
6. Note that the
top trace is at
2V/div and the
bottom trace is
at 0.2V/div as
in the Figure 7
simulation.
70 March/April 2019
Figure 10. Simulation results for the inverted pendulum.
The top drawing is the animation at time = 0, scaled at
one meter per division. The vertical blue line shows the
command position at time = 0, and the blue square
Figure 9. The control system to stabilize an inverted wave below shows how the command position changes
pendulum and track a command position. with time (oscillating from -5m to +5m every 30s). The
black curve is the cart position and the red curve is the
Code line 8 shows how the acceleration Pdd of pendulum angle (max deviation from vertical is about ±
10 deg), all as a function of time.
the pendulum tilt angle P depends on its length L,
the acceleration of gravity g, the tilt angle P, the cart
acceleration Xdd, the cart velocity Xd, and the rate of and the easy adaptability to problems involving more than
change Pd of the pendulum tilt angle. The derivation of this just electronic components; for example, the dynamic
equation is beyond the scope of this article, but more info behavior of the mechanical parts in the inverted pendulum
can be found on Wikipedia; look up “Inverted Pendulum.” problem.
We now have everything needed to update the state Springs are like inductors, mass is like capacitance,
of the system. Lines 9-10 update the capacitor voltages. Ohm’s Law becomes Newton’s F = MA. You could analyze
Line 11 updates the cart speed Xd based on the known a bridge truss by noting that the beams are like very stiff
acceleration Xdd and then line 12 updates the cart position springs. NASA could never navigate a spacecraft to Pluto
X based on the known speed Xd. Lines 13-14 perform without the numerical method. NV
the same operations to
update cart tilt angle P, Code Example 4: Simulation of an inverted pendulum on a motor-driven cart.
then update the time 1: Ip = (Vp - VC2) / R1 ‘The input current through R1
and the animation, and 2: IC2 = Ip - (VC2 / R2) ‘The current into C2
3: IC4 = Ip - (VC4 / R4) ‘The current into C4
then go back to line 1 4: Vo = -(Ip * R3 + V4) ‘Filter output (inverted)
to compute the next
time increment. Refer to ‘Xdd is the acceleration to be applied to the cart for time dt
Figure 10. 6: Xdd = -Gp * Vo + Gx * (Vcmd -Vx) ‘Close the angle and position loops
Of course, if you
‘Compute the rotational acceleration of the pendulum
have a circuit simulator
8: Pdd = (1 / L) * (g * Sin(P) - Xdd * Cos(P) - Xd * Pd * Sin(P))
on your computer you
can get the results of 9: V2 = V2 + I2 * dt / C2 ‘Update capacitor voltages V2 and V4
Figures 2, 3, 5, and 7 10: V4 = V4 + I4 * dt / C4
without writing any code.
Aside from not 11: Xd= Xd+ Xdd *t ‘Update the cart speed
12: X = X + Xd* dt ‘Update the cart position
needing a simulator, the 13: Pd = Pd + Pdd * dt ‘Update the pendulum rotation rate
beauty of the numerical 14: P = P + Pd* dt ‘Update the pendulum angle
method described in this 15: t = t + dt ‘Update the time
article is the insight it 16: DrawCP ‘Draw the cart and pendulum to the screen
gives to circuit operation 17: Goto 1
March/April 2019 71
Figure 1: Medusa-like PCB found at yard sale.
A
t the worst, I could always salvage some of its to try and identify my new piece of gear. I expected this
parts for use on future projects. Besides, to me to take some time, but after only a couple of searches, I
it was worth the $1 asking price just to satisfy identified the circuit as the popular New England Switched
my curiosity about the function of this strange Capacitor Audio Filter, or NESCAF.
looking device (Figure 1). The NESCAF was designed and built by Bill Siegrist
Once I arrived home, I began perusing the Internet NT1U (a fellow radio operator) and is sold in kit form by
72 March/April 2019
Discovering
the NESCAF By Steve Jackson
How It Started
My latest ham radio adventure began
one afternoon while I was poking
through a box of old electronics at
a neighborhood yard sale. I didn’t
see much of interest and was almost
ready to turn and head for home
when I spotted a mysterious looking
PCB (printed circuit board) with wires
sticking out from all sides. I had no
idea what it was, but since my hobby
is ham radio and I love to tinker with
electronics, I decided to buy it, in hopes
that it would turn out to be something
useful.
the New England QRP (Low Power) Club. NESCAF — as it The Initial Test
turns out — is an audio filter which is designed to connect
between any transceiver and an external speaker or Now that I’d found out what the NESCAF does, it was
headphone. Finding the NESCAF was a stroke of good luck time to connect it and find out if it worked.
for me. Any device which will filter out unwanted signals is I connected the NESCAF’s input to my ICOM 718
a welcome addition to my radio shack. transceiver and the filter’s output to my headphones. I
March/April 2019 73
disconnected the filter and was almost
ready to begin parting it out, when
I decided to take one more listen. I
don’t like to scrap things that are still
functional, and perhaps the hum just
might be something I could fix.
I reconnected the NESCAF, but on
a hunch, I powered it with a battery
instead of the wall wart. As with the
first test, I gradually increased the
volume but surprisingly, the hum had
disappeared. My NESCAF was powered
up and the signal was coming through
Figure 2: Filter schematic. Thanks to Dxing.com for the wall wart information.
as expected.
used a 12 volt wall wart type transformer for the power I adjusted the audio filter’s two potentiometers, turning
supply and I set my transceiver to a frequency on which I them first right and then left, until the signal got a little
knew there would be a signal. My NESCAF was ready for easier to copy. Apparently, when using battery power, the
the test, so after turning on the power, I gradually increased NESCAF works just as it should. The wall wart must have
the volume of the transceiver. been causing the hum by bringing in electrical noise from
NOTE: If you’re new to amateur radio or to audio the house circuit.
devices, be very careful as you test the volume on any unit. Running the filter on battery power works great, but
The gradual loss of hearing I’ve experienced from years of it wasn’t going to be a permanent solution. I’d go broke
loud pops and squeals in my headphones has taught me to replacing the batteries. A wall wart was the obvious choice,
always begin any audio test with the volume control turned but before I could use it, I’d need some type of filter to
down low. keep the outside noise from getting into the NESCAF.
Once you begin the test, you can bring up the volume
very gradually. You’ll be able to enjoy your hobby a lot Building a Transformer Filter
longer if you take good care of your hearing.
It’s a good thing I follow my own rules too, because I I didn’t want to open the wall wart, so I decided to
didn’t have to turn the volume up very high before I could make a small filter. I found a schematic which I thought
hear a steady hum coming through my headphones. No would work. You can see it in Figure 2. I assembled it via
signal at all … just hum. I turned the power off, and once the “dead-bug” method of construction.
again heard the signal. There was no question about it. The If you’re familiar with dead-bug — or ground plane
hum was coming from the filter and not my radio. construction — then you know it’s not pretty, but it does
To be honest, my first reaction on hearing nothing but get the job done. After connecting my homebrew filter,
hum was that the filter must be a dud. After all, I shouldn’t there was no more circuit noise and my NESCAF was
have expected a $1 audio filter found in a used electronics working just as it should. Refer to Figure 3.
bin to actually work. The hum I was hearing was probably While the soldering iron was hot, I decided to change
the reason the previous owner decided to unload the the 4.7K resistor which feeds the power-on indicator LED
NESCAF at a yard sale. to a 1K resistor. With less resistance, the LED shines much
After spending a few minutes feeling like a chump, I brighter than it did with the original circuit.
74 March/April 2019
A Closer Look at the
NESCAF
NESCAFs will work with single-side band
signals, but it’s meant primarily for use with
inexpensive QRP rigs which are mostly built from
kits and which have little or no filtering.
At one time or another, almost every radio
operator has experienced problems with noise in
their audio signal. Radio operators even have an
acronym for noise; they call it QRM. There’s little
doubt that an effective audio filter like the NESCAF
would be a welcome addition to almost any radio
shack.
Most of the commercial audio filters are very
pricy, so at $39 plus postage, the NESCAF provides
a very attractive alternative to more expensive Figure 4: Schematic for the New England switched capacitor audio filter uses
filters. building block construction.
Building the Kit If you’re building a NESCAF from the kit, you
might want to check out this video (the operator’s
The NESCAF kit applies to all levels of builders. While call sign is KD8BBK) at https://www.youtube.
I haven’t built the kit myself, I have closely examined the com/watch?v=gcR25Ho03ug&list=PLedkZGQ_
instructions and the completed circuit. It seems to be in GlprKnp3fDcnBV5eBMnluylnV.
very good order, but I do have some serious reservations The builder walks the viewer step by step, all the way
about whether it really is appropriate for entry-level through to testing. He does a good job, and watching it
builders. could prove helpful to anyone interested in building the
The PCB is closely populated making soldering a NESCAF.
little more difficult, and the building instructions — while
adequate — are sometimes vague and don’t seem
complete enough for a first project.
Building the Enclosure
Also, while I think the only test gear needed is a The NESCAF kit does not include an enclosure, so
multimeter, there are places in the instructions where you’ll have to build your own. Building a project enclosure
reference is made to an oscilloscope and a frequency can often be one of the more satisfying and fun parts of a
counter. project.
Prospective builders would do well to have two or Many of my fellow hams like to use the smallest
three entry level kits under their belts before tackling a possible enclosure for their projects. Not me! Yes, space
project like the NESCAF. can be wasted by using a larger enclosure and sometimes
76 March/April 2019
they can take up precious
bench space, but to me,
the ease of construction Figure 7: My NESCAF ready to be used.
made possible by a larger
enclosure more than
makes up for most of their
drawbacks.
Just remember, it’s no
sin to put your project in a
larger box.
Whenever possible,
I prefer to use materials I
have onhand rather than
make special purchases.
Since my yard sale
NESCAF was already
built when I bought it,
its size and wiring pretty
much dictated the size of
enclosure I needed to use.
Had I gone with a small enclosure, I would have had to
Final Thoughts
rewire my NESCAF, and that is something I most definitely Finding the NESCAF at a yard sale was a great
didn’t want to do. opportunity in many ways; for one thing, I ended up with a
The enclosure I used was an empty Christmas nice audio filter, but even better than that was the chance
tin that was left over from the holiday. These types of it afforded me to learn a little bit about how filters do what
containers make good project enclosures, but they do have they do.
drawbacks. Figuring out what the NESCAF does, learning how
The primary difficulty with them is that they’re often filters work, and finally building an enclosure from junk
made from very thin gauge metal, and thin metal can box parts was a very satisfying experience. My NESCAF
sometimes be difficult to work with. This is especially true project proves something I’ve long thought to be the case:
when it comes to drilling holes. It’s not necessary to have an elaborate work bench and
When I drill holes into thin gauge metal, the first thing expensive test equipment to enjoy the electronics hobby.
I do is reinforce the spot where I’m drilling with a piece of These things are nice, but you can have a lot of fun with
wood; the end of a 2x4 usually works pretty well (Figure just the basic tools. All that’s really needed is a multimeter,
6). a soldering iron, and (most of all) a desire to learn.
I use a metal punch to get the hole started and then Good luck and have fun! NV
use my smallest drill bit to make the pilot hole. Once I’ve
drilled the pilot, I continue drilling with the next size bit
and follow that by stepping up through the sizes until Post comments on this article and find any associated
I reach the right size opening. Make sure your drill bits files and/or downloads at www.nutsvolts.com/magazine/
are sharp. Let the bit do its job. Be careful not to punch issue/2019/03.
through the tin with your bit.
Note: When I made my enclosure, I drilled holes for
the pots on one side and holes for the power and LED on
the opposite side. In hindsight, this wasn’t the best way to
do it. It’s better to locate holes for the power and the LED
on the same side as the potentiometers; perhaps between
the two pots.
Be precise when marking your enclosure and don’t get
in too big a hurry.
Painting the enclosure is pretty straightforward. The
only tip I can offer is to use a primer before applying the
paint — especially if you’re using a brightly colored tin
similar to the one I used.
My completed NESCAF is shown in Figure 7.
March/April 2019 77
Dark Energy
And The
Expanding
Universe By George R. Steber
March/April 2019 81
unstable. Unless the balance between forces is perfect, cosmic expansion caused by the stretching of space-time
the universe either collapses rapidly or blows up! itself.
Cosmologists say the galaxies are not moving
Hubble’s Expanding Universe through space, but rather they are moving in space
because space is also moving. A picture to explain the
Some years after Einstein’s proposal, came expanding universe is to imagine the universe like a loaf
experimental evidence that the universe is not static. In of raisin bread dough, with galaxies being the raisins.
the 1920s while working at the Mt. Wilson Observatory When heated, the bread dough expands, the raisins
with the most advanced technology of the time, Edwin move farther away from each other, but they are still
Hubble showed that some of the numerous distant fixed in the dough. Similarly, all galaxies in the universe
faint clouds of light being observed were actually entire move away from one another because of the expansion
galaxies — much like our own Milky Way. The realization of space in the universe.
that the Milky Way is only one of many galaxies forever
changed the way astronomers viewed our place in the The Universe is Accelerating Its
universe.
Hubble’s greatest discovery came in 1929, when
Expansion
he determined that the farther a galaxy is from Earth, In the early ’90s, cosmologists were fairly certain
the faster it appears to move away. This notion of an about the expansion of the universe. They thought it
expanding universe formed the basis of the Big Bang might have enough energy density to stop its expansion
theory, which states that the universe began with an and collapse or it might have so little that it would
intense burst of energy at a single moment in time — and continue expanding. In either case, gravity was certain
has been expanding ever since. to slow the expansion as time went on. Granted, the
If the universe were static as Einstein wanted, slowing had not been observed, but theoretically it had
Hubble might have found the motion of galaxies to be to slow. After all, the universe is full of matter and the
random with motions in all directions. Instead, he found attractive force of gravity pulls all matter together.
something extraordinary: All the galaxies are moving Then in 1998, Saul Perlmutter and his group
away from us. announced to an astonished crowd at the American
When Hubble plotted the velocity of the galaxies Astronomical Society that they had found evidence that
against their distance, he came across an interesting the separation velocity between galaxies has not been
relationship shown in Figure 3. This is now known as slowing down as expected but, in fact, was speeding up.
Hubble's Law and is interpreted as evidence for an The group used type 1A supernovae as standard candles
expanding universe. The slope of the line, Ho, is the to measure distance and the redshift of their spectra to
Hubble constant. It represents the constant rate of measure their expansion rate. Since looking far out into
space is equivalent to looking back in time, this
procedure allowed the astronomers to probe
the expansion rate at a much earlier time than
Hubble or any other measurement.
So far, there is no precise explanation for
the accelerated expansion. It seems that the
universe is filled with a material of negative
pressure, creating a gravitational repulsion.
The negative pressure material has become
known as dark energy. Assuming the standard
model of cosmology is correct, the best current
measurements indicate that dark energy
contributes 68% of the total energy in the
present-day observable universe.
One possibility for dark energy is the
negative pressure caused by the vacuum itself,
which would be the case if it had a positive
energy density. A vacuum energy density would
be exactly equivalent to what Einstein called a
cosmological constant.
82 March/April 2019
Post comments on this article and find any associated files and/or downloads at
www.nutsvolts.com/magazine/issue/2019/03.
Our intuition rebels at the thought of attributing properties similar qualities to those found in the dark
energy density to a vacuum. However, we should energy of the universe. For this experiment, two large
bear in mind that particle theorists see the vacuum six inch square/single-sided copper boards were utilized
as a complicated state in which “virtual” particles are to act as a parallel plate capacitor and a Keithley model
constantly appearing and disappearing in quantum 616 electrometer for making measurements. The copper
fluctuations. These "virtual pairs" consist of one particle boards were mounted on wooden blocks so that they
with a negative charge and one with a positive charge. could easily slide on a surface and be put close together.
They exist for only a tiny fraction of a second before A photo of these items is shown in Figure 4.
they collide and annihilate each other in a tiny burst of An electrometer is a device for indicating charge or
energy. This energy may be pushing outward on space voltage and is often found in high school and college
itself, causing the universe to accelerate faster. labs. It has certain characteristics which enable reliable
However, much to the consternation of measurement from very high source resistance. When
cosmologists, particle physicists seem to be having used to measure voltage, the input resistance is greater
a problem understanding how the energy density of than 10,000 giga-ohms. As a result, the loading of the
the vacuum could be so amazingly small because it source circuit is relatively insignificant when compared to
contradicts the predictions of quantum field theories. a digital voltmeter having 10 mega-ohms input resistance.
These theories predict vacuum energies that are so large The goal of this demonstration is to show that the
that the universe shouldn't exist at all. This discrepancy is energy inside the capacitor plates has a density that
called the "old" cosmological constant problem. remains constant as the plates are pulled apart and
It’s safe to say that particle physicists are working whose negative pressure has the same magnitude as the
hard to solve this problem. We’ll have more to say about energy density.
this subject in a later section. In any case, it’s now time Refer to Figure 5 for the equipment setup. The
for a demonstration that an expanding space can have a procedure is as follows: First, the plates are brought
constant energy density and negative pressure. close together without touching, with one of the plates
grounded. Next, the other plate is electrified by briefly
Demonstration of Constant touching it to a voltage source; typically 10 volts. This
Energy Density in an Expanding process transfers an amount of charge Q to the plates.
Next, the plates are pulled apart slightly, being
Space careful not to touch them together. The electrometer
now shows an increase in the voltage across the
A large parallel plate capacitor contains within its capacitor — the amount depending on how far the
plates are separated. The increase
in voltage tells us that there is an
increase in the energy stored in the
capacitor. In practice, the voltage
across the capacitor will jump, then
slowly drop due to the loading of the
electrometer. The jump in voltage as
the plates are separated is easily seen.
Energy in the
Capacitor
March/April 2019 83
Figure 5. Schematic of
the experimental setup
for the parallel plate
capacitor with Area A
and separation distance
d. An electrometer is
used to measure the
voltage across the
plates.
84 March/April 2019
Figure 6.
Illustrated here
is the concept
of an alternate
"bubble"
universe in
which our
universe (left)
is not the only
one. Some
scientists think
that bubble
universes
may pop into
existence all
the time, and
occasionally
nudge ours.
Some bubbles
would inflate
wildly, while others would collapse back on
gravity attracting, it repels.
themselves. Our own bubble universe just happens
Astronomical data says that dark energy is positive,
to have the right amount of matter and other
so negative pressure is what is needed for accelerated
variables to endure and foster the creation of stars
expansion. Among the dark energy contenders,
and planets. (Image courtesy of NASA/JPL-Caltech/R. Hurt.)
vacuum energy in the space between galaxies may
meet this condition, provided its density is positive.
Cosmologists say that negative pressure associated which is off by 120 orders of magnitude! Despite this
with dark energy is so large that it overcomes the huge disparity, most cosmologists still consider vacuum
positive (attractive) effect of the energy itself, so the net energy as the most complete scenario to-date. So, it
effect is a push rather than a pull. This results in a net leads the group of dark energy contenders.
repulsive gravitational field in intergalactic space.
The appeal of vacuum energy to cosmology is that Vacuum Energy and the
it could explain why the acceleration has only started
fairly recently on the cosmic timescale. In the early
Multiverse
universe, all the matter was packed much more densely Problems with finding the correct value for the
than today, so there was less space between galaxies. vacuum energy have led to a controversial idea that
Everything was so close together that gravity was the our universe is just a random bubble in an endless,
dominant force, slowing down the acceleration of the bubbling multiverse (see Figure 6) that arises logically
universe that was imparted in the Big Bang. Also, since from nature’s most innocuous feature: empty space. As
there was less space in the universe and the vacuum the hypothesis goes, the seed of the multiverse is the
energy comes from space itself, it played a much smaller inexplicably tiny amount of energy infused in empty
role in the early universe. space — energy known as vacuum energy, dark energy,
The universe has grown much larger in the 13.7 or Einstein’s cosmological constant.
billion years after the Big Bang, so the galaxies are not Nobel laureate Steven Weinberg once said that
packed so close together. Their gravitational pull on each the vacuum ought to be many trillions of times more
other is weakened, allowing the vacuum energy to play a energetic because of all the matter and force fields
more dominant role. coursing through it. So, why is space so empty?
Vacuum energy has its own problems. To match the While we don’t know the answer to this question, the
astronomical data, we require a vacuum energy density extreme vacuity of our vacuum seems necessary for our
of ρ ≈ 10-8 ergs/cm3. Unfortunately, physicists are unable existence.
to reliably calculate the expected vacuum energy in the If the vacuum energy had even slightly more of the
real world or even in some specific field theory such as gravitationally repulsive energy, space would expand too
the Standard Model of particle physics. The best they can quickly for structures like galaxies, planets, or people to
do is to offer order-of-magnitude estimates. form. This fine-tuned situation suggests that there might
Using quantum-mechanical zero-point vacuum be a huge number of universes all with different doses
fluctuations has led to an estimate of ρ ≈ 10112 ergs/cm3 of vacuum energy, and that we happen to inhabit an
March/April 2019 85
Figure 7.
Illustrated
here is the
new theory
of a cyclic
universe.
There is no
big bang,
and cosmic
history
consists of
repeated
cycles. It
eliminates
problems
in current
models but
creates
some of its
own.
extraordinarily low-energy universe because we couldn’t a bounce — not a bang — but the bounce is not the
possibly find ourselves anywhere else. beginning of space or time. Rather, it’s an event with a
This reasoning leads to the anthropic principle: A “before” and an “after” that can be described by the laws
philosophical idea that observations of the universe must of physics.
be compatible with the conscious and sapient life that Steinhardt argues that contraction at the end of a
observes it. It says the universe's ostensible fine-tuning is cycle — rather that eternal expansion — can solve all
the result of selection bias: our observance of only this the problems that the current Big Bang theory poses.
universe, compatible with our life. Only in a universe It smooths out variations and gives rise to large scale
capable of eventually supporting life will there be living uniformity and cosmic structure without any more
beings capable of observing and reflecting on the matter. assumptions.
These arguments depend upon the concept of the The cause of the proposed contraction is not well
multiverse for there to be a statistical population of understood, but neither is the inflation in the Big Bang
universes to select from and from which selection bias model. Steinhardt adds that this bouncing scenario has
could occur. the advantage of not predicting an infinite number of
Many scientists bristle at the tautology of “anthropic universes.
reasoning” and dislike the multiverse for being In this theory, each cycle affects the next. Events that
untestable. Even those open to the multiverse idea would occurred before the last bounce shaped the large-scale
love to have alternative solutions to the cosmological structure of the universe observed today, and the events
constant problem to explore. So far, it has proved nearly that are occurring today will determine the structure of
impossible to solve without a multiverse. the universe in the cycle to come. Perhaps space and
In his last paper, the renowned physicist Stephen time sprang into being many cycles ago, but it is also
Hawking and Thomas Hertog offered an interesting possible that they are literally “endless.”
departure from earlier ideas about the nature of the However, don’t raise your hopes too high, as this
"multiverse." According to the new theory of eternal cyclic universe theory is still in its infancy and there are
inflation, there was a boundary in the past, so time and many problems to solve. Remarkably, however, this new
space had a beginning. The universe that emerged from theory of a cyclic universe is able to match all current
that state is also finite, making it far simpler to deal with astronomical observations with the same accuracy as the
— and test scientifically. If that turns out to be the case, Big Bang picture, and it may explain some aspects of the
it deals a blow to the concept of a multiverse containing universe that the Big Bang picture cannot. Only time will
endless pocket universes. tell if this theory survives.
Another glimmer on the horizon is the emergence
of a new theory of a cyclic universe proposed by Paul We are fortunate to exist in a rare period of time
Steinhardt (Princeton) and collaborators; refer to Figure where competing theories of the universe are being
7. According to this theory, our cosmic history consists thrashed out. This debate may strongly affect the way
of repeating cycles of evolution. Each cycle begins with one views the universe and humanity’s place in it. NV
86 March/April 2019
Printed Circuit Boards Build
Arduino Graphics Interface
e t h i n g
TEENSY Graphics Interface
Mass Measurement
Som
Today
!
Wide Range Pulse Generator
Numitron Clock
Continuity Tester
Pi Scrolling Display Search www.nutsvolts.com for these terms and read the articles.
Search store.nutsvolts.com to find the boards.
Analog Style LED Clock Some are available as complete kits too!
Arduino Graphing
Thermometer Kit Popular Clock Kits
- USB - PWM
- Ethernet - Encoders
- Web server - LCD
- Modbus - Analog inputs
- CNC (Mach3/4) - Compact PLC
- IO
- up to 256 - up to 32
microsteps microsteps
- 50 V / 6 A - 30 V / 2.5 A
- USB configuration
- Isolated
PoScope Mega1+
PoScope Mega50
-up to 50MS/s
-resolution up to 12bit
-Lowest power consumption
-Smallest and lightest
-7 in 1: Oscilloscope, FFT, X/Y, Recorder,
Logic Analyzer, Protocol decoder, Signal
generator
90 March/April 2019
■ BY LOU FRENZEL W5LEF OPEN COMMUNICATION
B y now, you’ve certainly heard of the forthcoming fifth generation (5G) wireless
technology. There’s a tremendous amount of hype about 5G as the various cellular
operators try to pre-sell you on the new benefits and services. Commercial 5G
services won’t go online until later this year, but we should see plenty of 5G action
in 2020. For that reason, you’ll need to know more about 5G to understand what impact it
will make on you and the world in general. Here’s a status report on 5G to bring you up to
speed.
Just what is 5G? some factory automation, self-driving cars, and other
mission-critical uses.
5G is the designation for the next generation of
cell phone service. Also referred to as 5G New Radio
(NR), it is a wireless standard being developed by the
What are some of the specifications
Third Generation Partnership Project (3GPP) which is an and highlights of 5G service?
international organization. This standard is expected to be
adopted throughout the world initially to enhance, then Peak data rates under ideal conditions of up to 10
probably replace the current 4G systems. Gbps. Typical user download experience of 100
The standard is still in the final stages of its Mbps.
development, yet enough is known about the standard Extended network capacity to one million connections
that semiconductor and equipment companies can begin per square kilometer to accommodate more
designing and making chips and systems, and cellular customers and the IoT node masses.
providers can begin implementing the system and services. Latency less than 10 milliseconds (s) and to 1 ms or
The final standard is expected to be ratified sometime in less under ideal conditions.
2020.
What are some of the nitty gritty
What is the purpose of 5G? specifications for wireless nerds?
This new standard is targeting three major areas of
application: Wider bandwidths. The largest channel bandwidth for
Enhanced mobile broadband (eMBB). The goal is to LTE is 20 MHz. 5G can use up to 100 MHz below
bring higher speed data service to cell phones to 6 GHz. In the mmWave (millimeter wave) bands,
enable new things like improved games and high bandwidths of 80, 100, and 400 MHz up to 1 GHz
definition video. max are possible. Wide bandwidth is the secret
Massive Machine Type Communications (mMTC). This ingredient to achieving the high data rates.
refers to technologies like the Internet of Things (IoT). Some form of OFDM modulation. The current
This will extend the usage of the mobile networks to 4G Long Term Evolution (LTE) systems also use
any small sensors for remote monitoring, smart home Orthogonal Frequency Division Modulation. OFDM
uses, industrial automation, smart cities, and similar is made up of multiple subcarriers to handle the data.
applications. LTE uses 15 kHz subcarriers while 5G can use 30,
Ultra-Reliable and Low Latency Communications 60, 120, 240, or 480 subcarriers. Each subcarrier is
(URLLC). Many applications require quicker response modulated by BPSK, QPSK, 16 QAM, 64QAM, or
times from wireless links. These include military, 256QAM.
March/April 2019 91
THE LATEST IN NETWORKING AND WIRELESS TECHNOLOGIES
Post comments on this article and find any associated files and/or downloads at
www.nutsvolts.com/magazine/issue/2019/03.
yy The use of multiple input multiple output (MIMO) features are not just nice add-ons, but ones essential for 5G
and beamforming antenna technologies with phased operation in the mmWave bands.
arrays. (See a separate question on this.) One real challenge is the smartphone front-end. This
yy Higher spectral efficiency. Spectral efficiency refers is the subsystem made up of many filters and switches that
to how fast the data rate can be achieved in a given select the dozens of cellular frequencies. These filters and
bandwidth. 5G provides up to 30 bits per second the related circuits like low noise amplifiers (LNAs) and
per Hz (30b/s/Hz) thanks to the greater bandwidth, power amplifiers (PAs) are harder to make for mmWave
modulation methods, and MIMO. frequencies.
Semiconductor technologies are also making this
What part of the radio spectrum does possible. New materials like silicon-germanium (SiGe),
BiCMOS, gallium arsenide (GaAs), and others are being
5G use? used to implement especially the new cellular equipment.
New faster processors are available to implement the
5G will use a wide range of spectrum. It will operate complex digital modems.
in the cellular bands below 6 GHz and in many higher
frequency millimeter wave bands above 24 GHz. Spectrum
availability varies widely with different countries and within
What will happen to the current 4G LTE
certain areas of the country, and specifically what spectrum systems?
is owned by the various cellular operators who serve the
local markets. Some of the potential new US assignments The 4G systems use a technology known as LTE.
are: It’s amazingly good, and some have argued that we
yy Standard cellular bands below 6 GHz, plus 2.5, 3.5, don’t really need an upgrade. However, you know how
3.7-4.2, 4.9, 5.9 GHz. electronics people are — always inventing something new
yy 24 GHz and 26 GHz. or trying to improve upon current equipment and services.
yy 27.5 to 28.35 GHz. After all, that is where the new sales and profit come from.
yy 37, 39, 42, and 47 GHz. Will 5G really be as good as LTE? We’ll soon see, but
don’t write off LTE yet. It will be around for many years to
The lower cellular bands (600 to 950 MHz, 1.8 to1.9 come and is continuing to improve with newer faster LTE
GHz, and 2.5 GHz) will be “refarmed” to accommodate Advanced and LTE Advanced Pro versions.
the wider bandwidth 5G signals. The new mmWave bands Furthermore, cellular providers are still rolling out
will provide the larger bandwidths that can deliver the new equipment and services like IoT access. What I really
higher speeds and other capabilities. wonder is whether a user will be able to tell any difference
The Federal Communications Commission (FCC) that between an 4G LTE phone and a 5G phone. What if it’s
regulates cellular radio is planning on some forthcoming worse or just on par?
auctions to sell additional mmWave bands to the major
cellular operators.
What will a 5G smartphone be like?
What technologies are being used to It will definitely be larger. It has to contain all the new
5G radio circuits and phased array antennas, as well as the
produce the performance expected of current 4G LTE circuits. 5G will not be available initially
5G? to many parts of the country and world, so you need that
existing LTE technology.
Antenna technology plays a huge role in the new 5G With all that new circuitry, power consumption will be
system; MIMO will be a major feature. It uses multiple higher. That translates into shorter battery life. However,
antennas and transceivers transmitting on the same the larger size may indicate a larger battery to mitigate that
frequency to minimize bandwidth usage. MIMO makes use problem.
of the different wireless paths from transmitter to receiver. A 5G smartphone will also be more expensive because
This improves the reliability of the transmission, as well as of the new parts. Millimeter wave radio ICs and related
boosts the data rate. All those extra antennas and radios parts have higher price tags. My bet is that initially 5G
take up much more space and eat more power. phones will cost more than $1,000, up to about $2,000.
For millimeter wave bands, phased arrays with a matrix The newest smartphones available today have larger
of 8x8 or 16x16 antenna elements will be used not only to folding screens and cost around $2,000. 5G phones
boost signal power to extend the coverage range, but also probably won’t have folding screens. Some 5G phones are
implement beamforming and agile beam steering. Such now available from Samsung and Chinese makers Huawei,
92 March/April 2019
Xiaomi, and Oppo. Apple probably won’t have a 5G or Wi-Fi 6 as it’s called today. It’s super-fast with download
iPhone until late 2020 or so. speeds up to about 10 Gbps, thanks to OFDM and MIMO
like 5G. However, Wi-Fi 6 is a different animal.
What — if any — big changes will be The primary use is in LANs for Internet access. Home
and office routers will get better with Wi-Fi 6. Yes, 5G will
needed in the cell site base stations let you access the Internet through the cellular network,
and coverage network? but it will most likely be more expensive. 5G phones will
probably have a Wi-Fi 6 chip in them to access the Internet
All new equipment and antennas will be required. as we do now.
Instead of one big macro base station like those used
now to cover a specific area, multiple base stations will
be necessary to handle that same area. These so-called
What cellular operators will be offering
small cells are about the size of a loaf of bread and are not 5G service?
unsightly. While a standard macro cell site now covers an
area of several square miles, it will take a dozen small cells All four of the major service providers will be offering
to cover that same area providing full 5G service. some limited service. These are AT&T, Verizon, T-Mobile,
and Sprint. T-Mobile and Sprint are still trying to merge into
Why are so many cells required? a single entity but that hasn’t happened yet.
The initial offering will most likely be broadband
It has to do with the frequencies of operation. The wireless service to access the Internet. This service is
basic physics of radio waves say that the higher frequencies expected to compete with cable, DSL, and fiber. Some
will travel a shorter distance for a given transmitter power. limited 5G service is expected to be offered later in 2019
Low frequency signals will go much farther. That’s why by AT&T and Verizon.
the lower frequency cellular bands are so coveted and
valuable.
Wireless equipment that operates in the UHF and
Will 5G really be a factor in the IoT
microwave bands have reasonable range. That range movement?
will be even shorter as the small cells begin operating in
the mmWave bands above 24 GHz. There will also be That remains to be seen. The 5G standard is supposed
more indoor cells since mmWave signals don’t penetrate to accommodate many more users, and most of the
buildings, trees, and other obstacles as well as the lower cellular carriers would love to offer service to some IoT
cellular frequencies (if at all). Beamforming boosts devices to boot income and profit. AT&T, T-Mobile, and
transmitted power to overcome these problems, but even Verizon already provide some IoT services with LTE using
that has its limitations. the LTE-M and NB-IoT radio modules. That could continue.
A high percentage of IoT applications use only short
How do all those new small cells data packets at very low speeds, so 5G is overkill. Some
IoT applications may adopt 5G but with so many other
connect to form the network? cheaper options, millions won’t.
These cells will all have to link with central points that
will process and route the calls and connections. That link
What new services or applications will
is called backhaul. Most carriers seem to be using fiber 5G permit?
cable where available, but installing new fiber is a costly
and time-consuming process. Some say that virtual reality/augmented reality (VR/
Backhaul is also implemented with point-to-point AR) with their bulky headsets will use 5G. It’s doubtful that
microwave or mmWave radios. Even some DSL lines are 5G will help sell this niche technology. A good possibility
fast enough and may be cheaper and more available than is that 5G will be the wireless connectivity of choice for
fiber. The cable TV companies with their hybrid fiber and automobiles.
coax cable system could be used. It will first appear in advanced driver assistance systems
(ADAS), then in driverless vehicles. The V2V (vehicle-to-
Will 5G eventually kill Wi-Fi? Or vise- vehicle) radios have been proposed and prophesied for
years as a way for vehicles to communicate with one
versa? another to avoid collisions. Even vehicle-to-infrastructure
Probably not. The latest version of Wi-Fi is 802.11ax (V2I) links between cars and roadside units that transmit
March/April 2019 93
THE LATEST IN NETWORKING AND WIRELESS TECHNOLOGIES
weather, road conditions, construction, and other small cells will have to be mounted somewhere on
information have been proposed. buildings, lamp posts, traffic lights, or other available
An older Wi-Fi-like wireless technology called direct structures, and the cities are trying to make money
short-range communications (DSRC) was originally on it. The FCC is trying to expedite this procedure.
planned, but the final choice by the National Highway yy Carrier investment. It will take billions of dollars to
Traffic Safety Administration (NHTSA) is expected to be fully implement 5G. A whole new network has to be
5G. No telling when that will happen. built and deployed. This is expected. The carriers are
already spending big bucks to get 5G going, but all
When will 5G service begin? have financial limits.
yy Limited and enormously expensive spectrum. The US
Most of the service providers say some limited service is way behind China, South Korea, Japan, Europe,
will be available later in 2019. It takes time to roll out full and other countries in formally allocating spectrum.
services, usually years. Remember how long it took 4G The forthcoming auctions will finally see this happen.
LTE? A decade.
Conclusion
What factors are hindering or delaying 5G is well on its way. Development and
5G service? implementation will continue for years, but you will
eventually get it. Do we really need it? Probably not, but
yy Few 5G smartphones are available. we are going to get it anyway.
yy Local municipalities and jurisdictions are delaying, Look at it this way: 5G NR technology will probably
restricting, and over-pricing the attachment policies make you even more addicted to your smartphone than
for mounting 5G small cells. All those required new you are now. That’s a good thing, right? NV
94 March/April 2019
Reader Feedback Continued from page 7
out Nuts & Volts. They should also become acquanited than a clip? I have thought of wiring “nuts” an electrician
with the magazine’s exceptionally qualified editor at www. would use, but I think that won’t work very well as the two
bryanbergeron.com. legs (LED, resistor) won’t twist around each other as easily as
Forrest M. Mims III multi-strand wire (which I believe is what the nuts are usually
used for). Thanks for Nuts & Volts and SERVO Magazine. I also
Well, sir, you do know how to put a smile on a person’s volunteered to be the “programming mentor” for an area high
face. I’m glad you enjoyed the magazine. As you know, you’ve school FRC team, so I’m learning more about the hardware
been a virtual mentor for me since I was in grade school. I side of robotics (roborio, limelight, etc.)
saved my quarters to buy your little notebooks at RadioShack Tom Harron
and spent my time in the library reading your introductory What a great way to teach electronics! And yikes! Third
classic on electronics. I learned to read (seriously) by studying graders. I’ve extended components with male wire jumpers;
your articles in Scientific American, Popular Science, and the the jumpers sold for use with breadboards. Makes it easy to
rest. I know the other authors as well as the publisher and install a component onto a breadboard or an Arduino.
production staff value your opinion just as highly. Also, you can color-code the leads (e.g., red for anode).
Bryan Bergeron The easiest connectors I’ve used for little hands are based on
magnets on each end of a component that is terminated in a
Teaching Tactics magnet or magnetic wire. But that gets expensive fast. Thanks
I had to smile while reading Bryan Bergeron’s editorial in for the note and good luck!
the Jan-Feb issue. I teach an annual 4H “Fun with Electronics” Bryan Bergeron
class to kids from 5 to 15 years old (in separate groups). Just
the basics with a couple AA batteries, resistors, motors, wires, Charged Up
clips, LED, CdS, etc. I use alligator clips for 3rd grade and Thanks for publishing the interesting story of early
below. They are very tricky for the little kids and frustrating electricity! Very enjoyable! It reinforces my thoughts that one
— it slows down the class when 20% of them don’t have the of the educational tragedies is that most of the way history
dexterity to handle the small components (and I’m scurrying is taught is from a political view when most politicians were
around). With the older kids (using solder), I usually have one simply reacting to the changes in technology of their time. Yet
or two kids with a little burn (I bring a cooler with ice cubes). much of the history of technology is never taught or is buried
Your article was a perfect reminder for me to take a step back or lost.
and reconsider my plans! In 1997, I became aware of the book, Theory And
By the way, I find alligator clips to be a pain — it’s a very Calculation Of Alternating Current Phenomena (1897), by
loose connection — with say the leg of an LED and the leg Charles Proteus Steinmetz and Ernst Julius Berg. Since my
of a resistor. Can you recommend some other solution other class had just finished a course in AC theory and calculations
I had a copy of his 100 year old text shipped to our library.
Students were amazed that they could read and understand
THE OWNERSHIP, MANAGEMENT, AND CIRCULATION STATEMENT OF NUTS & his writing and the AC math.
VOLTS MAGAZINE, Publication Number: 1528-9885 is now published bi-monthly,
effective with the May-June 2018 issue. Subscription price is $26.95. 7. The In the article on radio waves, Heavyside was credited with
complete mailing address of known office of Publication is T&L Publications, Inc., using complex numbers in the analysis of AC circuits.
2279 Eagle Glen Pkwy, #112-481, Corona, Riverside County, CA 92883. Contact Did Heavyside and Steinmetz know each other? Was
Person: Larry Lemieux. Telephone: (951) 371-8497. 8. Complete Mailing address
of Headquarters or General Business Office of Publisher is T&L Publications, Inc., Heavyside extending what Steinmetz had started? My
2279 Eagle Glen Pkwy, #112-481, Corona, CA 92883. 9. The names and addresses impression was that Steinmetz was the first to use complex
of the Publisher, and Associate Publisher are: Publisher, Larry Lemieux, 2279 Eagle numbers for AC analysis but most discoveries did have many
Glen Pkwy, #112-481, Corona, CA 92883; Associate Publisher, Robin Lemieux,
2279 Eagle Glen Pkwy, #112-481, Corona, CA 92883. The names and addresses working on the problems as the current article shows.
of stockholders holding one percent or more of the total amount of stock are: John George Shaiffer
Lemieux, 2279 Eagle Glen Pkwy, #112-481, Corona, CA 928839; Lawrence Lemieux, Instructor Electronics Technology PPCC (ret)
2279 Eagle Glen Pkwy, #112-481, Corona, CA 92883; Audrey Lemieux, 2279 Eagle
Glen Pkwy, #112-481, Corona, CA 92883. 11. Known Bondholders, Mortgagees,
and other security holders: None. 12. Tax Status: Has not changed during preceding
12 months. 13. Publication Title: Nuts and Volts 14. Issue Date for Circulation Typo Fix
Data: October 2017-September 2018. 15. The average number of copies of each
issue during the proceeding twelve months is: A) Total number of copies printed RE: Jan-Feb 2019 issue/pg 38: I read the RF Freq Counter
(net press run); 20,838 B) Paid/Requested Circulation (1) Mailed Outside County Buffer article with great interest and would like to build one
subscriptions: 13,278 (2) Mailed In-County subscriptions: 0 (3) Paid Distribution once I get my electronics workshop set up after a recent
Outside the Mail including Sales through dealers and carriers, street vendor, and
counter sales and other paid distribution outside USPS: 3,817 (4) Paid Distribution move.
by other classes of mail through the USPS: 0; C) Total Paid Distribution: 17,095; D) There is one possible error in the description, however.
Free or Nominal Rate Distribution by mail and outside the mail (1) Free or Nominal Page 3 describes the circuit protection provided by D3/C4.
Rate Outside-County Copies: 0 (2) Free or Nominal Rate In-County Copies: 0 (3)
Free or Nominal Rate Copies Mailed at other classes through the USPS: 0 (4) Free Per the schematic in Figure 2, I think it should read D2/C4.
or Nominal Rate Distribution Outside the mail: 542; E) Total Free or Nominal Rate Am I missing something?
Distribution: 542; F) Total Distribution: 17,637; G) Copies not distributed: 3,189 H. Wintcher
H) Total: 20,825; Percent paid circulation: 96.93%. Actual number of copies of the
single issue published nearest the filing date is September-October 2018; A) Total WA0RGG
number of copies printed (net press run) 27,330; B) Paid/Requested Circulation (1)
Mailed Outside County subscriptions: 17,790 (2) Mailed In-County subscriptions: Yes. The text should read D2/C4.
0 (3) Paid Distribution Outside the Mail including Sales through dealers and carriers,
street vendor, and counter sales and other paid distribution outside USPS: 5,434 Dwayne Kincaid
(4) Paid Distribution by other classes of mail through the USPS: 0; C) Total Paid
Distribution: 23,224; D) Free or Nominal Rate Distribution by mail and outside
the mail (1) Free or Nominal Rate Outside-County Copies: 0 (2) Free or Nominal
Rate In-County Copies: 0 (3) Free or Nominal Rate Copies Mailed at other classes Kudos
through the USPS: 0 (4) Free or Nominal Rate Distribution Outside the mail: 500; As co-founder of Cepheid and a huge nerd, let me extend
E) Total Free or Nominal Rate Distribution: 500; F) Total Distribution: 23,724; G) my most sincere congratulations on Bryan Bergeron’s open-
Copies not distributed: 3,606; H) Total: 27,330; Percent paid circulation: 97.89%. I
certify that these statements are correct and complete. Lawrence Lemieux, Publisher source PCR thermocycler! Bravo!!!!!
- 03/01/2019. Greg Kovacs
March/April 2019 95
TECHFORUM READER - TO - READER
by Oregon Scientific for use as The Arduino could capture raw and need to vary the pitch slightly to
weather station sensors. I would like transmissions and send the data to match the tuning of my instrument.
to use them for a data acquisition and your PC’s terminal software via a We used to do this easily with vinyl by
monitoring application. Does anyone USB virtual serial port. Then, you varying the speed of the turntable.
know what frequency and mode could look at the raw information and
they operate on and how I might use decide what it means and how to use #1 I would be surprised. CD
them to send data to a PC to record it. players are designed to KEEP their
seasonal trends? Would I need a Oregon Scientific has published speed. I would convert the song to
microcontroller to interpret the output information about its communication one of the usual audio file formats
or could it be read directly by the PC protocol and you can find here: (mp3, wav) and run it on a computer
and then logged and displayed using wmrx00.sourceforge.net/Arduino/ with the free Audacity tool. That
software such as MakerPlot? OregonScientific-RF-Protocols.pdf. lets you change the speed and even
The SourceForge project has other allows you to keep the pitch! (Effect
Oregon Scientific registered information and code that might help -> Change Tempo; Effect -> Change
with the Federal Communications you: wmrx00.sourceforge.net. Speed). I use Audacity constantly.
Commission (FCC) to use 433.93 Jon Titus Werner G
MHz as the frequency for its units Herriman, UT via email
YPGSL109, YPG SL109, YPG-SL109,
YPG-SL1O9, YPG-SLI09, and YPG- [#11188 - Nov/Dec 2018] #2 CD players for the professional/
5L109. For only a few dollars, you can Tuning The Music DJ market have variable pitch built in.
buy small transceiver modules for the Is there a way to vary the speed Erik von Seggern
Arduino family of microcontrollers of a music CD player? I play my Escondido, CA
(MCUs) and others. instruments along with the recordings
(408)748-9600
ITAR I SO 9001:2008 UL Approved
Bring Your Pi to Work!
MCC 118
Analog Input
• 8 channels
• 100 kS/s
• 12-bit resolution
MCC 152
Analog Output
• 2 channels
• 8 DIO
www.mccdaq.com/DAQ-HAT