Apr24 Int Opt
Apr24 Int Opt
Electronics
The UK’s premier electronics and computing maker magazine
Circuit Surgery Teach-In 2024 Audio Out
LTspice 24 update and Digital input and output with Designing
Frequency Response Analysis the ESP32 SoC microcontroller discrete buffers
Teach-In 2024
Learn to use Silicon Chirp
the ESP32 Build your own
pet cricket
PLUS!
Techno Talk – Wait! What? Really? Apr 2024 £5.99
04
Cool Beans – Arduino: expanding the 7-segment display
Net Work – Label printers, smart home devices and SMRs 9 772632 573030
Key Features
• Up to two I3C interface (12.5 MHz, 1.0–3.6V operation)
• I2C, SPI and UART communication interfaces
• Up to two multiple voltage domains
Electronics Contents
Projects and Circuits
Basic RF Signal Generator by Charles Kosina 16
Our AM/FM/DDS Signal Generator design from May 2023 is a great piece of test
equipment, but overkill for many tasks. If you only need a basic test signal from 10Hz
to 25MHz, then this Generator is just right – compact and cheap to build.
Automated Test Bench by Richard Palmer 24
his ‘Swiss r y ni e’ rovides test voltages signals varies a resistance switches
a component in/out of circuit and even measures some voltages. It uses automation
so tware testing auto atically and records in ut and out ut values or analysis.
Silicon Chirp by John Clarke 34
his et cricket will kee you co any it only needs to e ed occasionally and won’t
run away. ee it or yoursel or lay a rank on a a ily e er or riend y hiding it
in their roo . hen they switch the lights o they will get a it o a sur rise
The Wireless for the Warrior books are a the introduction of VHF FM and
source of reference for the history and hermetically sealed equipment.
development of radio communication
equipment used by the British Army Volume 3 covers army receivers from
from the very early days of wireless up 1932 to the late 1960s. The book not
to the 1960s. only describes receivers specifically
designed for the British Army, but also
The books are very detailed and include the Royal Navy and RAF. Also covered:
circuit diagrams, technical specifications special receivers, direction finding
and alignment data, technical receivers, Canadian and Australian
development history, complete station Army receivers, commercial receivers
lists and vehicle fitting instructions. adopted by the Army, and Army Welfare
broadcast receivers.
Volume 1 and Volume 2 cover
transmitters and transceivers used Volume 4 covers clandestine, agent or ‘spy’
between 1932-1948. An era that starts radio equipment, sets which were used by
with positive steps taken to formulate special forces, partisans, resistance, ‘stay
and develop a new series of wireless sets behind’ organisations, Australian Coast
that offered great improvements over Watchers and the diplomatic service. Plus,
obsolete World War I pattern equipment. selected associated power sources, RDF and
The other end of this timeframe saw intercept receivers, bugs and radar beacons.
01202 087631
Circuit Surgery MitchElectronics KickStart Circuit Surgery MitchElectronics Audio Out Circuit Surgery MitchElectronics Audio Out Circuit Surgery Teach-In 2024 Audio Out Circuit Surgery Teach-In 2024 Audio Out
Frequency shifting and A brand new series on electronics Legacy logic Mixing and tuning in the Our new series on electronics Discrete op amp Demodulation in the Our new series on electronics Designing LTspice 17.1 and Frequency A new series on learning electronics Designing LTspice 24 update and Digital input and output with Designing
superheterodyne receivers basics for beginners revisited superheterodyne receiver basics for beginners: using the 555 update superheterodyne receiver basics for beginners: op amps discrete buffers Response Analysis with the ESP32 SoC microcontroller discrete buffers Frequency Response Analysis the ESP32 SoC microcontroller discrete buffers
Advanc
Development
Board ‘Swiss Army Knife’
WIN! ed SM Building the Active
WIN!
D Test Basic RF Automated Test Bench
Microchip Microchip
Tweeze Mains Soft Starter
PIC24F LCD and
Check quality factor PIC-IoT WA
Superb Active Signal
USB Curiosity Development rs
Development
with our Q Meter
Board
Subwoofer Generator WIN!
W
MitchElectronics Board
WIN!
Teach-In 2024 Microchip
Explorer 8
New learning series! MitchElectronics Superb Active Learn to use the ESP32
Development
Kit
WIN!
Discover Astable and New learning series! Subwoofer
Monostable circuits MitchElectronics
555/4017 circuits New learning series! Teach-In 2024
Op amps Advanced SMD Learn to use Silicon Chirp
and sensors Test Tweeze the ESP32 Build your own
rs
Display Adaptor pet cricket
for Breadboards PLUS!
PLUS! PLUS! PLUS! PLUS!
Dec 2023 £5.99 Jan 2024 £5.99 Feb 2024 £5.99 Mar 2024 £5.99 Techno Talk – Wait! What? Really? Apr 2024 £5.99
Techno Talk – Good grief! Is that the time? 12
Techno Talk – Oscillating onions, Batman!? 01
Techno Talk – Cheeky chiplets 02
Techno Talk – The Wibbly-Wobbly World of Quantum 03 04
Cool Beans – Arduino buzzers, ‘musical’ notes and LDRs Cool Beans – Arduino: switching with transistors Cool Beans – Arduino: ultrasound adventures Cool Beans – Arduino: expanding breadboard designs Cool Beans – Arduino: expanding the 7-segment display
Net Work – Low-power UPS systems for electronics 9 772632 573030
Net Work – Celebrating the magnificent UK mains plug! 9 772632 573030
Net Work – Cheap and cheerful workshop tools 9 772632 573030
Net Work – Cookies, privacy and online advertising 9 772632 573030 Net Work – Label printers, smart home devices and SMRs 9 772632 573030
www.electronpublishing.com @practicalelec practicalelectronics www.electronpublishing.com @practicalelec practicalelectronics www.electronpublishing.com @practicalelec practicalelectronics www.electronpublishing.com @practicalelec practicalelectronics www.electronpublishing.com @practicalelec practicalelectronics
Take out a one-year subscription and save more than £10 over the year.
Even better – save over £1 per issue if you subscribe for two years – a total saving of £26.
Electronics
Rest of the World £46.99 (Airmail)
1 Year: UK £59.99, Europe £69.99 (Airmail),
Rest of the World £84.99 (Airmail)
Subscriptions start with the next available issue. We accept Card Ex. Date ......................................
MasterCard or Visa.
Name ............................................................................................
(For past issues see the Back Issues page.)
Address ........................................................................................
9 771030 266001
$1150* NZ $1290
05
INC GST
INC GST
Australia’s
International Airsho
All the newest tech
in Avalon Airpor
w
t
• Combined subscriptions include both the printed magazine and online access.
Wideband
• i es a e i st alia lla s ( D) less t e ise s e ifie Fuel Mixture Display;
• Prices listed are for everywhere in the world except Australia and New Zealand. April to June 2023
View siliconchip.com.au/Shop/SubRates for a full list of current prices.
• Price estimates are just that and should only be used as a guide, we primarily
take payment in the form of Australian dollars.
Silicon Chirp;
April 2023
Try our Online Subscription – now with PDF downloads!
An online issue is perfect for those who don’t want too much Advanced SMD
clutter around the house and is the same price worldwide. Test Tweezers;
Issues can be viewed online, or downloaded as a PDF. February & March 2023
Electronics Editorial
Editorial offices
Practical Electronics Tel 01273 777619 Welcome to the future
Electron Publishing Limited Mob 07973 518682
1 Buckingham Road Fax 01202 843233
Brighton Email [email protected] As every electronics hobbyist will undoubtedly agree, nothing
East Sussex BN1 3RA Web www.electronpublishing.com quite beats the thrill and satisfaction of powering up a newly-
Advertisement offices
built project, and – fingers crossed – witnessing our latest
Practical Electronics Adverts Tel 01273 777619 endeavours bursting into operation for the very first time. In years
1 Buckingham Road Mob 07973 518682 gone by, this initial ‘power-up’ might have taken the form of a
Brighton Email [email protected]
East Sussex BN1 3RA crackle or thump on a loudspeaker, the glow of vacuum tubes,
a switch-on ‘kick’ on a moving-coil meter needle or the blink of
Editor Matt Pulzer
General Manager Louisa Pulzer
a red LED showing a promising sign of life. Sometimes though,
Digital subscriptions Stewart Kearn Tel 01202 880299 despite all the efforts we diligently invest in assembling our latest
Online Editor Alan Winstanley
Web Systems Kris Thain
project, our toils might not go entirely to plan; instead of enjoying
Publisher Matt Pulzer a triumphant power-up, we might instead see some ‘magic smoke’
escaping from an errant component or two, or, disappointingly,
Print subscriptions
Practical Electronics Subscriptions
nothing at all happening. The principles of fault-finding and
PO Box 6337 debugging will challenge our detective skills and are an integral
Bournemouth BH1 9EH Tel 01202 087631 part of our wonderful hobby, and it’s immensely satisfying
United Kingdom Email [email protected]
to overcome any teething problems and finally see our work
Technical enquiries springing into life as we’d initially anticipated.
We regret technical enquiries cannot be answered over the
telephone. We are unable to offer any advice on the use, purchase,
re air or odification o co ercial e ui ent or the incor oration I sometimes wonder what our predecessors would make of
or odification o designs u lished in the aga ine. e cannot today’s state of the art. Powering up our latest projects might
provide data or answer queries on articles or projects that are
ore than five years old. see us greeted with a ‘Hello world’ exclamation on a liquid
crystal display, or the boot-up menu of a crisp and clear OLED
Questions about articles or projects should be sent to the editor
by email: [email protected]
alphanumeric read-out, just before it proceeds to connect to the
Internet. That’s the marvellous thing about our hobby: there’s
Projects and circuits always something new and exciting coming along to pique our
All reasonable precautions are taken to ensure that the advice and
data given to readers is reliable. We cannot, however, guarantee interest and challenge our constructional skills. Our workbench
it and we cannot accept legal responsibility for it. is a place where we can escape to and keep our brain busy for a
A number of projects and circuits published in Practical Electronics
time, while an increasingly noisy and uncertain world runs its
employ voltages that can be lethal. You should not build, test, course outside.
modify or renovate any item of mains-powered equipment unless
you fully understand the safety aspects involved and you use an
RCD (GFCI) adaptor. Here at Practical Electronics we do try to move with the times by
bringing you modern projects that will supply the enjoyment and
Component supplies satisfaction that we know our readers have a thirst for. We try to
We do not supply electronic components or kits for building the
projects featured, these can be supplied by advertisers. We cater for all levels, though, including our excellent educational
advise readers to check that all parts are still available before features such as Circuit Surgery and Teach-In, instructional
commencing any project in a back-dated issue.
material of the highest quality that you won’t find anywhere else.
Advertisements One thing’s for sure, our forebears would blink in total disbelief at
Although the proprietors and staff of Practical Electronics take what we can now achieve using just a handful of miniscule parts
reasonable precautions to protect the interests of readers by
ensuring as ar as ractica le that advertise ents are ona fide and some very clever coding. Over to you, readers – welcome to
the magazine and its publishers cannot give any undertakings this month’s Practical Electronics.
in respect of statements or claims made by advertisers, whether
these advertisements are printed as part of the magazine, or in
inserts. The Publishers regret that under no circumstances will
the magazine accept liability for non-receipt of goods ordered, or
for late delivery, or for faults in manufacture.
Matt Pulzer
Publisher
Transmitters/bugs/telephone equipment
We advise readers that certain items of radio transmitting and
telephone equipment which may be advertised in our pages
cannot be legally used in the UK. Readers should check the law
e ore uying any trans itting or tele hone e ui ent as a fine
confiscation o e ui ent and or i rison ent can result ro
illegal use or ownership. The laws vary from country to country;
readers should check local laws.
I first read Ready Player One deep in the mists of time we used to call 2011 (which is now 13
years ago – give me strength!). At that time, the technology depicted in this tale was the stuff of
science fiction, but we are getting closer day-by-day.
W
hen the combination of And then there’s augmented virtu- Apple Vision Pro. (It’s tempting to
artificial intelligence (AI) and ality (AV) in which a predominantly speculate that Henry David Thoreau
mixed reality (MR) comes to virtual environment is augmented with was channeling the future when he
fruition, it will change the way we in- real-world objects or people. Because proclaimed, ‘Surely the apple is the
terface with our systems, the world, all this is a bit of a mouthful, we use noblest of fruits.’)
and each other. the term mixed reality (MR) to embrace When people are first exposed to
AR, DR, VR and AV. Don’t get me started Vision Pro publicity shots, they of-
Keep it real! on hyper reality (HR), but feel free to ten assume that this device features
As John Lennon famously noted, search for ‘Hyper Reality’ on YouTube. a transparent visor because it looks
‘Reality leaves a lot to the imagina- like you can see the wearer’s eyes.
tion.’ In fact, there are multiple flavors More cheese, Gromit? In reality (no pun intended), the vi-
of reality. At one end of the reality spec- I was first exposed to VR in the form of sor is opaque. This feature – which
trum we have the real world, which military systems 20+ years ago. At that is called EyeSight – starts with a 3D
we might call ‘physical reality’ (PR). time, I thought a consumer-level ex- facial scan of the person wearing the
At the other end we have virtual real- perience of any significance was years headset. In addition to other tasks,
ity (VR) in which everything we see is away in my future. So, you can only four eye-tracking cameras inside the
computer generated. imagine my surprise and delight when headset are used to control where the
Most people these days are familiar the Oculus Rift VR headset launched virtual eyes are looking on the out-
with the term augmented reality (AR). in 2016. Suffice it to say I was at the ward-facing display.
Many believe this to involve only a front of the queue for one of those bo- I would love to own a Vision Pro,
visual view of the real world super- dacious beauties. but it’s way outside my price range.
imposed with text or graphics. More Of course, being tethered to a large A Quest 3 headset costs around £400
generally, and quoting myself, we computer and having to use external in the UK. By comparison, a Vision
might say that AR refers to ‘an interac- sensors was a bit of a downer, which Pro will lighten your wallet by a hefty
tive experience in which objects that is why I traded my Oculus Rift for an £3,500 give-or-take (Eeek!).
reside in the real world are enhanced Oculus Quest (now Meta Quest) VR
by computer-generated perceptual in- headset as soon as it came out in 2019. Wait! What? Really?
formation, sometimes across multiple More recently, I splashed the cash for a It’s probably fair to say that most people
sensory modalities, including visual, Meta Quest 3 MR headset, which was might be a tad embarrassed to be out and
auditory, haptic, somatosensory [relat- released in October 2023. This little about – perambulating through town or
ing to a sensation such as pressure or scamp is sitting on my desk singing its strolling round a supermarket, for ex-
warmth], and olfactory.’ siren song as I pen these words. ample – sporting a Quest 3 or Vision Pro
The conceptual opposite to AR is di- There are myriad mixed reality ap- style headset. Having said this, no one
minished reality (DR), which involves plications available for the Quest 3. would care if everyone else was doing
diminishing or removing information One of my favorites involves Wallace the same thing. Hopefully, it won’t be
or stimuli from the real world. One and Gromit. Assume you are standing long before we have display technolo-
example would be if you were at a in the middle of your family room. The gies like those being developed by Kura
cocktail party and your DR-enabled headset has forward-looking colour cam- (www.kura.tech), which look like reg-
system faded down all the voices ex- eras whose video streams are presented ular glasses but sport 50,000,000 MR
cept that of the person with whom on the displays that reside in front of pixels per eye.
you are conversing. Another would your eyes. As a result, you see the same I have just seen something else
be to change most of your view of the thing you would if you took the head- that has me quivering in excitement.
world into grayscale, leaving only the set off… apart from the virtual electric This comes to us from Zinn Labs
portion of interest in colour. Think toaster in front of you and the virtual (www.zinnlabs.com). It’s a set of glass-
of a Where’s Waldo image. It would jam-dispensing, steampunk-looking gun es frames (no lenses) equipped with a
be a lot easier to spot the little rascal in your hand. When a slice of toast is forward-looking camera that sees what
if he was the only portion of the pic- ejected from your toaster, you attempt you see and eye trackers that can de-
ture in colour. Similarly, if you were to hit it with a blob of jam fired from termine what you are looking at. If you
looking for your friends in an environ- your gun. If you miss, the jam carries visit Zinn’s website, you can see these
ment containing thousands of other on its trajectory until it hits (and sticks glasses connected wirelessly to ChatGPT.
people – like an open-air concert, for to) the ceiling or wall. Brilliant! All you do is look at something, ask a
example – it would be advantageous question about it, and let the ChatGPT-
if your AI+AR+DR headset present- The noblest of fruits generated answer tickle your lugholes.
ed everything but your friends in The current state-of-the-art in con- I’ve said it before, and I’ll say it again
black-and-white. sumer MR is the recently introduced – the future is closer than we think!
Microchip
Win a Microchip
Explorer 8
Development Kit
Free-to-enter
competition
Microchip
DM160228
I
t’s now second nature for electronics is the model M220 which has a wider
hobbyists to source materials, tools, print head and larger battery.
components or printed circuit boards These labellers have a street price of
directly from China, and websites such about £45 ($55) but Temu was offering
as AliExpress, Banggood and Temu them for just £11 ($13), and four extra rolls
are falling over themselves to attract of labels cost about the same. Thus, their
our business. These websites sell a thermal labeller with refills would come
myriad of products, and they push in at about £25 ($30) delivered which,
heavy discounts or ‘new user benefits’ unlike AliExpress, included sales taxes
in order to hook new customers. It’s no with no hidden extras. Was this too good
secret that these Chinese super-sites to be true? There was only one way to find
are slugging it out for trade, and after out, and a smooth PayPal transaction was
several months of being bombarded by quickly completed in a few mouse-clicks.
their pop-up adverts, I finally buckled
and decided to try the newcomer Temu Testing Temu
website for the first time. Six days later my first Temu order arrived
Printing QR codes using the M110 labeller.
Temu’s online store is very slick and in England all present and correct, in
quite overpowering, but what caught the usual kind of barcoded polybag. The bit counterintuitive, but I managed to
my eye was an introductory ‘first time rounded design of the M110 printer takes muddle through.
customer’ offer on a thermal label maker, up little space, and mine was moulded in This way of working will be fine for
specifically the Phomemo-brand M110 blue ABS sporting a large logo ‘window’ printing labels on the go or in awkward
handheld Bluetooth printer. I’ve had my that looks like some sort of display screen locations, but I eventually realised that
eye on such a machine for quite a while, (it isn’t). There’s a two-colour 20mm the makers had made a strange omission:
because they are handy self-contained OLED status display, which is small but although the spec. sheet states Bluetooth,
rechargeable devices that can print, crystal-clear in operation. The printer Android and iOS compatibility, not
among other things, barcodes, QR codes contains a 1200mAh lithium battery mentioned anywhere was the fact that,
and labels for identifying cables. They which is charged through a USB-C port as I later discovered, printer drivers for
will also print die-cut or continuous and, as per the current trend, you provide 32-bit and 64-bit Windows and macOS are
labels on small rolls. Although the makers your own 5V mains charger. downloadable from the maker’s website,
call it a ‘business’ printer, it’s the sort of Labels are designed with the free Print along with free label creation software.
thing that can soon find uses in the home Master app for iOS or Android. Pairing There is also a Linux driver. Having
and workshop, and various coloured the Bluetooth printer was trouble free, installed the latest Windows driver and
and transparent labels, either diecut or and after loading the supplied roll of free ‘Labelife’ software on my PC I was
continuous, are sold too. Also available labels I was printing labels within a soon downloading labels to the printer
minute or two. The resolution quality via a USB-C cable. The printer firmware
was very good, and I was surprised by can also be updated that way. Using the
the comprehensive labelling software desktop software, the required label size
options provided: apart from plain text, can be chosen from the Templates menu
it will print QR codes, EAN and UPC and then text, images, QR codes and so
barcodes, as well as tables, monochrome on can be added. Designs can be saved
images and icons. In fact, it goes even to disk for future use.
further by offering OCR text capturing
and voice recognition, which worked Cable label capable
very well. Label content can be dragged Confusingly, the makers describe direct
around or resized, and a print history is thermal labels as ‘paper’ but the 40 x
stored to allow future reprints. 30mm diecut labels supplied are made
Initially, I found that designing of polymer film, which is resistant to
labels was better done on a tablet than tearing, abrasion, chemicals and water.
a smartphone. Either way, calling up They are good quality labels with semi-
(tap, swipe, double tap … etc) the text permanent adhesive, and they can be
editor window to make changes was hit peeled off again without leaving a residue.
The M110 by Phomemo is a self- and miss, frustratingly so at times, and The adhesive is not freezer-proof though
contained Bluetooth and USB thermal the text input field had a low contrast (as my frozen pies will testify).
labeller that prints on both polymer diecut and occupied a tiny area on my phone Cable identification labels made from
and paper labels. and tablet screens. The software was a the same plastic material are available
[email protected]
01256 812812
Terrington
Components
• Project boxes designed and manufactured in the UK.
• Many of our enclosures used on former Maplin projects.
• Unique designs and sizes, including square, long and deep
variaaons of our screwed lid enclosures.
• Sub-miniature sizes down to 23mm x 16mm, ideal for
IoT devices.
MADE IN BRITAIN
Sysblocks
www.flowcode.co.uk
Basic RF
Signal
Generator
My AM/FM/DDS Signal Generator design
(May 2023) is a very convenient piece of test
equipment, but it’s overkill for many tasks. If you
only need a basic test signal from 10Hz to 25MHz,
then this Generator is just right – it’s compact, BY CHARLES KOSINA
cheap to build and doesn’t involve many parts.
T
his design came about OLED screen as in my other designs, As for the low end, the Q Meter
because my Q Meter (PE, January and the frequency is changed by a needs a minimum frequency of
2024) needs a 100kHz to 25MHz rotary encoder with a built-in push- 100kHz, but the module can go as low
signal at close to 0dBm to function. button switch. as 1Hz. I decided that 10Hz was a rea-
Many constructors may already have IC1 updates the display over a two- sonable lower limit, spanning the full
a suitable signal generator, such as wire I2C bus with the usual 4.7k range of useful audio frequencies.
my design from PE, May 2023. Still, pull-up resistors. The rotary encoder The resolution of the signal genera-
I decided to create a simpler version terminals are pulled up by 4.7k resis- tor is 1Hz; pressing the pushbutton on
that does the job with minimal com- tors, with 100nF and 470nF debounc- the encoder toggles through step sizes
ponents and at a lower cost. ing capacitors. The differing time con- of 1Hz, 10Hz, 100Hz, 1kHz, 10kHz,
A DDS design is the most sensi- stants make it easier for the micro to 100kHz and 1MHz. On power-up, the
ble option, and the Analog Devices detect the encoder rotation reliably. default step size is 1MHz.
AD9834 is a good DDS chip, but it costs The Generator could run from any CON4 is a standard Atmel six-pin
£15 plus delivery. It makes far more standard 5V plugpack, but as the cur- ICSP header that allows you to pro-
sense to purchase a ready-made mod- rent drain is not high, I decided to use gram IC1 in-circuit if fitted. There’s
ule, which costs less and comes with two AA cells and a switch-mode boost also an optional serial debug inter-
most of the necessary parts already converter to generate 4.4V DC. This face at CON3; if you aren’t using that,
assembled onto a PCB. boost converter is the same MCP1661 you can leave off MOSFET Q1 and its
There are a variety of suitable DDS or MP1541 chip used in my LC Meter 1k pull-up resistor. However, CON3
modules available on AliExpress and (PE, November 2023). should be fitted as it is also used to
eBay – see the parts list at the end of Why 4.4V instead of 5V? The result- trigger calibration when S2 is closed
the article for sugestions. ing current consumption is lower, or its pins 1 and 3 are shorted.
Using a module like this takes a lot extending battery life. The AA cells
of the hard work out of the design. should operate down to 1V each Output frequency response
By itself, the module will not do before the up-converter drops out. Once the firmware was working, I
anything; it requires the power and This voltage is set by the ratio of the plotted the output level against fre-
control signals through the 10-pin 330k and 120k resistors to the quency, shown as the red trace in Fig.2;
header. It only took me a little while feedback (FB) pin of REG1, which is two problems are apparent. The output
to design a control module for it. This maintained at 1.25V. was about -11dBm, which is too low,
has a microcontroller with a small Since 1.25V × ([330k ÷ 120k ] + and it falls off rapidly above 18MHz.
display to show the frequency and a 1) = 4.4V, the voltage at the cathode of The output level is set by one resis-
knob to set it. I kept the same display D1 will increase until it reaches 4.4V, tor, R2, which is 6.8k on the supplied
and appearance as the Q Meter, the then REG1 will adjust its duty cycle to module. By changing this to 1.2k ,
earlier Signal Generator and associ- maintain that. The switch interrupting the output increased to near 0dBm
ated projects. power from the battery to REG1 (S1) is over the flat part of the range, shown
onboard, making construction easier. in green in Fig.2. The resistor on the
Circuit details The AD9834 module is powered and module is an M1608/0603 size SMD
The resulting circuit is shown in Fig.1. controlled by IC1 via 10-pin header type, but a larger M2012/0805 size
Microcontroller IC1 is a 28-pin DIP CON1. It has an onboard 75MHz oscil- resistor will also fit.
ATmega168 or ATmega328. Speed is lator, so the maximum output fre- I measured the output power three
not critical, so I am using the internal quency (the Nyquist limit) is half that, ways, and they did not quite agree.
8MHz RC clock source; no external ie, 37.5MHz. But it is best to operate The most reliable method is to measure
crystal is needed. The display is the it lower than that, so I chose a maxi- the peak-to-peak voltage on an oscil-
same SSD1306-based 128×64 pixel mum of 25MHz. loscope with an accurate 50 RF load
(how I plotted Fig.2). The other meth- gave values between 1dBm and 4dBm your needs, no further modifications
ods used the tinySA spectrum analy- lower. This still leaves the problem are needed. However, I decided that
ser and the Analog Devices AD8318 of frequencies above 18MHz having a it was worthwhile to improve the fre-
power meter. Those two methods reduced level. If this is sufficient for quency response.
Fig.2: the output frequency response of the Signal Generator with the original resistor R2 (red) and new value (green).
top, press down with the iron, and, on the shaft encoder, it may operate Final assembly
when it’s hot enough, slide it off the backwards. If that is the case, then Attach the control board to the trans-
pad. That should remove all but a simply plug a jumper on the program- parent lid by two screws on opposite
very thin layer of solder. Clean up the ming header between pin 4 and pin corners with 12mm-long M3 tapped
flux residue with some flux cleaner or 6 of CON4. If you haven’t fitted the spacers, into the countersunk holes
pure alcohol and a lint-free cloth or header, you can do it now or solder a you made earlier.
cotton bud. short component lead off-cut between The AD9834 module attaches to the
You can then install all the new com- those pins. bottom of the case with M2/M2.5 ×
ponents: L4 = 820nH, L5 = 1.8μH, L6 The firmware reads the level on dig- 12mm countersunk (CSK) screws and
= 1.5μH, C7 = 33pF and C9 = 30pF. ital input PORTB.3, which determines nuts, plus 5mm untapped spacers.
Do not install a new capacitor on the the encoder direction sensing. Adding First, two holes need to be drilled
pads for C8. Note that one of the spec- a jumper between pins 4 and 6 of CON4 in the side for the SMA connectors, as
ified inductors has an open side which pulls that pin to GND. shown in Fig.7. The square wave out-
should face towards the PCB while the If all is well, connect the AD9834 put connector is not accessible and is
other inductors and the capacitors can module, being careful with the orienta- not used in this design.
be fitted in any orientation. tion of the flat cable, ensuring that pin 1 Next, slide in the module and use it
goes to GND at both ends. A green LED as a template to mark the position of the
Making the cable on that module should light up when two holes in the bottom. Drill these to
A short 10-pin flat ribbon cable with power is applied. 2.0mm or 2.5mm to suit your screws and
IDC connectors at each end joins the Check the output on the two SMA then countersink them on the bottom.
two modules. Crimp the IDC connec- connectors with an RF power meter
tors as shown in Fig.6; if in doubt, or oscilloscope. The output of the LPF Calibration
check the photos. You can use a vice requires 50 termination; without it, The output frequency accuracy depends
to close down the connector on the flat there may be some distortion of the on the exact frequency of the 75MHz
cable, making sure that it is exactly output waveform. oscillator on the module. I found the
square, although it’s better to use a ded-
icated IDC crimping tool (eg, Altronics
T1540).
There is no room for the strain relief
clips on the connectors, so leave them
off if supplied.
Testing
For initial testing, before assembling it
into the case, connect the battery and
switch it on. The OLED should come
up with an initial message showing the
version number. After two seconds, the
display will show the frequency, step
size and battery voltage. The default
frequency on power-up is 10MHz, and
the step size is 1MHz.
Check the VCC voltage at pin 7 or 20
of IC1; it should be close to 4V. You can
use the labelled pad near the bottom
edge of the PCB as a GND reference.
Rotating the knob should increase This photo shows nearly all parts required to build the Basic RF Signal Generator,
or decrease the frequency. Depending except for the replacement components for the DDS module (see the text above).
Battery life
With fresh AA alkaline cells, the input
voltage is about 3.2V. The current drain
starts at 80mA and increases as the bat-
tery voltage drops (because the boost
regulator maintains a constant output
voltage). By the time the battery drops
to 2.7V, the current is about 95mA.
The best alkaline AA cells are
3000mAh, but that rating is for a light
load. It has to be derated to 2000mAh
or so at the expected current drain. This
gives an expected operational life of
about 20 hours.
TEACH-IN 3 TEACH-IN 5
£7.99
huge range of subjects that will interest everyone involved 5 design and build circuit projects for newcomers or JUMP START
CIRCUIT SURGERY
in electronics – from newcomers to the hobby and The how and why of circuit design those following courses in school and colleges. 15 design and build circuit projects
dedicated to newcomers or those
PRACTICALLY SPEAKING
students to experienced constructors and professionals.
following courses in schools and
PIC ‘N MIX
Surgery, EPE/PE’s regular clinic dealing with readers’ Powered Charger n Versatile Theft Alarm n pooky
Over 40 different circuit ideas
Starting out with PIC microcontrollers
t
W
1
TWO TEACH-INs FOR
Elec
©
TWO TEACH-INs FOR
THE PRICE OF ONE! THE PRICE OF ONE !
The second section – Practically Speaking – The free CD-ROM provides
a broad-based introduction
to electronics
n Egg Timer n ignal njector robe n imple Radio Provides
a practi
cal
to PIC
introduction llers
Plus:
MikroElektro
Microchip pe
L-Tek PoSco
nika,
The free CD-ROM provides a
practical introduction to PIC
Inter
active ledge
and logo, Techno
ip name of Microchip
Technol
Microch
ip
.09 software
PLUS
The Microch arks s. © 2013
Your Know
016-02
ed tradem countrie 1. MCCD1
register and other d. Issue
in the USAAll rights reserve
d 1
In 2 - JUL13.ind
A BROAD-BASED INTRODUCTION TO CD
ELECTRONICS
TEACH-IN 4
FROM THE PUBLISHERS OF
What a Bargain!!
if not, open double-click
and
Explorer f
index.pd
MAN.co.u
Downloa be.com
www.ado
BA SE .epe mag
k
© Wimbor
Audio Out – an
£8.99 £8.99
D CD
DV
and Circuit Surgery
The Teach-In 6 CD-
TEACH-IN 6 analogue e pert’s take
TEACH-IN 7 by an ell tate TEACH-IN 8
FROM THE PUBLISHERS OF FROM THE PUBLISHERS OF
FREE
CD-ROM
R M also contains all on specialist circuits
SOFTWARE
FOR
the techniques of
• Pi CLASS – SPECIFIC LEARNING AIMS • Learn with ‘TINA’ – modern CAD software • Microcontrollers – understand control operations
• PYTHON QUICKSTART – SPECIFIC PROGRAMMING TOPICS • Five projects to build: Pre-amp, Headphone Amp,
readers and circuit the files for:
• Communications – connect to PCs and other Arduinos
• Pi WORLD – ACCESSORIES, BOOKS ETC Tone Control, VU-meter, High Performance Audio Power Amp
project building.
• HOME BAKING – FOLLOW-UP ACTIVITIES
n Microchip M LA
RE FOR
SERIES SOFTWA 7
CH-IN
THE TEA
martscope software.
building PIC-based projects
Teach In 6 Cover.indd 1 02/03/2015 14:59:08 Teach In 7 Cover VERSION 3 FINAL.indd 1 07/04/2016 08:25 Teach In 8 Cover.indd 1 04/04/2017 12:24
W
hen testing something on Two 16-bit analogue inputs with Despite being driven by an 8-bit dig-
the bench, I often need to fish over-voltage protection can measure ital-to-analogue converter (DAC), the
around in the parts drawer ±10V DC to within a few millivolts noise and distortion total less than 1.5%
for some control component, like a with excellent linearity. As long as both across the range (see Scope 1 and 2) after
switch or a pot. That’s so I can test input terminals are kept within that low-pass filtering. Major contributors to
some circuitry across a range of volt- range, it can measure differentials up to this are the sine generator DAC’s volt-
ages, with different component val- 20V. The input range can be extended age steps and a jump of several steps at
ues or with some element in and out by adding series resistance to the inputs. the zero-crossing point. These artefacts
of circuit. I’m usually also measuring The 0-10V DC analogue output has are much less visible on the high output
the impact of changes at one or two 256 steps of approximately 40mV (see range, making that the range of choice.
places in the circuit. Screen 1). While the accuracy isn’t at When finer voltage control is desired,
It’s remarkable how often I reach the same level as the analogue inputs, the sinewave generator can be teamed
for the same components: a switch, a 256 individual test values should be up with the digital pot to provide 256
100k pot, a sinewave generator and enough for most purposes. voltage attenuation steps for either of
a 0-10V control voltage source being The sinewave generator operates the basic output voltages.
among the most frequent. from 133Hz to 55kHz. The generator A general-purpose op amp based
A collection of these most-used ele- has two output voltages: 6V peak-to- inverter is included to provide addi-
ments would be like a ‘Swiss Army peak (2.1V RMS) and 775mV peak-to- tional flexibility in handling negative
Knife’ for the test bench. Most pocket peak (0.27V RMS). The available fre- input or output voltages.
knives don’t pretend to have all the tools quencies are multiples of 133.33 Hz, We’ve included two different relays:
you’ll ever need, or even the absolute and the software rounds settings down RLY1 is a 350mA SPST reed relay, use-
best of each kind of tool. Still, they offer to the nearest available value. ful for switching signals, while RLY2
a set of robust, basic tools that will get
the job done when the perfect tool isn’t
at hand or isn’t needed.
The cost and complexity of the proj-
Features and Specifications
∎ 256-step, 0-10V output (from a DAC)
ect have been kept down by controlling
it via Wi-Fi using a web interface rather ∎ 133Hz-55kHz sinewave generator
than an LCD screen. That also means ∎ Two ±10V fully-differential analogue inputs (16-bit ADC)
it can be teamed up with test automa- ∎ Analogue inverter with ±10V input and output ranges
tion software, such as TestController, to ∎ Two 3.3V digital outputs
automate many test bench tasks. ∎ Two 5V-tolerant digital inputs
Features and performance ∎ 100kΩ digital pot with ±15V terminal ranges
Pocket knives range from a single blade ∎ One 10A SPDT relay
to monsters with more than thirty func- ∎ One 350mA SPST reed relay
tions. We’ve settled on nine functions ∎ ±15V and +5V power supply rails
for this project, and focused on mak- ∎ Remote control via serial terminal and Wi-Fi telnet SCPI commands
ing them simple to use while designing
∎ Web interface
them to tolerate moderate abuse.
The input and output connections ∎ TestController integration
are made with spring-loaded or cam-op- ∎ Powered by a 5V plugpack
erated terminals and multiple ground ∎ Open-source code (excluding web interface)
connections are provided.
is a 10A SPDT type that can switch The project is housed in a UB1 Jiffy cable voltage drop during operation
power supplies and similar. Both have box and powered by a 5V plugpack. might cause the brownout detector
LED indicators. A readily available switching boost on the ESP32 to trigger, resulting in a
The maximum recommended volt- converter module is used to provide potentially endless reboot cycle.
age across both relays is limited to ±15V supplies for the op amps and The unit features a flexible suite
50V by safety considerations for bread- digital pot. of remote control functions, which
board-style operation, rather than the The ±15V and +5V supply rails are is fortunate as there are no controls
relays themselves. Both can switch in available to power external circuitry. on the unit itself! It has been specifi-
less than 10ms. The specified boost converter can sup- cally designed to be compatible with
The digital inputs and outputs con- ply 500mA at +15V and 200mA at −15V. TestController, or via its web interface.
nect to ESP32 3.3V GPIO pins with At idle, the unit draws less than You can also control it via SCPI text
series resistances to limit current if 100mA from the 5V supply and around commands from the USB serial mon-
they are misconnected. The inputs have 200mA with both relays energised and itor in Arduino or via Telnet from a
zener diode protection, will correctly all the LEDs lit. While a 1A plug pack terminal program like PuTTY.
read 5V logic and are tolerant of up to is more than adequate to power the unit The manual included in the proj-
20V. The inputs and outputs all have itself, we recommend a 1.5A model if ect downloads has full details of the
LED indicators. you will be powering much in the way SCPI command set and communica-
A 256-step 100k digital potentiom- of external circuitry. tion parameters.
eter completes the feature set. We have Even with relatively high conversion Keeping with our pocket knife theme,
specified a high-voltage type, which efficiency, the 5V supply current draw we’ve specified critical resistors as read-
allows the pot terminals to be at any will be around three times that drawn ily available 1% values to provide a full-
voltage within the ±15V analogue sup- from either the +15V or −15V rails, and scale accuracy of a few percent ‘out of
ply rails. If you prefer a different resis- more than six times that drawn by a the box’. With a simple calibration pro-
tance (or can’t get the 100k type), you device across those rails. cess that only requires a multimeter,
can substitute any other MCP45HV While the project can be USB- you can make the analogue accuracy
value (5k , 10k and 50k ). powered for commissioning, the USB better than 1%.
Scope 1: the direct sine output from the DAC at 400Hz (blue Scope 2: the distortion artefacts from the sinewave output
trace) on the low-level output range shows some noise and are much less prominent on the filtered output at 5kHz as it
a zero-crossing discontinuity. The filtered output (yellow spends much less time on each step.
trace) shows a significant reduction in noise at the cost of a
slight overshoot at each step change.
While this isn’t a highly calibrated inputs and outputs directly via its GPIO 3.3V logic and around 0.3mA from a
instrument, it has sufficient flexibility, pins, plus it has a DAC and sinewave 5V source.
accuracy and connectivity to make life generator. It also manages Wi-Fi and The inputs will register ‘high’ for any
on the test bench far more productive. serial communications. voltage above 2.5V at pins 5 and 6 (IO34
The nominally 3.3V digital inputs and IO35) and are weakly pulled down
Circuit details have 4.7k series resistors and 3.3V by 50k resistors within the ESP32.
As shown in Fig.1, the heart of the proj- zener clamping diodes ZD1 and ZD2 The input LED indicators are driven
ect is an ESP32 Wi-Fi microcontroller to make them reasonably fault toler- by pins 29 and 30 (IO5 and IO18) to
module. The ESP32 handles the digital ant. They draw minimal current from avoid loading the digital inputs.
9mm DIAMETER COAX POWER Fig.2: the Swiss Army Knife board can be used bare, or housed in a plastic UB1
JACK HOLE IN SIDE OF CASE,
10mm DOWN FROM TOP LIP Jiffy box. Just with four holes and one large rectangular cut-out need to be made
on the lid, plus one hole on the side for access to the DC power input socket.
20 10
90 x 77mm CUTOUT FOR
ACCESS TO TERMINALS
37.5
C
L
37.5
A A
Screen 2: the expected output of the OTA-Test program on the serial monitor, Screen 3: the Over The Air (OTA)
before the ESP32 is plugged into the main PCB. login page displays when first
accessing the ESP32 via a browser.
Open up a web page using the IP Command?’ prompt. If you type Changing the Wi-Fi credentials
address or URL indicated by the Serial ‘*IDN?’ (without quotes) into the If you have difficulty connecting to
Monitor. On the OTA-Test program’s command field on the Serial Mon- your local Wi-Fi or need to change the
web interface, log in using ‘admin’ itor and click Send, the software settings, you can issue the following
and ‘admin’ as the credentials (see should respond with something like commands from a terminal program or
Screen 3). ‘Platy,SwissArmy,00,v0.1’. the Arduino Serial Monitor:
After you have logged in, select The unit can now be sealed up in
:SYST:SSID your-WiFi-SSID-
the downloaded project BIN file with the Jiffy box, powered via the plug-
without-quote-marks
the ‘Choose file’ button, and then pack and remotely controlled via the
:SYST:PASS your-WiFi-Password-
press the Update button. The web web interface.
without-quote-marks
page will track the upload progress, If you intend to use a USB con-
and after a short delay, the ESP32 nection from this point on, then we You can also change the Wi-Fi cre-
will reboot. strongly recommend that a USB iso- dentials by editing the profile.json
Re-open the Arduino Serial Mon- lator be used. This will help to avoid file on your computer and uploading
itor, and start-up commands should damage to the ESP32 in the event of it again, using the instructions above.
be displayed, ending with an ‘SCPI a misconnection. You only need to open the OTA-Test
Screen 4: the Swiss
Army Knife web
interface main page.
ADC1 and ADC2 are
reading 5.10V and
5.11V respectively,
while digital inputs
D1 and D2 are both
low. On the Settings
panel, relay RLY2 is
on, and digital output
D1 is high. The digital
pot is set at 128 steps
(50%). The sinewave
is currently being
adjusted (setting
highlighted) to 5.09V;
turning the dial will
result in 0.1V steps
(radio buttons under
the dial).
Screen 5: the
calibration page. If the
external multimeter
reads 9.61V, DAC1’s
output voltage
reading would need
to be boosted by 0.1V.
Changes are not stored
until the Save button is
clicked but calibration
values are saved
between sessions.
program and re-upload the sketch data. and SCPI commands are available in Calibration
The OTA-Test program does not need to the manual included in the down- The analogue inputs and outputs can
be compiled or uploaded, but the unit load for this project available from be calibrated using a multimeter on the
will need to be re-calibrated after the the April 2024 page of the PE website: Cal tab. Connect the analogue output
profile upload. https://bit.ly/pe-downloads to both analogue inputs, set the DAC
The web interface can control all value to around 9.5V on the Main tab
Remote control and calibration the outputs and display all the input then move to the Cal tab.
The unit has been primarily designed to readings on its Main tab (Screen 4). It Measure the analogue input voltage
work with the open source software Test- also offers calibration functions on its with your multimeter and set the dif-
Controller: https://bit.ly/pe-apr24-test Cal tab (Screen 5). ference between the external multime-
or via its web interface. SCPI commands It’s best if only one of the remote ter’s reading and the analogue input in
can also be issued via an isolated USB control options is active at any time, as the ‘difference’ column for each input
serial connection or over Wi-Fi, using a settings made on one interface may not (positive if the multimeter reading is
terminal program (PuTTy or TeraTerm). seamlessly update on all the others. higher than shown). Once that is done,
TestController uses SCPI commands set the difference value for the DAC,
to control all functions besides calibra- Web interface then click the Save button.
tion and communication settings. Fur- The Main tab of the web interface is DAC calibration is somewhat less
ther details of the remote control modes accessible via http://swissarmy.local and accurate than for the ADCs, given that
has the input readings it only has 256 steps to cover the entire
on the left and settings 10V range.
on the right. You don’t need to calibrate all the
To set a numeric inputs and outputs at once as the
value, click on the calibration for any input or output,
setting to be changed where the difference value is zero,
and wind the knob. will remain unchanged when Save
The radio buttons is clicked.
under the knob deter-
mine the size of the TestController integration
increment, from 0.1 The TestController interface can con-
to 100 units. trol all functions other than calibra-
Under the sine- tion and communication parameters.
wave generator fre- The device definition file included in
quency setting there the downloads (SwissArmyKnife.txt)
are buttons to select needs to be loaded into the Devices
the low and high out- folder wherever you have installed
put ranges. TestController; the default location is
The digital pot has C:\TestController\Devices
two linked scales, Restart TestController and add the
one in counts (0 to device on the Load devices tab in
255) and the other TestController (Screen 6), using the
in percent of rota- address ‘swissarmy.local’ rather than
tion. Either may be its IP number, which could change
used, and the other if the unit hasn’t been used for some
will change synchro- time. Then click the Reconnect button.
Screen 7: the TestController Setup pop-up window shows nously. The relay and On the TestController command
the readings and allows most functions to be controlled. digital output buttons screen, click the Setup button, and the
Input values are updated every second. are on the far right. pop-up window in Screen 7 should
This pet cricket will keep you company; it only needs to be fed occasionally
and won’t run away. Keep it for yourself or play a prank on a family member or
friend by hiding it in their room. When they switch the lights off, they will get a
bit of a surprise!
C
rickets, frogs and canaries When the novelty of cricket sounds its legs and mouth don’t even move
tend to be organic, made from wears off, it can be changed to a frog, while making those sounds! You
tried-and-tested construction croaking in the dark. Or, for some- could place a frog or bird toy near
materials such as DNA and proteins. thing completely different, change Silicon Chirp to make the ventrilo-
Until now, that is. Silicon Chirp, the sound to a singing canary to quism seem all the more real.
the electronic cricket, sounds like a brighten your day. For the cricket, most components
real cricket. Not only is this project Why call this critter Silicon Chirp? are mounted on Silicon Chirp’s back,
fun, it totally (and unexpectedly for The name comes from the fact that with its eyes being 3mm red LEDs.
a cricket) mimics frog and canary the workings to produce the cricket The piezo transducer that produces
sounds. With very few parts, it is sound are based upon silicon DNA. the sounds is slung under the PCB
easy and fun to build. Also, it produces a chirping sound. abdomen. Six legs are fashioned from
Silicon Chirp loves to sing in the Hence the name: Silicon Chirp. thick 1.25mm copper wire, while the
dark and happily chirps away, much As mentioned, Silicon Chirp can two antennae and ovipositor (tail)
to the annoyance of others. When produce the sound of a frog or canar- are made from a thinner gauge wire.
disturbed by light, (s)he ceases, thus ies and, of course, a cricket shape is
hiding its whereabouts until dark- inappropriate when making these Cricket sounds
ness falls again. But (s)he does not alternative sounds. We considered Crickets produce their iconic chirp-
immediately begin to chirp again having three separate PCBs with dif- ing sounds by rubbing a coarse sec-
when darkness falls. That could take ferent shapes, but swapping parts tion of one wing against a scraper
up to 40 seconds. from one board to the other seemed on the other. This process is called
And as you enjoy the peace and like overkill. ‘stridulation’; it’s a bit like running a
when all thoughts of an annoying Then again, the Bower Bird still stick along a picket fence or old-fash-
cricket drift away...chirping starts. looks like a bird, even when making ioned washboard.
And so begins the hunt for that pesky sounds like a chainsaw or a car alarm. Typically, the sound a cricket pro-
critter. Catching its glinting eyes in So, this cricket is a keen ventril- duces comprises three closely spaced
the dark, you are faced with a predic- oquist, mimicking the sounds of chirps, followed by a longer gap, then
ament: remain petrified and unable other animals while remaining in another three and so on (ie, they have
to move, or face that terrifying sight! the cricket shape. It’s so talented that a particular pattern or cadence).
A typical cricket chirp comprises
four bursts of a 4kHz tone, each last-
Features and Specifications ing for around 50ms. The spacing
] Looks and sounds like a cricket between each chirp is also about
] Also has the option to produce frog or canary sounds 50ms, while the separation between
] Flashing red eyes each triplet is around 250ms.
] Can be set to only operate in the dark (or light, in canary mode) These periods are not precise and
] Low current draw from 3V lithium coin cell do vary a little. However, the tone of
] Current draw: 0.4μA while dormant, 0.48-1.7mA during chirps the chirp does not appear to vary by
any noticeable degree.
Silicon Chirp follows the same between them. There is an extended Unlike crickets and frogs, which
pattern, with triplets of 4kHz bursts, gap between each series of repeated tend to make noise when it’s dark,
each separated by a longer gap. How- songs, between 80 seconds and nine bird sounds occur mainly when it is
ever, we found that driving a piezo minutes. Like the cricket and frog, light. So the light/dark detection is
transducer with three 20ms bursts at the bird songs are produced by vary- inverted for the canary.
4kHz and with 20ms gaps between ing the frequency, volume and length
them produced the most authentic of bursts of pulse trains applied to Circuit description
cricket sound, even though the 20ms the piezo. The complete Silicon Chirp cir-
periods are different from that of an The sound volume is varied by cuit is shown in Fig.1. It’s based
actual cricket. changing the pulse width of the sig- around microcontroller IC1, a
The screen grab in Scope 1 shows nals applied to the piezo transduc- PIC16F15214-I/SN, powered by a
the Silicon Chirp’s cadence as mea- ers. Narrow pulses generate a lower 3V lithium cell, switched via slide
sured by an oscilloscope. volume, while the wider pulses make switch S1. IC1 does not draw much
To act like a real cricket, the chirp more sound. The maximum (loud- current, typically only about 400nA
rate must vary slightly rather than est) pulse width equates to a duty while it is dormant. This rises to
being at precise intervals. So Sili- cycle of 50%. between around 480μA to 1.7mA
con Chirp’s chirping periods vary Each chirp starts at the mini- while making a noise.
randomly over a limited range. In mum pulse width, increasing to the Diode D1 is included as a safety
other words, they aren’t always required volume level over time. measure to prevent damage to IC1
exactly 20ms long or spaced apart Similarly, the pulse width is reduced should the cell be inserted incor-
by precisely 20ms. The variations in to zero over a short interval when a rectly. The correct polarity is with
the periods provide a more natural chirp or tweet is about to end. This the positive side up, but the cell
cadence and help prevent the sim- avoids clicks from the piezo trans-
ulated cricket chirp from sounding ducers, which would otherwise spoil
fake or artificial. the effect.
Frog sounds are produced simi-
larly but with a different cadence to The underside of Silicon
the cricket. For Silicon Chirp, frog Chirp, showing the large
sounds comprise a set of 10 chirps, piezo transducer. Feel free to
10ms long with 2ms gaps. customise the board to suit
This is followed by a 30ms gap and your taste. Note the on/off
then another set of three chirps. The slide switch near the ‘tail’.
ten and three groups are separated
by a delay of 200-1200ms that var-
ies irregularly. The frequency of the
chirps is set at around 2kHz.
The canary sounds have been
divided into three types, designated
A, B and C. Song A sounds like a typ-
ical canary, while Song B simulates
a Fife canary. Song C is a selection
that comprises various single phrases
produced by these birds.
The canary sings at random. Each
song is repeated between two and
27 times with a 2.4 to 17-second gap
PIC16F15214
+
CELL1
LDR1
D1 330W
cient pad area to allow Mini-MELF
(SOD-80) or SOD-323 package diodes
to be soldered in. Alternatively, an
axial-leaded 1N4148 could be used Fig.2 and Fig.3: Silicon Chirp is pretty easy to build. Simply place the components
with the leads at each end bent back as shown here but note that the piezo transducer is wired and mounted over reverse
by 180° to allow soldering to the polarity protection diode D1. That diode, IC1 and the LEDs are polarised and must
PCB pads. be soldered the right way around; the other components are not polarised.
EE
LATES HE
T COP
TEACH-IN 9
FROM THE PUBLISHERS OF
Y
OF
TEACH OUR
-IN SE
Electron Publishing GET TESTING!
Electronic test equipment and measuring
FREE
CD-ROM
TWO TEACH
-INs
RIES
techniques, plus eight projects to build FOR THE PRICE
OF ONE
AVAILA
• Multimeters and a multimeter checker
• Oscilloscopes plus a scope calibrator
BL PRICE £8.99
• AC Millivoltmeters with a range extender
NOW! E
• Digital measurements plus a logic probe
• Frequency measurements and a signal generator
• Component measurements plus a semiconductor
junction tester
PLUS...
YOUR GUIDE TO THE BBC MICROBIT
A LOW-COST ARM-BASED SINGLE-BOARD
COMPUTER
Teach-In 9
Get Testing
PLUS
Teach-In 2 -Using
PIC Microcontrollers.
In PDF format
This series of articles provides a broad-based introduction to choosing and using a wide range © 2018 Wimborne Publishing Ltd.
www.epemag.com
of test gear, how to get the best out of each item and the pitfalls to avoid. It provides hints
and tips on using, and – just as importantly – interpreting the results that you get. The series
Teach In 9 Cover.indd 1 01/08/2018 19:56
deals with familiar test gear as well as equipment designed for more specialised applications.
The articles have been designed to have the broadest possible appeal and are applicable to all branches of electronics.
The series crosses the boundaries of analogue and digital electronics with applications that span the full range of
electronics – from a single-stage transistor amplifier to the most sophisticated microcontroller system. There really is
something for everyone!
Each part includes a simple but useful practical test gear project that will build into a handy gadget that will either
extend the features, ranges and usability of an existing item of test equipment or that will serve as a stand-alone
instrument. We’ve kept the cost of these projects as low as possible, and most of them can be built for less than £10
(including components, enclosure and circuit board).
PLUS! You will receive the software for the PIC n’ Mix series of articles and the full Teach-In 2 book – Using PIC
Microcontrollers – A practical introduction – in PDF format. Also included are Microchip’s MPLAB ICD 4 In-Circuit Debug-
ger User’s Guide; MPLAB PICkit 4 In-Circuit Debugger Quick Start Guide; and MPLAB PICkit4 Debugger User’s Guide.
I
n last month’s Part 1 of our Teach-In series we
provided an overview of the ESP32 and introduced the About Teach-In
development environment. We showed you how to use Our latest Teach-In series is about using the popular ESP32
your PC to monitor the ESP32’s built-in capacitive touch sen- module as a basis for learning electronics and coding. We
sors and our practical project involved using the ESP32 in a will be making no assumptions about your coding ability
or your previous experience of electronics. If you know one
portable emergency beacon. This month, we will be taking
but not the other, you have come to the right place. On
a more detailed look at digital I/O and showing you how to the other hand, if you happen to be a complete newbie
interface buttons and switches as well as how to drive loads there’s no need to worry because the series will take a
such as LEDs, relays and sounders. We will also introduce progressive hands-on approach. There will be plenty of
the Serial Monitor. As part of the Arduino IDE, this handy time to build up your knowledge and plenty of opportunity
tool provides a great way of testing your code. The learning to test things out along the way.
objectives for this part are: We’ve not included too much basic theory because this
n Know how to use the Serial Monitor can be easily found elsewhere, including several of our
n Know how to configure and use simple digital I/O previous Teach-In series, see:
n Know how to increase the output capability of the ESP32. https://bit.ly/pe-ti
https://bit.ly/pe-ti-bundle
Using the Serial Monitor There will be projects and challenges to help you check
When testing even the most basic code you will often find that and develop your understanding of the topics covered
you need some means of knowing what’s going on. Without each month.
having the benefit of a full user interface (such as a local keypad
and display) this can be tricky, but the Arduino IDE can come
to your rescue with its in-built Serial Monitor. However, before To send a message to the Serial Monitor you can use the Serial.
you can begin to use this useful tool you will need to initialise print and Serial.println() functions. The only difference
the Serial Monitor within your setup() code like this: between these functions is that the latter adds a newline character
at the end of the printed string. Here’s an example:
void setup() {
Serial.begin(9600); // Initialize the Serial Serial.print(“Pin selected = “);
Monitor
}
void setup() {
Serial.begin(9600, SERIAL_8E2); // Initialize
the Serial Monitor
} Fig.2.1. Code for testing the ESP32’s built-in Hall effect sensor.
Serial.println(selectedPin);
void setup() {
Serial.begin(115200); // Initialise serial monitor
}
void loop() {
// The main loop repeats forever
magField = hallRead(); // Update sensor data
Serial.println(magField); // Display using
serial monitor
delay(500); // Short delay between readings
}
Fig.2.4. Returned data from ESP32’s built-in Hall effect
magnetic sensor.
Fig.2.7. Output loads activated by (a) HIGH and (b) LOW output
states. Fig.2.9. Wiring layout for the ESP32 traffic lights controller.
Pull-up or pull-down?
We need our digital inputs to be in one of two states, either HIGH
or LOW with nothing in between. The former is usually defined
as a voltage level that’s greater than 75% of the nominal 3.3V
supply, while the latter is taken as less than 25% of the same
value (these two states correspond to more than 2.5V or less
than 0.8V, respectively). Note that, by default, the GPIO inputs
adopt a high-impedance state, and this invariably results in an
unpredictable and indeterminate input Because of this you will
often find that the GPIO pins are either pulled HIGH (pulled up)
or pulled LOW (pulled down) by means of external resistors.
Values are generally uncritical and can often be in the range
4.7kΩ to 100kΩ. Fig.2.12 illustrates the use of this technique.
Fig.2.14. Waveform showing switch bounce.
Gotcha! It’s important to be aware that the ESP32 has a rather neat
A problem arises with some types of mechanically
feature that allows inputs to be pulled HIGH or LOW without
actuated switch in which the switching action is not
clean, and the output state fluctuates rapidly before the need for external resistors. This can be achieved during
settling to a steady value. This condition is referred to as GPIO initialisation using the pinMode() command, as shown
‘switch bounce’ (see Fig.2.14) and it can be undesirable in the following fragment of code:
in many applications. The effects of switch bounce can
be reduced or eliminated by various means including pinMode(18, INPUT); D18 is a default digital input
the introduction of software delays or by slowing the pinMode(19, INPUT_PULLUP); D19 is a digital input
switching action using a simple capacitor-resistor (C-R) pulled high
network between the switch contacts and a GPIO input pinMode(21, INPUT_PULLDOWN); D21 is a digital
pin, as shown in Fig.2.15. input pulled low
LED output. Finally, the GPIO pins are then configured in Listing 2.4 Simple motor control
the setup() code.
The main loop of the code repeats forever and starts /* ESP32 button control example. One button will be
by reading the state of the two buttons. Having read the for Start and the other for Stop. The output will be
indicated on an LED*/
void setup() {
// Initialize the LED pin as an output
pinMode(ledOutput, OUTPUT);
// Initialize the two push button pins as an inputs
pinMode(runButton, INPUT);
pinMode(stopButton, INPUT);
}
Fig.2.18. Wiring for the prototype motor controller (based on
a 30-pin ESP32 board). void loop() {
// Read the current state of the two buttons
runButtonState = digitalRead(runButton);
stopButtonState = digitalRead(stopButton);
// Check if the buttons are pressed
if (runButtonState == HIGH) {
outputState = HIGH;
digitalWrite(ledOutput, HIGH);
}
if (stopButtonState == HIGH) {
outputState = LOW;
digitalWrite(ledOutput, LOW);
}
Fig.2.19. Solid-state relays designed for controlling AC mains }
with maximum load currents ranging from 10A to 45A.
Parameter Value
+
Nominal operating voltage 5V DC
Nominal operating current 73mA
Maximum load rating AC 250V 10A, DC 30V 10A
Pull-in voltage (typical) 3.8V
DC coil resistance
Power consumption (typ) 0.36W
Operating time (max) 10ms
Release time (max) 5ms
Contact resistance (max) .
Operating life 100,000 operations at rated load
Maximum switching rate 30 operations per second
Next you will need to add a couple of lines into the setup()
code block, as follows:
The relays and their respective loads can be turned on and off
incorporating the following lines of code at appropriate points
in the main program loop:
if (count >=10) {
digitalWrite(fullLED, HIGH);
}
Fig.2.23. Wiring of the modified motor controller. Fig.2.24. Switching action of the transistor in Fig.2.22.
do {
delay(100);
// wait for the value to settle
cp = readPressure();
// read the pressure sensor
} while (x < 10);
L
ast month, we started looking is a non-modal window,
at the frequency response analysis so you can keep it open Circuit closed-loop gain
Amplifier open-loop gain
(FRA) function in LTspice, which for reference as you work. AC = So / Sinp
AC = So / Sai
was part of a major update from LTspice It is possible to revert to Sinp Sinp Sai So So
1 Ao
XVII (17.0) to LTspice 17.1. Since then, the old (‘LTspice Classic’) +
there has been another major update shortcuts via the edit Loop gain
Sf
with a new version number: LTspice 24. shortcuts function that is –bAo = S' f / Sf
Although our main focus in these arti- available from this window
cles is the FRA, like last month, we will – useful if the old ones are Break in loop to
define loop gain
start by looking at some of the changes too ingrained and you don’t S' f
in this release. want to relearn! b
So
In the old LTspice, the
User interface changes simulation configuration Fig.3. Structure of an amplifier with negative feedback
Unlike the LTspice 17.1 update, in the w i n d o w ( w h i c h w a s showing the open-loop (red), closed-loop (green) and
move to LTspice 24 there is a very obvious called ‘Edit Simulation loop-gain (blue) relationships.
visual difference, as icons and cursors Command’, and is now
have been updated (see Fig.1 and Fig.2 called ‘Configure Analysis’) would forget Frequency response
which show the old and new toolbars details of commented-out simulation analysis recap
respectively). The default background directives. Now, if there is appropriate text LTspice’s frequency response analysis
has also changed. on the schematic, the relevant parameters (FRA) is aimed at determining the
The new toolbar contains more or less will be shown in the appropriate tab in stability of negative feedback circuits;
the same functions, but the order has the simulation configuration window that is, finding out how much margin
changed to some extent, and there are when it is opened. Also, using shift- of error there is between stable and
some items which have been added or click, it is now possible to toggle text unstable operation. The LTspice FRA
removed. For example, the ‘Close All’ on the schematic between being a SPICE is optimised for use with switch-mode
windows button has gone, but there are directive (such as a simulation command) powers supplies (SMPS) but it can be
now both ‘Tile Horizontally’ and ‘Tile and a comment (which LTspice will not used with other feedback circuits. To
Vertically’ buttons, previously there was act on as a command). This is very useful introduce the basic concept and use of
just a button to tile windows horizontally. if you have a few simulation commands the FRA, last month we started looking
There is a new ‘Configure Analysis’ button set (eg, for transient and AC analysis) as it at applying the FRA to simple op amp
(to set up the simulation). Some functions provides a quick way to switch between circuits rather than dealing with the
have been renamed: ‘Control Panel’ is them. You can tell these apart in the complexities of an SMPS.
now the more conventional ‘Settings’, default colour scheme – directives are Last month, we covered some basics of
and schematic editing ‘Drag’ mode is now black, and comments are blue. feedback analysis of op amp amplifiers
called ‘Stretch’. This is where components The are some useful changes to the (see Fig.3, which shows a system diagram
are moved without breaking the wiring waveform viewer. Plot panes can now of a noninverting op amp amplifier).
connections, which is useful for adjusting be moved around and reordered more Key concepts are open-loop gain (the
the layout of a schematic. The general aim easily using move up/down functions gain of the op amp with no feedback
of these changes seems to be to update to from the right click menu. All cursors applied, AO) the fraction of signal fed
more modern conventions in function can be removed using the Esc key, and back (b), closed-loop gain (the gain of
naming and icon style. gain and phase margin annotation can the circuit with feedback, AC) and loop
Some default keyboard short cuts have be added where applicable. The help gain. Loop gain is the gain around the
changed; for example, schematic editing system has also changed and now loads feedback loop (−bAO) and is an important
duplicate mode was F6 and is now Ctrl+C. pages via a browser. The Help menu parameter when considering the stability
There is a new ‘Keyboards Shortcut Cheat has been expanded and includes Open of feedback systems.
Sheet’ window which can be opened Examples, which provides quick access to Measuring loop gain for a real
as a reference for the shortcuts. This the examples included in the download. circuit, and in simulation, is tricky as it
(Above) Fig.1. Old LTspice Toolbar; (Below) Fig.2. Updated toolbar in LTspice 24.
Transient analysis
frequency response
LTspice users and regular readers of
Circuit Surgery will be familiar with
plots of gain and phase against frequency
obtained using AC analysis. FRA plots
looks similar to AC analysis results;
however, the simulation is performed
in a fundamentally different way. The
setup required for a transient-based
analysis is more complex than for AC
analysis, so we’ll discuss the issues
involved before describing the FRA
settings in LTspice.
AC analysis uses a linearised model
of the circuit, from which LTspice
can rapidly calculate the response at
any frequency. Strictly speaking, AC
Fig.6. FRA results from the example from last month using LTspice 24 with phase and analysis only works for very small input
gain margin annotations added. Note the phase margin scale on the phase axis. amplitudes (AC analysis is also called
i ulation files
Most, but not every month, LTSpice
is used to support descriptions and
analysis in Circuit Surgery.
am l a l a a ailabl
for download from the PE website:
https://bit.ly/pe-downloads
Fig.13. FRA plot for the circuit in Fig.1 using settings shown in Fig.12.
NEW!
an additional specific frequency of 100MHz, which extends
the range plotted without requiring many more waveform
steps. The datapoints are marked on Fig.13, which shows the
six or seven points per decade stopping at 10MHz, and the
single additional point at 100MHz. Furthermore, the coarse
stepping parameter is set to 100Hz, which reduces the number
of frequency steps per octave below the specified frequency.
These last two parameters are not really needed here but
are included to illustrate their use. They can help reduce
5-year collection
2017-2021
simulation time. For an SMPS, the simulation time may be
long at low frequencies because many switching cycles are
required for just one cycle of the stimulus. Simulation time
can also be reduced by setting the number of simultaneous
harmonics (typically 2 to 4). This applies multiple frequencies
All 60 issues from Jan 2017
at the same time – it is faster, but less accurate. to Dec 2021 for just £44.95
Comparing the results in Fig.13 with Fig.8 we see that the
loop gain (bAO) is equal to the difference (on the dB scale) PDF files ready for
LTspice 24
between theand Frequency
open- Response Analysis
and closed-loop gains,–while
Part 2 the loop immediate download
gain is much larger than 1. This matches theoretical
spice 24 and Frequency Response Analysis – Part 2
expec t a t i on s – t h e r e la tio n sh ip c a n b e c o nfir m ed
mathematically as follows, using the equation for closed-
loop gain discussed last month. 𝐴𝐴!
See page 6 for further details and
(1 + 𝛽𝛽𝐴𝐴!) other great back-issue offers.
20log(𝐴𝐴! ) − 20log(𝐴𝐴" ) = 20 log(𝐴𝐴! ) − 20log , 0
𝐴𝐴!
20log(𝐴𝐴! ) − 20log(𝐴𝐴" ) = 20 log(𝐴𝐴! ) − 20log , 0
(1 + 𝛽𝛽𝐴𝐴!)
Way back in the mists of time we used to call Part 14 (PE, February 2024), we commenced with me
complementing you on your perspicacious and sagacious appearance, after which I invited you to sa
By Max
something nicethe
aboutMagnificent
me.
Well, a reader we will call Ron (because that’s his name) rose to the challenge. Ron just emailed me
say: You look great in that Hawaiian shirt, and I love the way you digress loquaciously with verbosity
circumlocution when talking about things of an electronic nature. Well done, Ron. Although I don’t li
Arduino Bootcamp – Part 16
to boast (I’m known far and wide for priding myself on my humility), I must admit that I take some
satisfaction with respect to the garrulity and circuitousness of my humble scribblings.
W
ay back in the mists of time with
In ourthe current
previous datewe
column, andaddedtime. The real-time
a DS3231 office) to transfer
clock (RTC) data
to ouratspiffy
10 characters
new dual-breadboard
we used to call Part 14 (PE, second
setup. The looped
greataround reading
thing about an RTCtheisdate
that its per
backupsecond.
battery The UART
allows it toinremember
the Arduino the time when
February 2024), we com- and
power time from the– RTC
is removed eitherand displaying
accidentally Uno supports
or intentionally – fromvalues
the main ofsystem.
300, 600, 750,
menced with me complementing you these values in the Serial Monitor. If 1200, 2400, 4800, 9600, 19200, 31250,
on your perspicacious and sagacious you’ve forgotten what this program
Just to remind ourselves of where we’re at, you looks 38400, 57600 and
can download more.of our current hardware set
an image
appearance, after which I invited you like,
(file CB-Apr24-01.pdf). As usual, all the files mentioned in this column Arduino
you can download a copy now The default for the are available is 9600
from the April 20
to say something nice about me. (file CB-Apr24-02.txt). baud. We can dictate the baud rate used
page of the PE website: https://bit.ly/pe-downloads
Well, a reader we will call Ron I don’t know about you, but I’ve been by our program by specifying its value
(because that’s his name) rose to the jolly busy recently, paddling up a creek in the Serial.begin() function. And
Next, we created two small programs (or ‘sketches’ in the vernacular of the Arduino). The first loade
challenge. Ron just emailed me to without a paddle (or a creek), up to my we can specify the value used by the
the RTC with the current date and time. The second looped around reading the date and time from t
say: You look great in that Hawaiian armpits in alligators (I never metaphor Serial Monitor by clicking the down-
RTC and displaying these values in the Serial Monitor. If you’ve forgotten what this program looks lik
shirt, and I love the way you digress I didn’t like), and running around in pointing arrow next to the baud rate
loquaciously with verbosity and you can downloadcircles
ever-decreasing now (file CB-Apr24-02.txt).
a copyshouting, ‘Don’t value in the interface (Fig.1).
circumlocution when talking about Panic!’ As a result, I haven’t played with In our previous column, we decided
things of an electronic nature. Well I don’t
my know about
prototype sinceyou,
lastbut
weI’ve beenLet’s
spoke. jolly busytorecently,
speed thingspaddling
up by upusing
a creek without
57600 a paddle (or a
baud.
done, Ron. Although I don’t like to boast creek), up to my armpits in
all power up our Arduinos and fire up alligators (I never metaphor
However, I commenced this current in ever-
I didn’t like), and running around
(I’m known far and wide for priding decreasing circles shouting,
our programs together. Are you ready? ‘Don’t Panic!’ As a result, I by
session haven’t
updatingplayedmywithIDEmy to prototype
the latest since last w
myself on my humility), I must admit spoke. Let’s
One… two… allthree…
power up Go!our Arduinos and fireversion.up our programs
I’m assumingtogether. Are you
it was thisready?
that One… two
that I take some satisfaction with respect three…
Hmm.Go! Is your Serial Monitor displaying reset the Serial Monitor in my IDE
to the garrulity and circuitousness of weird and wonderful characters back to 9600 baud. This resulted in a
my humble scribblings. Hmm. Is your
something Serial
like theMonitor
following? displaying weird and fewwonderful
seconds of characters
gnashing something
of teethlike andthe following
rending of garb before I realised what
Do you know the time? 7t)LT)L�’T)L�7t)L�#t... was going on.
In our previous column, we added a As soon as I’d set the correct baud
DS3231 real-time clock (RTC) to our If so,
If so,although
although thisthis
may accurately
may accurately represent the ratedate andserial
in my time somewhere
monitor, then in the multi-universe, it
I started
spiffy new dual-breadboard setup. The to satisfy requirements
represent the date andhere timeon planet Earth. When
somewhere to seewe the see something
date and time like values
this, theI first
wasthing to do i
great thing about an RTC is that its check
in the that the baud rateit(think
multi-universe, fails‘communication
to satisfy speed’) in looking
expecting, the Serialsomething
Monitor is set liketothe
the same valu
backup battery allows it to remember requirements
we’ve used in here on to
the call planet Earth. When
the Serial.begin() following
functionlines:
in our program. Sometimes the Arduino’s
the time when power is removed – either we see something
integrated developmentlike this, the first thing
environment (IDE) remembers the last value we used in the Serial Monitor…
accidentally or intentionally – from the to
and dosometimes
is check that the baud rate (think
it doesn’t. 2024/2/10 (Saturday) 10:24:18
main system. ‘communication speed’) in the Serial 2024/2/10 (Saturday) 10:24:21
Just to remind ourselves of where Monitor is set to the same value we’ve
The Arduino uses a universal asynchronous receiver/transmitter 2024/2/10 (Saturday) (UART) function 10:24:24
to communicate w
we’re at, you can download an image used in the call to the Serial.begin() 2024/2/10
the host computer. This is a very simple interface in which both the data format (Saturday) 10:24:27
and transmission
of our current hardware setup (file function
speeds arein our program.
configurable. Sometimes
It requires only two wires to : transmit and receive in both directions (both e
CB-Apr24-01.pdf). As usual, all the files the Arduino’s integrated development etc.
also require a connection to ground).
mentioned in this column are available environment (IDE) remembers the last
from the April 2024 page of the PE value we used in the Serial Monitor… I feel like shouting, ‘It’s alive! It’s alive!’
website: https://bit.ly/pe-downloads and sometimes it doesn’t. Note that these values are updated every
Next, we created two small programs The Arduino uses a universal three seconds because we’ve included a
(or ‘sketches’ in the vernacular of the asynchronous receiver/transmitter three second (3000 millisecond) delay at
Arduino). The first loaded the RTC (UART) function to communicate the end of the loop() function in our
with the host computer. This is a very program. (Try changing this to 1000 and
simple interface in which both the observe that your display now updates
data format and transmission speeds each second.)
are configurable. It requires only two
wires to transmit and receive in both Drifting along
directions (both ends also require a I’m sorry. I drifted off there for a moment.
connection to ground). There’s something hypnotic about
There are a variety of ‘standard’ baud watching this series of date and time
rates used for serial communications values appearing on one’s screen. But
implemented using UART protocols. wait! Do the minutes values in your
Many of these are historical in nature. Serial Monitor fail to precisely match
Fig.1. Checking the baud rate in the For example, 110 baud was used by ASR the time displayed in the menu bar of
Serial Monitor. 33 Teletype machines (like the one in my your host computer?
To put this another way, we will display the H-MSD and H-LSD
digits with a short pause between them, wait for a medium-
sized pause, display the M-MSD and M-LSD digits with a
short pause between them, wait for a longer pause, and then
do everything all over again, and again, and… you get the idea.
Decisions, decisions…
Now it’s time for us to make a choice. Do we want to display
time in a 24-hour or 12-hour clock format? We all use digital
clocks in one form or another myriad times each day, typically
without thinking about things too deeply, so I bet most Listing 3a. Displaying hours and minutes in 24-hour format.
Upper Breadboard
D1 D0 understandable in my illustrations,
Upper Breadboard
I don’t want any of these wires to
cross each other.
When I was a kid, my dad drew
three boxes on a piece of paper and
said they represented three houses.
Then he drew three circles on the
same piece of paper and said they
BC 377 represented three utility companies
E 3 1C
(gas, water and electricity). He told
Lower Breadboard
Lower Breadboard
2B
to connect each house with each
utility company without any of the
lines crossing over. He promised
me this was possible (I’m sure he
had his fingers crossed behind
his back when he said this). This
9 8 7 6 5 4 3 2 G ND 5V kept me occupied for days, so – as
From Arduino 11 10
From Arduino far as dad was concerned – it was
‘mission accomplished.’
Fig.4. Reconnecting the Arduino. Fig.5. Adding two transistors. Just for giggles and grins,
I created a drawing showing
to implement tasks like driving our piezoelectric buzzer (PE, the resistors in the upper breadboard and the wires from
December 2023 and January 2024) and communicating with the Arduino plugged into the lower breadboard – see file
our ultrasonic sensor (PE, February 2024). Once again, we CB-Apr24-05.pdf. Why don’t you download this, print it out,
may wish to add these types of functionalities into a future and try adding the requisite wires without any of them crossing.
incarnation of our clock. Once you’ve finished, compare your version to mine (Fig.4).
So, ignoring any potential additional functionalities for Yes, I’m afraid that is a somewhat self-satisfied smirk you
the moment, now that we’ve added our second display, we see plastered on my visage. I must admit that I’m rather
have 16 segments to drive and only 12 pins to drive them proud of this implementation.
with, which presents us with a bit of a poser…
Teach-In 8 CD-ROM EE
FR -ROM
CD
ELECTRONICS
£8.99
SERIES
FOR
THE TEACH-IN
8
This CD-ROM version of the exciting and popular Teach-In 8 series INTRODUCING THE ARDUINO
• Hardware – learn about components and circuits
has been designed for electronics enthusiasts who want to get to • Programming – powerful integrated development system
• Microcontrollers – understand control operations
SOFTWARE
The CD-ROM contains the software for both the Teach-In 8 and PICkit 3 series.
OUT
L R
By Jake Rothman
Back to the buffers – Part 3
F
ollowing the stripboard
designs for a discrete buffer in R12
16.2mA 47Ω
last month’s Audio Out I have +25V
*Add these parts for
produced a PCB version; this board 48V single-rail operation 0.92mA + C9
R7
will be available from the PE PCB 4.7kΩ 47µF
R4* C4 ZD1 R5 35V
4.4V R8 3.7V 3.9V
Service from next month. All the 33kΩ 1nF 10kΩ
390Ω 0V
versions of the circuit given in the C3* +
TR2
R3* BC556B R9
last issue can be built on this PCB, 2.2µF
47kΩ 15Ω +
4.8mA
25V
but it is most likely to be used for the 44V
C1 C6
0V 2.2µF
high-voltage Darlington version given 470nF
50V
TR1
VIN C8
originally in Fig.14 (shown again BC550C R11 100µF
R2 47Ω 25V
here in Fig.24 in case you missed it). 620Ω –0.8V
+
R1 C2 VO
Unlike the discrete op amp PCB, the 100kΩ 100pF 10.4mA
components are more spaced-out, TR3 R6 R14
0V 47kΩ 100kΩ
reflecting the simplicity of the circuit. MPSA29
LED1
This helps with experimentation, Red
high-efficiency
allows for big audiophile capacitors C5 +
1.13V 10µF
and is shown in Fig.25. The single-rail 10V
1.7V
R10 R13
version is shown in Fig.26. 560Ω
0.58V
47Ω
–25V
I’ve also had a few more useful buff-
ering circuit design ideas, which will be C10
47µF
the topic of this and next month’s pieces. + 35V
0V
Fig.25. The assembled discrete buffer amplifier. Fig.26. Single-rail version of discrete buffer amplifier. Extra biasing
parts: R3, R4, C3 and SGL supply link installed. C10 is omitted.
+ C9
R7
. k 100µF
C4 3V 2.4V R5 25V
270pF R8 . k
0V
TR2
BC556B
1.4mA BC143* C6 + C7
TR1 22µF 31.4V 220nF
J113 35V
R2 C1 Ib
k 100nF
IC C8
VIN 4.8mA R11 100µF
8mA 25V
IS
+
VO
R1 C2 +0.8V
47pF TR3
BC546B R6 R14
. k k
0V BC141* Fig.28. JFET buffer amplifier PCB. Note
0V *TO5 transistor the cross-legged mounting of JFET TR1
J113 for higher IC and that the output transistors TR2 and
LED1
Top view R10* 1.8V 1.8V
0.95V
Orange TR3 have been upgraded to TO5 devices.
Interchangeable D Low-bri R13
symmetric JFET S 9.5mA –25V R8 300Ω
G
*Sets IC –17.8V R9 link
15.3mA C10
100µF
+ 25V R10 100Ω
0V R11 33Ω
R12, R13 470Ω
Fig.27. JFET buffer circuit – the supply rails are ±18V and resistors R12 and R13 allow R14 100Ω
it to be used on ±25V supplies. (Overlay diagram will be provided next month.)
1.35mA, the noise voltage of the JFET is LED1 orange 3mm (or similar with a Vf Balanced buffer
2.5nV/√Hz, better than the NE5534 and of 1.8V at 5mA) Now that we have a good discrete op
equal to most expensive audio JFET op ZD1 omitted amp and buffer circuit, we can start
amps. By increasing the current up to combining them into useful audio sys-
10mA, the noise can be reduced to just Capacitors tems. The classic use of a buffer in Hi-Fi
1.3nV/√Hz, not bad at all. C1 100nF 5mm polyester 10% pre-amplifiers is to isolate the low and
C2 47pF 2.5mm ceramic 10% NP0 changing input impedance of a Baxandall
JFET buffer assembly C3 omitted tone control from the volume control, as
The JFET buffer assembled on the PCB C4 270pF 2.5mm ceramic 10% NP0 shown in Fig.29.
is shown in Fig.28. Note the link for R9 C5 10µF 10V 2.5mm pitch radial I mentioned in the last issue that
and the omitted components. Sadly, the electrolytic another pro audio use is to buffer the
pinout of the J113 JFET was different, C6 22µF 35V 2.5mm pitch radial inputs of a differential op amp circuit
not centre-gate, so a ‘leg wiggle’ was electrolytic to provide equal high input imped-
needed. Note also that the board can C7 220nF 2.5mm ceramic 20% X7R ance for good CMRR. This is shown in
accommodate TO5-cased transistors for C8 100µF 35V 5mm pitch radial Fig.30. The op amp resistors have to be
TR2 and TR3, as shown. This allows a electrolytic, non-polarised pre- kept low for low noise, resulting in a
higher output stage current if desired. ferred. Nichicon UEP1E101MPD difficult-to-drive low input impedance
It’s also much easier to fit heatsink clips from Mouser. that needs buffering. Another problem
if needed. C9, C10 100µF 25V 3mm pitch two off is that the input resistances of the dif-
ferential op amp circuit are unequal if
JFET buffer component list Resistors they are the same value resistors on both
R1 1MΩ inputs. I changed the values to equalise
Semiconductors R2 1kΩ this, giving equal loading to the buffers.
TR1 J113 N-channel JFET R3, R4 not used This ensures the even-order distortion
TR2 BC556 PNP small-signal bipolar R5 6.8kΩ harmonics produced by the buffers are
TR3 BC546 NPN small-signal bipolar R6, R7 2.2kΩ equal. These harmonics cancel out in
Fig.29. A common use of a buffer in audio is driving a filter Fig.30. Instrumentation amplifier arrangement of a buffered
network such as a Baxandall tone control. Filters need to be differential amplifier. This gives inputs that are high impedance and
driven from a low impedance and log volume potentiometers equal impedance. The buffers also allow the resistors to have low
need to be loaded by a high impedance. values, minimising noise.
ZIN
Voltage across this resistor is 1.5Vpk-pk . k
Balanced JFET
Hence, I = 1.5mA input buffer R20
esistance or . with not k
k
k 3
– –
1Vpk-pk DC-coupled
0.5Vpk-pk + outputs VO
ZIN k 1 2 +
VIN– – 0V R19
VO JFET
buffer
VIN+ +
0.5Vpk-pk
k Op amp wired as In R8 Offset
1Vpk-pk ZIN position trim
differential amplifier
ZIN k (with CMRR
k
preset in CMRR
middle position) Discrete op trim
0V amp PCB 0V
Fig.32. There is an interesting effect related to the input Fig.33. In comparison with the circuit in Fig.32, the actual resistor
impedance of the differential amplifier; both input signals are values used take into account the resistance-reduction effect
equal and anti-phase. The 1kΩ resistor on the inverting input is mentioned in the text. There is also a gain of 3.2, and the input
reduced to an effective value of 667Ω or 2/3 of its value. This impedances have been equalised. Note the preset for CMRR
assumes all differeerntial amplifer resistors are equal. adjustment and the resistor values are low for noise minimisation.
the differential op amp. I also decided to add a CMRR trim- DC coupling
mer (PR3) in the network. Looking at the final distortion The buffers can be DC coupled to the op amp inputs if desired
curves for the whole system in Fig.31, I think all this fiddly since their +0.81V offset can be easily be rejected by the dif-
tweaking and experimenting was worth it. The cancellation ferential op amp. The offset adjust preset PR1 will need to be
effect achieved was 8dB reduction on the second harmonic. tweaked to bring the output of the whole system to zero. To
do this, omit the bipolar DC blocking
capacitor C8 from both buffer boards.
By omitting these coupling capacitors,
the CMRR will be maintained at low
frequencies since electrolytics have
poor tolerances, resulting in possible
mismatching. However, there is the safety
issue of a hard DC offset being trans-
mitted to the output if there is a wiring
error or fault in one of the buffers. This
could then damage what is connected to
the output. Of course, the output could
be AC coupled, or have a DC detection
circuit and muting relay put in. The final
circuit is shown in Fig.33.
The assembly of the three PCBs is
shown in Fig.34. They will go in a nice
box one day to make a top-notch balanced
headphone amp.
Next month
We will conclude our discrete buffer
Fig.34. Connecting two buffer boards with a differential op amp to make an journey next month by looking at an op
instrumentation or headphone balanced input amplifier. I hope to tidy this up and amp buffer circuit and an interesting
build it into a decent enclosure. design called the ‘diamond buffer’.
We can help and advise with your enquiry, BACK ISSUES – ONLY £5.95
from design to construction. Practical Practical Practical Practical Practical
D NA –
D NA –
IG E
IG E
PE
!
PE
ES M
N
ES M
N
N NEW E
N NEW E
Electronics Electronics Electronics
–
Electronics
–
Electronics
EW
EW
The UK’s premier electronics and computing maker magazine The UK’s premier electronics and computing maker magazine The UK’s premier electronics and computing maker magazine The UK’s premier electronics and computing maker magazine The UK’s premier electronics and computing maker magazine
Circuit Surgery Make it with Micromite Audio Out Circuit Surgery Make it with Micromite Audio Out Circuit Surgery Make it with Micromite Audio Out Flowerpot speakers! PIC n’ Mix Circuit Surgery Make it with Micromite Audio Out Circuit Surgery
Timing and metastability Build an RGB display project Construct a Timing and metastability Fun display project How to make a Transformers Accessing Internet data Superb microphone A low-cost route to Software tools for Understanding Analogue inputs and Constructing the PE Micro-Cap 12
in synchronous circuits using a Micromite Plus transistor radio in synchronous circuits using a Micromite Plus transistor radio and LTspice with your MKC preamplifier high-quality Hi-Fi the PIC18F Differential amplifiers using servomotors Theremin amplifier simulator review
Frequency Reference Mastering Nutube Guitar WIN! Touchscreen WIN! Ultrabrite LED WIN! Don’t miss Random WIN!
WIN!
Signal Distributor RFID tags for Microchip Overdrive and Superb PE PIC Microchip Wide-range Microchip bike light Microchip
Explorer 16/32 our Super Number Microchip
MPLAB Starter Kit
your projects
Curiosity HPC
Development Distortion Pedal Development PIC24F LCD and
USB Curiosity
RCL Box
MCP19114 Flyback
Standalone
Development
Kit Summer Sale! Generator for Serial Memory
Products
Board
WIN!
Board Development
Board
Evaluation
Board WIN! WIN!
Clever Controller
Meet the for dumb chargers
Meet the Cricket: Mastering stepper Micromite
making IoT designs motor drivers Explore-28 Hi-Fi amp on
super easy! the cheap!
Programmable Robot Buggy
www.electronpublishing.com @practicalelec practicalelectronics www.electronpublishing.com @practicalelec practicalelectronics www.electronpublishing.com @practicalelec practicalelectronics www.electronpublishing.com @practicalelec practicalelectronics www.electronpublishing.com @practicalelec practicalelectronics
STEWART OF READING
17A King Street, Mortimer, near Reading, RG7 3RS
Telephone: 0118 933 1111 Fax: 0118 933 2375
USED ELECTRONIC TEST EQUIPMENT
Check website www.stewart-of-reading.co.uk
Fluke/Philips PM3092 Oscilloscope HP 54600B Oscilloscope
(ALL PRICES PLUS CARRIAGE & VAT)
2+2 Channel 200MHz Delay TB, Analogue/Digital Dual Trace 100MHz
Autoset etc – £250 Please check availability before ordering or calling in
Only £75, with accessories £125
LAMBDA GENESYS PSU GEN100-15 100V 15A Boxed As New £400 Marconi 2305 Modulation Meter £250
LAMBDA GENESYS PSU GEN50-30 50V 30A £400 Marconi 2440 Counter 20GHz £295
IFR 2025 Signal Generator 9kHz – 2.51GHz Opt 04/11 £900 Marconi 2945/A/B Communications Test Set Various Options POA
IFR 2948B Communication Service Monitor Opts 03/25 Avionics POA Marconi 2955 Radio Communications Test Set £595
IFR 6843 Microwave Systems Analyser 10MHz – 20GHz POA Marconi 2955A Radio Communications Test Set £725
R&S APN62 Syn Function Generator 1Hz – 260kHz £295 Marconi 2955B Radio Communications Test Set £800
Agilent 8712ET RF Network Analyser 300kHz – 1300MHz POA Marconi 6200 Microwave Test Set £1,500
HP8903A/B Audio Analyser £750 – £950 Marconi 6200A Microwave Test Set 10MHz – 20GHz £1,950
HP8757D Scaler Network Analyser POA Marconi 6200B Microwave Test Set £2,300
HP3325A Synthesised Function Generator £195 Marconi 6960B Power Meter with 6910 sensor £295
HP3561A Dynamic Signal Analyser £650 Tektronix TDS3052B Oscilloscope 500MHz 2.5GS/s £1,250
HP6032A PSU 0-60V 0-50A 1000W £750 Tektronix TDS3032 Oscilloscope 300MHz 2.5GS/s £995
HP6622A PSU 0-20V 4A Twice or 0-50V 2A Twice £350 Tektronix TDS3012 Oscilloscope 2 Channel 100MHz 1.25GS/s £450
HP6624A PSU 4 Outputs £400 Tektronix 2430A Oscilloscope Dual Trace 150MHz 100MS/s £350
HP6632B PSU 0-20V 0-5A £195 Tektronix 2465B Oscilloscope 4 Channel 400MHz £600
HP6644A PSU 0-60V 3.5A £400 Farnell AP60/50 PSU 0-60V 0-50A 1kW Switch Mode £300
HP6654A PSU 0-60V 0-9A £500 Farnell XA35/2T PSU 0-35V 0-2A Twice Digital £75
HP8341A Synthesised Sweep Generator 10MHz – 20GHz £2,000 Farnell AP100-90 Power Supply 100V 90A £900
HP83630A Synthesised Sweeper 10MHz – 26.5 GHz POA Farnell LF1 Sine/Sq Oscillator 10Hz – 1MHz £45
HP83624A Synthesised Sweeper 2 – 20GHz POA Racal 1991 Counter/Timer 160MHz 9 Digit £150
HP8484A Power Sensor 0.01-18GHz 3nW-10µW £75 Racal 2101 Counter 20GHz LED £295
HP8560E Spectrum Analyser Synthesised 30Hz – 2.9GHz £1,750 Racal 9300 True RMS Millivoltmeter 5Hz – 20MHz etc £45
HP8563A Spectrum Analyser Synthesised 9kHz – 22GHz £2,250 Racal 9300B As 9300 £75
HP8566B Spectrum Analsyer 100Hz – 22GHz £1,200 Solartron 7150/PLUS 6½ Digit DMM True RMS IEEE £65/£75
HP8662A RF Generator 10kHz – 1280MHz £750 Solatron 1253 Gain Phase Analyser 1mHz – 20kHz £600
Marconi 2022E Synthesised AM/FM Signal Generator 10kHz – 1.01GHz £325 Solartron SI 1255 HF Frequency Response Analyser POA
Marconi 2024 Synthesised Signal Generator 9kHz – 2.4GHz £800 Tasakago TM035-2 PSU 0-35V 0-2A 2 Meters £30
Marconi 2030 Synthesised Signal Generator 10kHz – 1.35GHz £750 Thurlby PL320QMD PSU 0-30V 0-2A Twice £160 – £200
Marconi 2023A Signal Generator 9kHz – 1.2GHz £700 Thurlby TG210 Function Generator 0.002-2MHz TTL etc Kenwood Badged £65
Teach-In 2017
The books listed here
have been selected by
the Practical Electronics
editorial staff as being
of special interest to
everyone involved
BBC micro:bit
direct to your door.
FOR A FULL DESCRIPTION
OF THESE BOOKS AND
CD-ROMS SEE THE SHOP ON
OUR WEBSITE
PYTHON CODING ON THE BBC MICRO:BIT
Jim Gatenby www.electronpublishing.com
Python is the leading programming language, easy to learn and widely used by
professional programmers. This book uses MicroPython, a version of Python adapted
for the BBC Micro:bit. All prices include
Among the many topics covered are: main features of the BBC micro:bit including a
simulation in a web browser screen; various levels of programming languages; Mu Editor
UK postage
for writing, saving and retrieving programs, with sample programs and practice exercises;
REPL, an interactive program for quickly testing lines of code; scrolling messages, creating
and animating images on the micro:bit’s LEDs; playing and creating music, sounds
and synthesized speech; using the on-board accelerometer to detect movement of the
micro:bit on three axes; glossary of computing terms. MICROPROCESSORS
This book is written using plain English, avoids technical jargon wherever possible and
covers many of the coding instructions and methods which are common to most program-
INTERFACING PIC MICROCONTROLLERS – 2nd Ed
ming languages. It should be helpful to beginners of any age, whether planning a career in
Martin Bates
computing or writing code as an enjoyable hobby.
298 pages Order code NE48 £34.99
118 Pages Order code PYTH MBIT £7.99
PROGRAMMING 16-BIT PIC MICROCONTROLLERS IN
GETTING STARTED WITH THE BBC MICRO:BIT C – LEARNING TO FLY THE PIC24
Lucio Di Jasio (Application Segments Manager,
Mike Tooley Microchip, USA)
Not just an educational resource for teaching youngsters coding, the BBC micro:bit is a tiny 496 pages + CD-ROM Order code NE45 £38.00
low cost, low-profile ARM-based single-board computer. The board measures 43mm × 52mm
but despite its diminutive footprint it has all the features of a fully fledged microcontroller to-
INTRODUCTION TO MICROPROCESSORS AND
gether with a simple LED matrix display, two buttons, an accelerometer and a magnetometer.
MICROCONTROLLERS – 2nd Ed
Mike Tooley’s book will show you how the micro:bit can be used in a wide range of applications John Crisp
from simple domestic gadgets to more complex control systems such as those used for light- 222 pages Order code NE31 £29.99
ing, central heating and security applications. Using Microsoft Code Blocks, the book provides
a progressive introduction to coding as well as interfacing with sensors and transducers. THE PIC MICROCONTROLLER YOUR PERSONAL
INTRODUCTORY COURSE – 3rd Ed
Each chapter concludes with a simple practical project that puts into practice what the reader John Morton
has learned. The featured projects include an electronic direction finder, frost alarm, reaction
tester, battery checker, thermostatic controller and a passive infrared (PIR) security alarm. 270 pages Order code NE36 £25.00
No previous coding experience is assumed, making this book ideal for complete beginners
PIC IN PRACTICE – 2nd Ed
as well as those with some previous knowledge. Self-test questions are provided at the
David W. Smith
end of each chapter, together with answers at the end of the
book. So whatever your starting point, this book will take 308 pages Order code NE39 £24.99
THEORY AND you further along the road to developing and coding your
own real-world applications.
MICROCONTROLLER COOKBOOK
REFERENCE 108 Pages Order code BBC MBIT £7.99
Mike James
240 pages Order code NE26 £36.99
UNDERSTANDING ELECTRONIC CONTROL SYSTEMS Order from our online shop at: www.electronpublishing.com
Owen Bishop
228 pages Order code NE35 £36.99
s or ost recent PE/EPE constructional ro ects are availa le. ro the uly issue onwards s with eight digit codes
have silk screen overlays and where a lica le are dou le sided have lated through holes and solder ask. hey are si ilar to
hotos in the ro ect articles. arlier s are likely to e ore asic and ay not include silk screen overlay e single sided lack
lated through holes and solder ask.
lways check rice and availa ility in the latest issue or online. large nu er o older oards are listed or ordering on our we site.
In most cases we do not supply kits or components for our projects. For older projects it is important to check the availability
of all components before purchasing PCBs.
ack issues o articles are availa le see ack ssues age or details.
DECEMBER 2021
PE/EPE PCB SERVICE
AM/FM/SW Digital Receiver .............................................. CSE200902A 13.95 Order Code Project Quantity Price
Balanced Input and Attenuator for USB CODEC............... 01106202 11.95
.........................................................
NOVEMBER 2021
Dual Battery Lifesaver ....................................................... 11111202 £6.95 .........................................................
AUGUST 2021 el . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Ol’ i er .................................................................... 19104201 £11.95 Email . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Ol’ i er odule using S ............. 19104201-88 £8.95
Ol’ i er set o acrylic case ieces and s acer ................ 19104201-ACR £8.75 I enclose payment of £ . . . . . . . . . . . . . . (cheque/PO in £ sterling only)
Ol’ i er S wide SO ................................ .
Wideband Digital RF Power Meter .................................... 04106201 £9.75 payable to: Practical Electronics
Switchmode 78xx regulators (PACK of 5!) ....................... 18105201 £7.95
Cool Beans SMAD display ................................................ . Card No . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
JULY 2021 Valid From . . . . . . . . . . . . . . . . . Expiry Date . . . . . . . . . . . . . . . .
tiny reakout ev oard with a acitive ouch ... 24110181 £9.75
IR Remote Control Assistant (Jaycar version)................... 15005201 £8.95 Card Security No . . . . . . . . . .
IR Remote Control Assistant (Altronics version)................ 15005202 £8.95
PIC18F Development Board.............................................. PNM-JUL21 £12.95 You can also order PCBs by phone, email or via the shop
icro hone rea lifier.......................................................AO-JUL21 £11.95 on our website: www.electronpublishing.com
ll rices include and . dd er project for post to Europe; £5 per project outside Europe.
Orders and payment should be sent to:
Practical Electronics, Electron Publishing Ltd
113 Lynwood Drive, Merley, Wimborne, Dorset BH21 1UU
Tel 01202 880299 Email: [email protected]
On-line Shop: www.epemag.com
he ues should e ade aya le to ‘ ractical lectronics’ (Payment in £ sterling only).
NOTE: Most boards are in stock and sent within seven days of receipt of order, please allow up to 28 days delivery if we need to restock.
Practical
Electronics
If you want your advertisements to be seen by the largest readership
at the most economical price then our classified page offers excellent Practical Electronics
value. The rate for semi-display space is £10 (+VAT) per centimetre reaches more UK
high, with a minimum height of 2·5cm. All semi-display adverts have a readers than any other
width of 5.5cm. The prepaid rate for classified adverts is 40p (+VAT) per UK monthly hobby
word (minimum 12 words).
electronics magazine.
Cheques are made payable to ‘Practical Electronics’. VAT must be
Our sales figures prove it.
added. Advertisements with remittance should be sent to: Practical
Electronics, 113 Lynwood Drive, Wimborne, Dorset, BH21 1UU. We have been the leading
Tel 07973518682 Email: [email protected] monthly magazine in
BOWOOD ELECTRONICS LTD
For ratesofand
Suppliers further
Electronic information on display and classified advertising
Components this market for the last
please contact our Advertisement
www.bowood-electronics.co.uk Manager, Matt Pulzer – see below. twenty-seven years.
Unit 10, Boythorpe Business Park, Dock Walk, Chesterfield,
Derbyshire S40 2QR. Sales: 01246 200 222
Send large letter stamp for Catalogue
ADVERTISING INDEX
CRICKLEWOOD ELECTRONICS . . . . . . . . . . . . . . . . . . . . . . . . . 55 Advertisement offices
ESR ELECTRONIC COMPONENTS . . . . . . . . . . . . . . . . . . . . . . . 65 Matt Pulzer
FLOWCODE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
HAMMOND ELECTRONICS Ltd . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Electron Publishing Ltd
JPG ELECTRONICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
1 Buckingham Road
MICROCHIP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Cover (ii)
Brighton
PEAK ELECTRONIC DESIGN. . . . . . . . . . . . . . . . . . . . . . Cover (iv) East Sussex BN1 3RA
POLABS D.O.O.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Tel 07973 518682
QUASAR ELECTRONICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Email [email protected]
SILICON CHIP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
STEWART OF READING. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 Web www.electronpublishing.com
TAG-CONNECT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
TERRINGTON COMPONENTS . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 For editorial contact details see page 7.
GPS-Disciplined Oscillator
The GPS-Disciplined Oscillator (GPSDO) is built almost
entirely in software, so it only requires a PIC, an oven-
conditioned crystal oscillator and a few other supporting
parts. It provides an extremely accurate 10MHz signal with
an error in the parts per billion range.
PLUS!
All your favourite regular columns from Cool Beans and
Circuit Surgery, to MitchElectronics, Teach-In, Techno Talk
and Net Work. On sale 4 April 2024
Content may be subject to change
JPG Electronics
Britannia Maison Mes Amis
Bournemouth BH1 9EH, United Kingdom
Inn
Old Road Remember, we print the date of the last issue
of your current subscription in a box on the
ad
d
Roa
address sheet that comes with your copy.
Old H
orth
tsw
Cha
Morrisons
Sparks
Digital subscribers, please call 01202 880299
Retail & Trade Welcome • Free Parking • Google St View Tour: S40 2RB or visit: www.electronpublishing.com
Published on approximately the first Thursday of each month by Electron Publishing Limited, 1 Buckingham Road, Brighton, East Sussex BN1 3RA. Printed in England by Acorn Web Offset Ltd., Normanton WF6
1TW. Distributed by Seymour, 86 Newman St., London W1T 3EX. Subscriptions UK: £33.99 (6 months); £59.99 (12 months); £114.99 (2 years). EUROPE: airmail service, £38.99 (6 months); £69.99 (12 months);
£129.99 (2 years). REST OF THE WORLD: airmail service, £46.99 (6 months); £84.99 (12 months); £164.99 (2 years). Payments payable to ‘Practical Electronics’, Practical Electronics Subscriptions, PO Box
6337, Bournemouth BH1 9EH, United Kingdom. Email: [email protected]. PRACTICAL ELECTRONICS is sold subject to the following conditions, namely that it shall not, without the written consent of the
Publishers first having been given, be lent, resold, hired out or otherwise disposed of by way of Trade at more than the recommended selling price shown on the cover, and that it shall not be lent, resold,
hired out or otherwise disposed of in a mutilated condition or in any unauthorised cover by way of Trade or affixed to or as part of any publication or advertising, literary or pictorial matter whatsoever.
nics
The UK
Circuit Surgery Teach-In 2024 ’s pre mierOut
Audio
electro
LTspice 24 update and Digital input and output
Circuitwith Designing
nics an
Frequency Response Analysis LTspic Surgerydiscrete buffers
the ESP32 SoC microcontroller d com
e 17.1 a puting
Respo n
nse An d Frequenc Teach maker
alysis y A -In 2 02 magaz
new s 4
with th eries on lea
ine
e ESP3 rn
2 SoC ing electronic Audio
O
microc
ontrolle s Design ut
in
r discrete g
Digita buffers
Volum l
Potente Control
iomete
r
‘Swiss Army Knife’ WIN!
Basic RF Automated
Buildin Test Bench PICM3ic2MroKchMip
Signal Mains g the Active Devrieolospitmy ePnrot
Cu CJ
You read that right! We now sell the current issue of your favourite electronics
magazine for exactly the same price as in the High Street, but we deliver it
straight to your door – and for UK addresses we pay the postage. No need to
journey into town to queue outside the newsagent. Just go to our website, set
up an account in 30 seconds, order your magazine and we’ll do the rest.
www.electronpublishing.com