Silicon Chip June 2017 p28-53
Silicon Chip June 2017 p28-53
Inductance/Capacitance Meter
Do you ever need to check or confirm the values of inductors or
capacitors? This Arduino-based LC meter will give you a digital
readout and can even measure parasitic inductance or
capacitance present in a circuit. It’s much more
accurate than most DMM-based LC meters.
M
any digital multimeters most any passive component quickly Essentially it’s an improved version
(DMMs) have capacitance and automatically, often measuring of the PIC-based Digital LC Meter we
ranges but they are not nor- not just their primary parameter (like described in the May 2008 issue of
mally accurate for values below about inductance or capacitance) but one or SILICON CHIP. This time, we’re basing
50pF. And those few DMMs that can more secondary parameters as well. it around an Arduino Uno or equiva-
measure inductance are often not very However, many of these you-beaut lent module.
good at measuring inductance in the instruments also carry a hefty price
range of 1-100H – those that are typ- tag, keeping them well out of reach Main features
ically used in audio and RF circuits. for many of us. Our new Digital LC Meter is com-
An inductance meter with a 10H Fortunately, thanks to microcon- pact and easy to build, since the Ar-
resolution (typical for DMMs) isn’t troller technology, much more afford- duino board comes pre-assembled. It
very helpful if you want to wind a able digital instruments are becoming also has a better LCD readout than the
choke of say 6.8H, for an amplifier available. These include both commer- previous version. It fits snugly inside
output filter. cial and DIY instruments like the low- a UB3 utility box and you should be
Professionals tend to rely on digital cost unit described here. able to build it for under $100.
LCR meters for these types of measure- It offers automatic digital measure-
ments. They allow you to measure al- By JIM ROWE ment of both inductance (L) and ca-
S1
The meter’s impressive performance Cx/Lx
S1
C2
Cx/Lx
relies on an ingenious measurement RLY1
100k 47k
100k 47k
technique developed almost 20 years C1 RLY1 TO AND
C1 TO AND
FROM
ago by the late Neil Heckt in the USA. C 1 0F FROMO
ARDUIN
It uses a wide-range test oscillator 1 0F ARDUIN O
and its frequency is varied by con-
necting the unknown inductance or CAL
CAL
capacitance you’re measuring. The re- L
C/L
sulting change in frequency is meas- C/L
ured by the microcontroller and used
to calculate the component’s value, HOW IT WORKS: THE EQUATIONS
which is displayed directly on a small (A) In calibration mode (B) In measurement mode
LCD panel. 1 (5) When Cx is connected: F3 = ————————
1
(1) With just L1 and C1: F1 = ——————
To achieve reliable oscillation over 2. L1.C1 2. L1.(C1+Cx)
a wide frequency range, the test oscil- 1
so Cx = C1 ( F1
2
—– –1 )
(2) With C2 added to C1: F2 = ————————
lator is based on an analog compara- 2. L1.(C1+C2) F3 2
tor with positive feedback around it, (3) From (1) and (2), we can find C1: (6) Or when Lx is connected:
as shown in Fig.1. This configuration C1 = C2
F2
· —————
2
F3 = ———————
1
has a natural inclination to oscillate, 2
(F1 – F2 )
2
2. (L1+Lx).C1
because of the very high gain between
( F1 )
2
(4) Also from (1) and (2), we can find L1: so Lx = L1 . —– –1
the comparator’s input and output. 1
2
F3
L1 = —————
When power (+5V) is first applied, 4.2 F12 .C1 NOTE: F2 & F3 should always be lower than F1
the comparator’s positive input is held
at +3.3V by the divider formed by the negative resistance across the tuned When power is first applied to the
two 100kΩ resistors and the 100kΩ and circuit, to cancel its losses and main- circuit, the microcontroller measures
4.7kΩ resistors. Initially, the voltage tain oscillation. Once this oscillation this frequency (F1) and stores it in
at the negative input is zero because is established, a square wave of the memory. It then energises reed relay
the 10µF capacitor at this input needs same frequency is present at the com- RLY1, which switches capacitor C2
time to charge via the 47kΩ resistor. parator’s output and it is this frequen- in parallel with C1 and thus lowers
So with its positive input much cy (FOUT) that is measured by the mi- the oscillator frequency. The micro
more positive than the negative input, crocontroller. then measures and stores this new
the comparator initially switches its In practice, before anything else is frequency (F2).
output high, to near +5V. connected to the circuit, FOUT, will Next, the micro uses these two fre-
Once it does so, the 10μF capacitor simply correspond to the resonant fre- quencies plus the known value of C2
connected to the negative input begins quency of the tuned circuit compris- to accurately calculate the values of
charging up via the 47kΩ resistor and ing L1, C1 and any stray inductance both C1 and L1. The equations it uses
the voltage at this input rises. As soon and capacitance that may be associ- to do this are shown in Fig.1. Follow-
as it goes above +3.3V, the comparator ated with them. ing these calculations, the micro turns
output switches low and the positive
input is brought to 1.67V due to the
100kΩ feedback resistor pulling the
Features & specifications
100kΩ divider low. Inductance range: ........................... 10nH
to 100mH+
The low comparator output voltage Capacitance range: ......................... 0.1p
F to 2.7µF+ (non-polarised only)
is also coupled through the 10µF input Measurement resolution: ............... five
capacitor to the tuned circuit formed digits in either mode
by inductor L1 and capacitor C1. This Range selection: ............................. auto
matic
makes the tuned circuit “ring” at its Sampling rate: ................................ appr
oximately one measurement per seco
resonant frequency. Accuracy (when calibrated): ........... ±1% nd
As a result, the comparator and the of reading, ±0.1pF or ±10nH
Supply voltage: ............................... 5V
tuned circuit now function as an os- DC @ <65mA (including backlit LCD)
cillator at that resonant frequency. In Supply type: ................................... USB
charger or the USB port on a PC
effect, the comparator functions as a
Fig.2: complete circuit of the LC Meter. The oscillator circuitry is as LCD WITH I C SERIAL BACKPACK
2
GND
shown in Fig.1; most of the remaining work is done by the Arduino
module. The result is displayed on a serial (I2C) LCD while VCC
additional switches and a link are provided for calibration SDA 16 x 2 LCD
and zeroing of the Meter. SCL
Diode D1 protects the IO3
pin which drives the reed +5V +5V SET ZERO
relay from back-EMF
spikes when the relay 100nF 100k 4.7k
S2
switches off.
100k
ADC1
ADC 5/SCL
ADC 4/SDA
ADC2
+3.3V
ADC3
GND
GND
ADC0
+5V
RESET
+5V
DC VOLTS
VIN
INPUT
1 0F 8
2 5
IC1 6
7 6 5
TANT
ACTIVE 3 LM311
LM 3 11 GND RST ARDUINO UNO,
UNO ,
L1 100 H 1 4 3
4 FREETRONICS ELEVEN,
ELEVEN , USB TYPE B
MOSI SCK MICRO
2 1 DUINOTECH CLASSIC,
CLASSIC , ETC
Cx/Lx S1 100k
+5V MISO
ICSP
1nF 1%
IO 11/MOSI
1nF 1%
IO 12/MISO
GND
IO 13/SCK
IO 9/PWM
IO 6/PWM
IO 3/PWM
IO 4/PWM
IO 5/PWM
IO 2/PWM
10F 47k
IO 0/RXD
IO 10/SS
IO 1/TXD
(C1) (C2)
TANT
AREF
GND
SDA
6.8k
IO8
SCL
IO7
C
C/L
Fout
NUDGE
1, 14 2 READING CONNECT TO PC
CAL
L RLY1 K INCR S3 CALIBRATE TO PROGRAM
JAYCAR ARDUINO , OR TO
D1 5V/1A PLUGPACK
SY-4030 1N4148
DECR LK1
(5V/10mA) TO RUN SWEEPER
A LK1 SHOULD BE OUT FOR NORMAL OPERATION,
7, 8 6
IN ONLY FOR CALIBRATING METER VIA S3
1N4148
SC
20 1 7 ARDUINO - BASED DIGITAL LC METER A K
GND
VCC
SDA
SCL
SDA A GND D12 D10 D8 D6 D4 D2 D0
100nF 100nF MOUNTED ON THE
position, or alternatively decrease the SCL REF D13 D11 D9 D7 D5 D3 D1
UNDERSIDE
reading by the same amount if S3 is
5V
5V
pushed to the lower “DECR” position. SCL
6.8k
100k
4.7k
SDA
So the idea is to push S3 in one di- VCC
+ ICSP
(C2) 1nF
rection or the other until the reading GND 10 F
(FIT LK1 JUMPER
ONLY FOR
is correct. IC1
CALIBRATION)
NOTE: PIN HEADER LM 311
RLY1 SY4030
Each time a change is made, the ad-
C1
GND
C/L
STRIPS TO CONNECT
4148
justment factor is stored in the Ardui- SHIELD TO ARDUINO 100k IO6/INCR
MOUNTED ON THE 47k + GND
no’s EEPROM memory, so it’s remem-
10 F
UNDERSIDE 100k IO4/DECR
bered for future sessions. When link
GND
GND
LK1 is not fitted, pressing S3 in either 3mm
LED
560R
POWER
direction has no effect at all.
RESET
REF RST 5V GND A0 A2 A4
Construction L C
There is no custom PCB used for the
LC meter’s circuitry; instead, most of
the added circuitry is fitted on a proto-
type shield board which simply plugs
into the top of the Arduino PCB. TEST
There aren’t that many components TERMINAL
BINDING
involved, so it’s a straightforward job POSTS
to wire it up as shown in the wiring
diagram, Fig.3.
The only components which are not
mounted on the ProtoShield are the se-
rial LCD module, switches S1-S3, the
test terminal binding posts and refer-
Fig.3: follow these diagrams to fit the components to the ProtoShield and
ence components L1 and C1. also to wire up all the external connections. Connections made between
As shown in Fig.3 and the photos, component pads on the underside are shown below, significantly larger
these are all mounted on the lid of the than the 1:1 diagram above, for clarity. These should be made with
UB3 box, which forms the meter’s front insulated wire to avoid short circuits.
panel. These off-board components are
all linked to the ProtoShield board via
short multi-wire interconnection leads 0D 2D 4D 6D 8D 0 1D 2 1D D N G A AD S
and SIL connector plugs and sockets, 1D 3D 5D 7D 9D 1 1D 3 1D FER L CS Fn 0 0 1
V5
DNG
BINDING POSTS
9mm LONG
UNTAPPED NYLON S1
SPACERS 16x2 LCD MODULE
S2 L1 S3
M3 NYLON
HEX NUTS
I 2C SERIAL INTERFACE
MODULE
Fig.4: this shows how everything fits together inside the UB3 “Jiffy” box. The Arduino module is attached to the bottom
of the case with the proto-board hosting most of the remaining circuitry plugged on top. The three switches, two binding
posts and the I2C LCD module are mounted on the lid and connected to the ProtoShield via flying leads.
32 Silicon Chip siliconchip.com.au
Parts list – Arduino-
based LC Meter
1 Arduino Uno R3, Duinotech Classic,
Freetronics Eleven or equivalent
microcontroller module
1 Serial I2C 16x2 LCD module with
back-lighting (SILICON CHIP online
shop Cat SC4198)
1 Arduino Uno Prototyping Shield
(eg, Freetronics SH-Proto-Basic)
1 UB3 “Jiffy” box, 130 x 68 x 44mm
1 laser-cut clear acrylic lid for UB3
box [optional but recommended]
(SILICON CHIP online shop Cat
SC4274)
The Freetronics Eleven (Uno equivalent) board, mounted in the bottom of the 4 self-adhesive rubber feet
case (see drilling template on pages 35 and 36).
1 5V/10mA DIL reed relay
(RLY1; Jaycar SY4030)
all of these holes are shown in Fig.5, the box lid using a sharp hobby knife. 1 100µH axial RF inductor
the drilling template, while the cor- Or, for longest life and an even more (L1; Jaycar LF1534)
responding information for the holes professional finish, consider fitting the 1 DPDT subminiature slide switch (S1;
to be drilled and cut in the lid/front label to the underside of the lid – it’s Jaycar SS0821)
panel are shown in Fig.6. more fiddly to fit but doesn’t require 1 panel-mount SPST NO momentary
For best results, start the larger holes laminating, nor double-sided tape to pushbutton switch (S2; SP0710)
with a smaller pilot drill and enlarge hold it in place (the switches and ter- 1 panel-mount SPDT on-off-on
with a stepped drill bit, series of larg- minals hold it in position; a very light momentary rocker switch
er drill bits or a tapered reamer. Rec- mist of clear spray adhesive will also (S3; Jaycar SK0987)
tangular or other non-round holes can ensure it stays tight against the lid). 1 8-pin DIL IC socket
be made by drilling a series of holes, Perhaps it’s gilding the lily some- 1 40-pin header, 2.54mm pitch
knocking out the centre section and what but if you can print the label onto 1 40-pin right-angle header, 2.54mm
then filing the hole to shape. clear film, you can see the “works” pitch
We fixed four self-adhesive rubber through the label, as we did with the 1 150mm socket-to-socket jumper
feet to the underside of the box to pro- photo on page 28. ribbon cable (Jaycar WC6026)
tect any surface it’s placed on. Just make sure you get the right film 1 jumper shunt
Making all the required holes in the to suit your type of printer (eg, laser 2 binding posts with integral banana
lid is rather tedious as there are twelve, printer or inkjet printer, etc). socket (1 red, 1 black)
including three rectangular cut-outs Once the lid/front panel is finished, 4 9mm Nylon untapped spacers, 3mm
and two holes with flat edges. fit switches S1-S3 to it, along with the inner diameter
To save time and guarantee a neat two test terminal binding posts and the 4 15mm M3 machine screws
result, you can purchase a laser-cut serial LCD module. 8 M3 Nylon hex nuts
clear acrylic lid (which replaces the lid Slide switch S1 attaches to the front 4 9mm pan head M2.5 machine
supplied with the box) from the SILI- centre of the lid via two 6mm long screws
CON CHIP online shop (see parts list). M2 machine screws, while switch S2 4 M2.5 hex nuts
As the acrylic panel is transparent mounts using the spring washer and 2 6mm M2 machine screws (for S1)
the lid doesn’t need a cut-out to view nut supplied with it and S3 simply Semiconductors
the LCD. Note that since the 3mm pushes into its rectangular mounting 1 LM311 DIP high-speed comparator
acrylic is slightly thicker than the lid hole until its two barbs spring out- (IC1; Jaycar ZL3311)
supplied with the UB3 box, depending wards to hold it in place. 1 1N4148 small signal diode (D1)
on the length of the screws that came Just make sure that you fit it with
with it, you may need to use slightly the “=” sign on its rocker actuator up- Capacitors
longer self-tapping screws to attach it. permost (see photos). 2 10µF 16V through-hole tantalum
We have also prepared artwork for The two binding posts are mount- 1 100nF multilayer ceramic
the front panel, to give it a professional ed using the mounting nuts and lock 2 1nF 1% NP0 ceramic, mica, MKT,
look. You can download this as a PDF washers provided. polypropylene or polystyrene
file from the SILICON CHIP website. Take care doing so, however, as the (SILICON CHIP online shop Cat
There are two ways to go here: after upper and lower mounting bushes SC4273)
you print it, it can be hot laminated, have D-shaped sections which should Resistors (all 0.25W, 1%, through-
then attach it to the box lid using dou- mate with the matching holes in the hole mounting)
ble-sided adhesive tape or spray glue. lid/front panel. 3 100kΩ 1 47kΩ 1 6.8kΩ 1 4.7kΩ
After that, you can cut out the holes The serial LCD module mounts un-
in the front panel to match those in der the lid in the top centre position,
siliconchip.com.au June 2017 33
The underside of the lid, showing the LCD
module, I2C module, the three switches and two
terminals attached.
using four 15mm long M3 machine ble for the LCD, you can just plug it
screws passing down through four in at both ends.
9mm long untapped Nylon spacers In each case, make sure each wire
and fastened using four Nylon M3 nuts goes to the correct pin as with indi-
(under the module PCB). In contrast, the lead which connects vidual sockets, it’s easy to get them
With the LCD module in position, to the serial LCD module has a four- out of order.
your front panel assembly is ready way SIL header socket at each end, Having made up all the required
to be wired up and provided with its while the lead to connect zero/reset leads, complete the LC Meter assem-
various leads to connect to the Pro- switch S2 (although of only two wires) bly with the following steps:
toShield board. ends in a four-way SIL header socket, 1. Mount the Arduino module inside
Refer back to Fig.3 and the internal with the wires connecting only to the the bottom of the box using four
photo, following them carefully to pins on each end. 9mm M2.5 screws and nuts, using
make the correct connections between The two pins in the centre of the four Nylon M3 nuts as spacers.
S1, the test terminal binding posts and socket can be either cut short or pulled 2. Plug the LC Meter ProtoShield into
L1 and C1 in particular. out, since they are not used. the Arduino, making sure you have
Note that the leads of L1 and C1 Rather than using SIL sockets like all four SIL pin headers lined up
should be kept as short as possible, to we did on the prototype, we suggest correctly.
keep stray capacitance low (and sta- you simply split a 40-way ribbon 3. Holding the front panel assembly
ble). You can then make up the vari- jumper cable with individual “Du- close to the top of the box and ori-
ous short leads which will connect Pont” sockets on each wire. entated correctly, plug the various
the front panel components to the Pro- This makes the job really easy; you connection leads into their match-
toShield board. simply pull off the required number of ing pin headers on the ProtoShield.
Note that the lead which connects wires and then cut the cable to length Be especially careful to get the cor-
S1, L1, C1 and the test terminals to the and strip the free end, to solder to the rect connections between the Pro-
ProtoShield ends in a three-way SIL switch or connector. toShield and the LCD module, as
header socket, as does the lead from S3. You don’t even need to cut the ca- shown in Fig.3.
4. Lower the lid assembly down into to suit different operating systems: If you’re using a Freetronics Elev-
the box and fix it into place. Windows (32-bit or 64-bit), macOS en module, you can download the
5. Program the Arduino, as described and Linux (32-bit, 64-bit and ARM). appropriate driver from their website
below. After the IDE has been installed, (www.freetronics.com.au). All of their
download our firmware sketch for the drivers are zipped up in a file called
Uploading the firmware LC Meter from the SILICON CHIP website “FreetronicsUSBDrivers_V2.2.zip”,
In order to do this, you need to have (www.siliconchip.com.au). It’s called and there’s also a document which
the Arduino IDE installed on your PC. “Arduino_LC_meter_sketch.ino”. explains how to install it.
The latest version of the IDE can Now plug your LC Meter into one Once the USB driver has been in-
always be downloaded from the Ar- of your PC’s USB ports, using a suit- stalled and your operating system con-
duino website (www.arduino.cc/en/ able USB cable (usually with a Type firms that it can communicate with the
Main/Software). A plug on one end, and a micro Type Arduino in your LC Meter, use Control
At the time of writing, the latest B plug on the other). You may need to Panel to find out which COM port the
version is V1.8.2, dated 22/03/2017. install the correct USB VCP driver for Meter’s Arduino has been allocated (eg,
There are various versions available it if this is not already installed. COM5, COM7, or whatever).
CL
29 A
B HOLES A: 2.5mm DIAMETER
A HOLE B: 12mm DIAMETER
CUTOUT
10 FOR
C 65 x 16mm
S3
CL
Fig.6: you can either drill and 4.5 A A
cut the twelve cut-outs required S2
11.5 9.5 9.5
in the lid supplied with the B B
13 x 20mm
INDUCTANCE CAPACITANCE
DECR
(ONLY WHEN
LK1 FITTED)
Lx Cx
SILICON
OR
www.siliconchip.com.au
Fig.7: same-size front panel artwork designed to fit a UB3 Jiffy Box. It will also
fit the laser-cut acrylic front panel from the SILICON CHIP online store. This,
along with the two cutting/drilling diagrams, can also be downloaded (as a PDF)
from www.siliconchip.com.au
simulating and
testing circuits
SPICE is a powerful tool which allows you to use a computer to simulate
how a simple or complex circuit will behave without actually having to
build it. This allows you to experiment with different configurations and
examine the internal operation of a circuit before building it, saving you
time and effort.
Fig.1: how the LTspice window looks just after creating a blank simulation. The toolbar at top has been blown up to
show the important buttons, which are (from left-to-right) Wire, Ground, Label Net, Resistor, Capacitor, Inductor,
Diode, Component, Move, Drag, Undo, Redo, Rotate, Mirror, Text and Spice Directive.
but you are now ready to start drawing in square brackets). Scroll to the right Having read that, right-click on the
your circuit. First though, it’s best to and click on “voltage”, then “OK” (or V1 element you have placed and then
give it a name. Select “Save As” under just double-click “voltage”). click Advanced. You can now select
the “File” menu, type in “tutorial1” Click somewhere in the blank circuit SINE from the list on the left, and
and press Enter. to place your first voltage source. This enter 0V for DC offset, 325V for
Chances are that it will say that you will be simply shown as a circle with Amplitude (this is the peak value; not
don’t have permission to save the file positive and negative symbols inside, RMS), 50Hz for the frequency and
into the “C:\Program Files” directory corresponding to the two output ter- leave the rest blank.
and it will ask if you want to save it in minals. Note that a voltage source will Units in these values are optional,
the User folder instead. That’s a good always take the same form, whether it however, for clarity it’s usually best to
idea, so say Yes and then press Enter is intended to produce AC or DC. include them.
again to save your file. Now right click your mouse or press Click OK and the circuit updates to
We’ll now draw up a simple mains escape, since we only want one volt- include these parameters. Now click
power supply circuit. But first, let’s age source for now. on the Ground button in the toolbar
look at the toolbar at the top of the This is one of the most fundamen- and place a ground symbol directly
window. This is important since you tal parts of a circuit to simulate; the below the "negative" end of your volt-
will be using these buttons a lot. The voltage source can generate AC, DC, age source.
description of each icon in the tool- both AC and DC or a function such as You need to define 0V somewhere
bar is under “Toolbar Icons” at the top a sinewave or pulse train and is used in the circuit if you want to simulate it
right of the next page. to feed other components in the cir- and this (effectively, the incoming Neu-
You’ll find that you will need to cuit. Voltage sources can be combined tral line), is as good as anywhere. As
use nearly all these icons when draw- in various ways. before, right-click your mouse or press
ing up the circuit you want to simu- escape to stop placing components.
late. We’re going to start by creating a Voltage source mode setting Now use the Wire tool (left-
source of 230VAC. There are three different kinds of most on the section of the toolbar
Click on the Component button voltage sources and we need to use the described above) to draw a wire
(which looks like a logic gate). You right one to simulate 230VAC mains; between the negative end of the voltage
will then be presented with a list of refer to the panel titled “Simulation source and the ground symbol. Click
components and folders (which are Types” for an explanation. at one end, then the other, then right-
click or press escape to stop drawing wave is nowhere near as clean as this following instructions, refer to Fig.4
wires. Note that if at any point you but it’s a good start! to see how the finished circuit looks.
make a mistake, you can press F9 or Note the text reading “V(nc_01)” at Let’s start by adding a capacitor con-
click the Undo button on the toolbar the top. This indicates that the green nected to the 230VAC “positive” ter-
to revert to the previous state. trace is showing the voltage at the node minal (effectively mains Active). Click
Now we can run the simulation for labelled “nc_01” which is a name au- somewhere inside the circuit diagram,
the first time. Select the “Run” option tomatically generated for this part of then click the Capacitor button in the
under the “Simulate” menu. As this is the circuit, as we have not provided toolbar and place the capacitor above
the first time, you will need to set up our own name yet. the voltage source. Right-click the
the simulation conditions, using the Hold down the CTRL key on your capacitor to set its Capacitance value
dialog which appears (see Fig.2). keyboard and click on this label. to 470nF. Set the voltage rating to 400V
“Transient” is the default simu- You will get a dialog box showing (peak) at the same time and the RMS
lation mode (tab) selected so all information about the “trace” in- Current Rating to 250mA.
you need to do is enter a Stop Time cluding the start and end times, the Use a similar process to add a resis-
(let’s use 100ms) and then click OK. average (which is very close to zero, tor to the right of that capacitor and
A SPICE Directive automatically as it should be) and the RMS val- set its value to “10Meg”. Note that one
appears on the circuit, which reads ue which is just under 230VAC; of the traps when using SPICE is that
“.tran 100ms”, and you will find a black exactly what we wanted. You can now “10M” would be interpreted as “10m”
box appears at the top half of the screen, dismiss this dialog. (ie, 10 milliohms) so you need to write
with the circuit shrinking below. By the way, if you want to change it with “Meg” on the end. You can set
This is our virtual scope dis- the parameters later, you can right- the tolerance to 5% and power rating
play. Move your mouse cursor click on the “.tran” directive to to 1W at the same time.
down to hover just over the little re-open the simulation dialog. Now use the Wire tool to wire the two
square box at the positive end of the components up in parallel and connect
voltage source in the circuit diagram Building the circuitry the common bottom end to the voltage
below and the mouse cursor should Note that if you already know how source. Add a second resistor, in series
change to look like a probe. Click to build a circuit in LTspice, you can with the capacitor/resistor combina-
there and you should get a display download the tutorial1.asc file from tion, and set its value to 470 (ohms),
like Fig.3. the Silicon Chip website and skip to tolerance to 5% and power rating to 1W.
This shows our simulated mains the next cross-heading. The next step is to add two diodes
voltage. Of course, the real mains sine- If you find yourself confused by the to form a half-wave rectifier. Click
Parameter stepping
Now we consider whether changing
the value of C1 will affect efficiency. It
will because if the value is too high, D3
will shunt more of the current coupled
Fig.8: parameter stepping is a valuable method for optimising component values. through it, effectively wasting power
Here we can see how varying the value of C1 between 220nF and 470nF affects whereas if the value of C1 is too low,
circuit operation. You can also use this method to vary the simulated ambient
the voltage across D3 will not rise to
temperature or to see how component tolerance affects circuit operation.
the desired value of ~15V.
What we really want to do to
C1 and the second time, it will erase figure simply by assuming that C1 is figure out the ideal value is look at the
all the other traces except for that plot. initially a short circuit and doing the effect of changing the value of C1 with
If you zoom into the first few milli- calculation 325V ÷ 470W = 0.7A. This everything else the same. We can
seconds you can see that the peak cur- suggests that whatever we do to reduce do this by stepping its capacitance
rent is around 700mA but this drops the value of R2 is inevitably going to through different values. To do this,
very rapidly, to just a few milliamps af- increase the inrush current but the click on the SPICE Directive (“op”)
ter 1ms or so (see Fig.7). In retrospect, simulation shows that this is really button in the toolbar and then type
we could have calculated the 700mA very brief as C1 rapidly charges up. in “.step param CV list 220nF 330nF
+$10.00 P&P
00
Exclusive to:
SILICON Order now from www.siliconchip.com.au/Shop/3 or call
(02) 9939 3295 and quote your credit card number.
CHIP
siliconchip.com.au June 2017 45
SERVICEMAN'S LOG
Fixing the food processor that wouldn't Dave Thompson*
I’m not sure whether it is Sunspots, Murphy’s Items Covered This Month
Law or just plain bad luck, but it appears • A Serviceman’s kitchen
there is a conspiracy among our household • Brownout protection for a TV
appliances to all fail around the same time. • TEAC HDR PVR
Sitting among those appliances that fail is one *Dave Thompson runs PC Anytime
of our food processors which is only a few years in Christchurch, NZ.
Website: www.pcanytime.co.nz
old. Email: [email protected]
Last month it was the vacuum clean- road; not impossible, as demonstrated plastic lid then clamps securely onto
er. Then a fan heater decided to stop by many car-crazy middle-eastern the glass bowl and sitting on that lid
fanning and heating. Even my own YouTubers, but for the rest of us it is is a chrome-and-black plastic housing
computer has been increasingly throw- definitely pretty tough. which contains the motor and drive
ing up those cloying “your PC has en- Now our brand-new dishwasher, assembly.
countered a problem so we have shut purchased when we renovated the This spins a centrally-mounted twin
it down” screens. kitchen nine months ago, has started blade system down through a hole in
Between crashes, it often displays making odd noises and during the last the lid via a splined drive shaft. This
weird on-screen artefacts, such as col- few nights, the LED display has been machine is so powerful, you could
oured blocks of pixels and very thick randomly flickering between showing stuff the bowl full of ice cubes and
black lines appearing randomly. As I all 8's or nothing, to the time remain- with a few short bursts of the motor,
write this article, it is as if someone is ing and back again. turn them into slush.
trying to redact what I am writing in I can hurry things up with a light The four curved and razor-sharp
real time. Maybe the CIA really can tap on the door, so it looks as if some- blades make small work of anything
hack into our homes via our smart thing is not quite making contact some- in the bowl, and while Mrs Service-
fridges (or is it ASIO?)! Hmm, we don't where in the electronics behind the man and I aren’t great foodies (or cooks
have a smart fridge... door panel. for that matter), when the urge takes
Obviously, the computer has a prob- That’ll mean a trip to the repair us, we like to have decent tools with
lem and I suspect my graphics card’s agent; I have to resist the temptation which to do the job.
VRAM is faulty, though this is a wasted to go searching for the fault myself. For The problem with this thing was
diagnosis because I can’t actually do starters, I haven’t the room to pull it to that it no longer powered up. There
anything about it except replace the bits in my workshop and besides, Mrs is no obvious on/off switch; instead,
card anyway. I’m not about to start Serviceman wouldn’t be too keen on it has an interesting push-switch
stripping memory chips off the thing me voiding the warranty! arrangement. On the very top of the
and replacing them. motor housing is a black plastic cap
Considering that it cost a small for- The curse takes another victim that activates a switch when pushed
tune and was the single most expen- Now to top it off, one of our food with the palm of one’s hand.
sive component in this system, I’m not processors has decided it wants to However, for (I assume) safety rea-
that happy it has decided to fail just stop processing. This appliance is sons, there is another switch activated
outside of warranty. I would expect one of the better and most-used of when the whole assembly is pushed
more than 16 months out of a high-end our kitchen tools so having it give up against the lid of the bowl. This way,
graphics card, but that’s how it often is a bit of a curse, as it is a few years the motor will only run when sig-
goes with high-performance hardware. old now and I’m reasonably sure they nificant pressure is put on the whole
The irony is that I haven’t had time don’t make them any longer, so we motor assembly and both switches
to play the games I originally obtained can’t just go out and buy another one are pushed.
it for as I am too busy doing far more (which is I’m sure what the manufac- It sounds more awkward than it
mundane things, such as renovating turer intended). Then I remembered; really is; in use, it is quite natural to
workshops, which is proving surpris- I’m a serviceman! This shouldn’t be a push down to start operation. It also
ingly difficult to do whilst actually problem for the likes of me! makes sense because the motor part
working out of them. This particular mixer has a solid of the appliance isn’t held down by
It’s a bit like changing the tyre on Pyrex glass mixing bowl forming the anything other than the operator’s
your car while driving it down the bottom half of the appliance. A tough hand pressure.
ualiEco
Circuits Pty Ltd.
SAVE $150
controlled for precise control of thermal
performance. 60W Power.
• Backlit LCD displays NOW
• Temperature range: 160 - 480°C
• 215(W) x 225(L) x 155(H)mm
$
199
SAVE $150
TS-1574 ORRP $349
Includes DVR, 1TB HDD, mains power adaptor and mouse. 2-IN-1 HANDHELD
SAVE $150 SCOPE & MULTIMETER
• Dropbox cloud storage
• Motion trigger recording All the functions of a 4,000 count True RMS CAT III
digital multimeter and a 10MHz oscilloscope. Includes
• 300(W) x 227(D) x 53(H)mm
USB interface and PC logging software.
QV-3149 WAS $749
• Autoranging, AC/DC voltage (1000V),
current (20A) NOW
NOW NOW
$
129 $
139
SAVE 25% SAVE $60 SAVE $60
SAVE loop recording, emergency file lock, time and date display. AM-4114 ORRP $149 AF-1213 WAS $189
• 4.3" colour LCD
$110
• MicroSD card required (up to 32GB)
QV-3860 ORRP $199
Catalogue Sale 24 May - 23 June, 2017 To order phone 1800 022 888 or visit www.jaycar.com.au