Silicon ChipApril 2017 - Silicon Chip Online SILICON CHIP
  1. Outer Front Cover
  2. Contents
  3. Publisher's Letter: Big Brother can control your aircon
  4. Feature: DRED: they can turn your aircon off! by Dr David Maddison
  5. Feature: El Cheapo Modules, Part 6: Direct Digital Synthesiser by Jim Rowe
  6. Subscriptions
  7. Project: New Spring Reverberation Unit by Nicholas Vinen
  8. Project: The eFuse: never replace another blown fuse by John Clarke
  9. Project: A Digital LCD Audio ’Scope for less than $40! by Jim Rowe
  10. Serviceman's Log: Stomping on the pedal killed it by Dave Thompson
  11. Project: Micromite BackPack Touchscreen DDS Signal Generator by Geoff Graham
  12. Review: Keysight DSOX1102G Digital Oscilloscope by Nicholas Vinen
  13. PartShop
  14. Vintage Radio: Sony’s TV8-301: the world’s first direct-view transistor TV set by Ian Batty
  15. Market Centre
  16. Advertising Index
  17. Notes & Errata: Squash and Ping-Pong / Pool Lap Counter / Stationmaster / Voltage/Current Reference with Touchscreen

This is only a preview of the April 2017 issue of Silicon Chip.

You can view 40 of the 96 pages in the full issue, including the advertisments.

For full access, purchase the issue for $10.00 or subscribe for access to the latest issues.

Items relevant to "El Cheapo Modules, Part 6: Direct Digital Synthesiser":
  • AD9833 DDS module with programmable attenuator (Component, AUD $25.00)
  • AD9833 DDS module without attenuator (Component, AUD $15.00)
  • Software for El Cheapo Modules: AD9833 DDS (Free)
Articles in this series:
  • El Cheapo Modules From Asia - Part 1 (October 2016)
  • El Cheapo Modules From Asia - Part 1 (October 2016)
  • El Cheapo Modules From Asia - Part 2 (December 2016)
  • El Cheapo Modules From Asia - Part 2 (December 2016)
  • El Cheapo Modules From Asia - Part 3 (January 2017)
  • El Cheapo Modules From Asia - Part 3 (January 2017)
  • El Cheapo Modules from Asia - Part 4 (February 2017)
  • El Cheapo Modules from Asia - Part 4 (February 2017)
  • El Cheapo Modules, Part 5: LCD module with I²C (March 2017)
  • El Cheapo Modules, Part 5: LCD module with I²C (March 2017)
  • El Cheapo Modules, Part 6: Direct Digital Synthesiser (April 2017)
  • El Cheapo Modules, Part 6: Direct Digital Synthesiser (April 2017)
  • El Cheapo Modules, Part 7: LED Matrix displays (June 2017)
  • El Cheapo Modules, Part 7: LED Matrix displays (June 2017)
  • El Cheapo Modules: Li-ion & LiPo Chargers (August 2017)
  • El Cheapo Modules: Li-ion & LiPo Chargers (August 2017)
  • El Cheapo modules Part 9: AD9850 DDS module (September 2017)
  • El Cheapo modules Part 9: AD9850 DDS module (September 2017)
  • El Cheapo Modules Part 10: GPS receivers (October 2017)
  • El Cheapo Modules Part 10: GPS receivers (October 2017)
  • El Cheapo Modules 11: Pressure/Temperature Sensors (December 2017)
  • El Cheapo Modules 11: Pressure/Temperature Sensors (December 2017)
  • El Cheapo Modules 12: 2.4GHz Wireless Data Modules (January 2018)
  • El Cheapo Modules 12: 2.4GHz Wireless Data Modules (January 2018)
  • El Cheapo Modules 13: sensing motion and moisture (February 2018)
  • El Cheapo Modules 13: sensing motion and moisture (February 2018)
  • El Cheapo Modules 14: Logarithmic RF Detector (March 2018)
  • El Cheapo Modules 14: Logarithmic RF Detector (March 2018)
  • El Cheapo Modules 16: 35-4400MHz frequency generator (May 2018)
  • El Cheapo Modules 16: 35-4400MHz frequency generator (May 2018)
  • El Cheapo Modules 17: 4GHz digital attenuator (June 2018)
  • El Cheapo Modules 17: 4GHz digital attenuator (June 2018)
  • El Cheapo: 500MHz frequency counter and preamp (July 2018)
  • El Cheapo: 500MHz frequency counter and preamp (July 2018)
  • El Cheapo modules Part 19 – Arduino NFC Shield (September 2018)
  • El Cheapo modules Part 19 – Arduino NFC Shield (September 2018)
  • El cheapo modules, part 20: two tiny compass modules (November 2018)
  • El cheapo modules, part 20: two tiny compass modules (November 2018)
  • El cheapo modules, part 21: stamp-sized audio player (December 2018)
  • El cheapo modules, part 21: stamp-sized audio player (December 2018)
  • El Cheapo Modules 22: Stepper Motor Drivers (February 2019)
  • El Cheapo Modules 22: Stepper Motor Drivers (February 2019)
  • El Cheapo Modules 23: Galvanic Skin Response (March 2019)
  • El Cheapo Modules 23: Galvanic Skin Response (March 2019)
  • El Cheapo Modules: Class D amplifier modules (May 2019)
  • El Cheapo Modules: Class D amplifier modules (May 2019)
  • El Cheapo Modules: Long Range (LoRa) Transceivers (June 2019)
  • El Cheapo Modules: Long Range (LoRa) Transceivers (June 2019)
  • El Cheapo Modules: AD584 Precision Voltage References (July 2019)
  • El Cheapo Modules: AD584 Precision Voltage References (July 2019)
  • Three I-O Expanders to give you more control! (November 2019)
  • Three I-O Expanders to give you more control! (November 2019)
  • El Cheapo modules: “Intelligent” 8x8 RGB LED Matrix (January 2020)
  • El Cheapo modules: “Intelligent” 8x8 RGB LED Matrix (January 2020)
  • El Cheapo modules: 8-channel USB Logic Analyser (February 2020)
  • El Cheapo modules: 8-channel USB Logic Analyser (February 2020)
  • New w-i-d-e-b-a-n-d RTL-SDR modules (May 2020)
  • New w-i-d-e-b-a-n-d RTL-SDR modules (May 2020)
  • New w-i-d-e-b-a-n-d RTL-SDR modules, Part 2 (June 2020)
  • New w-i-d-e-b-a-n-d RTL-SDR modules, Part 2 (June 2020)
  • El Cheapo Modules: Mini Digital Volt/Amp Panel Meters (December 2020)
  • El Cheapo Modules: Mini Digital Volt/Amp Panel Meters (December 2020)
  • El Cheapo Modules: Mini Digital AC Panel Meters (January 2021)
  • El Cheapo Modules: Mini Digital AC Panel Meters (January 2021)
  • El Cheapo Modules: LCR-T4 Digital Multi-Tester (February 2021)
  • El Cheapo Modules: LCR-T4 Digital Multi-Tester (February 2021)
  • El Cheapo Modules: USB-PD chargers (July 2021)
  • El Cheapo Modules: USB-PD chargers (July 2021)
  • El Cheapo Modules: USB-PD Triggers (August 2021)
  • El Cheapo Modules: USB-PD Triggers (August 2021)
  • El Cheapo Modules: 3.8GHz Digital Attenuator (October 2021)
  • El Cheapo Modules: 3.8GHz Digital Attenuator (October 2021)
  • El Cheapo Modules: 6GHz Digital Attenuator (November 2021)
  • El Cheapo Modules: 6GHz Digital Attenuator (November 2021)
  • El Cheapo Modules: 35MHz-4.4GHz Signal Generator (December 2021)
  • El Cheapo Modules: 35MHz-4.4GHz Signal Generator (December 2021)
  • El Cheapo Modules: LTDZ Spectrum Analyser (January 2022)
  • El Cheapo Modules: LTDZ Spectrum Analyser (January 2022)
  • Low-noise HF-UHF Amplifiers (February 2022)
  • Low-noise HF-UHF Amplifiers (February 2022)
  • A Gesture Recognition Module (March 2022)
  • A Gesture Recognition Module (March 2022)
  • Air Quality Sensors (May 2022)
  • Air Quality Sensors (May 2022)
  • MOS Air Quality Sensors (June 2022)
  • MOS Air Quality Sensors (June 2022)
  • PAS CO2 Air Quality Sensor (July 2022)
  • PAS CO2 Air Quality Sensor (July 2022)
  • Particulate Matter (PM) Sensors (November 2022)
  • Particulate Matter (PM) Sensors (November 2022)
  • Heart Rate Sensor Module (February 2023)
  • Heart Rate Sensor Module (February 2023)
  • UVM-30A UV Light Sensor (May 2023)
  • UVM-30A UV Light Sensor (May 2023)
  • VL6180X Rangefinding Module (July 2023)
  • VL6180X Rangefinding Module (July 2023)
  • pH Meter Module (September 2023)
  • pH Meter Module (September 2023)
  • 1.3in Monochrome OLED Display (October 2023)
  • 1.3in Monochrome OLED Display (October 2023)
  • 16-bit precision 4-input ADC (November 2023)
  • 16-bit precision 4-input ADC (November 2023)
  • 1-24V USB Power Supply (October 2024)
  • 1-24V USB Power Supply (October 2024)
  • 14-segment, 4-digit LED Display Modules (November 2024)
  • 0.91-inch OLED Screen (November 2024)
  • 0.91-inch OLED Screen (November 2024)
  • 14-segment, 4-digit LED Display Modules (November 2024)
  • The Quason VL6180X laser rangefinder module (January 2025)
  • TCS230 Colour Sensor (January 2025)
  • The Quason VL6180X laser rangefinder module (January 2025)
  • TCS230 Colour Sensor (January 2025)
  • Using Electronic Modules: 1-24V Adjustable USB Power Supply (February 2025)
  • Using Electronic Modules: 1-24V Adjustable USB Power Supply (February 2025)
Items relevant to "New Spring Reverberation Unit":
  • New Spring Reverberation Unit PCB [01104171] (AUD $12.50)
  • New Spring Reverberation Unit PCB pattern (PDF download) [01104171] (Free)
Items relevant to "The eFuse: never replace another blown fuse":
  • Electronic Fuse PCB [04102171] (AUD $7.50)
  • Hard-to-get parts for the Electronic Fuse (Component, AUD $25.00)
  • Electronic Fuse PCB pattern (PDF download) [04102171] (Free)
  • Electronic Fuse panel artwork (PDF download) (Free)
Items relevant to "Micromite BackPack Touchscreen DDS Signal Generator":
  • Micromite LCD BackPack PCB [2.8-inch version) [07102122] (AUD $5.00)
  • PIC32MX170F256B-50I/SP programmed for the Micromite-based DDS Signal Generator [SigGeneratorFull.HEX] (Programmed Microcontroller, AUD $15.00)
  • MCP1700 3.3V LDO (TO-92) (Component, AUD $2.00)
  • AD9833 DDS module with programmable attenuator (Component, AUD $25.00)
  • CP2102-based USB/TTL serial converter with 5-pin header and 30cm jumper cable (Component, AUD $5.00)
  • Matte/Gloss Black UB3 Lid for 2.8-inch Micromite LCD BackPack (PCB, AUD $5.00)
  • Clear UB3 Lid for 2.8-inch Micromite LCD BackPack (PCB, AUD $5.00)
  • Gloss Black UB3 Lid for 2.8-inch Micromite LCD BackPack (PCB, AUD $4.00)
  • Software for the Micromite-based Touchscreen DDS Signal Generator [SigGeneratorFull.HEX] (Free)
  • Micromite LCD BackPack PCB patterns (PDF download) [07102121/2] (Free)
  • Micromite LCD BackPack/Ultrasonic sensor lid cutting diagrams (download) (Panel Artwork, Free)

Purchase a printed copy of this issue for $10.00.

siliconchip.com.au April 2017  1 PROJECT OF THE MONTH Our very own specialists are developing fun and challenging Arduino®-compatible projects for you to build every month, with special prices exclusive to Nerd Perks Club Members. ANDROID PHONE NOTIFIER AUTOMATICALLY SEND UPDATES/MESSAGES FROM YOUR PROJECT Our boffins have created this nifty yet simple project which allows the Arduino® project to automatically send messages using an Android phone. Perfect for those requiring updates to be sent to them from projects based in separate locations. We’re using a Leonardo board to emulate a keyboard, and send commands via USB to the phone, which in turns sends a text message to another mobile phone. In this project, we’ve hooked up an Ultrasonic Sensor Module as the trigger, reacting if something is detected too close. But like any Arduino® project, you can customise it as much as you like. XC-4430 Finished Project XC-4442 VALUED AT $42.85 WC-7725 NERD PERKS CLUB OFFER SEE STEP-BY-STEP INSTRUCTIONS AT jaycar.com.au/android-phone-notifier BUY ALL FOR $ 3495 WHAT YOU WILL NEED: LEONARDO MAIN BOARD XC-4430 $29.95 ULTRASONIC DISTANCE SENSOR XC-4442 $7.95 OTG ADAPTOR WC-7725 $4.95 SAVE 18% 2017 4 $ 95 CATALOGUE OUT NOW! FREE CATALOGUE* FOR NERD PERKS MEMBERS WITH PURCHASES OF $30 OR MORE. * Applies to new and existing members for purchases made in-store or online. Valid 24 March to 23 April 2017. NERD PERKS CLUB MEMBERS RECEIVE: 25% OFF ISP PROGRAMMER XC-4627 Unbrick, install or update Arduino-compatible boards and custom-made projects. • Compatible with a wide range of microcontrollers, including all Duinotech main boards • 10 pin ISP programming cable included 14 95 $ 320 X 240 LCD TOUCH SCREEN XC-4630 Large, colourful touch display shield which piggy-backs straight onto your Uno or Mega. • Fast parallel interface • microSD Card slot • Resistive touch interface $ For full range of Arduino® Shields & Modules, see page 315 to 341 of our 2017 Catalogue. 29 95 EARN A POINT FOR EVERY DOLLAR SPENT AT ANY JAYCAR COMPANY STORE• & BE REWARDED WITH A $25 JAYCOINS GIFT CARD ONCE YOU REACH 500 POINTS! Conditions apply. See website for T&Cs * ALL WARNING SIGNS & STICKERS* *Applies to LA-5101, LA-5102, LA-5106, LA-5107, LA-5108, LA-5114 & LA-5115 Catalogue Sale 24 March - 23 April, 2017 REGISTER ONLINE TODAY BY VISITING: www.jaycar.com.au/nerdperks To order phone 1800 022 888 or visit www.jaycar.com.au Contents Vol.30, No.4; April 2017 SILICON CHIP www.siliconchip.com.au Features 14 DRED: they can turn your aircon off! It sounds like a misprint! DRED is a “feature” built into all new air conditioners and if enabled, will allow supply authorities to remotely turn your air conditioner down by 25%, 50% or even to fan-only mode – by Dr David Maddison 18 El Cheapo Modules, Part 6: Direct Digital Synthesiser This tiny DDS function generator module can produce accurate sine, square or triangle waveforms from 0.1Hz to 12.5MHz. It uses the Analog Devices AD9833 DDS chip and a 25MHz crystal oscillator and costs next to nothing – by Jim Rowe DRED allows supply authorities to control your air conditioner – without your knowledge – Page 14 79 Review: Keysight DSOX1102G Digital Oscilloscope There are a lot of compact, low-cost scopes on the market. Some undercut the Keysight on price but we doubt if any of them could compete with the sheer performance of the MegaZoom IV chipset – by Nicholas Vinen Many musicians prefer the sound of a spring reverberation unit over modern digital types – Page 26 Projects To Build 26 New Spring Reverberation Unit Can a reverb unit make a mediocre guitarist sound like a star? Maybe not, but this spring reverb unit will really lift your sound – by Nicholas Vinen 38 The eFuse: never replace another blown fuse When you’ve replaced a fuse for the nth time, you’ll wonder why you didn’t build the eFuse! Press a button and it resets – by John Clarke 53 A Digital LCD Audio ’Scope for less than $40! This build-it-yourself Chinese scope kit gives a good bang for your buck. Great for audio troubleshooting and general electronics work – by Jim Rowe Sick of replacing fuses? Just push the button on our new eFuse and it resets     itself – Page 38 68 Micromite BackPack Touchscreen DDS Signal Generator Combines a low-cost DDS module with a Micromite BackPack to produce a highly useful sine, square and triangle waveform generator with a touchscreen LCD. It’s ideal for audio and RF applications, including service work – by Geoff Graham Special Columns 58 Serviceman’s Log Stomping on the effects pedal killed it! – by Dave Thompson 76 Circuit Notebook (1) Two modifications for the Battery LifeSaver (2) Measuring weight using an Arduino (3) Simple bird scarer stops tree damage Yes! You can build a fully functioning audio LCD ’scope for under $40.00! – Page 53 84 Vintage Television Sony’s TV8-301: the world’s first direct-view transistor TV set – by Ian Batty Departments 2 Publisher’s Letter   90 4 Mailbag  95 25 SILICON CHIP Subscriptions   96 siliconchip.com.au 82 SILICON CHIP Online Shop   96 Ask Silicon Chip    Market Centre Advertising Index Notes and Errata Add a Micromite BackPack to a cheap DDS module and you have a multi-waveform function generator with LCD – Page 68 April 2017  1 www.facebook.com/siliconchipmagazine SILICON SILIC CHIP www.siliconchip.com.au Publisher & Editor-in-Chief Leo Simpson, B.Bus., FAICD Editor Nicholas Vinen Technical Editor John Clarke, B.E.(Elec.) Technical Staff Ross Tester Jim Rowe, B.A., B.Sc Bao Smith, B.Sc Photography Ross Tester Reader Services Ann Morris Advertising Enquiries Glyn Smith Phone (02) 9939 3295 Mobile 0431 792 293 glyn<at>siliconchip.com.au Regular Contributors Brendan Akhurst David Maddison B.App.Sc. (Hons 1), PhD, Grad.Dip.Entr.Innov. Kevin Poulter Dave Thompson SILICON CHIP is published 12 times a year by Silicon Chip Publications Pty Ltd. ACN 003 205 490. ABN 49 003 205 490. All material is copyright ©. No part of this publication may be reproduced without the written consent of the publisher. Printing and Distribution: Derby Street, Silverwater, NSW 2148. Subscription rates: $105.00 per year in Australia. For overseas rates, see our website or the subscriptions page in this issue. Editorial office: Unit 1 (up ramp), 234 Harbord Rd, Brookvale, NSW 2100. Postal address: PO Box 139, Collaroy Beach, NSW 2097. Phone (02) 9939 3295. E-mail: silicon<at>siliconchip.com.au ISSN 1030-2662 Recommended & maximum price only. 2  Silicon Chip Publisher’s Letter Big Brother can control your aircon Australians love air-conditioning. Over the last few years, more and more domestic aircons have been installed, to the point where market penetration is now approaching 70% or more in some cities. And why not, Australia has hot summers and if people want and can afford air-conditioning, then there is no particular reason why they shouldn’t have it. In fact, most Australian cities have just sweltered through a very hot Summer and it can be particularly difficult to get to sleep on hot, humid nights. As someone who does not have air-conditioning at home, I can testify to that. That has made me consider having air-conditioning installed so that we can be more comfortable next summer. But in thinking along these lines, I and millions of other Australians are contributing to an ever-increasing peak demand for electricity in those very hot summer periods and our diminishing grid cannot cope, especially with the trend to renewable energy sources which often do not contribute when they are most needed. For example, if a large high pressure system is stationary over the southern states, as can happen in the hottest summer weeks, there may be very little wind power generation. And solar panels drop their power output just when the evening peak demand is ramping up. Ultimately, if there is insufficient grid capacity, the AEMO (Australian Energy Market Operator) can demand load shedding which means that consumers get blackouts. Great. So there you are, enjoying your hard-earned air-conditioning and all the other benefits of a modern economy and the electricity goes off and you don’t know how long the blackout might last. This is set to happen much more frequently in South Australia but other states will not be immune. In their “wisdom”, the authorities have come up with another scheme to control peak domestic demand and it is called, ironically, a DRED or Demand Response Enable Device. It is a system to switch off or reduce the output of your aircon and is described in this month’s issue by Dr David Maddison. DRED-compatible aircons can have three Demand Response Modes, referred to as DRM1, DRM2 & DRM3. DRM1 completely switches off the compressor while leaving the fan running so without warning you will be left sweltering and wondering if your aircon has failed. DRM2 and DRM3 are modes which reduce the compressor’s output and depending on how hot it is outside, you may not notice much change. Virtually all aircons now being sold in Australia are DRM-compatible but most will require an additional module to be installed by the electricity retailer to enable it to be controllable. Some energy retailers are actively encouraging consumers to opt-in to DRED schemes with non-threatening slogans such as CoolSaver or PeakSmart and with one-off incentive payments. But don’t opt in; not if you know what’s good for you! The incentive payment (typically a maximum of $400) is simply inadequate. It means that when you really want air-conditioning, it could be switched off. Worse still, if you have a grid-connected solar panel system, you could be subjected to the bitter irony of having your solar panels feeding the grid with power while you are deprived of air-conditioning. How happy would you be? Right now, DRED is not compulsory but if Australia’s grid becomes more crippled by having to accept more renewable energy input at the expense of good old reliable coal-fired base load power stations, you can bet that DRED will become compulsory for everyone who owns a compatible aircon. Mind you, some technically savvy consumers might then decide to take matters into their own hands and figure out a way to disable DRED. Who could blame them? Leo Simpson siliconchip.com.au siliconchip.com.au April 2017  3 MAILBAG Letters and emails should contain complete name, address and daytime phone number. Letters to the Editor are submitted on the condition that Silicon Chip Publications Pty Ltd may edit and has the right to reproduce in electronic form and communicate these letters. This also applies to submissions to “Ask SILICON CHIP”, “Circuit Notebook” and “Serviceman”. Model railway control for kids and beginners Regarding the request for a lowvoltage train controller for kids in the Ask Silicon Chip section of the February 2017 issue (page 99), I have built two very successful AC Controllers for members of the Redlands Model Railway Group (RMRG). These use a KEMO Low Voltage AC Controller: http://siliconchip.com.au/l/aacm If you use a transformer with say 9VAC and 18VAC taps, you can switch between low and high speed to give more control. Note that the actual voltage selection will depend on the AC locomotive used. I used one pole of a centre-off switch to select the 9V or 18V tap while the other pole modified the speed control resistance to give the best speed control range over the sweep of the potentiometer. I did not notice any issues due to the phase angle control of the AC dimmer module. I suggest using a small circuit breaker to protect against track shorts due to derailments. Secondly, regarding the letter titled "12V speed/dimmer control modification" on the same page, RMRG has a "U Drive" layout (as they call it). I found the solution for controlling such a layout was to use a PWM controller (such Pool Lap Counter circuit diagram error I read with interest the drive arrangement for the display for the Pool Lap Counter in the March 2017 issue. I was wondering when it would fail, looking at the circuit of Q3 & Q4. Then I read the description of its operation, and 1kW resistors are mentioned, and also shown in the parts list. They are also shown on the PCB. However, they are missing from the circuit diagram. Henry Wyatt, Carindale, Qld. 4  Silicon Chip as the KitStop unit) and vary its DC supply voltage. The benefit of doing this is you still have the full PWM control range but limit the top speed. The other advantage is you can easily adjust the voltage for different locos. I used the Altronics K6340 1.5A adjustable power supply, which is more than enough for this application: www.altronics.com.au/p/k6340-miniswitching-regulator/ I also added an adjustable timer, so for a gold coin donation, they could have (say) five minutes of running time. Mike Abrams, Capalaba, Qld. Leo Simpson comments: Your email raises a number of points. If you use a dimmer with a bridge rectifier to drive a DC motor, it suggests that the switching device in the KEMO controller is probably a Mosfet rather than a Triac; otherwise the Triac would have commutation problems. Using a low-voltage dimmer in this way does give you a simple controller but you do not have the facilities of braking or inertia that can be incorporated in a conventional design such as the Stationmaster which we just published. As to your idea of adjusting the DC Comment: Well spotted, Henry. If the circuit was built that way, Q4 and Q6 could potentially selfdestruct when their respective RA3 and RA4 control lines from IC1 went high. Fortunately, as you point out, there are 1kW limiting resistors in series with the bases of Q4 and also Q6 on the PCB so that event won't happen. We have published Errata on this point on page 96 of this issue and we have also corrected the circuit on page 26 of the on-line issue for March 2017. supply into the PWM controller, that actually reduces one of the real benefits of PWM design, that of having a high peak voltage to overcome track contact resistance. It does preserve the full range of duty cycle as you say but in practice, that should not be a problem if you have a fixed DC supply and set the maximum duty cycle (and thereby full speed) to suit a particular locomotive. Neutralisation is positive feedback I have some comments regarding the March 2017 issue, so please accept them in the spirit in which they are given. In the Publisher's Letter, you say that neutralisation is positive feedback; I could've sworn that it was negative feedback to prevent oscillation involving the plate and the grid (hence the screen grid), so where have I been led astray? The Pool Lap Counter appears to protrude a centimetre or so from the wall. Wouldn't that upset some of the more competitive swimmers? In the Stationmaster article, I am quite taken by the reference to the 10kW capacitor (in the second, paragraph, third column, page 37) – that's one hell of an ESR! D. H, by email. Comment by Leo Simpson: Another reader made the same comment and he thought that I might have had a "seniors' moment" and that I should have been referring to the term regeneration. However, neutralisation is definitely positive feedback and it counteracts the frequency losses in valve and transistor RF stages, due to Miller Effect (inter-electrode capacitance causing negative feedback). Have a look at http://siliconchip. com.au/l/aacn I don't think too many competitive swimmers would be worried about the siliconchip.com.au siliconchip.com.au April 2017  5 Mailbag: continued Drivers should be made aware of airbag dangers I liked the Publisher's Letter in the February 2017 issue, on car drivers' and passengers' nonchalant approach to airbags. I was trained in the "10 to 2" position for my hands on the steering wheel (sometimes I go to quarter to three or even with one hand at the "6 o'clock" position if the road is very straight) long before airbags or power steering. The thought of being hit/kicked thickness of the touch plate for the Pool Lap Counter. After all, it is not a timer; it is only counting laps. The 10kW capacitor is actually a resistor, as you probably guessed. It's very annoying that we didn't spot that ourselves though! Serviceman's snoring solution isn't unique The Serviceman's article in the February 2017 issue was most interesting. It is certainly the result of an active and inquiring mind. It reminded me of talk floating around during my army days many years ago. The less-than-subtle military approach to snoring amongst SAS personnel was apparently very effective. This consisted of inserting a diathermy probe down the nasal passages to burn part of the flappy bits that caused snoring. Apparently, when healed, the resultant scars toughened up the area, preventing snoring. I believe it was a voluntary procedure, apart from any pressure applied by fellow soldiers, due to concerns about security and detection when in the field. Recently, I obtained a device similar in concept to the serviceman's project (my wife claims I snore but I am unaware of it). This device, they claim, "is designed to interrupt snoring without waking up the snorer or their partner". A microphone detects snoring and it then activates a silent air pump, that in turn inflates a pillow insert. This movement interrupts the snoring. This is just a tad more subtle than being prodded, or 6  Silicon Chip in the face with one's own appendages has often caused me to wince, when I have observed a passenger with their feet over the passenger airbag compartment. Perhaps part of the 120 hours of driver training should include identification of such dangers and be the requirement for the driver in control of the vehicle to maintain passenger safety (irrespective of the passenger's age!). Ray Smith, Hoppers Crossing, Vic. hearing "tender loving endearments" from a sleep-deprived partner. I don't know if they are in full production as mine was a pre-production job from a start-up company. You may want to check it out or review it. It's called "Smart Nora" and is at www. smartnora.com; I have no connection with the company, other than being a customer. Robert Malone, Greenbank, Qld. On frank discussions, renewable energy and alternators For a while, a number of letters have been published in Silicon Chip in which the authors complain of the publication of personal views on subjects which are not purely electronic. Why? Although Silicon Chip is predominately electronics-based, I have noticed that Silicon Chip magazines have not stated on the front cover that the magazine is an electronics magazine since about 2003. Also, if Leo Simpson is biased, so what? We all are. Haven't those who complain noticed that letters both critical and supportive are published? Readers may have noticed that I have had a large number of letters published on various subjects. However, I have also had a large number rejected and some of those I considered excellent commentary. C'est la vie. I am just so glad that Silicon Chip does not publish dribble grade stuff like that on social media. These first two months of 2017 have been atrociously hot, or at least they seemed that way. A quick look through the temperature records showed that there have been worse periods but even so, the weather patterns in Queensland were unusual. The protagonists of global warming and climate change would not hesitate to blame CO2 and fossil fuels but would they be correct? Solar panels and wind power generators are stated as being environmentally friendly but is that totally true? Aside from the detrimental effects of their manufacture, solar panels and wind generators modify the environment into which they are installed. If the energy generated by solar panels is used immediately at the location of the panels, then there should be no net loss or gain of heat by the environment compared to that without the panels. If, however, the energy is stored or transported to another place, then the panel location will be cooler than if the panels were not there and the location where the energy is used will be warmer. The environment has been impacted and the micro-climate has been changed. Perhaps the weather has been changed as well. Wind power generators are no different and are probably worse than solar panels, mainly because they are so much larger. Aesthetics and noise are of no real concern. They are personal dislikes. But air flow is a different matter. The inclusion of wind power generators into the flow of air causes a loss of kinetic energy which equates to a loss in the speed of the air flow. A person would need to be in total denial not to realise that the environment has been impacted downstream of the wind turbines. Obviously, with a large number of wind power generators, the impact must be appreciable. Weather systems are treated as chaotic systems and one of the behaviours is that a small disturbance can have a major effect at a later time. Consequently, it is quite possible that both NSW and Queensland have been inadvertently subjected to a hotter summer than normal either directly or as a flow-on effect of other weather patterns being changed. Certainly, there were none of the cool winds that normally came from South Australia. siliconchip.com.au Power of ten Get in touch with the new ¸RTB2000 series oscilloscopes. ¸RTB2000 oscilloscopes (70 MHz to 300 MHz) team top technology with top quality. They surpass all other oscilloscopes in their class, delivering more power plus intuitive usability at a convincing price. For more information visit www.scope-of-the-art.com sales.australia<at>rohde-schwarz.com Starting at $1,899 siliconchip.com.au April 2017  7 Mailbag: continued Water tank level monitoring with Raspberry Pi In the February 2017 issue of Silicon Chip, in the Ask Silicon Chip section, there was a question regarding connecting your water tank gauge to the Raspberry Pi. The answer suggested connecting a 5V level to the Raspberry Pi GPIO inputs. The Broadcom SOC on the Raspberry Pi operates on 3.3V logic levels. My understanding is that a GPIO pin should never be connected to a voltage source greater than 3.3V or less than 0V, as damage to the chip may occur. You would also need to consider how much current the GPIO pins are sinking. For sink current, the limitation is based on maximum chip power dissipation. Once again my understanding is that you can safely sink up to 16mA each into any number of GPIO pins simultaneously. Given you were driving LEDs this should be OK but would be worth checking. Note sourcing current limitations are different to sinking. It would probably be easier to On another topic, I have a neighbour who works as a car technician and occasionally he gives me dead automotive alternators in which either the regulator has failed, or the run-on clutch has failed. These things normally have a rated output of near 1kW but now I have one of 2kW and one of 2.5kW. To quote the labels, they can generate 140A <at> 14V and 180A <at> 14V respectively. Obviously, there is a need for a lot of electrical power in modern vehicles. No wonder there has been a push for higher voltages (ie, 42V systems). George Ramsay, Holland Park, Qld. Automotive electronic environment is harsh In the Ask Silicon Chip pages of the February 2017 issue, G. G. from Paringa sought advice on protecting a 555 (16V maximum supply voltage) in a 12V automotive environment. 8  Silicon Chip connect an ultrasonic sensor directly to the Pi (via a voltage divider, since they are mostly 5V devices as well). This article provides a good overview on how to do this: https:// electrosome.com/hc-sr04-ultrasonic -sensor-raspberry-pi/ Great magazine, by the way – some more articles on the Raspberry Pi would be nice! David Such, Woronora, NSW. Editor's note: the Ultrasonic Water Tank Level Gauge has 470W current-limiting resistors connected to each of the output pins mentioned last month. If the connections to the Raspberry Pi were made to the end of these resistors which connect to the LED cathodes, those resistors should limit the current in to the Rpi's input clamp diodes to around 3mA, which ought to be safe. A higher value, such as 4.7kW would be even better. Ideally, the LEDs should be removed (or not fitted) since it would be difficult to arrange for the Gauge's 5V rail to always switch on after the RPi's 3.3V rail and switch off before the RPi. While catering for a ~15V charging voltage and short high-voltage transients is sufficient for normal operation, if the battery ever becomes disconnected while charging, the resulting "Load Dump" may rise to 100V and take 400ms to decay. Careful selection of the series resistor and zener power ratings can add load dump protection where the load is modest, as in a 555 circuit. Where the normal load current is a bit higher, an emitter (or source) follower on the zener is more efficient. Other surprising voltages can lurk under a car bonnet. When the first LED clock prototypes were trialled in the XD Falcon, in the final stages of its development and testing, the Ford staff reported that "The clock works fine at first, but dies the second time it is turned on." An unscheduled trip to the You Yangs proving ground, equipped with storage oscilloscope, polaroid camera and several layers of management, was rapidly organised. It quickly became evident that when the ignition switch was turned off, a -1000V spike was generated on the accessories line, which was used to turn on the display. When we asked what was wrong with their flywheel diodes on the accessories relays, the reply was "What are you talking about? The clock will have to take it." After everyone had gone home at the end of the day, one junior engineer sat with the challenge; the fix wasn't allowed to cost anything. Fortunately, significantly increasing the value of the series resistor on the CMOS input allowed the device's input clamp diodes to deal with -83 times nominal input voltage, year in, year out. A simple lesson in real-world electronics I've not forgotten, even after nearly 40 years. Erik Christiansen, via email. FM antenna mounting greatly affects reception As an avid listener to ABC Classic FM for 40 years, I have set up a suitable FM antenna system each time we moved house; a task made somewhat easier because of my experience (in younger days) as a TV antenna installer. We lived in suburban Perth for a while, where I enjoyed the ease and luxury of digital radio (good reception even in a tin shed on the wrong side of a hill!) but recently we shifted to a small coastal town in south-west WA, so no more digital radio – back to FM. My faithful little ¼-wave Yagi, which had performed so well in other settings, didn’t seem to be pulling in much FM signal. This was rather mystifying because we are only about 65km from the tall (~300m) and powerful (100kW) Bunbury transmitter, with quite flat terrain in between. The digital TV signal from the same tower was picture perfect using a small UHF antenna mounted on the same 1m mast. So why was the FM signal so bad? The ABC’s reception advice website said I was in an “adequate reception” area; the situation was inexplicable and annoying. Eventually, the poor reception compelled me to research the situation siliconchip.com.au further and I discovered that the local Bunbury transmission tower used vertical polarisation for FM, making it one of only a few high-power vertically-polarised FM transmitters in Australia; Renmark in Victoria is another. Most FM transmitters nowadays use either horizontal or mixed polarisation, with vertical mainly used by lowpower local repeaters in remote areas. Anyhow, I remounted my little Yagi on the vertical (ignoring for the moment what the metal mast and the nearby UHF TV antenna would be doing to things) and bingo – instantly better reception, although it is still prone to some fading and white noise in the afternoon and during adverse weather. So I invested in a proper 3-element Yagi, about 1.8m tall at the rear reflector. This was quite cheap at about $45, although it cost nearly that much again in freight. The new antenna would not fit on my existing mast because of the vertical orientation so I needed to put up a taller pole on top of the roof. I pondered the problem of how to vertically mount my new Yagi, either directly on a mast (cheap metal pipe) and suffer the inevitably reduced performance caused by having the metal pole in the middle of the antenna in the same (vertical) plane as the elements. Or offset-mount it on a long horizontal extension hanging off the top of the mast (ugly and prone to wind damage), or use a fibreglass mast. A suitable non-conductive mast was available for less than $50 but as with the new Yagi, freight would double that. But then I found a fibreglass painting roller extension pole costing less than $40, in a local hardware store. The hollow yellow fibreglass section of this was about 32mm diameter and almost 1.9m long and quite strong enough to support the new antenna. Fixing this mast in place was relatively easy although grubbing about inside the roof lacked the appeal it had when I was forty years younger. That only left the problem of the coax feed from the antenna. There isn’t much point in using a fibreglass mast and then running coax down that mast, as the coax shield could detune and defocus the Yagi too. So I used UV-stable Nylon rope as a support line siliconchip.com.au and ran the coax from the antenna at a shallow angle to the horizontal (but at right angles to the axis of the Yagi) to another part of the roof and then down to my hifi systems. The result is great! The ubiquitous white noise and mid-afternoon fade are gone and I can supply three radios without using a distribution amp. As well as much better clarity, channel separation and virtually no hiss (except at insane volumes), there is a marked improvement in bass, taking me from “tinny old wireless” to near CD-quality. I no longer need a graphic equaliser to massage the audio into something resembling fidelity and I’ve upgraded the lounge room speakers to capitalise on the improvement. For a moderate cost and effort, along with a little lateral (or is that vertical?) thinking, I’m back in audio heaven. Lindsay Peters, Broadwater, WA. Technical decisions made for political reasons give bad results Although I assume that Ian Patterson is in the minority group, he certainly has the right to express his opinion. But that should not be at the expense of general discussion. As our political masters are becoming increasingly interventionist in their quest to seek votes in every nook and cranny, they have, albeit by default, essentially taken over the technical decision-making process from the various departments who should be accepting this role as a prime responsibility. One harmful side effect of this transfer of responsibility can be seen in the increasing number of government decisions, particularly those related to all forms of infrastructure, that can only be described as bizarre. With almost every commentator in all forms of the media espousing the party political line without any support of it by way of reasoned argument, it is refreshing to read an editorial that simply throws an idea into the ring and lets people kick it around. Let there be no doubt that the current popular processes, driven by flawed business school thinking, are certainly taking us to our inevitable terminal end. Helping to put you in Control Adjustable Pressure Sensor NP620 4-20mA pressure transmitters can be configured to zoom up to 1/3 of their normal range. 0-10 Bar, 0.25% accuracy and 1/2” BSP process connection. SKU: NOS-205 Price: $219.95 ea + GST 15W Ultra Slim DIN Rail Supply The HDR-15-12 from Mean Well is a 15w, 12VDC supply, just 17.5mm wide. 5, 24,and 48 VDC also available, suitable for industrial requirements. SKU: PSM-0171 Price: $28.00 ea + GST 2wire inductive proximity sensor Shielded cylindrical shaped 8 mm in diameter 2 wire inductive proximity sensor with NO style output and 2 metre cable. SKU: IBS-0088 Price: $32.95 ea + GST 240W DIN Rail Supply Measuring just 63mm wide the NDR-240-24 supplies. 24 VDC at up to 10 A output. This series has a working efficiency up to 88%. SKU: PSM-1943 Price: $120.00 ea + GST Out of Range Trip Amp Relay A monitoring relay designed to monitor the integrity of a 4-20mA signal. If the signal falls outside4-20mA the internal relay is activated. SKU: NTR-305 Price: $139.00 ea + GST Slim Multi-Function Timer Slim Line, DIN Rail mount, multi-function timer. SPCO output, dual LEDs indication. Multiple time range 0.1 s to 100 hours. 12 to 240 VAC/VDC powered. SKU: NTR-101 Price: $69.95 ea + GST Loop Powered Temperature Sensor This is a simple 4 to 20 mA output loop powered temperature sensor with measurement range from -10°C to +125°C designed for monitoring rooms and cabinet temperatures. SKU: KTW-267 Price: $54.95 ea + GST For Wholesale prices Contact Ocean Controls Ph: (03) 9782 5882 oceancontrols.com.au Prices are subjected to change without notice. April 2017  9 Mailbag: continued Model train PWM doesn't involve rapid polarity reversal Probably someone else has already pointed out the small error in your Pool Lap Counter circuit. The text states that there should be 1kW resistors in the bases of Q4 and Q6 but these are not shown on the schematic, although they appear to be on the PCB layout. In your article about the Stationmaster model train controller, I don't know if Bob Sherwood ever had anything to do with model trains but his comments on page 34 about being able to push a model locomotive along the track or have it roll down a steep grade are not correct. Most model locomotives are driven by a motor using a worm gear, almost always single-start, which means they are non-reversible. You can certainly push a loco along the track, but with the wheels locked skidding on the rails, and for it to roll down a steep grade, the grade would have to be vertical. Very few model locos use spur gear drive, and even then the friction in You alone have to decide on the best form of content to ensure the continued success of Silicon Chip in an era when technology is certainly not on the government favours list and technical magazines of all sorts have all but vanished. Keep up the good work and let the discussions proceed. By the way, your feature on the passing of Maurice Findlay was very well presented. Dick Smith was not the only one he inspired, as we all know people who entered technology based careers and made huge contributions after having been guided to that decision by the writings of Maurice. George McLeod, Georges Hall, NSW. ABC radio HF shortwave shutdown is bad news I wholeheartedly agree with the Publisher’s Letter in the December 2016 issue, stating that controversial topics should be able to be discussed! This seems an increasing growing 10  Silicon Chip the gear train would probably prevent them moving. As for the design, it seems strange to use a method of speed control which involves switching rapidly between forward and reverse with a varying duty cycle. Many model locos now use can motors with low armature inertia, and I can imagine the dynamic forces on the motor and the heat possibly generated by effectively trying to reverse the motor 8000 times per second. You have not shown any waveforms coming out of the actual Hbridge, but since the FETs switch rapidly, you are relying on the inertia of the motor to damp the reversals. I grant that very few motors will actually reverse 8000 times per second, but it still seems like placing an unnecessary load on the motor when you could just use a reversing switch, which would also simplify the circuit. A. Danilov, Naremburn, NSW. Comment: Another reader has pointed out the error in the circuit of the issue that for fear of upsetting someone, minority groups or even an individual we must accept and not argue or put forward alternative suggestions/ options or even just question the basis/ science/motives of the original topic. Isn’t conversation and debate of issues and topics the basis of democracy after all? Perhaps it will result in the loss of some subscribers with knee-jerk reactions who cancel their subscription because they don't agree with everything they read. But on the flipside it keeps the magazine relevant with current issues and when it’s related to technology, it does the opposite for me in cementing the reason to keep my subscription. Silicon Chip has published a number of articles on topics I’m only loosely aware of and they have provided me knowledge and understanding to base my opinions on. So I say keep up the good work on the magazine and don’t ever become soft and politically correct by only Pool Lap Counter and Errata will be published in this issue. In addition, the online issue has been corrected. You are right about most locos having worm drives – that should have been edited out. However, in this case, the PWM control does not involve rapid reversal of polarity; it is pulsed. For travel in one direction, pulses of a single polarity are applied to the tracks, with varying widths depending on the desired speed. For travel in the other direction, the polarity of the pulses are reversed but the pulses of one polarity always stop well before pulses of the other polarity start (even with the inertia control set at minimum). There are some PWM circuits which rapidly switch pulse polarity as you have discussed but the Stationmaster is not one of them. Note that motor inductance normally limits the rate of change of current through the motor such that PWM drive does not actually cause such rapid changes in force. printing “popular” and “safe” articles with the same “popular” and “safe” stances we hear day to day and over and over because that would cost in subscribers also. I doubt I’m the only one with this view. Your editorial also struck a chord with me with regards to the recent ABC (Australian Broadcasting Corporation) decision of closure of the national/ inland and overseas shortwave broadcasting services. ABC announced on 6th December 2016 that it will close/ shutdown the shortwave services from 31st January 2017 in an effort to move away from “outdated technology” and use the cost savings to invest in digital transmission services and that “local” FM, satellite, streaming and AM/MW/ MF services will fill the void. I disagree with the ABC’s view and think that their motives are more basic and sinister, as I will explain later. I also think that this will be detrimental to Pacific Islanders. The closure of the local/national shortwave services siliconchip.com.au Order online from tronixlabs.com.au! Mains Brownout Protector Kit BBC micro:bit • Learn coding, hardware and more • Bluetooth, sensors, online IDE • Protect your single-phase induction motors from brownout. • Ideal for ages 10 and up • Cuts off the power in brownout situation • Accessories and kits also in stock • Designed for Australia #TM0001 $36.95 #K6049 $59.95 16x32 RGB Display Kit for Arduino Pimoroni Arcade Kit • Build an arcade game machine with your Raspberry Pi 3/2 model B • Kit includes HAT, joystick, arcade buttons, wiring, speaker and 3W amp • Includes RGB LED display, connection cables, and matching control shield for Arduino with real-time clock • Build into your own cabinet • Easy to use with Arduino library #PIM252 $79.95 • Requires 5VDC 4A (such as our M8911A) #TA2003 $79.95 Adafruit Ultimate GPS • 10 Hz update rate, PPS output on fix • 3.3/5V-friendly design, backup battery for warm-starts and only 20mA consumption when operational • Full library and tutorial support #746 $69.95 GPIO Expansion HAT • Easily access all GPIO for your 40-pin Raspberry Pi using screwless terminal blocks • Includes jumper shunts to direct IO to terminal blocks, and mounting hardware for secure fitment to your Pi • Enables rapid prototyping with secure connectionsß #TR2749 $16.95 Huge range of breakouts & modules from tronixlabs.com.au/bb Kits! Kits! And more kits! tronixlabs.com.au/kits Stop looking for Adafruit LiPo batteries... Tronixlabs has you covered with the entire range in Australia! • 105 mAh #1570 $11.95 • 150 mAh #1317 $12.95 • 350 mAh #2750 $13.95 • 500 mAh #1378 $14.95 • 1200 mAh #258 $19.95 • 2000 mAh #2011 $22.95 • 2200 mAh #1781 $18.95 • 4400 mAh #354 $36.95 • 2500 mAh #328 $27.95 • 6600 mAh #353 $54.95 Australia's #1 Adafruit Reseller Questions? Email them to support<at>tronixlabs.com Visit tronixlabs.com.au • $5 delivery Australia-wide Order by 3pm EST for same-day shipping if all items in stock. All prices include GST and valid until 30/4/17. Specfications subject to change without notice. All items in stock at time of publication. E&OE. Payment via American Express, MasterCard, Visa, PayPal or direct deposit. siliconchip.com.au April 2017  11 Mailbag: continued in the Northern Territory also seems unlikely to provide improvement to Territorians' access to news and current affairs. I may be wrong but it should be up for discussion and review rather than just pushed though. I should declare that I have a bias due to working at the Shepparton HF transmission site for the years of 20092015, being involved in operations and maintenance of the international broadcasting infrastructure and have family connections to the site for many more years than that. That said, there has been some backlash since the public announcement on local/national ABC radio services from Territorians about the lack of radio coverage and availability of the modern alternatives in the red centre of Australia. There has also been backlash and concerns from areas in the Pacific as well, as they rely on this service in times of natural disasters as the local “more robust” FM services (as the ABC would call them) are often the first casualty in a severe weather event, with loss of power and/or broadcasting equipment damage. Australians on the whole aren’t very familiar with the international shortwave broadcasting of the ABC Radio Australia programmes and the privately owned infrastructure providing it at the Shepparton HF transmission site. If you haven’t lived in the Northern Territory or been around broadcasting and amateur radio, you would also not be aware of the inland shortwave services and their purpose. That’s expected and totally understandable as neither are a service provided for the majority of Australians. The ABC would of course state that all proper consultation with affected parties and plans of the intended shutdowns was carried out. To this, I would say that’s a lie and the main reasoning behind the shutdown is a fight/disagreement between the ABC and the elected Liberal government on funding. Basically, it's always about the money. Tony Abbott’s election victory in 2013 went to the polls with “no funding cuts to the ABC” and once elected, lo and behold, funding cuts to the ABC. 12  Silicon Chip In early 2015, changes were made to the international broadcasting side in the reduction of shortwave transmission services on air, reduced from eight (six from the Shepparton HF transmission site and two from the Brandon MF transmission site in Queensland) to only three total shortwave services, all from Shepparton with a much reduced diversity frequency schedule, allowing reductions in transmission costs to the ABC. I resigned from my position with Broadcast Australia and the Shepparton HF site soon after this with a mixture of personal reasons (which were influenced by the decisions at the time) and uncertainty of the future of shortwave transmission. On 13th August 2016, I noticed that it was very quiet on the shortwave bands on the Radio Australia daytime frequencies when testing/restoring an old radio and sent the ABC feedback, knowing that it was unusual that no services were present. I hit the internet and asked family what they knew and had noted that it was off earlier during the week also. This seemed unusual at it was always the policy for fast and efficient service restoration at the Shepparton HF site and the site has redundancy with spare/ backup infrastructure. I received a reply a from the ABC on the 15th August that they were "currently working with our transmission provider on a number of shut-downs over the past week and again during this week to investigate a range of technical and commercial issues for the service. In the meantime the services are still on air via our satellite services on Intelsat IS18 and IS20 as well as our FM network across the targeted markets in the SW Pacific". I had hoped for a better reply than what was obviously the company line. I investigated a little further myself and concluded that it was a trial to see how many complaints would occur. I was in disbelief but decided that this was a plausible scenario, although I doubt that it’s in writing anywhere and hence would only be the word of a biased individual (myself). My biggest issue with this process is the lack of consultation with the affected parties and justifications based on lies and poorly based technical arguments. Shortwave as full carrier amplitude modulated double sideband signal is an old transmission method but it’s the same transmission signal type used with the AM/MF/MW broadcast band from 530kHz-1600kHz. It seems unlikely that the ABC are going to shut down their transmissions on that band due to it being outdated in favour of FM/Digital services and platforms in the near future due to coverage and commercial limitations; radio is a cheap way to access mass markets compared to internet streaming and so on. Really, it comes down to listeners' preferences in the end. People won’t listen to what they don’t want to, regardless of technology or transmission type and obviously can’t if the coverage isn’t available to them. David Alford, Shepparton, Vic. Using Nora or maybe a smartphone to stop snoring Have you head about Nora? See: www.digitaltrends.com/home/thenora-is-a-smart-device-that-stopssnoring/ I was tempted to try something like that myself, using the pump from a cheap but inaccurate blood pressure wrist-cuff. Alternatively, wouldn't it be possible to use a smartphone to stop snoring? With the phone placed under the pillow, it could run software to monitor sounds, filtering for snoring, then turn off the mic and play a tone upon detecting it. There are already free phone apps which listen and record snoring events. Dave, how are your phone programming skills? I use a CPAP machine. I have "moderate" sleep apnoea (based on the results of a sleep study), but my main reason for using the device is to avoid divorce. It is effective, but uncomfortable, expensive and too bulky to take on motorbike trips. Maybe I should try Dave's solution? Ken Wagnitz, Craigburn Farm, SA. siliconchip.com.au Current convention should not be changed Attempts to define the direction of an electric current as the direction of electron flow only leads to complications in an attempt to "simplify" the real issue – the old problem of over-simplification. Early studies of static electricity revealed there were two different types of electric charge. One was assigned as positive and the other as negative. In the early days of electricity and magnetism, investigators and practitioners did not really know what an electric current actually was. Arbitrarily, the direction of electric current was deemed to be from positive to negative. Three "hand rules" were established to indicate the direction of a magnetic field around current carrying conductors, through solenoids as well as the direction of force experienced by a current carrying conductor in a magnetic field. The direction of an induced current in a conductor moving through a magnetic field could also be determined. The three hand rules are: First – in your imagination, take the current carrying conductor in your right hand, thumb pointing in the direction of current (positive to negative), the natural curl of your fingers will give the direction (N to S) of the surrounding magnetic field. Conversely, if you curl the fingers of your right hand around a solenoid in the direction of the current, your thumb will indicate the direction of the magnetic field within the solenoid. Second – with your leFt hand ("F" for force) set your thumb and first finger at right angles to each other and in the plane of your palm, your second finger perpendicular to the plane of your hand. With your First finger in the direction (N to S) of the magnetic field (F for field), your seCond finger (C for current) the direction of force on the conductor will be given by your thuMb (M for motion). Third – with your rIght hand ("I" for induced current), set your thumb, first and second fingers as above. Again, First finger the magnetic field direction, your thuMb in the direction in which the conductor is moving through the magnetic field, your seCond finger will give the direction of the induced current. These rules assisted the application of electromagnetism to motors, generators etc. They only apply to the direction of current in a conductor as from positive to negative. Later, Thompson's investigations into currents through rarefied gasses and eventually a vacuum indicated the presence of positive and negative charges in the atom. (Canal rays and Cathode rays). Eventually, the discovery of the electron lead to the realisation that an electric current in a metallic conductor is actually carried by electrons moving from negative to positive (opposite to previous concepts). Now things become complicated and the overall decision was (in light of the well established "hand rules") to maintain the concept of current from positive to negative as a convention (dictionary definition: a convenient form). Matters become even more complicated when considering electric currents through plasmas and during electrolysis of solutions. Here the electric current is carried by both positive and negative charges moving in opposite directions. At this point we will leave out semiconductors and "holes", basically still an electron "flow". So what is the real issue? An electric current is defined as "the passage of electric charge". The magnitude of the current is given as the time rate of transfer of charge. The direction of the current given as the direction of transfer of positive charge. In fact, the definition of the ampere is the transfer of one coulomb of electric charge per second (the standard ampere is given in a different form that is easier to measure rather than trying to deal with an isolated electric charge of one coulomb). My advice is to maintain the conventional current direction as positive to negative while realising (and hopefully understanding) that there are exceptions to the rule. Col Hodgson, Mount Elliot, NSW. SC Dozens of boards available for Arduino, Raspberry Pi, and ESP8266 projects: motor controllers, displays, sensors, Experimenters Kit, addressable LEDs, addressable FETs Love electronics? We do! Share the joy: give someone an Experimenters Kit for Arduino Support the Aussie industry! Buy local at www.freetronics.com.au Use discount code “SCAPR17” for 20% off until June siliconchip.com.au Arduino based USB Full Colour Cube Kit visualise, customise and enjoy on your desk! Australian designed, supported and sold April 2017  13 power to a ff o rn tu ly te mo plier could re hout your knowledge or p u s y it ic tr c if your ele itioner, wit Just imagine e such as your air cond re, because o m o n ic v e e in d g a heavy-use proval. . . Im p a r u o y n e v perhaps e DRED IS HERE! DRED stands for Demand Response Enable Device. It’s a system whereby energy suppliers can switch off or reduce the amount of power drawn by domestic air conditioners. Virtually every air conditioner sold today is a DRED and is said to be DRM-compatible. W ith the ever increasing use of air conditioners, a elsewhere but it used to be done for different reasons than growing population and a reduction in National insufficient power generation. Electric hot water heaters and certain storage heaters (heat Electricity Market generation capacity over the last five years, Australia’s electrical grid simply cannot cope banks) used to be powered by “off peak” electricity which with the peak demands in summer. When that happens, it was much cheaper but only available at times (mostly at means rolling blackouts (they call it “load shedding”) for night) when power demand was low. As well, electricity suppliers needed a way to sell their many thousands of consumers in the affected cities. An alternative way to shed load is to only turn off power power so they could keep their coal-fired generators runto selected high power consumption appliances such as air ning at maximum power and efficiency continuously, since conditioners, water heaters and pool pumps while leaving it is not feasible to shut them down. In Australia, the off-peak lower power consumption switches were originally devices such as lights, telconnected to a time clock evisions and computers but in 1953 a (typically) unaffected. Zellweger brand switching This concept is known device was introduced to as energy demand manageprovide that function. ment (or demand manageThese work by respondment, demand-side maning to a “ripple signal” imagement or demand-side posed on the transmission response) and is implelines by the electricity remented through a device tailer. known known in Australia Obviously there would as the Demand Response be a huge problem if an Enable Device with the entire city’s electric heatvery appropriate sounding ers came on at once so the acronym of DRED. When you buy an air conditioner in Australia or NZ you can various electricity retailEnergy demand manage- see which demand response modes are supported from the ment requires that appli- energy rating label at lower-right – in this case, all three modes. ers switch them at random times during during off ances to be disconnected So if connected, the supply authorities can throttle your air peak periods. during a load shedding conditioner down, by 25%, 50% or to near-useless (fan only Where smart meters event have a special con- running, no compressor). are installed, these have troller that can receive a signal from a utility company to turn them off or to reduce a separate output, called “Controlled Off-Peak” which performs the same function to switch their power consumption. on the heating elements in hot-water The concept of energy demand By Dr DAVID MADDISON storage tanks. management is not new in Australia or 14  Silicon Chip siliconchip.com.au SIGNAL FROM UTILITY TO DRED BY ANY METHOD AS DETERMINED BY MARKET PLACE: RIPPLE SIGNAL, INTERNET, ZIGBEE, ETC UTILITY Some manufacturers are making a feature out of DRED – but we wonder how many consumers will think it a positive feature when they’re sweltering with a nonworking, or only partly working, air conditioner? Origins of DRED The origins of DRED come from Commonwealth energy efficiency initiatives dating from 1992, which have since been managed by a number of different departments. These same initiatives are also responsible for mandatory energy efficiency ratings on various appliances. In 2004, there were electricity supply problems which were blamed on excessive loads caused by air conditioning, so the Equipment Energy Efficiency (E3) Committee For many decades, supply authorities have been able to switch “off peak” hot water systems on and off with tonecontrol systems such as this Zellweger-Uster ripple control receiver. They superimpose a 1050Hz tone on the mains supply which is detected by this receiver to allow the hot water system to use cheaper, off-peak power. siliconchip.com.au DRED LEFT TO MARKET PLACE PHYSICAL AND FUNCTIONAL INTERFACE AS PER AS4755 AIR CONDITIONER (STANDARDISED INTERFACE) Scheme for DRED showing how only the interface to the air conditioner or other device is standardised. The communications protocol and design of the DRED signal receiver is left to the marketplace. of Commonwealth, State, Territory and New Zealand officials was asked to examine the issue. They concluded that energy efficiency gains alone would not solve the problem and only “direct management of air conditioner operation during the peaks would be effective”. Apparently, the option of allowing the marketplace to provide a sufficient amount of power generation to meet demand was not considered. In 2005, Standards Australia set up a committee to look at the issue and published a standard. In its current version this standard is known as AS/NZS 4755.3.5:2016 “Demand response capabilities and supporting technologies for electrical products – Interaction of demand response enabling devices and electrical products – Operational instructions and connections for grid-connected electrical energy storage (EES) systems” and has also been expanded to include electrical storage systems such as batteries in homes and businesses. This standard is a world first for this type of technology and is under the auspices of the Australian Department of Climate Change and Energy Efficiency. The aim of the standard is to provide an interface on selected appliances such as air conditioners that will allow remote demand management by the electricity suppliers during peak loads. This could be used on a hot day when the grid is running at maximum capacity due to the number of air conditioners in use. Users who are part of the program will have their devices shut down or reduced in their power settings in order that the grid is not overloaded. Customers are typically provided with an incentive to install DRM-compatible air conditioners. Examples are Energex offering $100 to $400 for “PeakSmart” air conditioners, Ergon offering $150 to $500 and Ausgrid $150 to $400 for their “CoolSaver” program. A video on PeakSmart air conditioners can be seen at “PeakSmart air-conditioning” via siliconchip.com.au/l/aace In accordance with the Australian Standard, conforming appliances must be able to enter certain “demand response modes” or DRMs. DRM1 is compulsory for air conditioners while DRM2 and DRM3 are optional. Most air conditioners now being sold in Australia are compatible with all three modes, which are as follows: DRM1: The appliance is either shut down or running at a minimal load. In an air conditioner, the compressor would be turned off but the fan would continue to operate. Appliances that are only either off or on such as non-variable speed pool pumps would be turned off. April 2017  15 One way by which a DRED controller is connected to a compatible Samsung air conditioner. There are individual signal wires to switch specific DRM modes connected to a terminal block. Other DRED controllers are connected to the air conditioner by an RJ45 connector (the type used on computer network cables). DRM2: The appliance is operated at 50% load if it is a variable output device such as an air conditioner. Physically, this typically means the compressor speed is reduced until it is running at 50% of its nominal full power rating. DRM3: As for DRM2 but the appliance runs at 75% load. This mode was requested by power companies as an incentive to encourage customer uptake of DRED appliances as it was thought no one would want an air conditioner running at only 50% capacity. There is a futher mode, DRM4, which switches an appliance on even if it over-rides timers or other settings. The purpose of this setting is to force appliances to come on when “green” energy is available so they can be run with lower CO2 emissions. It is not used on air conditioners. There are also other DRM modes that relate to control of solar panels connected to grid-tied inverters to control their power production These are specified in AS/NZS 4777.2:2015 “Grid connection of energy systems via inverters – Inverter requirements”. The AS4755 standard is actually quite vague and only specifies details of connections to an appliance and control of the appliance. Communication from the power utility company to the customer’s signal receiver connected to an appliance is open to whatever method the service provider wishes to use. Communication may be by a ripple signal imposed on the power lines, which seems to have been implemented (at least in some installations) by Energex in Queensland. Ausgrid in trials have used a mobile network 3G device as the signal receiver. Control may also be via a customer’s Internet connected wireless network, broadcast wireless signals, Zigbee, Z-Wave (a home automation protocol) or mesh wireless. Some air conditioners have some sort of indicator to show they are in DRED mode although not necessarily the particular DRM state they are in. For example, one Panasonic model has the power light flash for three seconds on and 0.5 seconds off, on a certain Mitsubishi model the “run” and “timer” light blink alternately, on Hitachi models all indicator lights on the head units flash. One of a number of available lists of DRED compatible air conditioners is available via siliconchip.com.au/l/aacf Some units already have the controller built in, others are ready for it and can have a controller and signal receiver installed. Presumably, if the DRED service was installed but no longer wanted, because, for example, a sick or frail person needed to be kept in appropriate comfort, then one would have to get permission from the power company to remove it and possibly refund the incentive. A licensed contractor would need to remove the DRM connections to the appliance which should disable it since the control wires are “add on” and DRED control is not currently embedded in the hardware and firmware of the air conditioner. DRED is a voluntary now but as our electrical grids become more compromised by intermittent renewable energy sources, will it become compulsory in the future? References These “shortlinks” will expand to take you to the full website: siliconchip.com.au/l/aacg siliconchip.com.au/l/aach siliconchip.com.au/l/aaci Installation of DRED devices and signal receivers is only permitted by qualified personnel but if you are interested in some of the details of what is done you may refer to some of these installation guides and videos. siliconchip.com.au/l/aacj siliconchip.com.au/l/aack siliconchip.com.au/l/aacl SC Intelligy Demand Response Enabling Device (DRED). It communicates with a smart meter using ZigBee and can be used to control air conditioners, pool pumps and water heaters. Note that this is the signal receiving device. It has to be connected to an appliance via an appropriate AS/ NZS 4755.3.5:2016 compliant interface or it can alternately be connected to an auxiliary relay or contactor. A temperature sensor can also be connected to this device. 16  Silicon Chip siliconchip.com.au U s in g Ch e a p A s ian El e c t r M o d u o nic l Par t 6e s AD9833-based Direct Digital Synthesiser By JIM ROWE This little signal generator module uses an Analog Devices AD9833 DDS chip and a 25MHz crystal oscillator. It can be programmed to generate sine, triangle or square waves up to 12.5MHz and it's all controlled via an SPI serial interface. 18  Silicon Chip Asia, especially China, some of them available at surprisingly low prices via internet markets like eBay and AliExpress. As a result, you can buy the tiny (18 x 13.5mm) AD9833-based DDS module shown in the photos, which includes a 25MHz crystal oscillator, for the princely sum of $7.88 each – including free delivery to Australia! That's really quite a bargain, which is why we're focusing our attention on it this month. To get an idea of how a DDS works, take a look at the panel titled “DDS in a Nutshell”, which can be found on pages 23 & 24 of this article. Inside the AD9833 The block diagram of Fig.1 shows what's inside that tiny MSOP-10 package. There's quite a lot, although some of the elements are mainly involved in giving the chip its flexibility in terms of output waveform and modulation capabilities. The main sections 2 CAP/2.5V 3 COMP 1 FULL-SCALE CONTROL ON-BOARD REFERENCE REGULATOR 2.5V FREQ0 REGISTER (28-BIT) MUX 1 28 PHASE ACCUMULATOR (28-BIT) Σ 12 SINE ROM 10-BIT DAC MUX 3 FREQ1 REGISTER (28-BIT) MSB S1 (12-BIT) PHASE0 REG PHASE1 REG MCLK 8 FSYNC 6 SDATA 7 SCLK DIVIDE BY 2 (12-BIT) VOUT MUX 4 10 200Ω CONTROL REGISTER (16-BIT) S2 SERIAL INPUT REGISTER (16-BIT) AGND 5 MUX 2 DGND irect Digital Synthesiser or DDS chips have been around for well over 20 years now but for much of that time they were fairly costly. Until recently, they didn't include an integral DAC (digital to analog converter), so you had to use their digital output to drive a separate DAC to generate the analog output signal. In the early 2000s, Analog Devices Incorporated (ADI) announced a new generation of complete DDS devices which did have an integral DAC, as well as offering high performance combined with a price tag significantly lower than what you formerly had to pay for a DDS+DAC combination. Although it's one of the low-cost, lower-performance devices in their range, the AD9833 provides a good example of just what can be achieved nowadays. When combined with a 25MHz crystal oscillator, it can be programmed to produce any output frequency from 0.1Hz to 12.5MHz in 0.1Hz increments, with a choice of three waveforms: sine, triangular or square. All this comes from a chip housed in a tiny MSOP-10 package, running from a supply voltage of 2.3-5.5V, dissipating only 12.65mW and currently with a price tag of $17.46 AUD plus GST in one-off quantities. That's significantly lower than earlier DDS chips. As we've seen in earlier articles in this series, there has also been a huge surge in the manufacture of many kinds of electronics modules in VDD D 4 9 Fig.1: block diagram of the AD9833 DDS IC. The critical blocks are yellow. The phase accumulator generates a series of addresses to look up in the ROM sine table and the resulting values are then fed to a 10-bit DAC which produces the output waveform. Other circuitry allows the output waveform to be changed to a triangle or square wave and also allows for frequency and phase shift keying. siliconchip.com.au involved in basic DDS operation are those shown with a pale yellow fill. Down at lower left in Fig.1 you can see the 16-bit shift register where data and instructions are loaded into the chip from almost any micro, via a standard SPI (Serial Peripheral Interface) bus. We'll discuss that in more detail later. Just above the serial input register is the control register, also 16-bit. This stores the control words, used to set up the configuration of the device, including the output waveform type, which of the two 28-bit frequency registers (FREQ0 or FREQ1) is used to set the DDS output frequency and also whether the phase is shifted by the content of 12-bit phase registers PHASE0 or PHASE1. The main reason why the AD9833 has two frequency registers and two phase registers is to give it the capability of generating signals with frequency-shift keying (FSK) or phase-shift keying (PSK) modulation. Multiplexers MUX1 and MUX2 allow these options to be controlled using bits in the control register. So how are those 28-bit frequency/ phase increment registers FREQ0 and FREQ1 loaded with 28-bit data from the 16-bit serial input register? This is done by sending the data in two 14bit halves, in consecutive 16-bit words from the micro, with the lower half first and then the upper half. The AD9833 can be configured to accept the data this way simply by manipulating two bits in the control register. The same bits can also be used to configure it for setting either the lower or higher 14-bit “half word” alone, which can be useful for some applications (such as frequency sweeping). MUX3, MUX4 and switches S1 and S2 are all controlled by further bits in the control register. MUX3 simply allows the sine ROM to be bypassed, with the output from the phase accumulator fed directly to the DAC. This is how the AD9833 produces a triangle wave output, since the amplitude of a triangle wave is a linear function of its phase. For a square wave output, the DAC is disconnected from the chip's analog output (pin 10) using integrated switch S1, and instead makes use of the MSB (most significant bit) output of MUX3. This automatically gives a square wave output and MUX4 allows you to divide siliconchip.com.au VCC CON1 1 2 3 4 5 6 7 4.7µF 100nF 10nF 2 VDD VCC COMP DGND SDATA 6 SCLK 7 FSYNC 8 SDATA SCLK IC1 AD9833 MCLK 1 4 3 5 VCC OUT 25MHz XTAL OSC EN GND 1 2 100nF FSYNC AGND 10 VOUT VOUT 22pF CAP/2.5V AGND 9 DGND 4 3 100nF Fig.2: circuit of the AD9833-based DDS module used in this article. The AD9833 IC and 25MHz crystal oscillator plus a few passive components are mounted on a small PCB, with a SIL header to make control and output connections. its frequency by two, if needed. The integrated 200W resistor connected between the analog output pin and ground via switch S2 is used to convert the DAC's output current into a proportional voltage output. Since S2 is controlled in parallel with S1, this means that when S1 cuts the link between the DAC output and pin 10, S2 also removes the built-in 200W output shunt. This makes the chip's output voltage swing in square wave mode significantly higher than for the sine or triangular (DAC-derived) options. To be specific, the square wave output is around 5.2V peak to peak, while for sine or triangular waves the output drops to around 650mV peak-to-peak. The complete module Now refer to Fig.2, which shows the complete circuit for the 18 x 13.5mm module shown in the photo below. It simply comprises the AD9833 DDS chip (IC1) and its equally tiny (3 x 2.2mm) 25MHz crystal oscillator. It has six even smaller SMD capacitors, most of them used for filtering either the power supply rails or IC1's Vout pin. Seven-way SIL connector CON1 is used to make all of the signal and power connections to the module. Pins 1 & 2 are used to provide the module with 5V power, while pins 3-5 are used to convey the SPI commands and data to IC1 from the micro you're using to control it. And pins 6 & 7 are used to carry the analog output signal from IC1 out to wherever it's to be used. Limitations Before we talk about driving the module from a micro like an Arduino or a Micromite, we should discuss its limitations. Firstly, the aforementioned difference in output amplitude for square wave versus sine/triangle waves is a factor of about eight times, or 18dB. So if you want to use the module as the heart of a function generator, you will need to attenuate the square wave output by 18dB, to match the sine and triangle output levels. You will also need to pass the sine and triangular outputs through a low- The DDS module is shown at approximately twice actual size to provide greater clarity. From left to right, the pin connections are VCC, DGND, SDATA, SCLK, FSYNC, AGND and VOUT. April 2017  19 AD9833 SERIAL INPUT WORD FORMAT: D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 MSB D0 LSB TO WRITE TO THE CONTROL REGISTER: 0 0 B28 HLB FREQ PHASE SEL. SEL. 0 RESET SLEEP SLEEP OPBIT 1 12 EN 0 DIV2 0 MODE 0 MODE: 0 = SINEWAVE 1 = TRIANGULAR CONTROL REGISTER ADDRESS FREQUENCY REGISTER WRITE MODE: 1= WRITE AS TWO SUCCESSIVE 14-BIT WORDS 0= WRITE SINGLE 14-BIT WORD INTO MSB (HLB = 1) OR LSB (HLB = 0) HALVES OF FREQUENCY REGISTER DAC DATA MSB: 1 = NO DIVISION, 0 = DIVIDE BY 2 CONTROLS WHETHER DAC OUTPUT IS CONNECTED TO VOUT OR NOT: 0 = CONNECTED (SINE OR TRIANGLE), 1 = DISCONNECTED (SQUARE WAVE) HIGH OR LOW BITS SELECT: 1= MSB BITS, 0 = LSB BITS DAC POWER SAVING MODE: 0 = DAC POWERED UP, ACTIVE, 1 = DAC POWERED DOWN FREQUENCY REGISTER SELECT: 0 = FREQ0 REG, 1 = FREQ1 REG Scope 1 (above): a 1000Hz sinewave generated using an Arduino programmed with "AD9833_DDS_module_test.ino". MCLK ENABLE BIT: 0 = MCLK ENABLED (NORMAL OPERATION) 1 = MCLK DISABLED (DAC OUTPUT CONSTANT) PHASE REGISTER SELECT: 0 = PHASE0 REG, 1 = PHASE1 REG Fig.3 (left): the format of the 16-bit digital control data sent to the AD9833. The top two bits determine whether the remaining 14 bits are used to update the frequency, phase or control registers. The control register is used to change the output waveform type, switch between two different sets of frequencies and phases or go into a low-power sleep mode. RESET INTERNAL REGISTERS: 0 = NORMAL OPERATION, 1 = RESET TO WRITE TO A FREQUENCY REGISTER: 0/1 0/1 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 D5 D4 D3 D2 D1 D0 14 BITS OF DATA FREQ. REGISTER ADDRESS: 01 = FREQ0, 10 = FREQ1 TO WRITE TO A PHASE REGISTER: 1 1 0/1 X D11 D10 D9 D8 D7 D6 The underside of the DDS module with the 7-pin male header attached. Again, it's shown twice actual size, due to its small size (18 x 13.5mm). 12 BITS OF DATA PHASE REGISTER ADDRESS: 110 = PHASE REG0, 111 = PHASE REG1 Another limitation, as noted in the “DDS in a Nutshell” box, is that the maximum output frequency is half the sampling clock frequency; in this case, 12.5MHz. But because of the way a DDS works, it can only produce a clean square wave at this maximum frequency. If you want to get a reasonably smooth sine or triangular wave output, this will only be possible at frequencies below about 20% of the clock frequency, or in this case, a maximum of about 5MHz. Programming it When your program starts up, it will need to carry out a number of set-up tasks. These include: 1. Declare the micro's pins that are going to be used by the SPI interface and set them to their idle state (typically high). 2. Start the SPI interface, configured USB TYPE B MICRO ARDUINO UNO OR NANO, FREETRONICS ELEVEN OR LEOSTICK, DUINOTECH CLASSIC OR NANO, ETC IO1/TXD ICSP IO0/RXD IO3/PWM MISO 1 IO2/PWM IO4/PWM IO5/PWM IO7 IO6/PWM IO8 IO10/SS IO9/PWM IO12/MISO IO11/MOSI GND IO13/SCK AREF SCL SDA SS pass filter with a corner frequency of around 12-15MHz, to remove most of the DAC switching transients. After this processing, the outputs can all pass through a common buffer amplifier and output attenuator system. You don't need to worry about any of these niceties if you simply want to use the module as a programmable clock signal source. You can just program it to generate a square wave output and use it as is. VCC 2 +5V SCK 3 4 MOSI RST 5 6 GND DGND MOSI SCK ADC5/SCL ADC4/SDA ADC3 ADC2 ADC1 ADC0 VIN GND GND +5V +3.3V RESET DC VOLTS INPUT +5V SS Fig.4: hooking the AD9833-based DDS module up to an Arduino. It mainly involves making SPI connections via the 6-pin programming header. 20  Silicon Chip SDATA SCLK FSYNC AD9833 BASED DDS MODULE AGND OUT SINE, TRIANGULAR OR SQUARE WAVE OUT TO LP FILTER, BUFFER & ATTENUATOR siliconchip.com.au Scope 2 & 3: a 1000Hz triangular (left) and square (right) wave produced by running the "AD9833_DDS_module_test.ino" file on an Arduino or compatible device. Note the higher amplitude of the square wave output. for a clock rate of say 5MHz, the data to be sent MSB (most significant bit) first and using clock/data timing mode 2 (10 binary). If possible, it should also be set for the data to be exchanged in 16-bit words rather than bytes. 3. Send initialisation commands to the AD9833 to set up its control register, the FREQ0 register and the PHASE0 register. These involve sending the following five 16-bit words (shown here in hexadecimal): • 0x2100 (resets all registers, sets control register for loading frequency registers via two 14-bit words) • 0x69F1 (lower word to set FREQ0 for 1000Hz) • 0x4000 (upper word to set FREQ0 for 1000Hz) • 0xC000 (writes 000 into PHASE0 register) • 0x2000 (write to control register to begin normal operation) With that, the DDS should produce a 1000Hz sinewave. To change to one of the other waveforms, you need to send the correct code to the control register. To change the output frequency, you need to send the appropriate pair of 14-bit words to one of the frequency registers. Note that these are sent lower word first, then upper word. To make programming the AD9833 a little easier, the basic coding for the control, frequency and phase registers is summarised in Fig.3. I also have written a couple of simple example programs to illustrate programming the AD9833 module; more about these shortly. First you'll need to know how the module can be connected to one of the popular micros. module up to almost any Arduino or Arduino clone. This takes advantage of the fact that most of the connections needed for interfacing to an SPI peripheral are made available on the 6-pin ICSP header fitted to most Arduino variants. The connections to the ICSP header are quite consistent over just about all Arduino variants, including the Uno, Leonardo and Nano, the Freetronics Eleven and LeoStick, and the Duinotech Classic or Nano. In fact, the only connection that's not available via the ICSP header is the one for SS/CS/FSYNC, which needs to be connected to the IO10/SS pin of an Arduino Uno, Freetronics Eleven or Duinotech Classic, as shown in Fig.4. With other variants, you should be able to find the corresponding pin without too much trouble. Even if you can't, the pin reference can be changed in your software sketch to match the pin you do elect to use. Driving it from an Arduino Fig.5, on the next page, shows how to drive the module from a Micromite. Fig.4 shows how to connect the siliconchip.com.au Arduino sample program One of my sample programs written for an Arduino is called “AD9833_ DDS_module_test.ino”. It simply initialises the AD9833, starts generating a 1000Hz sinewave (Scope 1) and then changes the waveform after five seconds, giving you a triangular wave (Scope 2), then a square wave (Scope 3) and finally a half-frequency square wave, before returning to a sinewave and repeating the sequence. If you look at the code, you can see how easy it is to control the AD9833 DDS module from an Arduino. Driving it from a Micromite By connecting the MOSI, SCK and SS/ FSYNC lines to Micromite pins 3, 25 and 22 as shown, MMBasic's built in SPI protocol commands will have no trouble in communicating with the module. One thing to note is that if you want to drive the AD9833 module from a Micromite in a BackPack that is already connected to an LCD touchscreen, there's a small complication arising from the fact that the LCD touchscreen also communicates with the Micromite via its SPI port. To prevent a conflict, your program needs to open the SPI port immediately before it sends commands or data to the module, and then close the port again immediately afterwards. Micromite sample program My other program is written for the Micromite, specifically, the Micromite LCD BackPack. It's called “Simple AD9833 FnGen.bas”. This one is a little more complicated and lets you control the AD9833's output frequency as well as the waveform, simply by using buttons and a virtual keypad on the Micromite's touch screen. It's quite easy to drive, and again should show you how the AD9833 can be controlled via a Micromite. Both this program and the Arduino program are available for download from the Silicon Chip website (www. siliconchip.com.au). Alternative module On page 68 of this issue, we have published a Micromite-based DDS Function Generator project by Geoff Graham which also uses the AD9833. Geoff has used a slightly different module which includes the ability to vary April 2017  21 eight bits of the data are the new potentiometer position while the upper eight bits contain two command bits, two channel selection bits and four “don't care” bits, which it ignores. The command bits allow you to select whether you are setting the pot wiper position or commanding the IC go to into a power-down mode. We suggest you check its datasheet for details, however, you really only need to send one of two different commands to this device when using this module: 0x11xy – set wiper position to 8-bit value xy 0x2100 – shut down potentiometer, saving power and disabling the output signal For example, the command 0x11FF will set the output level to maximum, command 0x1180 will set the output level to 50% and 0x1101 will set it to the minimum non-zero level. The attenuated output signal is available at pin 6 and this goes to the non-inverting input of an AD8051 high-frequency op amp which is configured with a gain of six times, providing an output swing of around 3V peak-to-peak for sine and triangle waves. This signal is fed to both a 2-pin header connector and SMA socket via another 0W resistor. Other variations in this module are that it has 100W protection resistors for GND +5V +3.3V VCC 26 25 24 22 SCK DGND MOSI SCK SS SS 21 MICROMITE SDATA SCLK FSYNC 18 AGND 17 OUT AD9833 BASED DDS MODULE 16 14 (MISO) SINE, TRIANGULAR OR SQUARE WAVE OUT TO LP FILTER, BUFFER & ATTENUATOR 10 9 5 4 3 MOSI RESET the output level and also has a lowimpedance buffered output. The module Geoff has used is shown below, to the left of its circuit diagram, Fig.6. It differs from the simpler module shown in Fig.2 in that it has the output signal from the AD9833 fed to a separate SIL connector. From there the signal is routed to an MCP41010 10kW digital potentiometer IC via a 0W resistor, which acts as a digitally controlled attenuator. The output of this attenuator is fed to an AD8051 rail-to-rail op amp and together these constitute a PGA, or Fig.5: connecting the module to a Micromite is similarly easy; all you need to do is wire up its two power pins, the three SPI pins and the signal output connections. Programmable gain amplifier (not pin grid array). The digital pot also communicates via SPI and in fact its clock and data pins are wired up in parallel with the AD9833's so it is on the same SPI bus. The only difference in communication is rather than pulling the FSY pin low, as you do to communicate with the AD9833, you pull the CS pin low to communicate with the MCP41010. Like the AD9833, the MCP41010 is controlled by writing 16-bit data words to it. For the MCP41010, the bottom VCC 4.7µF 1 2 3 4 5 6 100nF DGND 10nF 2 VDD VCC COMP 4 4 x 100Ω FSY 8 CLK 7 DAT 6 FSYNC SCLK IC1 AD9833 10Ω 1 4.7µF 100nF MCLK 3 5 25MHz XTAL OSC OUT GND 1 2 SDATA CS 3 CAP/2.5V AGND 100nF 9 VOUT 10 0Ω DGND 4 5 6 22pF 7 Fig.6: the circuit of the alternative DDS module shown above, which is also widely available. This one incorporates an MCP41010 digital potentiometer to allow the output amplitude to be controlled as well as an AD8051 high-speed op amp buffer to keep the output impedance low and provide some gain to allow a higher maximum output signal level. The module is shown at aproximately 1.5 times its actual size of 32 x 32mm. 22  Silicon Chip EN VCC 3 VOUT AGND 1 2 100nF 4 VDD PA0 MCP41010 CS SI PW0 SCK PB0 GND 5 AD8051 2 1 0Ω 8 1 3 2 4 PGA AGND 1 2 5k 1k siliconchip.com.au the four control pin inputs, the supply for the 25MHz crystal oscillator has a 10W isolating resistor that also forms a low-pass filter in combination with the added 4.7µF ceramic capacitor and there is a 2-pin header which makes the output of the AD9833 available, before it enters the attenuator. There are more details on how to use this module in this month's article on the Micromite-based DDS Function Generator, but besides needing to program the digital pot with the attenuation value, its control is pretty much identical to the description above. Final comments In the June 2016 issue of Silicon Chip, on pages 86-87, we published a “Touch-screen Function Generator” design by NSW reader Dan Amos. Mr Amos' design used an AD9833 module driven by a Micromite with an LCD BackPack but he also added a digital potentiometer, an output buffer amplifier and even an incremental encoder for adjusting either the output frequency or its amplitude. He also provided the MMBasic source code for his program, and a user manual as a PDF file – both of which can be downloaded from the Silicon Chip website. So that project and its software is also an excellent example to get you started on using the AD9833 DDS module. One last comment before closing. As well as being able to generate fixed frequency, FSK and PSK modulated signals, the AD9833 can also be programmed to generate swept-frequency signals. In fact, the Micromite DDS Function Generator in this issue does just that, so refer to that article on page 68 for more details on frequency sweeping. DDS in a Nutshell This simplified explanation should give you some insight into how a DDS works. A DDS is based around one or more look-up tables stored in read-only memory (ROM). These contain a set of high-resolution digital samples of a single wave cycle. Let's consider the case where the table contains a sinewave. The values from the ROM table are fed to a DAC (digital-to-analog converter), so that for each entry in the table, the DAC will produce an analog DC voltage corresponding to the value of the sample stored in that address. As a result, if a counter is used to cycle through the table entries continuously, the DAC output is a continuous sinewave. Let's say that the table contains 1000 entries which represent a single sinewave cycle and the counter which indexes the table is incre- mented at a rate of 1MHz. This means that the output will be a sinewave at 1MHz ÷ 1000 = 1kHz. By changing the rate at which the counter increases, we can change the output frequency. Since the DDS chip operates from a fixed external clock, in order to vary the rate at which the DDS runs through its ROM table, a fancier counter configuration known as a “phase accumulator” is used. This is shown in Fig.7 and it consists of a binary adder feeding an accumulator register. The important point to note is that the phase accumulator register has 28 bits of precision while the sample table, with 4096 entries, only requires a 12-bit number to index its entries. Hence there are an additional 16 bits of fractional phase data in the register and these effectively indicate PHASE ACCUMULATOR 28-BIT FREQUENCY REGISTER 28 BINARY ADDER + 28 28-BIT 28 ACCUMULATOR REGISTER 12 28 28 4096 ENTRY WAVEFORM SAMPLE TABLE (ROM) 10 10-BIT DAC ANALOG OUTPUT Fig.7: the basic layout of a simple DDS. The Phase 28 Accumulator adds the contents of the frequency register to the accumulator register on each FREQUENCY MASTER CLOCK PROGRAMMING INPUT clock cycle. The top 12 bits of the accumulator register is then used to look up an entry in the waveform table ROM, producing a 10-bit digital amplitude value which is subsequently fed to the digital-to-analog converter (DAC) to generate the analog output signal. siliconchip.com.au output phase values in-between those represented by the values in the table. The binary adder has two 28-bit inputs, one of which is the current phase value from the accumulator register. The other input comes from the frequency register at far left, also 28 bits wide. This is the register which we use to set the DDS output frequency.At each clock cycle, the value in the frequency register is added to the value in the accumulator register and this result is stored back in the accumulator register. As a result, as long as the frequency register value doesn't change, the accumulator register increases by the same amount on each clock cycle. With a 28-bit phase accumulator register, a value of zero indicates a phase in radians of zero while its maximum value of 228 - 1 (268,435,455) represents a phase of just under 2π. When the value of the accumulator register exceeds 228 - 1, it rolls back around to zero, hence maintaining 0 < phase < 2π. Each time it “rolls over”, that represents one complete cycle from the output. With a frequency register value of 1, it will take 228 clock cycles for this to happen. With a master clock of 25MHz, that means the output frequency will be 25MHz ÷ 228 = 0.09313Hz or just under 0.1Hz. With a frequency register value of 2, it will take 228 ÷ 2 clock cycles to roll over, giving an output frequency of 25MHz ÷ 227 = 0.186Hz and so on. continued next page April 2017  23 So the output frequency resolution with this configuration is just under 0.1Hz. But how are such low frequencies possible with only a 4096-entry table? Well, only the top 12 bits of the 28-bit accumulator register are used to index the ROM table. This means with the minimum frequency value of one, it will only roll over to the next entry in the table once every 2(28-12) = 65,536 clock cycles. Hence, each value from the table is sent to the DAC 65,536 times before progressing to the next one, giving a very low frequency. At higher frequencies, in this case above 25MHz ÷ 4096 (6.103kHz), values in the table will be skipped when necessary in order to increase the output frequency. In other words, the counter which indexes the table may increase at a rate of 1, 2, 3, 4 times per clock, or somewhere inbetween, by skipping the occasional table entry. For example, to produce an output of 12.207kHz, every second entry from the ROM table is sent to the DAC (12.207kHz = 25MHz ÷ [4096 ÷ 2]). Based on the above, we can calculate the output frequency as: Fo = Dph × Mclk ÷ Rac For the DDS shown in the diagram, with a 28-bit phase accumulator having a resolution (Rac) of 228 (= 268,435,456) and with a master clock frequency (Mclk) of 25MHz, this simplifies down to: Fo = Dph × 0.09313 By the way, while we're showing the table as containing 4096 entries, note that due to symmetry, it's only actually necessary to store the values representing one quarter of a sinewave. The second quadrant of a sinewave is a mirror-image of the first, so this can be achieved by running through a quarter sine table backwards, while the third and fourth quadrant are simply an inverted version of the first and second, and these can be obtained by negating the values from the first two quadrants. You'll also notice that the samples stored in the ROM are shown as having a resolution of 10 bits, to suit the 10-bit DAC, which can produce an analog output with 1024 different voltage levels. One more thing to bear in mind. Because a DDS achieves higher output frequencies by skipping samples in the waveform ROM, at higher output frequencies, the sampling resolution effectively drops. This continues until you reach the “Nyquist frequency” of half the master clock frequency (ie, 12.5MHz) above which the output from the DAC actually starts to drop in frequency. So the theoretical maximum frequency for a DDS is half that of the master clock. But in practice, because of the above, if you want a reasonably smooth sinewave output that doesn't need too much low-pass filtering, it's a good idea to limit the maximum output frequency to about 20% of the master clock frequency; say 5MHz for a 25MHz SC master clock. Distributors of quality test and measurement equipment. Signal Hound – USB-based spectrum analysers and tracking generators to 12GHz. Virtins Technologies DSO – Up to 80MHz dual input plus digital trace and signal generator Nuand BladeRF – 60kHz– 3.8GHz SDR Tx and Rx Bitscope Logic Probes – 100MHz bandwidth mixed signal scope and waveform generator Manufacturers of the Flamingo 25kg fixed-wing UAV. Payload integration services available. Australian UAV Technologies Pty Ltd ABN: 65 165 321 862 T/A Silvertone Electronics 1/21 Nagle Street, Wagga Wagga NSW 2650 Ph 02 6931 8252 contact<at>silvertone.com.au www.silvertone.com.au 24  Silicon Chip siliconchip.com.au Subscribe to SILICON CHIP and you’ll not only save money . . . but we GUARANTEE you’ll get your copy! When you subscribe to SILICON CHIP (printed edition) in Australia, we GUARANTEE that you will never miss an issue. Subscription copies are despatched in bulk at the beginning of the on-sale week (due on sale the last THURSDAY of the previous month). It is unusual for copies to go astray in the post but when we’re mailing many thousands of copies, it is inevitable that Murphy may strike once or twice (and occasionally three and four times!). So we make this promise to you: if you haven’t received your SILICON CHIP (anywhere in Australia) by the middle of the month of issue (ie, issue datelined “June” by, say, 15th June), send us an email and we’ll post you a replacment copy in our next mailing (we mail out twice each week on Tuesday and Friday). Send your email to: missing_copy<at>siliconchip.com.au 4 4 4 4 4 Remember, it’s cheaper to subscribe anyway . . . do the maths and see the saving! Remember, we pick up the postage charge – so you $ave even more! Remember, you don’t have to remember! It’s there every month in your letter box! Remember, your newsagent might have sold out – and you’ll miss out! Remember, there’s also an on-line version you can subscribe to if you’re travelling. Convinced? We hope so. And we make it particularly easy to take out a subscription - for a trial 6-month, a standard 12-month or even a giant 24-month sub with extra savings. Here’s how: simply go to our website (siliconchip.com.au/subs) – enter your details and pay via Paypal or EFT/Direct Deposit. You can order by mail with a cheque/money order, or we can accept either Visa or Mastercard (sorry, no Amex nor Diners’). If mailing, send to SILICON CHIP, PO Box 139, Collaroy NSW 2097, with your full details (don’t forget your address and all credit card details including expiry!). We’re waiting to welcome you into the SILICON CHIP subscriber family! For all the musos (and budding musos!) out there . . . SPRING REVERB Way back in the January 2000 issue, we published a Spring Reverberation project for musicians which was described as a “blast from the past”. Well, you had better prepare for a second explosion because this new unit uses a much cheaper, readily available spring “tank” and has a more flexible power supply, so you can easily build it into your favourite amp, even if it’s portable. by Nicholas Vinen D when they bounce off walls, floors, espite the availability of digital prising two or more actual springs. Sound waves are generated at one ceilings, chairs and other objects. reverb and effects units these It’s a personal preference but many days many musicians, especial- end of the springs using a voice coil, ly guitarists, still like the “old school much like a tiny speaker, and just as prefer this effect to a digitally genersound waves travel through air, they ated one. sound” of spring reverberation. The end result is something you Put simply, a reverberation effects will also happily travel down the metunit takes the dull sound of an instru- al springs. They are picked up at the really have to hear to appreciate but ment (including the human voice) be- other end by what is essentially a mi- it’s surprising just how good a job the spring tank does of mimicking sounds ing played in a “dead” space and adds crophone. Only, because of the (for lack of a bouncing around a hall. lots of little echoes. Of course, the exact sound depends These simulate what it sounds like better word) springiness of the springs, to perform in an acoustically complex and the way they are suspended at ei- upon the exact tank used – some have space such as an auditorium, which ther end, the audio signal doesn’t just two springs, some have three, some are has lots of difference hard surfaces for travel down the springs, it bounces longer or shorter and so on – but resound waves to reflect off, making for around, generating echoes and since gardless of how natural it is, chances no physical process is 100% efficient, are you will find some configuration a much more “live” sound. Even if you’re playing in a decent these decay, just like sound waves do where it will add an extra dimension to your performance. hall, adding And being elecextra reverb Features and specifications tronic, you can vary can make the the reverb effect’s inhall sound bigReverb tank type: two spring tensity (or “depth”) ger and grandAnti-microphonic features: spring suspension, plastic mounting bushings and turn it on or off er. It’s also a Spring tank dimensions: 235 x 87 x 34mm as necessary. But ungreat way to Reverb delay times: 23ms, 29ms (see Figs.4 & 5) like a digital effects help a beginunit, you can’t easily ner musician Reverb decay time: around two seconds (see Fig.6) change other paramsound more Input sensitivity: ~25mV RMS eters such as the echo professional. Frequency response (undelayed signal): 20Hz-19kHz (-3dB) (see Fig.2) delay or frequency reTo simulate Frequency response (reverb signal): 200Hz-3.4kHz (-3dB) (see Fig.2) sponse. all these acousSignal-to-noise ratio (undelayed signal): 62dB Our previous Spring tic reflections, Reverb design from rather than Signal-to-noise ratio (typical reverb setting): 52dB January 2000 worked using digital THD+N (undelayed signal): typically around 0.05% (100mV signal) well but neither the processing, a Controls: level, reverb depth, reverb on/off PCB nor the spring tank spring reverb Power supply: 9-15VAC, 18-30VAC centre tapped or 12-15V DC (which was sourced by uses a spring Quiescent current: typically 30-40mA Jaycar) is available “tank” com26  Silicon Chip siliconchip.com.au ERATION UNIT You might think of it as “olde world” but there's a surprising number of musos who say that a spring reverb ALWAYS sounds better than a digital unit! now. So here is a revised unit which has some worthwhile extra features. Sourcing the spring tank Fortunately, there are multiple suppliers of spring reverb tanks. You guessed it; most of them seem to be in China. The one we’re using is from a musical instrument component supplier called Gracebuy based in Guangdong and at the time of writing this, you could purchase the tank for US$20.37 including free postage via the following “shortlink”: siliconchip.com.au/l/ aac8 (The shortlink, either typed in or clicked on in this feature in siliconchip.com.au, will redirect to the supplier’s page without you havsiliconchip.com.au ing to type in four lines of URL!) The same supplier sells this same unit on ebay, including free postage, for $26.00 AUD via the following shortlink: siliconchip.com.au/l/aac9 If you search ebay, you can also find other units including some with three springs and/or longer springs. We haven’t tried any of these but we would expect them to work with our circuit with little or no modification. So if you’re feeling adventurous, here are some examples: siliconchip.com.au/l/aaca siliconchip.com.au/l/aacb siliconchip.com.au/l/aacc You can get an idea of the properties of the tank we’re using by looking at the scope screen grabs in Figs.4-7. Three spring units will have triplets of echoes, rather than pairs, and longer units will have a larger gap between the stimulus and echo. Other tanks may also have a shorter or longer persistence time than the one we’ve used, depending on the properties of the springs themselves. Note that most of the alternative tanks are larger than the one we’ve used (which is fairly compact; see the specifications panel) so make sure you have room for it in your amplifier’s chassis (or wherever you plan to fit it) before ordering one. Improvements to the design Besides adapting the original January 2000 circuit to give the best performance with the new spring tank, we April 2017  27 Fig.1: block diagram of the Spring Reverberation circuit. Once the audio signal has passed through level control VR1, it follows two paths. In the upper path, the signal is amplified and the high frequencies are boosted. It then passes to the bridge mode buffer driver and on to the spring tank where the signal is converted to vibrations in the springs. The vibrations at the other end are picked up and converted back to an electrical signal, amplified again and then applied to the mixer via depth control VR2. The reverberated signal is then mixed with the incoming signal and fed to the audio output. S1 shunts the signal from the spring tank to ground to defeat the effect if it is not required. also simplified it somewhat, to make it easier to build and reduce the cost. Plus, we made wiring it up and mounting it in an amplifier significantly easier, by the use of more on-board components and connectors. However, the main improvement is the ability to run off a DC supply. This was added so that buskers can add a spring reverb function to portable amplifiers, which may be powered by a 12V lead-acid battery or similar. In fact, the PCB is quite flexible and can be powered from 9-15VAC, 18-30VAC (centre-tapped) or 12-15V DC. It’s also possible to modify it to run off 15-30V DC, in which case you may need to increase the voltage ratings of the 1000µF and 220µF capacitors. One small extra feature we’ve added, besides the new power supply options and related changes, is an indicator LED to show whether the reverb effect is active. It’s built into the reverb on/off pushbutton switch, S1. Basic concept A block diagram of the Spring Reverb unit is shown in Fig.1. The level of the incoming signal (from a guitar, keyboard, microphone, preamp, etc) is adjusted using potentiometer VR1 and is then fed both to a preamplifier for the spring tank and to a mixer, which we’ll get to later. The preamplifier boosts high frequencies since the transducer which drives the springs is highly inductive and so needs more signal at higher frequencies to produce sufficient motion in the springs. Between the preamp and the tank is the buffer stage which has little gain 28  Silicon Chip but serves mainly to provide sufficient current to drive the transducer, which it does in bridge mode, for reasons explained below. The output of the spring tank, which is delayed compared to the input and contains all the added reverberations, is fed to switch S1 which can shunt the signal to ground if reverb is not currently required. Assuming the signal is not shunted, it is fed to a recovery amplifier which boosts its level back up to a similar level to the input signal and then on to VR2, which is used to attenuate the reverberations in order to control the intensity or “depth” of the effect. The attenuated reverberations are then fed to the mixer where they are mixed with the clean input signal to produce the final audio output, which can then be fed to an amplifier or mixer. Circuit description The complete circuit for the Spring Reverb module is shown in Fig.3. Note that two different ground symbols are used in the circuit. For the moment, you can consider them equivalent; we will explain the significance later, when we go over the power supply details. The signal from the guitar/preamp/ etc is applied via RCA connector CON1 and then passes through a pair of electrolytic capacitors connected back-toback (ie, in inverse series), which effectively form a bipolar electrolytic capacitor, to prevent any DC component of the signal from reaching the rest of the circuitry. The signal then goes through low- pass/RF filter comprising a 100Ω resistor, 4.7nF MKT capacitor and a ferrite bead. The -3dB point of the low-pass filter is around 340kHz while the ferrite bead helps attenuate much higher frequency signals (eg, AM and CB radio) which may be picked up by the signal lead. Both filters help prevent radio signal break-through. The audio signal then passes to 50kΩ logarithmic taper potentiometer VR1 which forms an input level control. The level-adjusted signal from the wiper of VR1 goes to two different parts of the circuit, as shown in the block diagram (Fig.1); to the mixer, via a 47nF AC-coupling capacitor and to the tank drive circuit, via a 100nF ACcoupling capacitor. We’ll look at the latter path first before coming back to the mixer later. The 100kΩ DC-bias resistor at input pin 3 of IC1a forms a high-pass filter in combination with the 100nF coupling capacitor, which has a -3dB point of 16Hz. Note that in the original design, this part of the circuit used a 10nF capacitor which gave a -3dB point of 160Hz. The reason for having such a high roll-off was two-fold: firstly, the tank used previously had a very low input DC resistance and presenting it with a high-amplitude, low-frequency signal risked overloading the driving circuitry. And secondly, this helped attenuate 50/100Hz mains hum and buzz that may be from the guitar, cabling and so on. Additionally, while it is possible to get good low frequency performance, it's generally undesirable because it tends to muddy the sound. siliconchip.com.au Here’s the completed Spring Reverb Unit (in this case to suit a DC power supply (see Fig.8[a]). Note the tinned copper wire link over the potentiometer bodies – it not only helps minimise hum but also keeps the pots themselves rigid. siliconchip.com.au Relative Amplitude (dbR) Relative Amplitude (dbR) We’ve shifted this -3dB point down at 1kHz, thus the gain at 1kHz is re- gain is reduced to about half its maxibecause the transducer in the tank duced to 100kΩ ÷ (1kΩ + 16kΩ) + 1 mum (ie, 51 times) at 16kHz. You can we’re using this time has a much high- = 6.9 times. The slope of the result- see the effect of this filter stage in the er DC resistance and we’ve beefed up ing filter is 6dB/octave and the -3dB frequency response diagram of Fig.2. the driving circuitry, so overload is point is 16kHz, which not coincidenThis 10nF capacitor also prevents less of a problem, and this makes the tally, happens to be the frequency at the input offset voltage of IC1 from bereverb sound less “tinny”. which a 10nF capacitor has an im- ing amplified and creating a large DC However, you still have the option pedance of 1kΩ. In other words, the offset at the output, while the 100pF of reducing this capacitor capacitor across the 100kΩ revalue, possibly back to the sistor reduces the gain of this Spring Reverb Frequency Response 23/02/17 14:31:54 +40 +20 original 10nF, if you find the op amp stage at very high freunit has excessive hum pickquencies, preventing instabil+36 +16 up. It really depends on your ity and also reducing the effect +32 +12 particular situation whether of RF/hum pick-up in the PCB CON1 to CON2 this is likely. Note though tracks. The -3dB high-frequen+28 +8 CON1 to CON4 Reverberations that this solution to hum is cy roll-off point due to this ca+24 +4 a case of “throwing the baby pacitor is 16kHz. out with the bathwater”; at +20 0 Tank drive circuitry the same time as reducing +16 -4 the hum pick-up, you’re also Because the spring tank +12 -8 filtering out any genuine sigwe’re using has a fairly high nals at similar frequencies. input impedance of 600Ω at +8 -12 Getting back to the signal 1kHz, and because the springs +4 -16 path, IC1a operates as a nonthemselves are quite lossy, the inverting amplifier with a signal fed to the tank needs to 0 -20 20 50 100 200 500 1k 2k 5k 10k 20k maximum gain of 101 times, have as large an amplitude as Frequency (Hz) Fig.2: three frequency response plots for the Reverb as set by the ratio of the 100kΩ we can provide, given the supunit. The frequency response from input connector and 1kΩ resistors. ply rails available. CON1 to spring tank driver connector CON2 is shown The 10nF capacitor in Note that the supplier lists in blue and uses the left-hand Y-axis. The unit’s series with the 1kΩ resisthe tank input DC resistance overall frequency response, ignoring reverberations, tor causes the resistance of as 28Ω and its inductance as is shown in red. The approximate frequency response for the reverberations is shown in green. This is the lower leg of the voltage 23mH but the actual measured difficult to measure since pulse testing must be used, divider to increase at lower figures are 75Ω and 83mH, givotherwise standing waves cause constructive and frequencies, thus reducing the ing an input impedance of just destructive interference. Our curve is based on pulse gain at lower frequencies. For under 600Ω at 1kHz. testing at discrete frequencies and can be considered example, a 10nF capacitor With ±15V supply rails, the an approximation of the actual response. has an impedance of 16kΩ LM833 and TL072 low-noise April 2017  29 +20V +15V INPUT CON1 22 F 50V 22 F 50V +15V 2.2k 100nF 100nF 47nF 100 –15V 100nF VR1 50k 4.7nF LOG LEVEL 100k 3 2 A GROUND  LED1 SIGNAL GROUND 470k VR3 5k A 8 IC1a 4 4.7k –15V 8 3 2 100pF IC3a 50V K 1 A 4 50V K 100k K 1k 4.7k Q2 BD140 C 2.2k –20V –15V K 22 F 50V 22 F +15V 10nF TP01 50V W04 LEDS ~~ – + A 5 BD139 , BD140 C SC 20 1 7 GND E OUT GND IN 2.2nF 4.7k op amps we’re using have a maximum output swing of around ±13.5V or 9.5V RMS. But since we’ve also designed this unit to be able to run off a 12V lead-acid battery (or equivalent) for busking purposes, and with a supply of only 12V, the output swing is much more limited at 9V peak-to-peak or just 3.2V RMS. To improve this situation, we’ve redesigned the circuitry to drive the tank in bridge mode. This is possible since the driving transducer’s negative input is not connected to its earthed chassis. That doubles the possible signal when running from a 12V DC supply, to nearly 6.5V RMS. 30  Silicon Chip 10 22 F 50V OUT Fig.3: complete circuit for the Spring Reverberation Unit, including the spring tank connected between CON2 and CON3 (shown in green). Only the output socket of the spring tank is connected to its case – this is to avoid earth (hum) loops. Note also that two different ground symbols are used; depending on the power supply arrangement, they may be connected together, or the signal ground may sit at half supply when powered from DC. Two different power supply arrangements are shown in the boxes at right and the PCB can be configured for one or the other. With an AC input, the circuit is powered from regulated, split rails of nominally ±15V while with a DC supply, the circuit runs off the possibly unregulated input supply. 10 220 K 2.2k E TP02 Q4 BD140 B 2.2k SPRING REVERBERATION UNIT Q3 BD139 A D4 IN B IC3b 78L1 5 LM79L1 5 50V K 7 E 22 F D3 6 C B A ~ ~ K +20V 2.2k 4.7k – + A K 600 E B  LED2 1N4148 TO SPRING REVERB INPUT CON2 10 22 F D2 Q1 BD139 10 220 OFFSET A E 22 F D1 1 C B C –20V –15V Table 1 – expected voltages relative to TPGND Supply “+” “–” V+ V- AGND 15VAC +20V -20V +15V -15V 0V 12VAC +17V -17V +12V -12V 0V 9VAC +12V -12V +9V -9V 0V 12V DC +12V 0V +12V 0V +6V (half V+) It works as follows. The output signal from gain/filter stage IC1a passes to both halves of dual op amp IC3. In the case of IC3a, it is fed directly to the non-inverting input at pin 3, while for IC3b, it goes to the inverting input at pin 6 via a 4.7kΩ resistor. IC3a operates as a unity-gain power buffer. The output signal from pin 1 of IC3a goes to the tip connector of CON2 and hence the transducer in the spring tank via a 220Ω series resistor but pin 1 also drives the bases of complementary emitter-follower pair Q1 and Q2 via two 22µF capacitors. A DC bias voltage of around 0.7V is maintained across these capacitors due to the current flowing from the regulated V+ rail (typically +15V), through a 2.2kΩ resistor, small signal diodes D1 and D2, another 2.2kΩ resistor and to the V- rail (typically -15V). You can calculate the current through this chain at around (30V 0.7V x 2) ÷ (2.2kΩ x 2) = 6.5mA and this current sets the forward voltage across D1 and D2 and thus the average voltage across those two capacitors. The voltage across these capacitors defines the quiescent base-emitter voltage of both Q1 and Q2 and thus their quiescent current, which is around 10mA. This is necessary to prevent significant crossover distorsiliconchip.com.au TPV+ +15V IC 1, IC 2: LM 833 3k 100nF IC 3: TL072 FROM SPRING REVERB OUTPUT CON3 D1–D4: 1N4148 220k –15V 33pF TPV– 15nF S1d OFF/ON SPRING REVERB UNIT 8 3 1 IC2a 2 33nF VR2 10k 820k 100k 220k 220nF 220k LOG DEPTH 10pF 7 IC2b 5 100 4 220k * CAPACITOR LINKED OUT WHEN USING AC SUPPLY 75k 10k –15V S1a, S1b: N/C OUTPUT CON4 22 F 50V* 6 10k 15nF TPV1 BR1 1 GND 1000 F +15V OUT ~ 3k TPGND 2 3 GND 35V CON5 IN TPV2 TPV1 –20V +20V TPAGND 5 A 6 OFF/ON 1000 F – +15V 22 F 50V 35V ~ OFF/ON S1c REG1 78L15 IN W04M + CON6 +20V 22 F S1/LED3 IC1b 7  50V K OUT –15V REG2 79L15 POWER SUPPLY CONFIGURATION FOR AC INPUT OFF/ON S1c +15V 2200 F CON6 16V D5 + 1 A 2 CON5 K 1N4004 10k 1k TPGND +15V TPAGND 5 A OFF/ON S1/LED3  6 10k IC1b 220 F 7 47 100nF 10V K –15V POWER SUPPLY CONFIGURATION FOR DC INPUT tion when drive is being handed over between Q1 and Q2, as the output signal passes through 0V. The two 10Ω emitter resistors help to stabilise this quiescent current by way of local negative feedback, since as the current through Q1 or Q2 increases, so does the voltage across these resistors, which reduces the effective base-emitter voltage. The signal fed to the tank is also fed back to inverting input pin 2 of IC3a, setting the gain of this stage at unity. This closes the op amp feedback loop around Q1, Q2 and associated components. The outer “ring” terminal of CON2, siliconchip.com.au which connects to the opposite end of the tank drive transducer, is driven by an almost identical circuit based on IC3b and transistors Q3 and Q4. However, so that the transducer is driven in bridge mode, the gain of this stage is -1, ie, it is an inverting unity-gain amplifier. This is achieved by connecting its pin 5 non-inverting input to signal ground a 2.2kΩ resistor and then using a 4.7kΩ feedback resistor and a 4.7kΩ resistor between the inverting input (pin 6) and the output of the previous stage, pin 1 of IC1a. The 2.2nF feedback capacitor rolls off the gain of this stage at high frequencies, giving a -3dB point of 16kHz and ensuring stability. The tank doesn’t do much to preserve frequencies above 5kHz anyway. By the way, we’re using a TL072 op amp for IC3 instead of an LM833, as used for IC1 and IC2, because its lower bandwidth (and other aspects of the internals of this IC) makes it better suited for driving a complementary emitterfollower buffer. If you use an LM833 instead, the circuit will work but there is likely to be a spurious low-level ~1MHz signal injected which might upset the power amplifier. This signal is due to the op amp having trouble coping with the extra April 2017  31 Fig.4: the yellow trace shows the signal fed to the spring tank input while the green trace at bottom shows the signal at the spring tank output. 23.6ms after a pulse is applied to the input, it appears at the output and then a second echo appears around 29ms after the initial pulse. You can see the next set of echoes due to the signal travelling up and down the springs again some 45ms later and note that each set of echoes has opposite polarity compared to the last. phase shift introduced due to the transistors in its feedback path and it’s hard to tame without adding some gain to the buffer stage, which we don’t really need. Using a TL072 instead solves the problem and since all the gain is handled by the other two LM833 op amps (which have a lower noise figure), it doesn’t degrade the performance at all. Output offset adjustment Since the transducer in the tank has a relatively low DC resistance, we’d like to avoid a high DC offset voltage across CON2 as this will waste power and heat up both the transducer and Q1-Q4 unnecessarily. This was absolutely critical with the older Spring Reverb unit as the transducer used then had a very low DC resistance (under 1Ω). While not as critical anymore, we’ve left the DC offset adjustment circuitry in place as it’s relatively simple and cheap. But because the new Reverb unit can run off an unregulated DC supply, we’ve changed it so that no longer relies on the regulated supply rails to provide a consistent offset adjustment. Red LED1 and LED2 are connected across the supply rails with 4.7kΩ current-limiting resistors. The junction of LED1’s cathode and LED2’s anode is connected to signal ground. As a result, LED1’s anode is consistently around 1.8V above signal ground while LED2’s cathode is consistently about 1.8V below signal ground. VR3 is connected between these 32  Silicon Chip Fig.5: the same signal as shown in Fig.4 but this time at a slower timebase, so you can see how the reverberating echoes continue on for some time after the initial pulse, slowly decaying in amplitude. two points and so the voltage at its wiper can be adjusted between these two voltages. Two back-to-back 22µF capacitors stabilise this voltage so it does not jump around when power is first applied and the supply rails are rising. A 470kΩ resistor between VR3’s wiper and pin 2 of IC1a allows VR3 to slightly increase or decrease the voltage at that pin, to cancel out any offset voltages in op amps IC1a, IC3a and IC3b. Note that because IC3a has a gain of +1 and IC3b has a gain of -1, when you turn VR3 clockwise, the output voltage of IC3a will rise slightly while the output voltage of IC3b will drop slightly. Thus, there will be a position of VR3 such that the output voltages of these two op amps are identical when there is no input signal. This is the condition we’re aiming for as it minimises DC current flow through the transducer connected to CON2. Signal recovery The signal passes through the springs in the tank as longitudinal vibrations and these are picked up at the opposite end by another transducer which is connected to the board via CON3. The signal from this second transducer is roughly -60dB down compared to the signal going in, so it is fed to another high-gain stage based around op amp IC2a, through another coupling/high-pass filter comprising a 100nF capacitor and 100kΩ resistor, with a -3dB point of around 16Hz. Switch pole S1d is shown in the on position; in the off position, it shorts the signal from the tank to ground, so there is effectively no reverb. IC2a is configured as a non-inverting amplifier with a maximum gain of 83 times (820kΩ ÷ 10kΩ + 1). However, like IC1a, its gain is reduced at lower frequencies due to the 15nF capacitor in the lower leg of the divider, with a -3dB point of around 1kHz. As before, a capacitor across the feedback resistor ensures stability and reduces gain at very high frequencies; in this case, it is 10pF. The recovered signal from the tank is then AC-coupled to 10kΩ log potentiometer VR2 via a 220nF capacitor. VR2 controls the level of the reverb signal which is fed to the mixer and thus the “depth” of the reverb effect. The resulting signal at its wiper is then coupled to inverting pin 6 of mixer op amp IC2b via a 33nF AC-coupling capacitor and 220kΩ series resistor. The reason for using two coupling capacitors with VR2 is to prevent any DC current flow through it, which could cause crackling during rotation as the pot ages (note that we have done the same with VR1). The mixer Now you may remember that the signal from VR1 was fed both to the tank and to the mixer; after being coupled across the 47nF capacitor, if passes through a second 220kΩ series resistor to also reach pin 6 of IC2b. So this siliconchip.com.au Fig.6: this time we have a longer stimulus pulse, again shown in yellow, and the response shown in green on a much longer timebase. The reverberations continue for several seconds after the initial pulse but they have mostly died out after around two seconds (indicated with the vertical cursor). is the point at which the original and reverberated signals meet and you can see how VR2 is used to vary the effect depth, as the louder the reverb signal is compared to the input signal, the more reverberation will be evident. A third 220kΩ resistor provides feedback from IC2b’s output pin 7 back to its inverting input, while the noninverting input (pin 5) is connected to signal ground via a 75kΩ resistor. This value was chosen to be close to the value of three 220kΩ resistors in parallel, so the source impedance of both inputs is similar. IC2b operates as a “virtual earth” mixer, with both its input pins 5 and 6 held at signal ground potential. Remember that the action of an op amp is to drive its output positive if the positive input is higher than the negative input and negative if the situation is reversed. So the feedback from its output to its inverting input operates to keep both inputs at the same potential. Since the non-inverting input is connected to ground, the inverting input will be held at that same potential and the signals represented by the currents flowing through the three 220kΩ resistors are mixed and appear as an inverted voltage at the output. The output of IC2b is fed to output RCA connector CON4 via a 22F ACcoupling capacitor and 100Ω short circuit protection/stabilisation resistor. The capacitor removes the DC bias from the output when a DC power supply is used. If an AC supply is used, siliconchip.com.au Fig.7: this shows the output of the reverb unit with a short 1kHz burst applied to the input. You can see the original pulse at the left side of the screen and the reverberating pulses, which have been mixed into the same audio signal, repeated twice with decaying amplitude. the output of IC2b will already swing around 0V so no DC-blocking capacitor is needed and it is linked out. Note that the PCB has provision for two back-to-back electrolytics here (for use with an AC supply). However, IC2b’s output offset should be low enough that most equipment that would follow the reverb unit (eg, an amplifier) should not be upset by it, hence we are not recommending that you fit them. Power supply Two different configurations for the power supply are shown in Fig.3 and you can choose one or the other depending on which components you fit. The one at top suits a transformer of 9-15VAC (or 18-30VAC centre tapped). AC plugpacks can be used. The power supply configuration at bottom is intended for use with 12V batteries or DC plugpacks and will run off 12-15V DC, however, it could easily be adapted to handle higher DC voltages of up to 30V if necessary. Looking at the AC configuration at top, the transformer is normally wired to CON5. If it isn’t centre tapped, the connection is between pin 2 and either pin 1 or pin 3. For tapped transformers, the output is full-wave rectified by bridge rectifier BR1 while for single windings, the output is half-wave rectified. The output from BR1 is then fed to two 1000µF filter capacitors and on to linear regulators REG1 and REG2, to produce the ±15V rails. If your AC supply is much lower than 15V (or 30V centre tapped), you will need to substitute 78L12/79L12 regulators for REG1 and REG2 to prevent ripple from feeding through to the output. Similarly, for AC supplies below 12V (or 24V centre tapped), use 78L09/79L09 regulators. Assuming the reverb effect is on, switch pole S1c will be in the position shown and so the LED within S1 will be lit, with around 9.3mA [(30V - 2V) ÷ 3kΩ] passing through it. Op amp stage IC1b is not used with an AC supply and so its non-inverting input is connected to ground and its output to its inverting input, preventing it from oscillating or otherwise misbehaving. With an AC supply, the signal ground is connected directly to the main (power) ground via a link. DC supply For a DC supply, such as a 12V battery, the configuration at bottom is used. If using the DC supply option with CON6 (the barrel connector), it is necessary to either omit CON5 and solder a short length of wire between its two outer mounting holes (without shorting to the centre), or alternatively, fit a 3-way connector for CON5 and connect a wire link across its two outer terminals. Diode D5 replaces the bridge rectifier and provides reverse polarity protection. The main filter capacitor is larger, at 2200µF, to minimise supply ripple. April 2017  33 2.2nF 4.7kΩ 2.2kΩ 47Ω 10kΩ 10kΩ IC1 LM833 1kΩ 10nF GND 4.7kΩ 4.7kΩ 4.7kΩ 100kΩ 220kΩ 100Ω 470kΩ 220kΩ 75kΩ 220kΩ IC2 LM833 10pF 820kΩ 10kΩ 1kΩ 100nF 4.7nF Q2 Q1 10Ω 2.2kΩ 4148 4148 Q4 D4 2 x BD140 D2 10Ω 220Ω OFFSET A K LED1 CON6 V+ 2200 µF 16V TPGND + K Level VR1 10Ω Q1 2.2kΩ 2 x 22 µF 4 x 22 µF 50V 50V 100nF CON2 To tank 10Ω + Depth VR2 220Ω 2.2kΩ + 220nF 33nF A 100pF 2x BD139 Q3 2.2kΩ + LED2 47nF 4148 4148 + K + S1 5kΩ + + 15nF 3 x 22 µF 50V A VR3 D3 D1 + 33pF + Ω + 15nF 100nF IC3 TL072 CON1 Input 10kΩ 100Ω 100nF CON4 Output CON3 From tank + Fig.8(a): PCB overlay to suit a DC power supply. Don’t forget to fit the five wire links where shown in red. You can fit either CON5, CON6 or both and CON5 can be a twoway or three-way terminal block. CON5 220 µF 10V AGND 100nF 100kΩ D5 1N4004 + - V- 2.2nF 4.7kΩ IC3 TL072 4.7kΩ 4.7kΩ 2.2kΩ 220kΩ 75kΩ 220kΩ IC2 LM833 + + + + 820kΩ Ω + + 10pF + 4.7kΩ 10kΩ 100Ω For DC supply voltages above 15V, shows the component layout for a DC Next, fit the resistors where shown. substitute a similarly-sized capacitor supply while Fig.8(b) shows the layout While their colour code values are with a higher voltage rating such as for an AC supply. Differences between shown in the table overleaf, it’s a 2200uF/25V or 1000uF/50V. the two will be noted in the following good idea to check the resistor values The current limiting resistor for instructions. with a multimeter before fitting them 100nF and D3 4148 LED3 has been reduced to 1kΩ so that Begin by fitting small signal diodes remember to slip a ferrite bead 2x 220Ω D1 4148 CON4 CON3 with the CON1 CON2 BD139of the 100Ω resistor it is still sufficiently bright D1-D4, orientated as shown in Fig.8 over the lead just Output From tank Input To tank Q3 10Ω 2.2kΩ reduced supply voltage while IC1b is and then use the lead off-cuts to form above VR1. 10Ω Q1 2.2kΩ configured to generate a virtual earth the wire links, shown in red. Both The resistors fitted to both versions 15nF 100nF 10Ω Q2 Q1 2.2kΩ at half supply. This is derived from versions require five links to be fit- are almost identical; besides the variOFFSET 10Ω Q4 2.2kΩ the main supply via a 10kΩ/10kΩ re- ted but some are in5kΩdifferent ation in value of the resistor next to 33pF of themVR3 4148 D4 2 x 220Ω A K BD140 sistive divider with a 220µF capaci- places so follow the appropriate over- S1, the 4148 only D2 other difference is that the LED1 2 x 22 µ F tor across the bottom leg to eliminate lay diagram. 50V three resistors to the right of IC1 are CON6 supply ripple from the 2 x 22 µF A K 15nF 4 x 22 µF 50V 1000 µF signal ground. LED2 50V S1 100pF 100nF 35V TPGND Op amp IC1b is con47nF AC 2 x 22 µF figured as a buffer, so 220nF 33nF CON5 GND 50V REG1 that the signal ground V+ 100nF AC has a low impedance 1kΩ 1000 µF Depth Level 4.7nF AGND 35V and drives it via a 47Ω 10nF VR2 VR1 BR1 W04 resistor, to ensure opA K GND 100kΩ + VREG2 amp stability. A 100nF capacitor between signal ground and power ground keeps the high-frequency impedance of the signal ground low despite this resistor. IC1 LM833 100kΩ 470kΩ 100Ω 220kΩ + + 3kΩ + + ~ 10kΩ + + – ~ PCB construction Assembly of the PCB is straightforward. It is coded 01104171 and measures 142 x 66mm with tracks on both sides, and plated through-holes. Two overlay diagrams are shown above: Fig.8(a) 34  Silicon Chip This is the "DC" powered version of the Spring Reverb unit, as shown in Fig.8(a) above. The AC-powered version is slightly different, so if building that one, follow the overlay diagram shown above right. siliconchip.com.au 2.2nF 4.7kΩ IC3 TL072 2.2kΩ 4.7kΩ 4.7kΩ 4.7kΩ IC1 LM833 100kΩ 220kΩ 100Ω 470kΩ 10kΩ 100Ω 220kΩ 75kΩ 220kΩ IC2 LM833 10pF 820kΩ 10kΩ 3kΩ 2.2kΩ Q2 Q1 10Ω 2.2kΩ 4148 4148 Q4 D4 2 x BD140 D2 10Ω 100kΩ A 1000 µF 35V TPGND 2 x 22 µF 50V REG1 V+ REG2 AC CON5 GND AC 1000 µF 35V AGND V- K LED1 - Now fit trimpot VR3, followed by illuminated switch S1. Make sure S1 is pushed all the way down onto the PCB before soldering two diagonally opposite pins and then check it’s straight before soldering the remaining pins. You can now install the small (22F) electrolytic capacitors. These are polarised and the longer (+) lead must go towards the top of the board in each case, as shown using + symbols in Fig.8. If building the DC-powered version, there is also one 220F capacitor that you can fit at the same time but make sure it goes in the position indicated. Next, mount CON5 and/or CON6, depending on how you plan to wire up the power supply. If fitting CON5, make sure its wire entry holes go towards the nearest edge of the board and if using a 2-way connector (for a DC supply), make sure it goes in the top two holes as shown in Fig.8(a). Next, fit CON1-CON4. In each case, you have a choice of using either a horizontal switched RCA socket (as shown on our prototype) or a vertical RCA socket fitted either to the top or the bottom of the PCB. Pads are provided for all three possibilities and which is best depends on how you’re planning on running the wiring in your particular amplifier. As you will see later, we recommend using a stereo RCA-RCA lead to connect the main board to the tank, and the tank will normally be mounted in the bottom of the amplifier chassis Fig.8(b): PCB overlay to suit an AC power supply. Don’t forget to fit the five wire links where shown in red. Depending on the AC supply voltage, REG1/ REG2 should be either 7809/7909, 7812/7912 or 7815/7915 regulators; see text. + 10nF OFFSET 220Ω CON6 2 x 22 µF 4 x 22 µF 50V 50V 100nF 1kΩ 10Ω + siliconchip.com.au Q1 CON2 To tank 10Ω + not fitted for the AC supply version. For the DC supply version, you can now fit D5, orientated as shown. If you are using IC sockets, solder them in place now, with the notched ends towards the top of the board. Otherwise, solder the three op amp ICs directly to the board with that same orientation. Note that IC3 is a TL072 while the other two ICs are LM833s so don’t get them swapped around. For the AC supply version, solder BR1 in place with its longer (+) lead towards upper left, as shown in Fig.8. Now proceed to install the two onboard red LEDs (LED1 & LED2) with the longer anode leads to the left (marked A on the PCB) and all the ceramic and MKT capacitors in the locations shown in the overlay diagram. Polarity is not important for any of these capacitors. Note that LED1 and LED2 are lit as long as power is applied so you could mount one of these off-board as a power-on indicator if necessary. However, we think in most cases, constructors will be building the Reverb unit into an amplifier which already has a power-on indicator so this should be unnecessary and LED1/ LED2 can simply be mounted on the PCB as shown. If you’re building the AC-powered version, solder REG1 and REG2 in place now, orientated as shown. Don’t get them mixed up. You will probably need to crank out their leads slightly using small pliers, to suit the PCB pads. 2.2kΩ 220Ω + GND 2x BD139 Q3 + 4.7nF 2.2kΩ + K Level VR1 100nF 4148 4148 + A 100pF + LED2 220nF 33nF Depth VR2 5kΩ K 47nF + S1 2 x 22 µF 50V A VR3 + + 15nF 33pF + Ω + 15nF 100nF D3 D1 BR1 + W04 – ~ CON1 Input ~ 100nF CON4 Output CON3 From tank while the Reverb board will normally be mounted on the front panel. So keep that in mind when deciding which RCA socket configuration to use. If you want to fit PCB pins for the test points, do so now, however it isn’t really necessary since the pads are quite easy to probe with standard DMM leads. Transistors Q1-Q4 should be fitted next. Don’t get the two types mixed up; the BD139s go towards the top of the board while the two BD140s go below. All four transistors are fitted with their metal tabs facing towards the bottom of the board as shown; if you’re unsure, check the lead photo. You can now solder the large electrolytic capacitor(s) in place; the DC supply version has one, located as shown in Fig.8(a) while the AC supply version has two. In all cases, the longer (+) lead goes towards the top of the board as shown. The last components to fit to the PCB are potentiometers VR1 and VR2, however, before installing them you must do two things. Firstly, clamp each pot in a vice and file off a small area of passivation on the top of the body, allowing you to solder the ground wire later on. And secondly, figure out how long you need the shafts to be to suit your amplifier and cut them to length. Make sure they’re still long enough so that you can fit the knobs later! Now solder the two pots to the board, ensuring that the 10kΩ pot April 2017  35 Parts list – Spring Reverb Unit 1 double-sided PCB, coded 01104171, 142 x 66mm 1 spring reverb tank (see text) 1 stereo RCA lead with separate shield wires 4 RCA sockets, switched horizontal or vertical (CON1-CON4) 1 3-way terminal block, 5.08mm pitch (CON5) OR 1 PCB-mount DC socket, 2.1mm or 2.5mm ID (CON6) 1 50kΩ logarithmic taper single-gang 16mm potentiometer (VR1) 1 10kΩ logarithmic taper single-gang 16mm potentiometer (VR2) 1 5kΩ mini horizontal trimpot (VR3) 2 knobs to suit VR1 and VR2 1 4PDT push-push latching switch with integral LED (S1) (Altronics S1450 [red LED], S1451 [green LED] or S1452 [yellow LED]) 8 PCB pins (optional) 1 100mm length 0.7mm diameter tinned copper wire 3 8-pin DIL sockets (IC1-IC3) (optional) Semiconductors 2 LM833 low noise dual op amps (IC1,IC2) 1 TL072 low noise JFET-input dual op amp (IC3) 2 BD135/137/139 1.5A NPN transistors (Q1,Q3) 2 BD136/138/140 1.5A PNP transistors (Q2,Q4) 2 red 3mm LEDs (LED1,LED2) 4 1N4148 signal diodes (D1-D4) Capacitors 10 22µF 50V electrolytic 1 220nF 63/100V MKT 2 100nF 63/100V MKT 3 100nF multi-layer ceramic 1 47nF 63/100V MKT 1 33nF 63/100V MKT 1 15nF 63/100V MKT 1 10nF 63/100V MKT 1 4.7nF 63/100V MKT 1 2.2nF 63/100V MKT 1 100pF ceramic 1 33pF ceramic 1 10pF ceramic Resistors (all 0.25W, 1%) 1 820kΩ 4 4.7kΩ 1 470kΩ 6 2.2kΩ 3 220kΩ 1 1kΩ 3 100kΩ 2 220Ω 1 75kΩ 2 100Ω 2 10kΩ 4 10Ω Additional parts for 9-15VAC powered version 1 78L09, 78L12 or 78L15 positive 100mA regulator (REG1) (see text) 1 78L09, 79L12 or 79L15 negative 100mA regulator (REG2) (see text) 1 W02/W04 1A bridge rectifier (BR1) 2 1000µF 35V/50V electrolytic capacitors, 16mm maximum diameter, 7.5mm lead spacing 1 22µF 50V electrolytic capacitor 1 3kΩ 0.25W 1% resistor Additional parts for 12-15V DC powered version 1 1N4004 1A diode (D5) 1 2200µF 16V electrolytic capacitors, 16mm maximum diameter, 7.5mm lead spacing 1 220µF 10V electrolytic capacitor 1 100nF multi-layer ceramic capacitor 2 10kΩ 0.25W 1% resistors 1 1kΩ 0.25W 1% resistor 1 47Ω 0.25W 1% resistor 36  Silicon Chip (VR2) goes on the left side and then insert one end of a 100mm length of tinned copper wire in the pad marked “GND”, just to the left of VR2, and solder it in place. Now bend the wire so it contacts the top of the two pot bodies and then solder it to the free pad to the right, as shown in Fig.8, and trim off the excess. Now it’s just a matter of soldering this ground wire to the areas where you scraped away the passivation from VR1 and VR2. Note that you will need to apply the soldering iron for a few seconds for the metal to get hot enough for solder to adhere. Testing and set-up The first step is to apply power and check the supply voltages. If you’ve fitted sockets, leave the ICs off the board for the time being. Having said that, if you have configured the board for a DC supply, plug in LM833 op amp IC1 (taking care with its orientation). Apply power and check that the voltages at the five specified test points are close to the values given in Table 1 (on the circuit diagram). Voltage variation on the “+” and “-” test points can be expected to be fairly large, possibly a couple of volts either side of those given. Voltages at V+ and V- should be within about 250mV of the optimal values while, for DC supplies, the voltage at AGND should be almost exactly half that at V+. If you’ve fitted sockets, cut power and plug in the remaining ICs. Don’t get IC3 (TL072) mixed up with the other two ICs which are LM833s. In each case, the pin 1 dot must go towards the top edge of the PCB, as shown in Fig.8. Re-apply power for the remaining steps. Measure the voltage between the two test points labelled “OFFSET” in the upper-right corner of the PCB. You should get a reading below 100mV. If not, switch off and check for soldering problems or incorrect components around IC3a and IC3b. Assuming the reading is low, slowly rotate trimpot VR3 and check that you can adjust it near zero. It should be possible to get the reading well under 1mV. If you have appropriate cables or adaptors, you can now do a live signal test. Use a stereo RCA/RCA or RCA/3.5mm-plug cable to connect a mobile phone, MP3 player or other signal source to CON1. Turn VR1 and VR2 fully anti-clockwise. Use a siliconchip.com.au cable with RCA plugs at one end and a 3.5mm stereo socket at the other end to connect a pair of headphones or earphones with a nominal impedance of at least 16Ω (ideally 32Ω or more) to CON4. Power up the board, start the signal source and slowly advance VR1. You should hear the audio signal passing through the unit undistorted. Now you can use a stereo RCA/RCA lead to connect the main board to the tank, via CON2 and CON3, matching up the labels on the board with those on the tank. The tank should be placed on a level surface with the open part facing down. Continue listening to the signal source, then advance VR2. You should hear the reverb effect. If you’re unsure, pause the audio source and you should continue to hear audio for several seconds until the reverb dies out. That’s it – the Spring Reverb unit is fully functional. Installation The tank should be installed with the open end down because the spring suspension is designed to work optimally in that position. Use the four corner holes to mount it since the tank is microphonic and these are designed to provide some isolation to prevent bumps from upsetting the springs too much. It would probably be a good idea to add extra rubber grommets under each spacer and avoid compressing them too much, for extra isolation. As for mounting the PCB, you have three options. Option one is to mount it somewhere on the front panel of the amplifier so that switch S1 and potentiometers VR1 and VR2 are easily accessible. You then simply connect it to the tank using a stereo RCA/RCA lead. If the panel it’s mounted on is thin enough, it can be held in place using the two potentiometer nuts, although it would be a good idea to attach a small right-angle bracket to the mounting hole between the two pots, on the underside of the board via an insulating spacer, to provide a third anchor point on the panel. The second possibility is to fashion a bracket from a sheet of aluminium with four holes drilled in it, matching the mounting holes in the board, with the side near the front of the board bent down and additional holes siliconchip.com.au There are no controls on the spring reverb tank itself, just an input (red) and output (white) RCA socket. All controls are on the PCB for this project. drilled in this flange for attachment to the front panel of the amp. You can then use self-tapping or machine screws to attach this bracket to the amp and then the board to the bracket. For bonus points, earth the aluminium bracket back to the GND pad on the PCB, to provide some shielding. The third possibility is to leave S1, VR1 and VR2 off the board and mount it on top of the tank itself. We suggest using a long insulating spacer attached to one of the free holes on the tank’s flange, supporting the PCB via the front or rear mounting hole, with a liberal application of thick doublesided foam tape on top of the tank to support the PCB. You will need to trim the component leads carefully to make sure they can’t poke through the foam tape and short on the top of the tank. In fact, it would be a good idea to silicone a sheet of plastic on top of the tank before applying the tape to provide extra insulation. You would then mount S1, VR1 and VR2 wherever suitable and connect them back to the board using twincore shielded cable for VR1 and VR2 (with the shield to the left-mount [ground] pin in each case). For the connections to S1, use regular shielded cable with the shield wired to the pin connected to ground and the central conductor for the audio pin, and a section of ribbon cable for the LED connections. Using it Using it is straightforward. Push S1 in to enable reverb and push it again so it pops out to disable reverb. When reverb is enabled, S1 will light. Adjust VR1 to give a near-maximum output level without clipping and then tweak VR2 until you get the desired reverberation effect. With VR2 fully clockwise, the effect is overwhelming; you will probably find it most useful somewhere between 10 o’clock and 2 o’clock. SC Resistor Colour Codes               No. Value 4-Band Code (1%) 5-Band Code (1%) 1 820kΩ grey red yellow brown grey red black orange brown 1 470kΩ yellow violet yellow brown yellow violet black orange brown 3 220kΩ red red yellow brown red red black orange brown 3 100kΩ brown black yellow brown brown black black orange brown 2 75kΩ violet green orange brown violet green black red brown 2* 10kΩ brown black orange brown brown black black red brown 4 4.7kΩ yellow violet red brown yellow violet black brown brown 6 2.2kΩ red red red brown red red black brown brown 1# 1kΩ brown black red brown brown black black brown brown 2 220Ω red red brown brown red red black black brown 2 100Ω brown black brown brown brown black black black brown 4 10Ω brown black black brown brown black black gold brown 1^ 3.0kΩ orange black red brown orange black black brown brown 1‡ 47Ω yellow violet brown brown yellow violet black gold brown * 4 required for DC supply version # 2 required for DC supply version ^ only required for AC supply version ‡ only required for DC supply version April 2017  37 DON’T KEEP BLOWING FUSES! Build the eFuse * A Resettable Circuit Breaker * Ideal for automotive fault-finding * Set for any current between 315mA and 10A This resettable Electronic Fuse (eFuse) can be used temporarily in place of a conventional fuse when fault-finding. It is ideal when tracking down the cause of a blown fuse. The eFuse acts like a circuit breaker, automatically disconnecting power a short time after the current through it exceeds a set value. If it “trips out”, just press the reset button to get the current flowing again! W hen you have blown a fuse for the nth time and you really don’t know why, how often have you wished you could press a button and have the fuse “repair” itself? Well, with the eFuse, now you can! If, for example, you are trying to find out why fuses keep blowing in a car, van or trailer, you have two ways to check them: keep blowing fuses until you track down the problem (and end up with a pocket full of blown fuses) . . . or you can use the SILICON CHIP eFuse to save time and frustration. Mind you, the eFuse is not just limited to automotive applications: it can be used when trouble-shooting any circuit which runs at DC voltages between 9V & 15V. Three LED indicators show when there is voltage present at the eFuse input and output, and also whether it has tripped. In use, the eFuse is connected in place of the conventional fuse by being plugged into the fuseholder of the circuit under investigation (only suitable for vehicles or circuits that have the fuse in the positive supply line). You can set up the eFuse for a trip current that includes standard fuse ratings between 315mA and 10A. ally concerned by the “fuse current”, you could remove the power indicator LEDs (or use high-brightness LEDs with much higher current limiting LEDs) but there still will be around 1.7mA drawn by the eFuse itself. Also the eFuse has a voltage loss that may be a little higher than that of a typical high-current fuse but that should not cause a problem in most circuits. The voltage drop is typically around 0.4V at 10A and proportionally less at lower currents. Configuration The eFuse is housed in a small plastic box with three indicator LEDs, a pushbutton reset switch and a conventional fuse on the front panel. It has three leads, two for connection to the fuseholder (to replace the conventional fuse) while the third lead is to connect to chassis, which provides the negative supply for the eFuse. The positive supply for the eFuse comes from the connection to the fuseholder. A conventional fuse is included in the eFuse just as a safeguard. It would only blow if the eFuse itself fails. Points to consider Table 1 shows the LED indications under various condiNote that the eFuse does draw a slight amount of current tions. If LEDs 1 & 3 are alight, the eFuse is conducting. If when it is connected in-circuit, on top of that consumed LED2 lights, the eFuse has gone “open circuit”. In this case, LED3 will generally be off by the load itself. although it may glow dimly if the load This amounts to around 15mA and is By JOHN CLARKE is disconnected. You can press the Reset mostly due to the indicator LEDs. If you re38  Silicon Chip siliconchip.com.au Features * Adjustable trip current * Reset switch * LED lights when tripped * Capable of withstanding brief overloads * Reverse connection protection * Indication of input and output voltage presence * Transient voltage protection * Output voltage clamping * Onboard safeguard fuse switch after the eFuse has “blown”, to reconnect power to the load. eFuse operation The eFuse operates somewhat like conventional fastblow fuse. Conventional fuses come in several different types including standard, fast and slow blow. Typically, a standard fuse requires twice its rated current to open in one second, a fast-blow fuse requires twice its rated current to blow in 100ms, and a slow-blow fuse requires twice its rated current to blow after tens of seconds. The eFuse operates by limiting the current passing through it and it has two current limits. One is the shortcircuit current limit and the other is the overload current limit. The overload limit is higher than the short-circuit limit. As long as the current flow through the eFuse remains below the overload limit, it operates in full conduction. However, should the overload limit be exceeded, current through the eFuse is limited to the lower short-circuit limit. If the eFuse output is shorted, this will happen almost instantaneously and it will be as if the current was limited to the short-circuit level initially. While the current is being limited in this manner, the eFuse IC heats up and one of two things can happen: it trips off, disconnecting the load or if the overload condition is cleared (eg, output short removed), the eFuse goes back to full conduction. siliconchip.com.au The time it takes the eFuse to “blow” typically ranges from 1-100ms, depending mainly on the current limit setting. The two current limits cannot be set separately; they’re locked together. You set the short-circuit current limit and the overload current limit is automatically set to a somewhat higher value. Typically, you would set the short-circuit current limit to the same value as you would select for a standard fastblow fuse in the circuit being protected. If you’re confused about the two different current limits, think of the difference in the two limits as similar to hysteresis in the comparator which compares the current flow to a reference current limit. It also serves to allow the load to draw more than the Table 1: LED Indicator states Supply indicator (LED1) Output indicator (LED3) Trip indicator (LED2) Normal Lit Lit Off Limiting Lit Dimmed Off Tripped Lit Off or dim Lit Reversed supply/ output connection Off Lit Off eFuse state April 2017  39 8 age which typically must be amplified before being fed to a microcontroller or analog-to-digital converter and the amplification inevitably increases CHARGE VOLTAGE the noise level in the current reading. PUMP REGULATOR The configuration of a SenseFET is shown in CURRENT Fig.2(b). In this case, some small proportion (say 4 LIMIT CURRENT LIMIT 1%) of the current always flows through the smaller OVERFET while the other 99% flows through the larger VOLTAGE CLAMP FET. The drain current and gate voltage is therefore SOURCE 5,6,7 the same as with a regular FET, but this current is THERMAL split between the two source terminals. This allows LATCH a resistor to be inserted in series with the smaller FET such that 1% of the load current (say) flows VOLTAGE SLEW RATE through it while the other 99% flows unimpeded. ENABLE/ This is shown in Fig.2(c). TIMER Since the current through this resistor is so low, say 100mA when the total current is 10A (ie, 10A x dV/dt ENABLE/ TIMER GND 1%), it can have a much higher value, so the sense 3 2 1 voltage is higher and there is no need to amplify it. Fig.1: the block diagram of the NIS5112 is shows the SenseFET Also, despite the higher voltage across this resistor, in the top righthand corner. The charge pump circuit provides the dissipation is much, much lower and there’s the necessary voltage-shifted gate signal to the SenseFET for no need to use a high power resistor. high-side switching. However, the coupling from the charge In practice, in the eFuse circuit, the current sense pump to the SenseFET gate is not shown. resistor has a value of 20Ω or more, dissipation is very low, under 100µW (0.1mW) and the ratio of rated current for brief periods, eg, while charging up ca- the two currents is 1000:1 (ie, 99.9% and 0.1%). pacitors (which a normal fuse would also tolerate). The eFuse cannot be reset to restore power until the Electronic fuse IC details overload or short-circuit has been removed. Depending on Being an N-channel device, the internal Mosfet how soon you reset it, the overload current limit may be (SenseFET) needs a gate voltage higher than Vcc to operate lower than it was initially, until the eFuse IC cools down. as a high-side switch and so the IC has an internal charge The current limiting described above not only provides pump to generate this voltage. the fuse function but also serves to protect the eFuse itself. The NIS5112 also includes a soft-start feature whereby a capacitor connected to the dV/dt input (pin 2) is charged Current sensing from a current source, causing the Mosfet to gradually The main component in the eFuse is an NIS5112 Elec- switch on at power up. dV/dt simply refers to the rate of tronic Fuse IC manufactured by ON Semiconductor. Its in- voltage change (dV) with time (dt). The slow start-up rate ternal function block diagram is shown in Fig.1. is useful when the load would normally have a high initial It contains an internal N-channel Mosfet which conducts surge current. This includes loads that have large filter cacurrent from the Vcc supply at pin 8 to output Source pins pacitors or capacitor banks across their inputs. 5, 6 & 7. This Mosfet has a typical on-resistance of 30mΩ, The slow start allows these capacitor(s) to charge withcurrent ratings of 5.3A continuous and 25A peak and is a out tripping the eFuse. The same slow start-up procedure current-sensing type, known as a “SenseFET”. This con- applies when the eFuse is reset. sists of two Mosfets in parallel, one of which is much bigFuse tripping is handled by monitoring the Mosfet temger than the other. perature and the IC switches it off quickly when the die Most of the current flows through the LOAD LOAD bigger Mosfet and the ratio of the curCURRENT CURRENT rents flowing through the two Mosfets D D LOAD is constant. A small resistor connected MAIN MAIN SENSING SENSING CURRENT MOSFET MOSFET MOSFET MOSFET D in series with the smaller Mosfet allows the total current to be sensed, without G G G needing to pass the full current through S this resistor. MIRROR R To explain the benefit of a SenseFET, R consider the conventional method for SOURCE sensing current through a Mosfet, as SOURCE MIRROR Fig.2b Fig.2a Fig.2c shown in Fig.2(a). The problem with CURRENT this approach is that since the entire Fig.2: these diagrams show the operation of a SenseFET. Fig.2(a) show a current load current flows through the sense sensing resistor in the source circuit of a normal FET. This resistor would need to resistor, it must have a very low value be a very low value to keep power dissipation low in high current applications. and high power rating to avoid exces- A SenseFET has two FETs with the smaller FET “mirroring” the current in the sive dissipation, reduced efficiency and main FET (Fig.2(b)). So the sensing FET can have a much higher value of sensing overheating. This results in a small volt- resistor without consequent high power dissipation, as in Fig.2(c). VCC 40  Silicon Chip siliconchip.com.au temperature reaches about 135°C. There are two versions of the NIS5112 which differ in regards to how tripping is handled. In one version, the Mosfet stays off once it is tripped until reset and this is the version we are using. The other version restores fuse operation automatically when the temperature drops below 95°C. Another feature of the NIS5112 is over-voltage clamping which limits the output voltage to 15V. Clamping is done by controlling gate drive to the Mosfet to adjust the drainsource resistance to maintain the 15V maximum output. Note though that if the input voltage is very far above 15V and stays that way for a significant time, the Mosfet is likely to overheat and trip the fuse. SPECIFICATIONS Supply voltage: ........ 9-15V Polarity: .................... for fuses connected in series with the positive supply line Current drain: ........... 15mA typical (1.7mA with LED1 and LED3 removed) Trip current range: ... See Table 1 Trip response time: .. typically 10ms Overload current: .....13.6A (with two fuse ICs fitted; self-limiting) Supply voltage: ........ 15V maximum Paralleling eFuse ICs Typically, if two NIS5112 ICs are connected in parallel, they will automatically current share the current, ie, 50% of the overall current is carried in the Mosfet within each IC. Thus, the actual trip level will be twice the set trip level for each IC. The reason is as follows. At 25°C, the internal Mosfets in IC1 and IC2 have an onresistance of around 28mΩ. If one Mosfet has a slightly lower on-resistance, it will conduct more current and so heat up a little more than its companion. Mosfet on-resistance rises with temperature (to around 37mΩ at 100°C) and the increased resistance will reduce the current through this Mosfet so more current flows through the other Mosfet. The Mosfets will stabilise in temperature as each Mosfet shares current more or less equally. It may not be obvious that the Mosfet with the lower onresistance will heat up more since the resistance is one factor in calculation the dissipation, but note that the equation is I2R and since the current will increase proportionally as the on-resistance decreases, the fact that the current is squared in this equation means that its increase will more 2.2k eFUSE IN + 8 VCC TO CHASSIS (15V) The circuit for the SILICON CHIP eFuse is shown in Fig.3 and it can use one or two NIS5112 electronic fuse ICs. With a single IC fitted, the eFuse will work up to 5A whereas with two, you can set the trip current as high as 10A. Resistors R1 and R2 set the trip current for IC1 and IC2 LED2  SOURCE F1 TVS1 SA15A Circuit description K Q1 SUP53P06 TRIPPED SAFEGUARD FUSE (9–15V) A than compensate from the reduction in dissipation due to lower resistance. One small wrinkle when paralleling NIS5112 ICs is that while they will share current before either trips, inevitably one will trip before the other (due to differences in onresistance, external resistor value, temperature sensor accuracy etc), leaving the remaining IC to continue passing the full load current for a brief period. Before this second IC trips, it will continue to limit the current to one half the value compared to when the two ICs were conducting. However, normally the second IC will trip very soon after the first due to the increased dissipation in this condition so it isn’t really an issue. IC 1 IC1 NIS5112 2.2k K SOURCE SOURCE A SUPPLY LIMIT IN A EN/T  LED1 3 GND 5 D 6 7 4 C dv/dt B 2 1 K 15k 1 F 8 FUSE RESET VCC SOURCE IC2 NIS5112 S1 SOURCE SOURCE LIMIT 1 F EN/T 3 GND 1 100k G 100k R1 100nF eFUSE OUT S Q2 BC 547 2.2k SUPPLY OUT A  LED3 E K 5 6 7 4 BC547 LEDS R2 B K A dv/dt 2 E 1 F C SUP53P06 NIS5112 SC 20 1 7 ELECTRONIC FUSE SA15A A 8 K 4 1 G D D S Fig.3: one or two NIS5112 ICs can be used in the circuit, giving a trip current rating of 5A or 10A. Mosfet Q1 provides protection against input/output reversal. The safeguard fuse (F1) is included just in case the whole circuit fails. siliconchip.com.au April 2017  41 1 F RESET NO NC 2.2k 2.2k 100k SUP53P06-20 Electronic Fuse 1 F LED1 S1 C Q2 BC547 Q1 2.2k IC2 100nF 100k TVS1 R2 IC1 R1 NIS5112 15k eFUSE eFUSE IN GND OUT Safeguard FUSE F1 1 F A Supply IN LED2 eFuse Trip A LED3 A Supply OUT 17120140 04102171 C 2017 REV.C Fig.4: the safeguard fuse is a standard automotive blade type, mounted on the top left corner of the PCB. The external connections can be made via a 3-way terminal block, as shown on the component overlay at left, or wired directly, as shown in the photo at right. respectively. Assuming both ICs are fitted, both resistors must be the same value so the trip current is the same for each. Table 2 shows the various trip currents that can be selected with one IC fitted while Table 3 shows the values for R1 & R2 with IC1 & IC2 fitted. Note that for a given short-circuit trip current ratings, there will difference in the overload current rating, depending on whether you use one or two ICs. For example, a 3A eFuse with just IC1 fitted has an overload rating of 4.6A but with IC1 and IC2 fitted, has an overload rating of 7.6A instead. So fitting both ICs is to be preferred since a normal fuse will typically handle overloads up to twice its rated current (ie, 6A in this case) for around one minute before blowing. The dV/dt inputs for IC1 and IC2 (pin 2) each connect to a 1F capacitor so that after resetting or during power up, the eFuse output will slowly rise in voltage to supply the load over about 80ms, ie, it “slew rate” limits. A second 1F capacitor across reset switch S1 provides a slight delay after resetting and serves as a contact de-bounce for the switch. The input supply indicator, LED1, lights whenever power is connected to the eFuse. LED2 lights when the eFuse trips and LED3 lights when there is a supply to the load. Circuit protection Note that the output from IC1 (and IC2 if used) passes current to the eFuse output via P-channel Mosfet Q1. This Table 2: Only IC1 installed Mosfet provides reverse connection protection (ie, if power is incorrectly applied to the eFuse output rather than its input). While we could have used a schottky diode to provide the same reverse polarity protection, its forward voltage drop of about 0.5V at 10A, is much higher than the conduction voltage of Q1. It works as follows. Once IC1/IC2 switch on, the output voltage turns on NPN transistor Q2 via a 100kΩ/15kΩ resistive divider and current limiting network. Q2 pulls the gate of Q1 low, switching it on. It will have started conducting current to the load anyway, via its body diode, however this has a high forward voltage drop and that diode is effectively shorted out once the Mosfet switches on, so only its low on-resistance of around 20mΩ affects the load voltage slightly. If the circuit is connected in reverse, with a voltage source connected to the output, Q1’s body diode is reverse-biased so will not conduct and since its gate pin is pulled up by the 100kΩ resistor from its source, it will remain switched off. The 100nF capacitor and 15kΩ resistor across Q2’s baseemitter junction ensures that it too remains off, despite any voltage coupled across Q1’s gate/source or drain/source capacitance. This condition is indicated by LED3 being lit while LED1 is off so you can easily identify and rectify it. Q1 also protects the circuit if the connections are swapped both in terms of input/output and also polarity; ie, if the “eFuse out” terminal is connected to 0V and 0V Table 3: IC1 and IC2 installed Short Circuit Trip Current Overload Current Safeguard Fuse rating R1 Short Circuit Trip Current Overload Current Safeguard Fuse rating R1 & R2 (IC2 installed) 315mA 350mA 500mA 800mA 1A 1.6A 2A 2.5A 3A 3.15A 4A 5A 3.5A 3.5A 3.6A 3.7A 3.8A 3.9A 4.1A 4.5A 4.6A 4.6A 5.5 6.8A 1A 1A 1A 1A 1A 2A 2A 3A 3A 3A 5A 5A 430Ω 390Ω 330Ω 180Ω 120Ω 91Ω 62Ω 47Ω 39Ω 36Ω 27Ω 20Ω 800mA 1A 1.25A 2A 2.5A 3A 3.15A 4A 5A 6.5A 7.5A 10A 7A 7.2A 3.9A 7A 7.2A 7.6A 7.7A 8.2A 8.4A 9.2A 10.6A 13.6A 1A 1A 1A 2A 3A 3A 3A 5A 5A 7.5A 10A 10A 360Ω 330Ω 220Ω 150Ω 120Ω 91Ω 82Ω 62Ω 43Ω 36Ω 30Ω 20Ω 42  Silicon Chip siliconchip.com.au terminal to +15V, little current will flow and no damage will result. However, if the input is connected with reverse polarity – ie, with “eFuse in” to 0V and the 0V terminal to +15V, TVS1 will conduct a large amount of current and safeguard fuse F1 will blow. In normal use, with the correct supply polarity, TVS1 is used to clamp transient voltages over about 18V and thus to protect IC1 and IC2 from over-voltage damage. As well as protecting against reverse polarity, F1 prevents further damage in the case of any other catastrophic faults. Construction 1 double-sided PCB coded 04102171, 74 x 47mm 1 UB5 plastic box, 83 x 54 x31mm 1 panel label, 78 x 48mm 1 SPDT PCB-mount momentary pushbutton switch (Altronics S1393) (S1) 1 6073B-type flag heatsink, 19 x 19 x 10mm (Jaycar HH8502, Altronics H0630) (for Q1) 1 PCB-mount ATO/ATC blade fuse holder (Altronics S6040) (F1) 1 ATO/ATC blade fuse (see Table 2&3) 1 blown fuse (to connect eFuse to circuit being protected) 1 cable gland for 6mm diameter cable 1 M3 x 10mm machine screw and nut (to mount Q1) 1 crimp eyelet or alligator clip (for 0V lead) 1 1m length of light or medium-duty black insulated wire 1 1m length of red insulated wire, rated to suit eFuse configuration 1 1m length of yellow insulated wire, rated to suit eFuse configuration Semiconductors 1 NIS5112D1R2G latch-off electronic fuse (IC1) 1 SUP53P06 P-channel Mosfet (Q1) 1 BC547 NPN transistor (Q2) 1 500W 15V Transient Voltage Suppressor (eg, SA15A) (TVS1) 2 3mm green LEDs (LED1 & LED3) 1 3mm red LED (LED2) Capacitors 2 1F 25V (or 63V) PC electrolytic 1 100nF 63V or 100V MKT polyester Resistors (0.25W 1%) 2 100kΩ 1 15kΩ plus R1 & R2 (see Table 2&3) Fig.5: reproduced from the data sheet, this graph shows the short circuit and overload current limits of a single NIS5112 IC for various values of limiting resistor (ie, R1). Note that we have selected a minimum value of 20Ω, giving the device the ability to carry 5A continuously. Lower values of R1 will allow higher currents to be carried for short periods until it reaches its internal temperature limit and then trips out. So in fact, lower values for R1 are not practical. siliconchip.com.au 3 2.2kΩ Additional parts if fitting IC2 1 NIS5112D1R2G latch-off electronic fuse (IC2) 1 1F 25V or 63V PC electrolytic 1 0.25W 1% resistor for R2 (see Table 3) I Limit (A) The eFuse is built on a PCB coded 04102171 and measuring 74 x 47mm. It can be housed in a small plastic box measuring 83 x 54 x 31mm. A panel label measuring 78 x 48mm can also be glued to the base of the box which is normally fitted with a cable gland at one end for the wires to pass through. Before starting construction, decide on the current rating you require and whether or not to install both IC1 and IC2. If you only install IC1, use Table 2 to select the value of R1. If you install both IC1 & IC2, select R1 & R2 from Table 3. Use the overlay diagram, Fig.4, as an assembly guide. IC1 (and IC2 if used) are installed first. Start by aligning pin 1 of the IC on the marking on the PCB. Solder pin 1 first, then check that the IC pins are correctly aligned. If not oriented correctly, re-melt the solder and adjust placement until the IC is correctly positioned. Finally, solder the remaining pins and refresh the initially tacked pin. Any solder bridges between the pins can be removed with solder wick. Note that pins 5, 6 and 7 are meant to be connected together. Install the resistors next and then TVS1. The resistors are colour coded with the resistance value and the table overleaf shows the colour bands for each resistor used. A digital multimeter should also be used to check the values as the colour bands can be hard to identify. Make sure that TVS1 is installed with the correct polarity, with the striped end oriented as shown in the overlay diagram. The P-channel Mosfet Q1 is fitted with a heatsink. Bend its leads over by 90° and insert them into the PCB holes, then secure both the Mosfet tab and heatsink using an M3 x 10mm screw and nut before soldering the leads. Switch S1 is mounted next. We have arranged the 100 PCB so that S1 can be oriented either way. Follow with the capacitors. The electrolytic types must be installed with the polarity shown, ie, longer lead through the holes marked +. These will need to be laid over sideways so they sit no taller than the switch body. Transistor Q2 can also be fitted now. 10 The LEDs are mounted with the top of each lens Parts list – eFuse ILIMIT_OL 1 ILIMIT_SS 0.1 10 20 100 RexternalLimit () 1000 April 2017  43 Resistor Colour Codes                      No. 2 1 1 * * * * * * * * * * * * * * * * * * Value 100kΩ 15kΩ 2.2kΩ 430Ω 390Ω 360Ω 330Ω 220Ω 180Ω 150Ω 120Ω 91Ω 82Ω 62Ω 47Ω 43Ω 39Ω 36Ω 30Ω 27Ω 20Ω 4-Band Code (1%) brown black yellow brown brown green orange brown red red red brown yellow orange brown brown orange white brown brown orange blue brown brown orange orange black brown red red brown brown brown grey brown brown brown green brown brown brown red brown brown white brown black brown grey red black brown blue red black brown yellow purple black brown yellow orange black brown orange white black brown orange blue black brown orange black black brown red purple black brown red black brown brown 5-Band Code (1%) brown black black orange brown brown green black red brown red red black brown brown yellow orange brown brown orange white black blackbrown orange blue black black brown orange orange black black brown red red black black brown brown grey black black brown brown green black black brown brown red black black brown white brown black gold brown grey red black gold brown blue red black gold brown yellow purple black gold brown yellow orange black gold brown orange white black gold brown orange blue black gold brown orange black black gold brown red purple black gold brown red black black gold brown * A selection of these resistors is used for R1 and/or R2 – see Table 2 and Table 3 for details. dome 17mm above the PCB surface. Make sure the LEDs are oriented correctly with the anode (longer lead) soldered to the pad marked “A”. The Supply In and Supply Out LEDs are green (LED1 and LED3) and the trip indicator (LED2) is red. The input supply and output (load) wires can be soldered directly to the PCB or secured in a 3-way terminal block, as we show on the component overlay. We used red for the eFuse input, black for the 0V wire and yellow for the eFuse output wire. Note that although the 0V wire carries little current, it’s probably a good idea to use the same type of wire for all three connections. The eFuse PCB is installed upsidedown in the plastic case with the PCB clipped into the side flanges and the LEDs, switch and safeguard fuse protruding through the base. A copy of the front panel artwork can also be used as a drilling diagram. Drill and file to shape the required holes for the LEDs, switch and fuse. You will also need to drill a hole for the cable gland, centred on the end of the box near to the safeguard fuse. To produce a front panel label, you have a variety of choices available, ranging from “quick’n’easy” through to quite professional finishes. 44  Silicon Chip These are discussed on the S ILICON C HIP website at www. siliconchip.com.au/fp ate one by directly connecting a lowcurrent fuse across a vehicle battery. Wear safety goggles when doing this. Finishing it Testing The PCB can now be installed in the Plug the fuse plug into the circuit to box. First, place a nut on the switch be protected and attach the negative shaft and screw it down onto the lead to chassis with a clip or with a switch body. Leave the safeguard fuse screw. Check that the supply in and out of its fuseholder. Pass the wires supply out LEDs (LED1 and LED3 rethrough the gland and place the PCB spectively) light. If only the supply into the box and make sure the LEDs out LED lights, the fuse is most likely and switch enter the holes. connected in reverse. Table 3 shows Pull the wires through as you clip the various LED indications. the PCB into place. Clamp down the Assuming they do both light, the SC cable gland over the wires and refit the eFuse is ready for action. safegard fuse. The eFuse input and output wires can be solwww.siliconchip.com.au dered to either end of a blown fuse so it can Safeguard be plugged into a fuseFuse holder in the circuit be(9-15VDC) ing protected. Blade fuses normally have exposed metal SUPPLY TRIP SUPPLY RESET on the top of the fuse IN OUT (presumably intended + + + + to allow you to probe the fuse while it’s fitted) that can be used This same-size artwork can be copied and printed to solder the wires to. If you don’t have a to make a label for the eFuse. Alternatively, you can blown fuse, you can cre- download a PDF from www.siliconchip.com.au SILICON CHIP eFuse siliconchip.com.au 2017 CATALOGUE 4 OUT NOW $ 95 FREE CATALOGUE* FOR NERD PERKS MEMBERS WITH PURCHASES OF $30 OR MORE. *Applies to new and existing members for purchases made in-store or online. Valid 24 March to 23 April 2017. 4 CHANNEL AHD DVR QV-3143 WAS $349 Upgrade your surveillance system to newer high performance Analogue High Definition (AHD) technology. 720p high definition recordings (continuous/manual/ motion detection). Plug & Play (P2P) for easy network connectivity of DVR to your smartphone. • 1TB HDD • 300(W) x 227(D) x 53(H)mm $ $ $ USB TYPE-C AV MULTIPORT ADAPTOR XC-4967 Mirror your Type-C devices display to your HDMI enabled TV or monitor. • Up to 80Mbps transfer rate • 81(L) x 52(W) x 15(H)mm $ Due early April AHD TO HDMI CONVERTER AC-1778 Monitor an Analogue High Definition (AHD) or analogue camera on your TV, computer monitor or projector using standard HDMI. Switchable between 1080p and 720p resolution. Includes mains power supply. • 90(W) x 58(D) x 26(H)mm 299 $ 269 4 CHANNEL 7" LCD DVR AND 1 X CAMERA KIT QC-3762 Turn a ‘dead spot’ into a Hotspot. 3-in-1: Repeater, access point & router. • Suitable for 802.11b/g/n • Supports up to 300Mbps NANO YN-8370 $59.95 DUAL BAND YN-8372 $99.95 Universal fit to keep cables in place. Adhesive stickers included. Pack of 6. • 28(Dia.) x 15(H)mm 4 $ 95 $ 59 95 $ 69 95 YN-8336 Ideal for notebook computers. Dual band 2.4GHz and 5GHz. Up to 1300Mbps data rate. USB3.0. • 28(W) x 98(H) x 10(D)mm ALSO AVAILABLE: COMPACT USB2.0 NETWORK ADAPTOR YN-8334 $39.95 Records to SD card (Up to 128GB) available separately. SPARE CAMERA TO SUIT QC-3763 $159 FROM $ DUAL BAND WIRELESS NETWORK ADAPTOR Superior quality digital transmission up to 100m for flexible, no-fuss installation. • 7" Touchscreen LCD • Quad viewing mode • 2-Way audio communication • Record & playback simultaneously • Motion detection, scheduled & manual recording • 196(L) x 123(H) x 20(D)mm CABLE CLIPS HP-1254 Catalogue Sale 24 March - 23 April, 2017 Due early April WI-FI EXTENDERS An essential for any surveillance installation. High resolution display. LED backlight. Built-in speaker. • Quad display capable • Inputs: HDMI, VGA, BNC, S-Video • Mains and HDMI cables included • 350(H) x 467(W) x 164(D)mm (Including Base) Clips over cable. Pack of 8. • 34(L) x 16(W) x 3(H)mm 4 29 95 Easily create or expand your wired network. Plug and Play. Fanless quiet operation. 1.6Gbps backplane bandwidth. • 8 x RJ45 10/100MBPS YN-8380 $29.95 10/100/1000MBPS YN-8382 $64.95 SAVE $50 CABLE TAGS HP-1253 $ 95 FROM COMPACT 8-PORT ETHERNET SWITCHES 19.5" SURVEILLANCE MONITOR QM-3580 99 95 139 YN-8382 299 DESK CABLE ORGANISER HP-1255 Keep cables from sliding off the table. 5-slots. 4 $ 95 119 $ POWERLINE ETHERNET ADAPTOR KIT YN-8355 Extend your network using your mains power line. Ethernet speeds up to 500Mbps allow HD streaming, fast file transfers, and more. Ideal for SmartTVs, old computers, etc. Plug and play installation. • 58(W) x 73(H) x 90(D)mm ALSO AVAILABLE: WI-FI POWERLINE ADAPTOR KIT YN-8357 $149 To order phone 1800 022 888 or visit www.jaycar.com.au SENSOR MODULES & SHIELDS FOR YOUR SECURITY & HOME AUTOMATION 4 5 $ 95 5 $ 95 $ 95 5 $ 95 PIR MOTION DETECTOR MODULE XC-4444 SOIL MOISTURE SENSOR MODULE XC-4604 TEMPERATURE SENSOR MODULE XC-4494 PHOTOSENSITIVE LDR SENSOR MODULE XC-4446 A pyroelectric infrared (PIR) motion sensor is a handy addition to any Arduino® project. Wide operating range and delay times changeable. A must for any security application. • Operating Voltage: 5-20VDC Automate your garden with Arduino® and use this module to detect when your plants need watering. • Analogue output • Current less than 20mA • Operating Voltage: 3-5VDC Outputs an analogue voltage that varies directly with temperature. Connect it straight to one of your duinotech analogue inputs. Max 100°C • 21cm breakout cable included • Operating voltage: 5VDC Measures light levels. Connect it straight into your Arduino® board to build a night/ day sensor, a sun tracker or combine it with our laser module XC-4490 to make a laser trip wire. • Includes breakout cable • Operating Voltage: 3-5VDC 7 $ 95 LINE TRACE SENSOR MODULE XC-4474 This module measures the reflectivity of a surface with an infrared emitter/ detector pair. • VCC/OUT/GND pin connector • 18-20mA at 5V working current • Operating Voltage: 5VDC $ 9 7 $ 95 $ 95 DUAL ULTRASONIC SENSOR MODULE XC-4442 OBSTACLE AVOIDANCE MODULE XC-4524 The popular HC-SR04 ultrasonic distance module provides an easy way for your DuinoTECH to measure distances up to 4.5m. • Uses two digital pins • Operating Voltage: 5VDC An inexpensive solution for an IR obstacle avoidance sensor, perfect for robotic projects with easy interface with Arduino® & compatible boards. • Adjustable frequency and intensity • 4 pin header • Operating voltage: 5VDC 9 $ 95 RAIN SENSOR MODULE XC-4603 This sensor will detect contact from any conductive object, not just rain, so it could be used for as a large touch sensor panel as well as letting you know when it's raining. • Operating Voltage: 5VDC 19 95 RFID READ AND WRITE KIT XC-4506 Allows you to both read and write MiFare-Type RFID cards and create your own contactless security lock. Includes one credit-card style tag and one key-fob style tag. • Communications Protocol: SPI • Includes 2 tags (1 card, one fob) • Operating Voltage: 3.3V 9 $ 95 $ 10 95 $ 3795 TEMPERATURE AND HUMIDITY SENSOR MODULE XC-4520 TRIPLE REFLECTANCE SENSOR MODULE XC-4611 ULTRAVIOLET SENSOR MODULE XC-4518 Measure both temperature and humidity. Fully digital operated so no analogue-todigital calibration is required. • Temperature Range: 0 ºC - 50 ºC +/- 2 ºC • Humidity Range: 20 – 80% +/- 5% • Sample Rate: 1Hz • Operating Voltage: 3-5VDC Create a smarter line-following robot with the Triple Infrared Reflectance Sensor Module. The module has three evenly spaced sensors and mounting holes. • CTRT5000 sensor IC • Only 2 pins needed for power / 3 for outputs • Operating voltage: 5VDC Can be used to measure UV exposure from the sun, or even check that your UV steriliser or EPROM eraser are working correctly. • Response wavelength 200-370nm • Operating Voltage: 3-5VDC ARDUINO® COMPATIBLE MODULE & SHIELD KITS PROTO SHIELD KIT XC-4555 LOL SHIELD KIT XC-4546 The LoL Shield is a charlieplexed LED matrix for the Arduino®. LEDs are individually addressable so you can use it to display anything in a 9 x 14 grid. Scroll text, play games or display images, you can choose to use the LoL Shield Library or program the animation manually. • 126 individually controlled LEDs • Great DIY solder project Build your own Arduino® shield using the compact and flexible Proto Shield kit. Solder together a range of circuits and reuse it in all your Arduino® projects. Kit includes multiple headers, resistors and spacers. See online for more information. $ 19 95 $ 39 95 $ 129 37 IN 1 SENSOR KIT XC-4288 With 37 different sensors and modules, this kit covers just about every input and output you can poke a soldering iron at. Packaged in a clear plastic organiser. SAVE UP TO 30% ON THESE DISCONTINUED ARDUINO® COMPATIBLE PRODUCTS NOW 1195 $ $ SAVE $4 NOW 29 95 $ SAVE $4 OLED STICK MODULE XC-4245 WAS $15.95 SAVE $15 OLED SHIELD XC-4269 WAS $33.95 Page 46 NOW 29 95 8 CHANNEL RELAY DRIVER SHIELD XC-4276 WAS $44.95 Follow us at facebook.com/jaycarelectronics $ NOW 34 95 SAVE $5 H-BRIDGE MOTOR DRIVER SHIELD XC-4264 WAS $39.95 Catalogue Sale 24 March - 23 April, 2017 ARDUINO® PROJECT OF THE MONTH ARDUINO RFID KEYPAD XC-4410 Here’s a versatile security project inspired by our LA-5353 RFID Keypad and using the new XC-4630 LCD Touchscreen. If you want to be able to activate a relay with either a card (most smartcards like public transport cards and bank cards will work with it) or a PIN code, this project fits the bill. You'll find the setup of cards and users is relatively simple as with most Arduino security stuff, it’s pretty easy to bypass if you have physical access to the main board, so we wouldn’t recommend using it for protecting valuables. Some soldering required for this project (see page 4). XC-4630 Finished project XC-4506 XC-4482 WC-6028 KIT VALUED AT $107.75 XC-4419 NERD PERKS CLUB OFFER BUY ALL FOR 79 95 $ SEE STEP-BY-STEP INSTRUCTIONS AT www.jaycar.com.au/rfid-keypad SAVE 25% SEE OTHER PROJECTS AT www.jaycar.com.au/arduino RR-0596 WHAT YOU WILL NEED: UNO MAIN BOARD 240X320 LCD TOUCHSCREEN SHIELD RFID READER KIT PROTOTYPING SHIELD PLUG-SOCKET JUMPER LEADS RELAY MODULE 10KOHM RESISTOR PACK XC-4410 $29.95 XC-4630 $29.95 XC-4506 $19.95 XC-4482 $15.95 WC-6028 $5.95 XC-4419 $5.45 RR-0596 $0.55 IMPROVE THE PROJECT - ADD A DOOR STRIKE NARROW ELECTRIC DOOR STRIKE LA-5077 SWITCHMODE MAINS ADAPTOR 12VDC 1.5A MP-3486 You could use the Arduino® RFID Keypad to operate a door strike. Suitable for narrower doors. Fail-secure model. 12VDC 450mA. Regulated output voltage, small size and higher power output make this AC adaptor suitable for thousands of different applications. $ 44 95 $ RELAY MODULES XC-4418 24 95 FROM 12 95 Control a motor backwards and forwards without speed control, using our 4 Way (XC-4440) or 8 Way (XC-4418) Relay Modules. Plenty of power (up to 10A at 30VDC). 12VDC power supply required. 4 WAY XC-4440 $12.95 8 WAY XC-4418 $19.95 $ Not recommended for Stepper Motors, due to the slow switching speed. ARDUINO® STACKABLE HEADER HM-3208 PCDUINO Build a stackable shield, or make your current shield stackable. Alternatively, shorten the pins to make female headers just like the Duinotech main boards. 4 $ 50 If you want to take your Security or Home Automation project beyond what an Arduino® can process, then take a look at the PCDuino. A single board computer running a Linux operating system provides the processing power to run more complicated tasks. With built-in Wi-Fi, web interfaces and remote control are possible, and adding the 7” touchscreen will give your project a slick look. PCDUINO V3.0 WITH WI-FI XC-4350 7" LCD TOUCH SCREEN MONITOR XC-4356 NERD PERKS CLUB OFFER BUY BOTH FOR $ 228 SAVE $50 149 $ XC-4356 $ 19 95 SOLDERLESS BREADBOARD WITH POWER SUPPLY PB-8819 830 tie-point breadboard with removable power supply module. Power from USB or 12V plugpack (not supplied). Includes 64 mixed jumper wires of different length and colour. • 3V and 5V switchable output $ 1695 RESISTOR PACK 300-PIECES RR-0680 This assorted pack contains 5 of virtually each value from 10Ω to 1MΩ. • 0.5W 1% mini size metal film See website for full contents. To order phone 1800 022 888 or visit www.jaycar.com.au 129 $ XC-4350 See terms & conditions on page 8. Page 47 WORKBENCH ESSENTIALS There has been an obvious resurgence in people getting back to the workbench and reviving skills involving manual dexterity. As you will see across the following pages, Jaycar has all the DIY tools you'll need to equip your workbench so you can create projects from the power of your brain and your hands. 5 NOW 19 $ 1. PLASTIC WELDING KIT TS-1331 WAS $99.95 • Cordless gas-powered welder • Fast heating process • 4 plastic filler types included 95 $ 3 6 4. LCD TYPE ENGINEERS CALIPERS TD-2082 • Surgical grade stainless steel • 5 digit LCD display • 0 - 150mm (0-6) range • LR-44 battery powered (supplied) $ 34 95 1 2. NETWORK CABLE METER TESTER WITH DMM XC-5078 WAS $84.95 • Measure AC/DC voltages up to 600V • AC/DC current up to 200mA • Resistance measurement 5. 5 DIOPTRE LED ILLUMINATED MAGNIFYING LAMP QM-3548 WAS $119 • Metal frame • Manoeuvrable extension arm • Mains powered 3. 6 PIECE INSULATED ELECTRONIC • 90 x bright white LEDs SCREWDRIVER SET TD-2026 • Ergonomic handles with non-slip 6. 110 PIECE ROTARY TOOL KIT grips. TD-2451 • Fully insulated • Drill, saw, sand, polish, carve or grind • 1000V rated • Ideal for hobby or professional use • TÜV and GS approved • 12VDC at 12,000 RPM $ $ NOW 79 95 2 SAVE $5 4 $ 39 95 6" LONG NOSE PLIERS TH-1887 Precision, slim line long nose pliers ideal for working in confined areas. Serrated jaws for firm grip. Soft padded handles. • 150mm long TS-1390 Particularly suited to lead-free soldering. High powered 60W heater. Easy temperature setting. Fahrenheit or Celsius temperature display. • Backlit LCD display • Temperature range: 160°C to 480°C • 130(W) x 170(H) x 240(D)mm 1195 $ STAINLESS STEEL SIDE CUTTERS TH-1890 NEW LOW PRICE 129 $ ESD SAFE SOLDER/DESOLDER REWORK STATION TS-1574 13 95 $ High quality small side cutters with thick (2mm) blades. Spring loaded plastic handles. • 115mm long CRIMPING TOOL FOR NON-INSULATED LUGS TH-1834 WIRE STRIPPER TH-1824 Strips 0.2 to 6mm wire. One hand operation. Spring return. • 170mm long NEW LOW PRICE $ 299 19 95 $ SOLDERING TIPS* TO SUIT ABOVE SOLDERING STATIONS 16 95 $ NOW 19 95 $ SAVE $5 ROTARY COAX STRIPPER TH-1820 NERD PERKS CLUB MEMBERS RECEIVE: 14 95 $ Comfortable handles and spring-loaded. Handles non-insulated lugs from 14-18 AWG and 22-26 AWG. Includes a built-in wire cutter. • 185mm long Complete solder/desolder station for production and service use. Microprocessor controlled for precise control of thermal performance. 60W Power. • Backlit LCD displays • Temperature range: 160 - 480°C • 215(W) x 225(L) x 155(H)mm Handy stripper that will strip the outside jacket and inner conductor in one operation. • Suitable for RG58/59/62/6 and 3C2V 75 ohm cable Valid with purchase of TS-1390 or TS-1574. See T&C. Page 48 NOW 79 95 SAVE $20 60W ESD SAFE LEAD-FREE SOLDERING STATION 50% OFF 99 SAVE $20 Follow us at facebook.com/jaycarelectronics ADJUSTABLE COMPRESSION CRIMPING TOOL TH-1800 WAS $24.95 A precision crimp tool ensuring correct crimping pressure is applied for reliable, trouble-free compression of BNC, RCA, Min-F and F-type coaxial connectors. • Works with RG6 and RG59. Catalogue Sale 24 March - 23 April, 2017 GUARANTEE CONTINUED OPERATION OF YOUR SURVEILLANCE SYSTEMS MP-5224 NOW 129 $ SAVE $10 MP-5216 $ MP-5205 NOW NOW 129 249 $ SAVE $10 SAVE $50 HUGE SAVINGS! NERD PERKS SPECIAL DUAL CHANNEL DIGITAL OSCILLOSCOPES The advantages of a DSO gives you capabilities that simply aren't possible with any analogue oscilloscope, including trace capture, PC interface, storage of data on portable media etc. • Sampling rate: 500M Sa/Sec (QC-1932) / 1G Sa/Sec (per channel) (QC-1934) • Memory depth: 32k (QC-1932) / 2mpts (QC-1934) 25MHZ DUAL CHANNEL WITH 5.7" SCREEN QC-1932 RRP $689 100MHZ DUAL CHANNEL WITH 7" SCREEN QC-1934 RRP $1129 Protect your DVR from power failure with our value-for-money Uninterruptible Power Supplies. Initiates shutdown procedures in mains power blackouts. Ensures steady power supply during voltage drops/fluctuations. LINE INTERACTIVE UPS MP-5224 LINE INTERACTIVE UPS WITH USB MP-5216 LINE INTERACTIVE UPS WITH LCD MP-5205 WAS $139 WAS $299 WAS $139 Economical model Desktop model Desktop model 600VA, 300W 1500VA, 750W 650VA, 390W 12V/7AH x1 12V/9Ah x2 12V/7AH x1 Modified Sine Wave Modified Sine Wave Modified Sine Wave Backup time: 31 mins / 11 mins / 4.5 mins Backup time: 94 mins / 49 min / 31 mins Backup time: 25 mins / 9 mins / 5 mins CAT III CLAMP METERS Our range of CAT III Clamp Meters makes the best general troubleshooting tool for commercial and residential electricians and includes features found on more expensive units such as autoranging, data hold, non-contact voltage, relative measurement and auto power-off. Multi function with Resistance, Capacitance, Frequency and Temperature, all Clamp Meters are supplied with quality temperature probe and carry case. NERD PERKS CLUB OFFER SPECIAL $ 449 SAVE $240 QC-1932 NERD PERKS NERD PERKS NERD PERKS RRP $69.95 RRP $129 RRP $159 SAVE $5 SAVE $10 SAVE $10 $ NERD PERKS CLUB OFFER SPECIAL 749 $ QC-1934 64 95 119 149 $ $ 400A AC 400A AC/DC QM-1561 • Cat III 600V, 4000 count • AC/DC voltage < 600V • AC current < 400A • Jaw opening 30mm QM-1563 • Cat III 600V, 4000 count • AC/DC voltage < 600V • AC/DC current < 400A • Jaw opening 30mm SAVE $380 TOOL MAGNETISER & DEMAGNETISER TD-2042 This tool has two slots, one which will magnetise and the other to demagnetise. The holes are large enough for the largest of screwdrivers. • 50 x 50 x 30mm 6 $ 95 8X10" MAGNETIC MAT TH-1867 This mat is great for keeping nuts and bolts in place when disassembling all kinds of gadgets and phones. Note: The magnetic side of the mat is the "Whiteboard" side which allows you to write references or notes next to the nuts and bolts. 12 95 $ To order phone 1800 022 888 or visit www.jaycar.com.au HANDY MAGNET STRIP LM-1624 Simply attached to walls, tables or other surfaces to hold tools, brushes, scissors, keyrings, or any other object that contains iron. 9 piece, each holds up to 1kg. Note: Tools not included. 19 95 $ See terms & conditions on page 8. 1000A TRUE RMS AC/DC QM-1566 • Cat III 600V, 6000 count • AC/DC voltage < 600V • AC/DC current < 1000A • True RMS, min-max, bargraph and more • Jaw opening 40mm LARGE RARE EARTH MAGNETS - PAIR LM-1652 Made from NdFeB (Neodymium Iron Boron), providing the highest available magnetic energy of any material. • Nickel coating • NdFeB, N35 Grade $ 29 95pr Page 49 CAMERAS FOR REMOTE MONITORING ANYWHERE, ANYTIME, DAY OR NIGHT QC-8637 $ NOW 59 95 SAVE $10 $ QC-3694 QC-8654 Keep watch over the things that matter to you most from anywhere at any time, offering you peace of mind at the tip of your fingers. Customise your surveillance system with our range of high quality 12VDC standalone cameras with supreme resolution ranging from 420TV lines to 720p. Easy installation, unbeatable value! NOW QC-8670 QC-8668 NOW 79 95 $ SAVE $10 99 SAVE $30 QC-3694 QC-8654 QC-8637 QC-8668 QC-8670 WAS $89.95 WAS $129 WAS $149 WAS $219 Resolution 420TVL 700TVL 720p AHD 720p AHD 720p AHD Illumination Infrared Infrared Infrared Infrared Infrared Camera Type Mini Dome Bullet Bullet Bullet Sensor 1/3" CCD 1/3" CMOS 1/4" CMOS 1/3" CMOS 1/3" CMOS Lens 3.6mm 3.6mm 3.6mm 2.8 - 12mm (Vari-Focal) 3.6mm (Pan-Tilt) ACCESS CONTROL 6 WB-2017 $1.60/m or $139/100m roll Combines RG59 coax and 16G power cable. Also sold in 100m roll. 19 95 ILLUMINATED POLARITY SENSING DC CONNECTORS Simplifies installation of your CCTV cameras, access control and other security applications. BNC TO CAT5E/6 UTP AHD VIDEO BALUN KIT QC-3667 INLINE PLUG WQ-7288 $6.95 Extend the transmission distance of INLINE SOCKET WQ-7289 $7.95 your CCTV setup. $ CCD CAMERA POWER SUPPLY MP-3011 Make running cables between your cameras and your DVR a breeze using these integrated video and power cables. BNC terminated and DC power connectors. 18m long. 500mA regulated switchmode plugpack. Terminates to a 2.1mm DC plug, centre positive, 12VDC. FROM 14 95 $ 2 FROM 19 95 $ ECONOMY CCTV VIDEO / POWER CABLES WQ-7279 $ 95 NON-CONTACT INFRARED DOOR EXIT SWITCH LA-5187 14 95 $ 19 95 $ SAVE $20 WAS $69.95 $ 95 CCTV COMBO CABLE NOW 199 $ SAVE $20 FROM 1/m $ 60 NOW 129 $ SURVEILLANCE WARNING STICKERS SURVEILLANCE WARNING SIGN LA-5115 • UV stabilised for long life • Black printing on a clear background SMALL (INSIDE WINDOW) LA-5106 $2.95 SMALL (OUTSIDE WINDOW) LA-5107 $2.95 LARGE (OUTSIDE WINDOW) LA-5108 $3.95 Visual deterrents to warn thieves off. • Made of acrylic • Lightweight and durable • 300(W) x 300(H)mm CCD CAMERA EXTENSION LEADS WQ-7275 Easy way to extend the length of CCD camera cables. They have 3 joined cables, BNC plug to plug, RCA plug to plug and DC power male to female. 5M LENGTH WQ-7275 $19.95 10M LENGTH WQ-7276 $34.95 15M LENGTH WQ-7277 $44.95 20M LENGTH WQ-7278 $59.95 CCTV WARNING SIGN LA-5114 Prominent warning sign for CCTV or dummy surveillance applications. • Made of acrylic • 300(W) x 210(H)mm 14 95 $ NERD PERKS CLUB MEMBERS RECEIVE: Trigger an electronic latch with just a wave of a hand. No physical touch required. • 3A <at> 30VDC contact rating • 12VDC • 70(W) x 115(H)mm $ 69 95 DIGITAL KEYPAD WITH RFID ACCESS CONTROL LA-5353 Suitable to areas requiring stricter access control such as a laboratory, warehouse, bank, or prison. • Support up to 2,000 users • Backlit keypad • LED indicator (Green/Yellow/ Red) • Built-in buzzer • 128(H) x 82(W) x 28(D)mm 129 $ EARN A POINT FOR EVERY DOLLAR SPENT AT ANY JAYCAR COMPANY STORE• & BE REWARDED WITH A $25 JAYCOINS GIFT CARD ONCE YOU REACH 500 POINTS! 25% OFF Conditions apply. See website for T&Cs * ALL WARNING SIGNS & STICKERS* *Applies to LA-5101, LA-5102, LA-5106, LA-5107, LA-5108, LA-5114 & LA-5115. Page 50 REGISTER ONLINE TODAY BY VISITING: www.jaycar.com.au/nerdperks Follow us at facebook.com/jaycarelectronics Catalogue Sale 24 March - 23 April, 2017 SECURE YOUR PROPERTY NOW 139 $ SAVE $20 4 ZONE KIT WITH 2 WIRE TECHNOLOGY LA-5475 WAS $159 Utilises two-wire technology to ensure simple set-up. • Wired Connection • 4 Zones • Multiple Operation Modes • 180(H) x 113(W) x 47(D)mm INCLUDES: 1 x Control unit 2 x Movement detector PIRs 4 x Door/window contact 1 x External siren 1 x 240VAC adaptor 1 x 50m two-core flat wire and clips Mounting hardware $ $ SAVE $20 SAVE $40 8 ZONE WI-FI KIT WITH SMARTPHONE CONTROL LA-5610 WAS $299 Quick and easy installation, eliminating the mess and expense of running cables. • Wireless Connection • 8 Zones • Multiple Operation Modes • 150(H) x 100(W) x 30(D)mm INCLUDES: 1 x Smart panel with tri-colour LCD display 1 x Motion sensor with mounting bracket 1 x Door/window sensor 1 x Keyfob remote control with battery 1 x Mains power adaptor Mounting hardware Easy to install and controlled easily via touch screen, wireless keyfob or via Smatphone. • Wifi Connection • 8 Zones • Multiple Operation Modes • 163(H) x 132(W) x 30(D)mm INCLUDES: 1 x Smart touch panel with rechargeable battery 1 x Wall/desk mount bracket with mounting hardware 1 x PIR motion sensor with magnetised mounting bracket 2 x Slim door/window sensors with batteries 1 x Wireless key fob remote with battery 1 x Mains adaptor Mounting Hardware $ 49 95 NOW 29 95 $ SAVE $5 PRESSURE ACTIVATED MAT ALARM WITH SIREN AND STROBE REMOTE CONTROL RELAY BOARDS Add remote control functions with these handy relay boards. Each channel can be set to momentary or latching mode. 40m max transmission range. 12VDC. 2-CHANNEL RELAY BOARD LR-8855 $49.95 4-CHANNEL RELAY BOARD LR-8857 $69.95 SINGLE CHANNEL KEYFOB REMOTE $ NOW 259 8 ZONE WIRELESS KIT WITH REMOTE CONTROL LA-5280 WAS $129 FROM LR-8847 Multi-purpose remote control keyfob for garage doors, lights, automatic gates etc. • Battery status LED • Up to 200m range NOW 109 $ LA-5218 WAS $34.95 Simply slide under your door mat to be notified of guests. Loud 120dB+ siren. 9V battery required. 6 NOW 29 95 SAVE $5 MOTION ACTIVATED ALARM WITH REMOTE CONTROL LA-5217 WAS $34.95 Protect your belongings or set as a simple entry/exit chime. Loud 120dB siren. 2 x AA batteries required. 9 $ 95 $ 95 RELEASABLE CABLE TIE PACK HP-1217 INDOOR ALARM PIEZO SCREAMER LA-5256 Perfect for jobs where you need to periodically change cables. 10pcs at lengths of 125, 200, and 300mm. Emits a loud piercing sound. Dustproof and waterproof. 7.5 to 15V. 100dB output. 59 95 19 95 $ $ 2195 $ 39 95 CEILING MOUNT ALARM WITH REMOTE CONTROL LA-5215 Used as a simple entry chime, or a self contained alarm system. Detects movement via a passive infrared sensor. 3 x AA batteries required. >3m PIR range. 5" HORN SPEAKER AS-3180 Fully weatherproof. Suitable for PA, intercom, security systems, etc. • 10W 8ohm 16 95 $ $ 24 95 HANDHELD REMOTE CONTROLLER LR-8827 Now you can afford more than one remote for garage doors, motorised gates etc. Operates on 27MHz. • 9V battery required $ 74 95 HANDHELD REMOTE 6P/8P MODULAR CRIMP TOOL PLASTIC SIREN COVER LA-5112 TH-1935 Crimp 6P2C, 6P4C-RJ11, 6P6C-RJ12 and 8P-RJ45 plugs. Also cuts and strips the cable. Rustproof & UV stabilised. Remains attractive in any environment. Tamper switch included. To order phone 1800 022 888 or visit www.jaycar.com.au CONTROLLER LR-8827 Now you can afford more than one remote for garage door, gates, alarms, etc. 30M ALARM CABLE WB-1591 4 core. Supplied on its own reel. See terms & conditions on page 8. Page 51 CLEARANCE Limited stock. Not available online. Contact store for stock availability. NOW 14 95 $ SAVE $5 BLUETOOTH KEYRING LOCATOR WITH APP FOR IPHONE® XC-0365 WAS $29.95 NOW $ 95 LA-5573 WAS $44.95 NOW 49 95 $ SAVE $20 NOW 79 95 800TVL HIDDEN CAMERA IN PIR HOUSING HIGH DEFINITION 720P WEBCAM LA-5044 WAS $34.95 QC-3203 WAS $34.95 NOW 39 95 $ NOW 59 95 SAVE $15 WIRELESS 240VAC LIGHTING CONTROLLER LA-5575 WAS $59.95 MINI INSPECTION CAMERA WITH 7M FLEX LEAD QC-3374 WAS $74.95 360W 650VA LINE-INTERACTIVE UPS WITH USB WIRELESS 7" TOUCH SCREEN DOORPHONE WITH RECORDING MP-5214 WAS $129 QC-3624 WAS $429 NOW $ 99 $ SAVE $30 QC-8652 WAS $99.95 LA-5582 WAS $69.95 NOW 24 95 SAVE $10 SAVE $20 SAVE $20 WIRELESS PIR SENSOR $ DUAL ELEMENT PIR DETECTOR $ WIRELESS MAGNETIC REED SWITCH LA-5584 WAS $49.95 REMOTE CONTROL $ NOW 39 95 SAVE $10 SAVE $20 NOW 24 95 SAVE $10 ® LA-5177 WAS $19.95 24 $ SAVE $10 WALL MOUNT PANIC ALARM $ NOW 19 95 $ NOW 349 SAVE $80 See page 6 for other models. AUSTRALIAN CAPITAL TERRITORY N VY SIL ST McDON ALDS AVE SALL ST JAYCAR REDCLIFFE 1/83 ANZAC AVENUE REDCLIFFE QLD 4020 PH: 07 3554 0084 OXLEY AVE 7 ELEVEN GOMER Ph (02) 6253 5700 Ph (02) 6239 1801 Tuggeranong Ph (02) 6293 3270 NEW SOUTH WALES HEAD OFFICE 320 Victoria Road, Rydalmere NSW 2116 Ph: (02) 8832 3100 Fax: (02) 8832 3169 ONLINE ORDERS Website: www.jaycar.com.au Email: techstore<at>jaycar.com.au FREE CALL ORDERS: 1800 022 888 ANZAC Belconnen Fyshwick Albury Alexandria Ph (02) 6021 6788 Ph (02) 9699 4699 Bankstown Blacktown Bondi Junction Brookvale Campbelltown Castle Hill Coffs Harbour Croydon Dubbo Erina Gore Hill Hornsby Hurstville Maitland Mona Vale Newcastle Penrith Port Macquarie Rydalmere Shellharbour Smithfield Sydney City Taren Point Tuggerah Tweed Heads Wagga Wagga Warners Bay Ph (02) 9709 2822 Ph (02) 9672 8400 Ph (02) 9369 3899 Ph (02) 9905 4130 Ph (02) 4625 0775 Ph (02) 9634 4470 Ph (02) 6651 5238 Ph (02) 9799 0402 Ph (02) 6881 8778 Ph (02) 4367 8190 Ph (02) 9439 4799 Ph (02) 9476 6221 Ph (02) 9580 1844 Ph (02) 4934 4911 Ph (02) 9979 1711 Ph (02) 4968 4722 Ph (02) 4721 8337 Ph (02) 6581 4476 Ph (02) 8832 3120 Ph (02) 4256 5106 Ph (02) 9604 7411 Ph (02) 9267 1614 Ph (02) 9531 7033 Ph (02) 4353 5016 Ph (07) 5524 6566 Ph (02) 6931 9333 Ph (02) 4954 8100 Warwick Farm Wollongong Ph (02) 9821 3100 Ph (02) 4225 0969 QUEENSLAND Aspley Browns Plains Burleigh Heads Caboolture Cairns Caloundra Capalaba Ipswich Labrador Mackay Maroochydore Mermaid Beach Nth Rockhampton Redcliffe NEW Strathpine Townsville Underwood Woolloongabba Ph (07) 3863 0099 Ph (07) 3800 0877 Ph (07) 5576 5700 Ph (07) 5432 3152 Ph (07) 4041 6747 Ph (07) 5491 1000 Ph (07) 3245 2014 Ph (07) 3282 5800 Ph (07) 5537 4295 Ph (07) 4953 0611 Ph (07) 5479 3511 Ph (07) 5526 6722 Ph (07) 4922 0880 Ph (07) 3554 0084 Ph (07) 3889 6910 Ph (07) 4772 5022 Ph (07) 3841 4888 Ph (07) 3393 0777 VICTORIA Altona Brighton Cheltenham Coburg Ferntree Gully Frankston Geelong Hallam Kew East Melbourne City Melton Ph (03) 9399 1027 Ph (03) 9530 5800 Ph (03) 9585 5011 Ph (03) 9384 1811 Ph (03) 9758 5500 Ph (03) 9781 4100 Ph (03) 5221 5800 Ph (03) 9796 4577 Ph (03) 9859 6188 Ph (03) 9663 2030 Ph (03) 8716 1433 Mornington Ringwood Roxburgh Park Shepparton Springvale Sunshine Thomastown Werribee Ph (03) 5976 1311 Ph (03) 9870 9053 Ph (03) 8339 2042 Ph (03) 5822 4037 Ph (03) 9547 1022 Ph (03) 9310 8066 Ph (03) 9465 3333 Ph (03) 9741 8951 SOUTH AUSTRALIA Adelaide Clovelly Park Elizabeth Gepps Cross Modbury Reynella Ph (08) 8221 5191 Ph (08) 8276 6901 Ph (08) 8255 6999 Ph (08) 8262 3200 Ph (08) 8265 7611 Ph (08) 8387 3847 WESTERN AUSTRALIA Belmont Bunbury Joondalup Maddington Mandurah Midland Northbridge O’Connor Osborne Park Rockingham Ph (08) 9477 3527 Ph (08) 9721 2868 Ph (08) 9301 0916 Ph (08) 9493 4300 Ph (08) 9586 3827 Ph (08) 9250 8200 Ph (08) 9328 8252 Ph (08) 9337 2136 Ph (08) 9444 9250 Ph (08) 9592 8000 TASMANIA Hobart Kingston Launceston Ph (03) 6272 9955 Ph (03) 6240 1525 Ph (03) 6334 3833 NORTHERN TERRITORY Darwin Ph (08) 8948 4043 TERMS AND CONDITIONS: REWARDS / NERD PERKS CARD HOLDERS FREE GIFT, % SAVING DEALS, DOUBLE POINTS & MEMBERS OFFERS requires ACTIVE Jaycar Rewards / Nerd Perks Card membership at time of purchase. Refer to website for Rewards/Nerd Perks Card T&Cs. PAGE 1: Nerd Perks Card holders receive FREE Jaycar 2017 catalogue with purchases of $30 or more in-store or online for new and existing members. PAGE 3: Nerd Perks Card holders receive the Special price of $79.95 for the RFID Keypad Project, applies to XC-4410, XC-4630, XC-4506, XC-4482, WC-6028, XC-4419, & RR-0596 when purchased as bundle. Nerd Perks Card holders receive the Special price of $228 on XC-4350 and XC-4356 when purchased as bundle. PAGE 4: Nerd Perks Card holders receive 50% OFF Soldering Tips applies to TS-1391, TS-1392, TS-1393, TS-1394, TS-1575, TS-1576, TS-1577 & TS-1578. Nerd Perks Card holders receive double points with the purchase of TH-1887, TH-1890, TH-1834, TH-1824, TH-1820 & TH-1800. PAGE 6: Nerd Perks Card holders receive 25% OFF on Warning Signs & Stickers applies to LA-5101, LA-5102, LA-5106, LA-5107, LA-5108, LA-5114 & LA-5115. PAGE 7: Nerd Perks Card holders receive double points with purchase of HP-1217, LA-5256, AS-3180, TH-1935, WB-1591 & LA-5112. Arrival dates of new products in this flyer were confirmed at the time of print but delays sometimes occur. Please ring your local store to check stock details. Occasionally there are discontinued items advertised on a special / lower price in this promotional flyer that has limited to nil stock in certain stores, including Jaycar Authorised Stockist. These stores may not have stock of these items and can not order or transfer stock. Savings off Original RRP. Prices and special offers are valid from Catalogue Sale 24 March - 23 April, 2017. Want a 200kHz LCD Scope for about $40.00? One tiny catch: First you have to build it! You get the complete kit, as shown here, with the instruction manual. Inset below is the clear acrylic case, ready for assembly. Jim Rowe looks at the “Banggood” DSO138 LCD Scope Kit We’ve looked at some very cheap modules from China in recent months. Here’s one that more-or-less fits into the same category – except that for the princely sum of $40 (or less!), you get a real, working Digital Sampling Oscilloscope kit. It’s from Banggood and you really do get a good bang for your buck! S ixty or so years ago, the only way that most people could acquire even a basic oscilloscope was to build it yourself, using components salvaged from war-surplus equipment. Even then, by-and-large, most were only “audio” scopes with, perhaps, 10kHz bandwidth. Commercial scopes were so expensive that they could only be afforded by large manufacturers and research labs. That was back in the valve era and things soon began to change for the better when the solid-state revolution got under way. Before long the cost of commercial scopes started to fall, while at the same time their performance climbed steadily, especially in terms of analog bandwidth. But the real breakthrough came with digital sampling scopes and particularly when cheap LCDs (liquid-crystal displays) started to replace the costly CRTs (cathode-ray tubes) which formed the heart of all the early scopes. This eliminated the need for an expensive high voltage power siliconchip.com.au supply and also enabled many useful features to be added while the cost of scopes continued to plummet. So nowadays you can buy a wide selection of digital sampling oscilloscopes or “DSOs” at quite reasonable prices. Handheld, single channel, battery-operated units with 10MHz analog bandwidth are available for less than $370, while 4-channel 100MHz bandwidth benchtop models cost less than $800. You can even get a 2-channel 300MHz MSO (mixed signal oscilloscope) for around $3000. What if you only need a scope occasionally, and don’t need a lot of bandwidth – for example, if you’re mainly working on audio equipment? This would make it hard to justify an outlay of even $370. But this kit is around 1/10th of that amount! It’s known as the DSO138 and recently has become very popular all around the world. It’s available from online retailer Banggood, which has its main office and warehouse April 2017  53 Completed and working – here displaying its own 1kHz calibration square wave. We purchased the optional clear plastic case – the kit is also available without case for about $30.00, including postage from Banggood in China. in Guangzhou, China. The firm has over 1000 employees with offices in nearby Shenzhen and Hong Kong as well as Hangzhou and Yiwu, plus offices in the UK and USA. The electronics part of the kit is manufactured by the firm JYE Tech Ltd, based in Guangxi, China. The manufacturer of the laser-cut acrylic sheet parts which are used to make up its custom acrylic case (as shown in the photo of the completed unit above) is not specified but is presumably also in China. If you look at the Banggood website (www.banggood. com), you’ll find that the DSO138 kit is available in two forms: one with all of the SMD components already soldered in place on the main PCB, leaving only the throughhole components for you to fit and solder, and one with just the SMD CPU pre-soldered. We’re reviewing the version with all SMDs pre-soldered. It’s known as the 13803K (product ID 1051616), and is currently available for only AU$33.17, with acrylic case and with free “standard shipping” to Australia. The other version is known as the 13804K, and is currently available from Banggood for AU$41.30, also with case and free delivery to Australia (product ID 1051617). So it not only costs more, but you have more work to do building it up. You can see why we chose the 13803K version to review! By the way, both versions are also available without the matching assemble-it-yourself acrylic case. But if you 54  Silicon Chip want to buy it later, or you need to replace it, it’s available separately from Banggood for only AU$8.60 (at press time) including delivery (product ID 1034768). The electronics Apart from the DSO138’s 2.4-inch colour TFT LCD screen (320 x 240 pixel resolution), which is mounted on a small PCB of its own, all the rest of the kit’s electronics mount on a single PCB measuring 117 x 76mm. And as noted above, the PCB in the 13803K kit has all of the SMD parts already fitted: nineteen 0805 resistors, two ICs and an LM1117-3.3 LDO regulator in a TO-263 package. Everything else in the kit is in the form of through-hole components and connectors etc for you to fit yourself. The two ICs are a TL084 quad op amp, used for processing the analog input signal and generating trigger pulses, and the STM32F103C8 CPU which does everything else. The STM32F103Cx is in a QFP-48 package and is a 72MHz, 32-bit ARM Cortex-M3 processor, with the following features: 64KB of flash memory, 20KB of SRAM, two 12-bit/1MHz ADCs providing up to 16 analog input channels, seven different timers, a full-speed USB 2.0 interface, two I2C interfaces, two SPI interfaces (18Mb/s), three USART interfaces and a 7-channel DMA controller. So it’s quite capable of doing all of the sampling, display and other work needed to perform the functions of a basic audio DSO – with the right firmware, of course. siliconchip.com.au A close-up of the LCD screen before mounting in the case, showing a 10kHz square wave. No-one is pretending that it’s perfect – obviously not as good as you’d find on a multihundred (or multi-thousand!) dollar DSO . . . but for around $40.00, the DSO138’s performance is surprisingly good! Assembling the PCB is fairly straightforward because JYE Tech has provided the kit with a double-sided A4 instruction sheet with 22 numbered assembly step boxes – each one accompanied by a small but clear colour illustration. Each step also has a checklist, allowing you to tick each component’s box as you fit it. The instruction sheet has quite a few helpful hints, like advising you to check the value of each resistor with your DMM before soldering it into the PCB. This is good advice, because the coloured bands on the tiny 1/8W resistors are hard to see even with a magnifying glass. There’s also a guide to checking the voltages on the DSO138’s main PCB following assembly, attaching the LCD board and then giving it a basic functional checkout. And there’s a troubleshooting flowchart, an explanation of the self-test mode built into the firmware and a picture of the main PCB showing the location of all important test points. By the way, a PDF file of the instructions can be downloaded from the JYE Tech website (www.jyetech. com), so you can preview it before buying the kit and you can also download another copy if you lose or damage the original. There’s a second instruction sheet in the kit, intended to familiarise you with the DSO’s various controls and their use. In addition, there’s a section on using the built-in 1kHz squarewave signal to adjust the frequency compensation of Here are the main board (top) and LCD board (bottom, ready to be connected together and mounted in the acrylic case. With the SMD “bits” already soldered in place, it took just a few hours to assemble and get going. siliconchip.com.au April 2017  55 its input divider and any divider probe you connect to its input. There’s also a specification panel, plus a full schematic of the scope on the back of this second sheet. In short, the PCB has been carefully designed to be easy to build and get going. The JYE Tech website also has a four-page booklet you can download, explaining how to upgrade the firmware in its CPU, an 8-page booklet explaining how to use the library of functions built into its firmware and a single sheet showing an overlay diagram of the main PCB. Assembling the box Since the PCB assembly is so straightforward, you might expect the case would also come with clear instructions and that it would be easy to put together. But it isn’t quite that easy. All you actually get are the nine laser-cut pieces of acrylic sheet plus a small plastic bag with some control switch extension pieces moulded in red plastic, and some M2.5 and M3 machine screws and nuts. The acrylic pieces are covered in protective paper sheet on both sides but there is no information on how to put it together. Perhaps this is supposed to be self-evident but after a while I gave up and went to the Banggood website to look for clues. I subsequently found several links to YouTube clips showing the assembly of the DSO138 case. (See https://youtu.be/9vtHZP2_KAU). By playing the clip quite a few times – and pausing here and there as well – I was finally able to get the sequence right. (There are several other clips – simply go to YouTube and search for “DSO138 case”). There was one further little complication with regard to the red plastic control switch extension pieces. These allow you to operate the small slider switches and pushbuttons on the PCB when it’s mounted in the case. The extension pieces for the three slider switches were easy to identify, because they are T-shaped with a small locating slot moulded into the top centre of the “T” (which actually becomes the bottom of the extension). But the extension pieces for the five pushbuttons were harder to work out. Here the DSO138 is displaying a 10kHz sawtooth wave . . . 56  Silicon Chip Taken from Banggood’s website, this shows the assembled case without any content, to show you how all the outer pieces of the box fit together. They seemed to be I-shaped with a bump at both ends, and there seemed to be only three of them in the kit instead of the five I was expecting. Had someone made a mistake? No, because I eventually realised that each “I” piece was actually two small “T” pieces moulded together with a fine central groove which allowed them to be snapped apart. After this I didn’t have any problems, and it all went together nicely as shown in the photo. Performance Putting the completed DSO138 through its paces was a pleasant surprise. The analog bandwidth measured -1dB at 150kHz, -2dB at 175kHz and -3dB at very close to the 200kHz stated in the specification. So a 10kHz square wave signal displays quite nicely, . . . while here it’s a 10kHz triangle wave. siliconchip.com.au confirming that the DSO138 is practical as a basic scope for audio testing. The maximum real-time sampling rate is 1MS/s, with a vertical resolution of 12 bits and a record length of 1024 points. The input sensitivity range spans from 5V/division down to 10mV/division, while the input impedance is 1MΩ shunted by approximately 20pF – pretty much standard. The rated maximum input voltage is 50V peak (100V peak-to-peak), so for measurements in higher-voltage circuits you’d need to use it with a 10:1 divider probe. The timebase range is from 10s/division down to 500s/ division – more than adequate for an audio scope. There are three selectable triggering modes: Auto, Normal and Single(shot) and the trigger level is fixed at 50% but this should again be acceptable for primarily audio use. Incidentally, I don’t know if you’ll be able to see this in the photos, but although the active part of the DSO138’s 2.4-inch TFT LCD screen is fairly small (49 x 37mm), its resolution of 320 x 240 pixels with 262,144 colours results in a very sharp and well-defined display. I should also mention that the DSO138 is designed to run from a nominal 9V DC supply but since its current drain is around 120mA, it isn’t feasible to use a standard 216-type 9V alkaline battery. The simplest options are a 9V DC regulated plugpack or a pack of six AA or C size alkaline cells in series. However, JYE Tech also have a very small step-up DCDC converter module, the JYE140, which can be used to provide the DSO138 with 9V DC derived from a standard low-cost 5V DC plugpack or Li-Ion battery. Based on an MC34063 converter chip, the JYE140 has an output current siliconchip.com.au capability of 150mA, an output ripple of around 100mV at full loading and its output can be plugged directly into the rear of the DSO138. If you are interested in this option, the JYE140 converter can also be ordered online from the Banggood website for AU$5.15 (product ID 1000089), again with free delivery to Australia. At that price, you certainly wouldn’t bother to build it yourself! The final verdict Overall, I’m happy to give the JYE Tech/Banggood DSO138 scope kit a rating of 4.5 stars out of five. The electronics side of the kit is easy to put together and seems well-designed. Features like the inbuilt 1kHz square wave probe calibration signal output and the self-test function testify to this, and makes the kit well above average given its low price. The DIY acrylic box is quite good too, once you have figured out how to put it together. And the performance of the completed DSO138 is quite good enough to qualify it as a useful tool for audio testing and troubleshooting. The DSO138 kit represents outstanding value for money. It’s almost worth buying just for the fun of putting it all together and trying it out, even if you’re going to give it away! Where from? As mentioned earlier in the article, our DSO138 Scope came direct from the Banggood online store (www. banggood.com). The prices quoted were what we paid; however with the Aussie dollar fluctuating as it does, the price you pay could be slightly higher or lower. SC A April pril 2017  57 2017  57 SERVICEMAN'S LOG Stomping on the pedal killed it We all know that musos need to stomp on their effects pedals as they weave their magic. But ultimately that stomping can kill the pedal and the good thing is that it then needs a repair. Hopefully, they then know “who they’re gonna call”! The term serviceman means different things to different people. 60 years ago, a serviceman was typically someone in uniform, most likely heading off to, or returning from, a war. These days, a serviceman can be the person who turns up to fix your washing machine or TV, or the person who checks the oil and air filters on your car. Those who call themselves servicemen (or women) cover a huge range of careers and callings and that is what makes being a serviceman so interesting; we cannot usually be easily pigeon-holed into any one job or service. My current job title would be computer serviceman but that description doesn’t cover my skill-set and other servicemen probably feel the same way. Most of us bring a range of skills to our trade and this is what sets the serviceman apart from some other tradespeople. There are plenty of servicemen out there who have no experience in fields other than the one they specialise in, and while there’s absolutely nothing wrong with that, those who do bring outside skills to their trade will raise the bar for others and that can only be a good thing. Having skills in the model aircraftbuilding and hobby electronics fields, for example, can be a real boon for my computer repair work, as every now and then I’m faced with a task that requires soldering, custom fabrication or other outside-the-box aptitudes that others in this trade might have to outsource in order to provide the service. I’d like to think this gives me an edge in business, though given there are plenty of very skilled technicians 58  Silicon Chip out there, that might be just wishful thinking! I mention this because I had a job recently that required a range of skills to resolve. Since I’ve been diversifying into musical instrument and amplifier repairs in order to keep my accountant happy, I’ve had some interesting jobs through the workshop. However, this field also has some challenges to the serviceman and having been a working musician certainly helps me with insights into that world. One rather large flaw in choosing this line to diversify into is that 99% of working musicians operate on very tight budgets, from which they have to set themselves up in what can be a shockingly expensive business. This means there is a lot of compromise and innovation as musos try to get by with whatever gear they can afford. It doesn’t help that guitarists in particular are usually searching for an elusive ‘sound’ to call their own. And those ‘sounds’ are big business; all the top guitar players have their signature tone and playing style that others try to emulate, so much so that manufacturers of so-called ‘modelling amplifiers’ try to ‘bottle’ those sounds so other players can easily replicate them (if they buy that amplifier of course!). That’s a pretty big ask, given that those sounds are much more than just what comes out of the speakers. A player’s tone is a combination of many different factors, from the mass of the player’s hands and fingers to the way they strum, pick, hammer-on and tap the strings through to the construction of the hardware itself, such as the timber the guitar is made from, Dave Thompson* Items Covered This Month • • • • Wah-wah pedal repair Dishwasher cockroach removal Gas igniter repair Technics SZ-4000U amplifier *Dave Thompson runs PC Anytime in Christchurch, NZ. Website: www.pcanytime.co.nz Email: dave<at>pcanytime.co.nz whether it is solid or hollow, the size and type of strings, the way the instrument is tuned, the pick-ups and onboard controls and type of amplifier and speakers, the sum of which have a profound effect on the overall sound. All this variation means a lot of work for the instrument and amplifier serviceman, who sometimes must tread very carefully when repairing or servicing some of this gear. It also means that costs have to be sensible and keeping costs down means not spending too many non-chargeable hours working away on problematic gear, which comes back to having the skills to do these jobs quickly and efficiently. It is sometimes a fine line to walk. While this job turned out to be more mechanical than electronic, it did have a troubleshooting sting in the tail. The customer brought in what is generically known as an effects pedal, which is typically a foot-operated device that sits on-stage and is positioned in-line between the guitar and the amplifier. These boxes modify the guitar’s signal in some way before piping it onwards. Check out the floor near any guitarist playing live and you’ll often see a gaggle of these pedals within easy reach. Some guitar players don’t use any floor effects, while others might have a large pedal-board chock full of them; it is very much a personal preference. This job involved a ‘Wah-Wah’ pedal, one of the earliest and most audibly recognisable of all the guitar effects. The wah-wah pedal as we know it today hails from the mid to late 1960s and was introduced to the masses by siliconchip.com.au musical experimenters such as Jimmy Hendrix and Frank Zappa, though it has been used in every genre of music from jazz, country, funk and disco to the heaviest high-gain rock. Essentially just a variable notch filter, the effect is controlled by the up and down movement of a foot operated pedal, giving the guitar a ‘crying’ sound. While sometimes regarded as a bit of a ‘joke’ effect because the wide range of sounds produced makes it prone to over-use by inexperienced players, it was hugely popular throughout the 1970s before falling out of fashion in the 1980s. Lately, the wah-wah pedal has seen a resurgence due to its adoption by hipster bands and lovers of retro, ‘analog’ effects. This means that some of the original pedals, which you once couldn’t give away, are now worth a small fortune. Most of them boasted remarkably simple, PNP transistor-based circuits, which modern manufacturers attempt to emulate with all manner of digital jiggery-pokery whilst creating newer, quieter versions for today’s noiseallergic players. However, many rollyour-own effects pedal makers – and there are a huge number of us out there – prefer those early designs, making vintage germanium PNP transistors like AC128s and OC71s and diodes siliconchip.com.au like 1N34s suddenly quite desirable (and therefore valuable). Luckily, I have parts-drawers full of them; Easy Street, here I come! The pedal I had to repair is an Ibanez WF-10 Wah-Fuzz, a late-1980s-era pedal made in Japan and now quite sought-after. It has a unique sound and this is why the owner wanted it repaired. The effect, as the name suggests, consists of a wah pedal with a fuzz circuit built-in. Switches beneath the foot-pedal activate the bypass system to switch the wah effect in and out and a fuzz on/off switch and depth control lurk on the bottom left side of the case. This WF-10 had lost its wah due to a broken linkage mechanism, leaving the pedal part of it disconnected and flopping uselessly up and down. The linkage is a clever plastic and metal arrangement that converts the up-anddown action of the foot-pedal into the rotational movement required to turn a potentiometer throughout its range. I’d need to re-create that linkage to restore wah functionality. One of the problems facing many older pedals, and this family of Ibanez pedals in particular, is with the injection moulded plastic case. It obviously seemed like a good idea back in the day, but time is the nemesis of most plastics and the WF-10’s case is no exception. Most early foot pedal effects were made using pressed-tin and/ or folded steel, which meant limited design potential and the pedals were either too light and flimsy to take stage wear or built like brick outhouses and too heavy to lug around. A moulded plastic case must have seemed a godsend at the time; they could be (relatively) easily made into any funky, fashionable shape and were very strong while remaining light enough to carry around in a gig bag or in the back of an amplifier. However, fast-forward 30 years and one of the consequences of using plastics has become all too clear. The owner of this pedal reported that he stomped on it one day and with a sickening crunch, the thing fell to bits beneath his foot, leaving fragments of plastic and distorted metal scattered everywhere. He scooped the whole lot up into a bag and brought it to me to see if I could do anything with it. I understood why he wanted to save it; it was part of his ‘sound’ and finding a substitute would be difficult, unless he could locate another WF-10 that is . . . It was easy enough to see what the problem was; the plastic mounting lugs at the foot-pedal end of the linkage had shattered due to age, leaving nothing for the metal to hold onto. These bits and the linkage then fell through the gap in the bottom part of the pedal and had been crushed by the pedal coming down on top of it, causing the metal to bend and inflicting more damage to the plastic bits directly beneath it, including the pot mounts, which were cracked and would also need repairing. Fortunately, the rest of the case was OK. It didn’t really have that much stress put on it during normal use and so would likely last a few more years yet. Any repair would entail rebuilding those mounting points and making them stronger than they were before, allowing for the fact the plastics were still going to be deteriorating and there wasn’t much I could do about that. Ideally, I’d like to swap out the whole chassis with a new one but that wasn’t an option. A quick look on eBay showed a number of these April 2017  59 Serr v ice Se ceman’s man’s Log – continued pedals for sale, but all were as old and would probably have the same issues as this one; besides that, the cost was prohibitive, so I decided that reconstructing the mounting lugs was the best way to proceed. The first thing was to split the two halves of the pedal before stripping the jack sockets, circuit board, pots and switches from the case and giving everything a good clean. Since the top of the bottom half of the case has a slot to allow the linkage through, it is open to the elements and as it sits on the floor on-stage, it tends to accumulate everything from generic dust and dirt to ash, sweat, spilt booze and other nasty stuff; Rock and roll is so glamorous! Thankfully my customer had the good sense to grab all the broken plastic bits he could find and it seems he got them all. It was simple enough to fit them all back together like a 3D jigsaw but some of the bits had been distorted and didn’t fit as well as they could, so there was a fair bit of carving and fettling and assembly to be done until everything fitted together as well as it was going to. I used an expensive, good-quality 24-hour epoxy to glue these bits, mainly because cheaper epoxies, and especially the 4 and 5-minute versions, are a lot weaker than their longer-curing cousins. I wrapped the drying brackets in grease-proof paper and clamped them using small, springloaded clamps similar to clothes-pegs on steroids, to ensure everything was straight. I left it all for longer than 24 hours, checking periodically early on to make sure it was still lined up. In the meantime, I used my metalworking skills to straighten out the bent linkages and brackets. Once the glue was set, I tried test-fitting everything to make sure it all fitted; after a bit of glue-clearing with a hobby-knife and a drill bit, it did. However, while that repair might last, leaving it like this would invite failure somewhere down the line, so I needed to strengthen it further. This I did by using what I politically-incorrectly call “poor man’s fibreglass”. Years ago, when I was building my Lotus 7 replica, I did a lot of fibre-glassing. I used several weights of spun-glass cloth for the nose-cone and 60  Silicon Chip guards and some scraps of the lightest mat would be ideal for this pedal repair. I cut several small strips to size and mixed up a small amount of the same 24-hour epoxy, which I ‘painted’ onto the lug before wrapping one of the strips of cloth over it. I then painted more glue onto the cloth, working it well in until it was saturated. I applied the other strip the same way and after cleaning any potential runoff, I again wrapped the whole thing in grease-proof paper and held it in place with strips of rubber band material. When the glue was dry, the rubber and paper came away easily, leaving a nice, smooth finish. While the repaired mounting lugs were a bit bulkier than they were originally, we had room and they would now be many times stronger and less likely to fail again. Reassembling the pedal was straightforward and all that was required was a sound check. I put a fresh 9V battery into the pedal’s battery bay and plugged my trusty Telecaster into the input jack, with the output going to my 5W bench amplifier. I stepped on the pedal to light it up, wound up the volumes and strummed a few chords; nothing. While there was some sound, it was way in the background, even with volumes cranked up. I checked switches and wiggled cables but there was no change. This was not really what I was expecting, but no problem; I’m a serviceman! Fortunately, the WF-10 was popular enough for there to be several scans of user and service manuals online. In fact, there are circuits for effects of all types and ages because fans and experimenters reverse-engineer them in order to find out what makes them tick and at the same time draw up schematics and post them online. Very handy! The WF-10 is very much an 1980sera effects box, utilising through-hole components and commonly-available parts. Having a schematic makes things easier but the more I thought about it, the more I was convinced this was related to the broken linkage. A quick look over the board and sockets didn’t reveal anything obvious but I recalled the guy’s description of how it broke; he said the linkage gave way as he stepped on the pedal, so I took a much closer look at the area of the board surrounding the gap in the bottom case where the linkage goes through with my jewellers’ loupe and there it was, one of two diodes sitting parallel to each other near the edge of the board beside the linkage had a faint crack in the glass body. My Peak semiconductor checker told me it was open circuit, so I removed it. I used the tester on the other diode and it told me it was a standard component, so I soldered in a 1N4148, plugged everything in on the bench and tried again. This time I had full sound and after reassembling the pedal, I invoked the spirit of Jimi Hendrix and gave the pedal a thorough test. Job done. Editor’s note: Silicon Chip has published a number of effects pedals over the years and these can all be accessed by searching under the “Articles” tab of the home page of the website. Specifically, we published a wah-wah pedal (we called it “waa waa”) in September 1998. All the parts are still available although the PCB is not. Go to http:// siliconchip.com.au/l/aacc More recently, a Digital Effects Processor for Guitars & Musical Instruments was publish in October 2014. All key parts, including the PCB, are available. Go to http://siliconchip. com.au/l/aacd Dishwasher stopped by roaches B. C., of Dungog, NSW, has had a battle with a dishwasher and its eccentric owner. He managed to repair the machine in spite of the owner’s odd ways. Call it a “pro bono” job. Freda (not her real name) lives close to the beach and her house has been the preferred location for family gettogethers. During a recent visit, Freda’s dishwasher (Dishlex DX302WJ) had developed a weird problem. Unfortunately, this appliance has not had an easy life and has had (what I would call) various environmental faults over the years. In more recent times, it has been rarely used, to save on water and electricity. As I was already there on the spot, my services were enlisted. Freda said the machine had been working perfectly but admitted that she had forgotten to turn on the stop cock (mounted under the sink). Then the dishwasher would not run through the Quick cycle. She had then turned the water back on but it would now only show E10 on the display and would not fill up with water. siliconchip.com.au Freda said to me, “I am sure that all you have to do is find the blockage in the inlet hose and it will be working again”. I foolishly asked “why don’t you just leave the stop cock turned on”. Her reply was, “I always turn it off, in case a rat chews through the water hose. That way my kitchen does not get flooded”. Under these strict instructions (to only check the water hose), I rolled up my sleeves and faced up to the challenge. Checking first that both the power and the water were turned off, I put a hessian bag on the floor and slid the dishwashing machine out. I found a position where I could inspect it underneath and still have access to do the necessary testing and repairs. I could see the wiring harness around the wash motor had been repaired and the water inlet hose appeared to have been re-joined near the back of the machine. Perhaps in the past, a rat did chew through the water inlet hose, resulting in the flooding of the kitchen! I then removed both the rubber hoses that were connected to the water inlet solenoid valve. I first removed the water filter gauze from the end of the inlet hose and found it to be clear of debris. Then the free end of the water inlet hose was put into a plastic bucket. The stop cock was turned on briefly and plenty of water gushed out. Blowing through the water outlet hose (from the solenoid valve) proved there was no blockage. So it was now time to test the solenoid coil. The original siliconchip.com.au two harness wires were disconnected, ready for this test to be done. Set on a low Ohms range, the multimeter showed that there was continuity in the coil and I then proceeded to test the solenoid valve on mains power. A suitable test lead was made up from a discarded figure-8 power lead, with a lamp holder wired in series and then fitted with some fast-on connectors. A 100W globe was put into the lamp holder and this test lead was connected to the coil terminals. When the mains power (current limited by the light globe) was applied, the globe lit up but the solenoid valve made no noise at all; it appeared to be stuck in the closed position and needed to be replaced. I managed to salvage one from another dishwasher, sitting in the backyard appliance graveyard. I tested it first with my mains power test lead. It made a noise as it operated and the globe went back to a dim glow. This solenoid valve was then installed into the machine and the water hoses and cables were reconnected. I put the machine onto the quick cycle and I could hear the water flowing into it. But I could also hear the drain pump motor running as well. As fast as the water was flowing in, it was getting pumped back out again! Over a period of time, dishwashers can have debris accumulate down inside the sump housing, particularly when some owners do not bother to regularly clean and refit the filters correctly. To get access to the lower section of the sump housing, it would be necessary to take it completely out of the machine. I disconnected all the top parts and all the attached hoses underneath, and only then it was possible to remove it. Sure enough, there was enough accumulated debris to nearly block up the waste water outlet, which connects to the drain pump. Still left in the machine was a clear plastic rectangular box, the pressure switch assembly. It had some internal galleries and two rubber hoses that went back to the sump housing. It also housed the water level and the water overfill level pressure switches. I found one gallery and its rubber hose full of black sludge. There was also black sludge in a side compartment of the sump housing. Perhaps this was an accumulation of coal dust, blown in through the back gauze door over the years. I remember Freda had a habit of leaving the dishwasher door open, until the next load was ready to be put through. Eventually all the black sludge was cleaned out and the sump housing and pressure switch assembly were refitted back into the machine. April 2017  61 Serr v ice Se ceman’s man’s Log – continued The water sensors would now faintly click when their rubber connecting hoses were gently blown through. All the rubber hoses were reconnected and all the upper parts were refitted to the sump housing. The dishwasher was turned on again but the drain pump was still pumping out water at the same time as it was trying to fill up with water; very strange indeed. I went onto the internet but I was unable to find any reference to this particular fault but I found the correct method of entering into the test mode. This involves pressing the “Program/ Clear” and the “Start/Pause” pushbuttons together for two seconds while switching on the Power switch. Then you can use (mainly) the ‘Program/Clear’ pushbutton to step through the various sections of the test schedule. Earlier on, you will find (stored in the memory) up to the last three error codes. As you go further down the schedule, each machine function can be directly turned on. These are displayed as item numbers 4 through to 10. The numbers of interest to me were item 6 – inlet valve open and item 5 – drain pump on. I stepped through to (5) and found that the drain pump would run. However, when I went to 6, the water inlet solenoid valve would operate together with the drain pump. So it also appeared to have a fault on the control PCB, perhaps around the microprocessor. With the power turned off again, I removed the control module out of the dishwasher door and there was evidence of bush cockroach ingress. Both the internal PCBs were removed out of the housing and carefully washed down with alcohol and then air dried out in the sun. But after reassembling and refitting the module, the fault was still there. So back to the internet and there were two options available on eBay: Purchase an exchange control module for about $94 or a new one for about $170. It was now time to consult the management, ie, Freda. Apparently the existing control module was already a replacement unit. This was done a number of years ago (as a goodwill gesture) beyond the normal warranty time. Ironically, the previous control 62  Silicon Chip module had also failed due to bush cockroach ingress. Freda then told me “I don’t see how leaving the Stop Cock turned OFF could have caused all these problems you have found. I don’t want a reconditioned Control Module put into my machine, as it probably won’t last, and I don’t want to spend the money on a new one”. However, there was another possible option to save face. Find a writtenoff machine at the recyclers and take out the control module, with the hope that it was still functional. That way I might have a good chance of getting the dishwasher fully operational again. After several months, an Electrolux/ Dishlex dishwasher did turn up at the recyclers and since it had been assigned to go onto the steel scrapheap, I was allowed to remove the control module. After getting it back home, I dismantled and cleaned the module and any suspect joints were resoldered on both the PCBs. On the next trip to Freda’s house, I fitted this module into the dishwasher door and put the machine into the test mode and now correctly started to fill with water. The dishwasher was then put through the quick cycle successfully. Freda eventually came out from her afternoon nap and wanted to know “what are you doing?” I said that I was testing the dishwasher and it is now working properly. ”See, I told you there wasn’t much wrong with it”! Now that’s a real love job! Gas igniter repair This story from Geoff H., in Littlehampton, SA, involves the repair of a gas igniter for a 4-burner gas stove-top. My son asked if I would have a look and see if it was possible to repair the gas igniter. There was no brand name on either the hotplates or the igniter box. So the first challenge was to dismantle the hotplates. Often it is as easy as pulling off the control knobs, removing the trivets, lifting off the gas burners and unscrewing a large nut off each burner so the complete top can be removed. This exposes all the gas pipes, the igniter box and the wiring. The main thing to be careful of is lifting the top over the ceramic plugs that feed spark to the burner so as not to damage them. Normally it is easy but this one was not like that. For this one you have to be a contortionist inside the cupboard below to remove two screws from each side then everything tends to fall down on top of you. It was definitely a two-person job. Anyway we got the igniter box out and I took it home to attempt a repair. The first thing I noticed was that the momentary switch which activates it was stuck down. I was expecting a small transformer powering a simple timer type circuit to generate a pulsing low voltage spark into an ignition type coil, as these hotplates would be about 25 years old. Instead, 230VAC was connected to a bridge rectifier to charge a capacitor via a resistor. From the capacitor the supply was connected a gas discharge surge arrestor to the ignition coil. So when the switch was pressed the capacitor charges up to the flashover point of the arrestor, induces a spark in the coil and the process continues while ever you press the button. It did not take long to replace the stuck down momentary-contact switch. I was looking for a ground return for the spark but there wasn’t any. Instead it uses the other leads as its return. Clever. I then tested it using my small 12V DC to 230VAC inverter. I did this as I want to isolate it from the 230VAC mains supply, being aware that it’s potentially dangerous. Anyway it worked so I returned it to my son and he installed it back into the hotplates. But it still didn’t work. What was going on? After further investigation I found that someone must have disconnected the Active lead in the junction box to stop it working continuously because of the stuck momentary contact switch. I wonder how many years it had been in that condition. Technics SU-Z400 amplifier Japanese hifi gear from the mid1980s was certainly built to last but 30 years later, it’s not unusual to encounter faults. J. L., of NZ recently brought a dead Technics SU-Z400 stereo amplifier back from the dead but it was quite a battle . . . I had been looking for a basic amplifier to play music in our games room and recently came across a Technics SU-Z400 power amplifier. It looked like it would do the job, it cost nothing and it still had the original owner’s manual with it. This amplifier is a pretty solid unit with a large, heavy power transformer siliconchip.com.au and a hefty heatsink. In short, it was typical of the well-built Japanese electronic gear from the 1980s. Inside it is based around an STK2058-4 stereo power amplifier IC and the manual claimed around 60W RMS per channel at 0.02% THD. I duly plugged the unit in, applied power and got nothing; no sound, no indicator lights and no signs of life whatsoever. There wasn’t so much as a sausage from this rather nice-looking amplifier that still appeared to be in good nick. Now I’m the sort of person who will have a go at fixing virtually anything before writing it off as scrap, especially seeing how much gets thrown away these days due to simple faults. So no problem, I thought, it’s probably just a blown fuse. The unit came apart easily and I quickly discovered that the fuse was OK. What’s more, power was reaching the primary winding of the hefty power transformer but nothing was coming out from the secondary leads. I immediately switched it off and reached for my multimeter. A quick continuity check showed that the primary winding was open circuit. Ouch! The transformer carried an SLT5­ M­408 part number and appeared to have multi-tapped secondary windings. In addition, there is a switch on the rear of the amplifier that appears to change the secondary voltage depending on the impedance of the speakers connected. I figured that the transformer was rated at somewhere around ±35V and possibly up to 300VA. I had some similarly-rated parts in my junk box but unfortunately none of them fitted into the confines of the chassis. At that point, I mentally wrote the unit off as junk. And then, some time later, I recalled that some transformers I’d come across had thermal fuses built into them. Could that be the case here? I removed the transformer and unsoldered the PCBs from its terminal pins. Some very careful cutting into the transformer’s insulation then revealed a small thermal fuse tucked inside (without any markings) and sure enough, it was open circuit! Fortunately, the primary winding beyond that appeared was intact, according to the multimeter. I took a guess and replaced the fuse with one rated at 125°C. I then reassembled everything, including tedisiliconchip.com.au ously wrapping the windings in a new layer of tape. This time. when power was applied, the input selector display and source LEDs lit up and all looked to be well! And so, with the transformer now transforming and the lights lighting, I duly connected a signal source and a pair of speakers and got . . . nothing. There wasn’t even a faint hiss from the speakers with the volume turned all the way up. At that point, something in my mind recalled the law of diminishing returns but I’d already come this far and after all, it was just a simple amplifier. How hard could it be? Studying the main PCB showed a pretty conventional power amplifier and power supply, along with some other parts surrounding a relay. I traced the PCB tracks from the relay and this revealed that the relay switched the speaker outputs, so it was likely to be a form of protection circuit. The relay itself was controlled by IC601, a TA7317P. A quick Google search revealed that this was indeed an amplifier protection IC with de-thump and DC detection. Connecting a speaker to the input side of the relay (accessible from the top of the PCB via R411 and R412) resulted in crystal-clear audio, so the protection circuitry looked like it might be the culprit. Further PCB track tracing now revealed that some of the pins on IC601 weren’t actually used. The DC detection pin was connected via isolating resistors to both outputs of the power amplifier IC (IC401), as well to the emitters of transistors Q621 and Q622 which appeared to make up a current detection circuit on the output of each channel. The current detection outputs were then both fed via D602 into Q601 and Q602 which formed a latch, the output of which was also connected to IC601’s DC detection pin (pin 2). This arrangement was likely there to ensure that the load remained disconnected once an overload condition had been detected. I checked the voltage at the input to this latch circuit (collector of Q601 and base of Q602) and it was at -30V DC, as was the output. I figured that this -30V DC was likely to trigger the DC detection circuit in IC601 and cause it to disconnect the speakers. In order to check if this really was the problem, I desoldered R605 which effectively disconnected the overload protection circuit and switched on. This time, the relay clicked in after a few seconds and sound burst forth from the speakers! At that point, I took a punt and replaced both Q601 and Q602, figuring that one of them was probably leaky. I didn’t have the original types on hand (2SA1015 and 2SC1815) so replaced them with a BC556 and a BC546 respectively, as they were the closest equivalents I had on hand. The only trick here was bending their base and collector pins into new positions to match the PCB. Finally, with everything back in place the amplifier fired up and worked perfectly. Job done, you say? Not quite; Murphy made sure that the problems didn’t end there! After it had been running for about half an hour, the speakers suddenly crackled and then cut out completely. As I investigated the cause, I noticed the sound intermittently returning, along with accompanying relay chatter from the amplifier. My first thoughts were that the transistors I had swapped in weren’t quite right but on further reflection, a temperature-related cause seemed the more likely at this point. Close examination revealed some slightly dodgy solder joints around the protection circuit. I reworked all of them, along with some other suspects around IC401, the main amplifier IC. After all that work, the amplifier hasn’t skipped a beat since! Was it worth it for such an old unit? I think so – it sounds good and hasn’t me cost anything apart from some time. The resale value of some of this vintage gear is on the rise too. SC Servicing Stories Wanted Do you have any good servicing stories that you would like to share in The Serviceman column? If so, why not send those stories in to us? We pay for all contributions published but please note that your material must be original. Send your contribution by email to: editor<at>siliconchip.com.au Please be sure to include your full name and address details. April 2017  63 Sale ends April 30th 2017. www.altronics.com.au 1300 797 007 Build It Yourself Electronics Centre® Easter Best Buys SAVE $200 LATEST SPEC! SAVE $30 M 8194 119 $ 599 Install your own CCTV system & save $$$ Great for small business or the family home. Simply add a hard drive (see below) and plug it in! Each pack includes: • H.264 digital video recorder • Pro grade 1080p AHD resolution cameras • 20m BNC & power combo leads • Power splitter lead • Remote viewing on smartphone • Power supply • Weatherproof cameras. WD® CCTV HARD DRIVES: 1TB $130 (D 5514), 2TB $189 (D 5516). $ S 9900F 4 Domes S 9901F 4 Bullets S 9902F 2 Domes & 2 Bullets JUST ARRIVED! SAVE $40 NEW! 109 $ D 5584 Wi-Fi audio streaming for any amp! Simply plugs into your existing amplifier’s RCA/3.5mm input and pairs with your smartphone or tablet for instant high quality audio streaming. Can be networked into a multi-zone system which can be controlled by multiple devices. S 8861B 159 $ Includes jumper leads, charger & case! USB Car Jumpstarter & 2-in-1 Floodlight • 300 cranking amps • Fits in your glovebox! • High power LED flood light • Plus narrow beam torch • USB output can even top up your phone • Suits 12V vehicles only. 299 $ Opus One® 180W Subwoofer Sensation! SAVE $100 C 5201 Add stunning cinema realism to your home theatre sound system. Massive 180W 10” driver with built in amplifier. 490D x 315W x 420H. High Definition 7” Monitor With TV Tuner The perfect compact TV/monitor for your car, 4WD or caravan! 7” wide format LCD features in-built HD tuner to receive all digital channels. AV input can be hooked up to a camera or AV source. USB PVR recording. MP3 & video USB/SD playback. 12V or 240V operation (includes plugpack). Covert CCTV Camera DVR Great for monitoring in remote locations, trail scouting etc. Weatherproof unit contains camera, movement detector, DVR, LCD screen, SD card slot & battery pack (requires 8xAA S 4955B 4pk, $3.95). S 9444 Peace of mind for the family! 20% OFF! 339 $ SAVE $100 S 9406A 720p + 8mp stills $119 95 $ NEW! 199 $ X 2320 10W Brilliant Battery Powered Work Lights $175 140 $ X 2321 20W LED floodlamps coupled with a rechargeable battery offering up to 6 hours use. Includes car charger & plugpack. Great for work sites & service vans. Build It Yourself Electronics Centres » Virginia QLD: 1870 Sandgate Rd » Springvale VIC: 891 Princes Hwy » Auburn NSW: 15 Short St » Perth WA: 174 Roe St » Balcatta WA: 7/58 Erindale Rd » Cannington WA: 5/1326 Albany Hwy Colour 7” LCD Video Door Intercom A safe & easy way to monitor the front door. Records photos of visitors when you’re not home. Includes power supply, hookup cable, base station & camera unit. Remote door latching*. Expandable to 4 base stations & 2 cameras. *When used with optional door strike S 5385 $46.95. Follow <at>AltronicsAU www.facebook.com/Altronics NEW! SAVE $50 315 $ Q 0207 Velleman® PCSU200 M 8305 0-30V 5A M 8303 0-30V 3A Turn your laptop into a 25MHz scope! $159 This compact black box is a great do-it-all solution to save space on your workbench and make use of your PC or laptop. It connects via USB and provides function generator, 25Mhz oscilloscope, transient recorder, bode plotter and spectrum analysing functions. Includes Windows software, USB cable & easy to read getting started guide. For full specifications see our website. NEW LINE! $189 109 139 $ $ T 2163 69.95 $ Get started in electronics with this handy 20pc kit. Compact Lab Power Supplies A jam packed starter kit including soldering iron, multimeter, solder sucker, wire stripper, cutters, pliers and more! Ideal for the beginner or up and coming enthusiast. Great for servicing, repair and design of electronics. Low noise switchmode design. Fine & coarse voltage and current controls. Size: 85Wx160Hx205Dmm. HOT DEALS FOR THE ELECTRONICS WORKBENCH... Measure temperature without touching. Twin laser beams for precise measurement between -50°C and 1050°C with 30:1 optical resolution. Adjustable emmisivity to cater for different surfaces. It even connects to an external probe. 2% accuracy. 149 $ Pro Spec Infra-Red Thermometer. Measure wind speed & temperature. Just like the one on the left, but with all the bells and whistles including 50:1 resolution, USB datalogging and expanded range to 1350°C! 1% accuracy. Great for monitoring equipment in operation. A compact thermometer & anemometer with max speed of 108km/h. Great for ventilation monitoring, experiments etc. Includes battery. 249 $ SAVE $50 Q 1289 49 SAVE $100 Quality Protek® multimeter for the toolbox with transistor and diode test. Great value for the enthusiast! 19 SAVE $20 $ Q 1291 Bargain 19 Range DMM $ Q 1250 SAVE 20% Q 1121A NEW! T 2487 Adjustable 50W Soldering Iron 1500W Heat Gun Shifts paint, solvents from surfaces, makes plastics malleable and more! Great addition to the workbench. 450L/min airflow. TOP SELLER! Now back in stock. Easy to use and flexible enough to tackle small or big jobs. Adjustable 200° to 500°. T 2110 NEW! 49.95 $ $99 NEW! 79 $ T 1295 80W Heavy Duty Soldering Iron Whisk Away Fumes Instantly! T 2252 89.95 $ T 2483 24.95 $ Jumbo 7mm chisel tip ideal for heavy duty soldering and tinning such as leadlighting and auto repairs. 500°C max. Tired of coughing on soldering fumes when soldering? This compact fume extractor whisks away smoke & filters the air. All metal - built to last. NEW! Laser Tape Measure Great for trades & consultants. Accurate to 2mm up to 30m. 69.95 $ NEW! Sizes down to 4mm! 18 $ NEW! .95 T 3132 NEW! Precision Spanner Set T 2166 24.95 $ A handy 10pc set for electronics use. Includes 4, 4.5, 5, 5.5, 6, 7, 8, 9, 10mm ring & open end sizes. T 3007 T 3135 NEW! 14 $ .50 JB Weld Steel Epoxy ® Hand-mixable, steel-reinforced, non-rusting epoxy putty that quickly repairs or rebuilds anything made of metal. NEW! NEW! 19 $ .95 Liquid tape is back! Handy black liquid tape for sealing out moisture & preventing corrosion on electrical fittings. 118ml. No More Eye Strain! 39.95 $ X 0432 This jumbo 5x loupe with LED lighting provides a crisp clear view of fine print, circuit boards, small parts etc. USB rechargeable. Includes carry case. Shaft extends! NEW! Bare Conductive® Paint Pen Draw real circuits on almost any surface! 10ml tube. $27.95 20 $ T 2189A 14pc Ratchet Mini Driver All in one design - bits are stored in the handle! Handy to keep in the drawer for quick repairs. Shop online 24/7 <at> www.altronics.com.au 1300 797 007 POWER GEAR FOR AT HOME OR THE OPEN ROAD... NEW! SAVE $14 SAVE $50 279 $ M 8539 D 0873 Pure AC Power from a Car Battery Provides mains power anywhere, anytime! Delivers pure sine wave AC power to difficult loads, such as laptops, & game consoles. USB charging output. 12V input, 150W continuous, 300W surge rated. 170x108x60mm. Powershield Safeguard 750VA UPS. This quality UPS unit will prevent appliance damage caused by power fluctuations, PLUS keep power on during a blackout! Also protects phone lines. 2 year warranty. Powerhouse® 7 Stage 12V High Output Battery Charger This new model offers support for batteries up to 300Ah with an output current up to 12A! 7 stage charging delivers the appropriate charge current to maintain best performance & battery life. Can also recover deeply discharged cells. Suits permanent connection, making it great for seldom used vehicles. Auto reconnect starts charging again as soon as you connect the unit to mains! $199 Battery Health Analyser 149 $ Q 2120 TP-Link® Wi-Fi Mains Plug $19.95 iOS or Android! Switch any connected appliance on or off remotely from anywhere in the world! Set schedules, monitor and control your appliances using the TP-link Kasa mobile app. “Away” mode can give the appearance of someone being at home when you are on holiday - a great burglar deterrant! 159 $ M 8010A Backup UPS & Power Protector Ideal for 4WDs & Caravans Detects and analyses voltage, cold cranking amperes, resistance and cell condition in 12V lead acid cells. Easy connection and on screen menu driven operation. Ideal for vehicle servicing or checking 12V SLA cells in battery backup systems. 155 $ P 1926 15 BARGAIN! $ M 8628 $11.95 USB In-line Voltage & Current Meter NEW! P 8148 Allows you to keep an eye on the output voltage and current from your USB port when charging. 54 $ 10 $ Triple USB Car Charger High 4.2A charging current. Great for tablets. SAVE $50 $55 $145 $229 190 $ N 2072 30A $215 175 $ 12V DC PV Solar Charge Controllers N 2104 49 $ N 0704 Produces up to 400mA charge current. Ideal for maintaining a 12V lead acid battery. 465W x 320H. Simply plugs into a car accessory socket. Voltages 15, 16, 18, 19, 20, 22 and 24VDC, up to 120W. Includes 8 adaptors to suit most laptops. W 2120 14 $19.95 15 $ Z 6337 $27 Buck/Boost Module Utilises the LM2596S and LM2577 to accept a 3.5-28V input and output 1.25-26V at a max current of 1A. Ideal for projects where regulated power is required. Handy 30m Figure 8 Reels 20 $ Red with black trace. 7.5A rated. Great for DC wiring. N 0720 Mini Solar Module Great for robotics projects or solar powered designs. 0.75W, 1.5V <at> 500mA. 100mm bare end leads. NEW! S 4738 $71.95 Turn appliances on or off by remote. Control each socket from a single remote. Reduce power consumption by turning off idle appliances around the home or office. 50m range. 3.5A dual USB output. Mains surge circuitry protects your appliances from damaging power fluctuations. $ 24.95 55 USB Mains Double Adaptor $19.95 $ $ $ M 8894 Allows you to connect a load (such as a camping fridge) to one battery whilst ensuring the second battery remains charged for starting the engine. Easy croc clip connection P 8119 24 M 8627A Laptop & USB Car Charger N 2071A 20A $59 $29.50 44 $ 100A Battery Isolator Ensures optimal battery charging cycles for both wet cells & sealed lead acid batteries. • Microprocessor controlled • Deep cycle mode •Panel & battery output status • Over charge & temperature protection • Low voltage disconnect. 5W Solar Charger Module 105 $ Protected 18650 Lithium Battery 3.7V 2600mAh. Features internal short circuit protection. 18.6Ø x 69mmL. M 8864 $29.95 22 $ Keep all your devices charged up! 4 output USB power supply with 4.5A intelligent fast charging. Shop online 24/7 <at> www.altronics.com.au NEW! We now stock genuine Anderson connectors! The real deal with heavy duty interlocking design. Handles & dust caps also available - see web. Model Size RRP P 7835A 6AWG 50A P 7840A 2AWG 120A P 7845A 1AWG 150A $9.95 $18.50 $27.95 Handy Step Down Converters Power 110-120V appliances from 240V mains power. Great for using American appliances in Australia! Fitted with US mains socket. 20% OFF! $49.95 40 $ M 8181 75W $75 60 $ M 8182 100W 1300 797 007 WE NOW STOCK QUALITY VELLEMAN® KIT DESIGNS! 5x5x5 3D LED Cube Kit Programmable via USB, this fun, decorative cube can create animations, scenes and 3D lighting effects. Includes 4 transition speeds and an array of selectable effects. White LEDs. Dimensions: 110x110x150mm. NEW! NEW! K 8104 25.50 $ Crawling Micro Bug Kit 159 K 8108 3x3x3 version $ $ A brightly coloured bug shaped robot which is always hungry for light and drives towards it. Features adjustable sensitivity, speed and walking motion. A great intro to robotics! Requires 2xAAA batteries (S 4904 lithium $4.95 2pk). 110x90mm. 45 K 8106 NEW! K 8134 19.95 $ Shaking Dice Kit No push button required, just give it a shake! Slowly rolls to a stop to show the final value. Requires CR2032 battery (S4999B $2.95) K 8120 13.25 $ Adjustable Thermostat Kit General purpose low-cost thermostat with NTC temperature sensor. Output relay with LED indicator. 5 to 30°C. 24VDC 3A relay. 12V DC input. K 8116 NEW! 23.95 $ NEW! K 8130 10.95 $ Add a spectrum analyser to your audio project! K 8102 NEW! Audio Spectrum Analyser Kit 74 .95 $ Give your homemade audio gear a high-tech look or upgrade existing equipment. This small and compact unit is ideal for panel mounting. 127 x 64mm white backlit LCD. Auto or manual range selection Measures: • Peak power RMS power • Mean dB • Peak dB • Linear audio spectrum • 1/3 octave audio spectrum Running Micro Bug Kit Races toward nearby light sources! Features two open chassis sub-miniature motors with adjustable light sensitivity. Includes LED eyes. Requires 2xAAA batteries (S 4904 lithium $4.95 2pk). 100x60mm. Clap On, Clap Off Relay Kit Allows you to operate lighting simply by clapping your hands! 1 or 2 clap modes. Max relay output load 3A <at> 24V. Interval Timer Kit For intermittent operation of circuits and equipment. Blinking light, slide projector control etc. 0.5-5s pulse. 2.5-60s interval. K 8132 NEW! 11.50 $ Light Sensitive Switch Kit Automatically switches on at dusk and turns off at dawn. Adjustable sensitivity with delay circuit. 12V DC input. 24V/5A NO/NC max. K 8114 NEW! K 8126 15.50 $ 4 Way Traffic Light Kit Miniature traffic light as used on four-way junctions. Realistic operation with adjustable delay. 12 LEDs. Great for model railroads. Requires 9V battery (S 4970B $3.95) NEW! NEW! 16.95 $ Robo-Voice Changer Kit Make your voice sound like a robot with this tiny module. Adjustable pitch and vibrato effect. Requires 9V battery (S 4970B $3.95) NEW! 16.50 $ K 8110 K 8112 NEW! 33.50 74.95 $ K 6017 $ The Tremor Effect Pedal Kit NEW! Build your own analog effects pedal and tweak it you suit your needs! Controls level, depth, velocity, hard/smooth & true bypass. Tough diecast K 8122 case 99 $ .95 10 in 1 Solar Experiment Kit Experiment Kit is a fun way to learn about solar powered projects. Printed instructions shows you how to build the 10 projects in a fun, safe and educational way. Includes all required parts. Staionmaster Model Railway Throttle Kit K 8128 ExtraDrive Effect Pedal Kit NEW! 99.95 B 0091 $ K 8124 Top deal for model train enthusiasts! Build your own analog effects pedal and tweak it you suit your needs! Controls level, tone, symettric/asymettric, distortion & true bypass. Tough diecast case Sale Ends April 30th 2017 Phone: 1300 797 007 Fax: 1300 789 777 Mail Orders: mailorder<at>altronics.com.au (SC March ‘17) Build a walk around throttle for your model railway layout.Easy to build design with adjustable intertia, emergency braking and PWM control. Hand controller can be plugged in at locations around your layout. Includes track control box and cases. NEW! 26.50 eFuse Resettable Breaker Kit $ Solderless Educational Starter Kit This kit is the first step into the world of modern electronics. Build your own circuits in a fun, safe and educative way. Contains a breadboard and all necessary components to start assembling your first circuit. 10 projects to build. NEW! 44.95 $ K 6047 Find your nearest reseller at: www.altronics.com.au/resellers (SC April ‘17) Ideal resettable fuse for fixing equipment or automotive wiring. Adjustable trip current between 0.3 to 10A. 9-15V DC. Please Note: Resellers have to pay the cost of freight and insurance and therefore the range of stocked products & prices charged by individual resellers may vary from our catalogue. © Altronics 2017. E&OE. Prices stated herein are only valid until date shown or until stocks run out. Prices include GST and exclude freight and insurance. See latest catalogue for freight rates. Touchscreen DDS Signal Generator It can produce sine, triangle or square waveforms from 1Hz to 10MHz, with ±0.005% frequency accuracy and it also has a sweep function. Its touchscreen LCD makes it very easy to drive and you can use it for audio or RF applications. by Geoff Graham T his project combines a low-cost DDS function generator module with our touchscreen Micromite LCD BackPack module (first described in the February 2016 issue) to create a remarkably capable signal generator for the price. It can generate sine, triangle and square wave signals from 1Hz to 10MHz and you can specify that frequency with 1Hz resolution. The Direct Digital Synthesiser (DDS) function generator module produces the actual waveforms while the Micromite controls it and provides an easyto-use graphical user interface (GUI). As well as generating the basic waveforms, this unit can also act as a sweep generator, allowing you to test the frequency response of filters, speakers, IF (intermediate frequency) stages (in superheterodyne radios) and more. Other features include an adjustable output level, selectable amplitude modulation for the sine wave output and a selectable log/linear function for the frequency sweep. Many would consider a signal generator to be the next most useful tool to have on a workbench after the multimeter and oscilloscope. While this device will not compete with a $1000 synthesised signal generator, it does 68  Silicon Chip provide the basics at a tiny fraction of the cost. The DDS function generator module is fully assembled and can be purchased for about $15 on eBay or AliExpress. Combined with the Micromite BackPack (which uses fewer than a dozen components), you can build the whole project in under an hour and without breaking the bank. other words, DDS is somewhat similar to digital audio playback from a computer or compact disc but it normally operates at a much higher frequency. We have a separate article on the AD9833 DDS IC and modules based on it elsewhere on this article, so please refer to pages 18-24 for an explanation of how it works. Analog Devices AD9833 Because the AD9833 module uses a crystal-controlled oscillator to produce the sample clock, the precision of the output frequency is determined by the precision of the crystal. With the specified module, this is better than ±50ppm (our prototype achieved about ±10ppm). This also means that calibration will not be required and the frequency will not drift with time. For example, if you set the output to 1MHz, you can expect it to typically be between about 999.999kHz and 1000.001kHz, or in the worst case, between 999.995kHz and 1000.005kHz. Another benefit of DDS is that the phase of the output will not change when the frequency register is updated and this in turn means that the output waveform will not have a glitch at the time of the change. This is vital for The AD9833 waveform generator IC is the heart of the signal generator module used in this project. It uses a DDS to generate its output. Normally, it is difficult to digitally generate a relatively pure, variable frequency sine wave. Even the best Wein bridge (analog) oscillators are notoriously difficult to stabilise and can not be controlled over anywhere near the range of frequencies that this DDS unit can produce. DDS involves a high-speed digitalto-analog converter along with a ROM lookup table, a phase accumulator and possibly digital interpolation to produce a relatively pure, variable frequency waveform. The waveform shape can be changed by using a different lookup table or using a reprogrammable lookup table. In Frequency precision siliconchip.com.au Features & Specifications General Frequency accuracy: ±50ppm Power supply: 4.5-5.5V DC at 350mA maximum Output level: 10mV to 3V peak-to-peak (~3mV to ~1V RMS), 20Hz to 1MHz Sinewave mode Frequency: 1Hz to 10MHz with 1Hz resolution Output level: as above up to 1MHz, reducing to 0.8V peak-to-peak at 10MHz Amplitude Modulation: on/off (1kHz square wave) Triangle wave mode Frequency: 1Hz to 1MHz with 1Hz resolution Square wave mode Frequency: 1Hz to 1MHz with 1Hz resolution Sweep mode Waveform: sinewave only Frequency start/stop: 1Hz to 1MHz with 1Hz resolution Sweep period: 50ms, 100ms, 500ms, 1s, 2s Sweep law: linear or exponential Trigger output: 250µs positive pulse at start of sweep generating sweeps as it allows the frequency to be changed smoothly from one end of the sweep range to the other. Because the waveform is digitally created with 1024 steps for each sinewave quadrant, the output is not perfectly smooth. The resulting harmonic distortion means that it is not quite good enough for noise or distortion measurements; its signal-to-noise ratio is about -60dB and its total harmonic distortion is typically 0.05%. Having said that, it is more than adequate for general purpose tasks and the ability to quickly and accurately set the output frequency makes it a pleasure to use. DDS module with gain control The output of the AD9833 IC is about 0.6V peak-to-peak, so the function generator module that we are using includes a high-bandwidth amplifier based on the AD8051 railto-rail op amp. This can drive lowimpedance loads (eg, 50W) and provide higher output levels (up to 3V peak-to-peak). To control the gain of the output amplifier, the module uses a Microchip MCP41010 8-bit digital potentiometer which is under control of the Micromite (along with the AD9833). siliconchip.com.au Screenshot 1: this is the screen displayed for a sinewave output. The frequency can be changed by selecting a digit to change and touching the red up/down buttons. The signal level (expressed as a percentage of full scale) can be similarly adjusted. The check box marked AM will enable a 1kHz square wave amplitude modulation. The bandwidth restrictions of the MCP41010 potentiometer result in a reduction in the output signal level above about 2MHz. The output is still good for up to 10MHz but the signal level for sinewaves will be reduced and the triangle and square waves will look more like sine waves, so we have specified both of these to only 1MHz. Micromite LCD BackPack As with a number of our recent projects, this one is based on the Micromite LCD BackPack and relies on the touchscreen interface on the LCD panel to set the frequency and output levels – there are no switches or knobs. The program is written in BASIC and because it is stored in plain text, you can see how it works and if you have the inclination, modify it to suit your personal preferences. For example, you can easily change the colours or add a special feature. The Micromite LCD BackPack was described in the February 2016 issue of Silicon Chip and uses fewer than a dozen components. If you're reasonably experienced, you can build it in around half an hour. It includes a 3.3V regulator, the 28-pin Micromite PIC32 chip and touch-sensitive LCD screen. A complete kit is available from the Silicon Chip Online Shop. The February 2016 issue (printed or online) can also be purchased from the same source. Note that if you want to try out the BASIC program for this project, you can do it on any Micromite with an ILI9341-based LCD panel connected; you do not need a DDS function generator module. This is because the Micromite only sends commands to the AD9833 and MCP41010; it does not look for a response (and neither chip provides one anyway). So it won't know the difference; you simply won't get any signal output. Driving it In operation, the signal generator is quite intuitive, with everything controlled via the colourful touchscreen LCD panel. Probably the best way to appreciate this is by looking at the screen shots. At the bottom of every screen are four touch-sensitive icons which are used to select the operating modes: sine, triangle, square wave and sweep. Touching one of these will immediately switch to that mode. Starting with the sinewave mode (shown in Screenshot 1), the frequency is adjusted by touching the red up/ down buttons on the right of the frequency display. The least significant April 2017  69 Screenshot 2: you can enter a precise frequency or signal level by touching and holding the frequency or level display. This keyboard will then appear so you can enter the value. The DEL key deletes the last number entered and the SAVE button saves the value and return to the main screen. digit that you want to change can be specified by touching that digit and it will then be highlighted in blue. A single touch on either the up or down buttons will increment or decrement the frequency but if you hold the button down, the frequency will increment or decrement with increasing speed. While you are adjusting the display in this way, the output frequency will follow in real time so it is easy to scan CON3 Screenshot 3: the screen for generating the triangle waveform output is similar to that used for sinewaves. Along the bottom of the screen, the four touch sensitive icons are used to select the four operating modes – sine, triangle, square wave and sweep. through a range of frequencies to find the one that you want. If you want to simply jump to a specific frequency, you can touch and hold a digit on the display and an onscreen numeric keypad will pop up, allowing you to directly key in the frequency that you want (see Screenshot 2). Touching the SAVE button on this keypad returns to the main screen with that frequency set while the CON1 (CONNECTIONS TO LCD) (BLACK) GND DEL button will delete the last digit entered. The process to adjust the signal level is similar although you do not need to select a digit as the up/down buttons will always change the least significant digit. Touching a digit in the level display will also take you to a numeric keypad where you can enter a specific level in the range from zero to 100% of full scale (about 3V peak-to-peak). 4 TO USB PLUGPACK (+5V) 3 2 RX (RED) TX 1 USB CONNECTOR TYPE A MALE 5V GND +5V MICROMITE LCD BACKPACK +3.3V VCC 26 GND 25 FSY 24 SCLK 22 SDATA 21 CS AD9833 BASED DDS FUNCTION GENERATOR MODULE GND 470µF SIGNAL X1 OUTPUT PGA VOUT 100nF 470Ω GND SIGNAL X0.1 OUTPUT 18 17 820Ω 56Ω 16 14 10 9 TRIGGER OUTPUT 5 4 3 RESET CON2 70  Silicon Chip Fig.1: the circuit consists of just two modules and a few components to provide the connections from the PGA output of the DDS module. This configuration provides two AC-coupled outputs, one of which is attenuated by a factor of ten (20dB). You can change the output connections if necessary for your application. siliconchip.com.au Screenshot 4: the DDS module does not allow you to change the level of the square wave output so this is fixed. Frequency selection is the same as the other modes – the frequency is changed by selecting the least significant digit to change and touching the red up/down buttons. The sinewave screen has a check box for turning on or off amplitude modulation at 1kHz. This simply modulates the output with a 1kHz square wave and is useful for signal tracing in AM radios, both broadcast and shortwave, up to 10MHz. The triangle waveform screen is similar to sine except that it does not provide an AM facility (see Screenshot 3). The square wave screen (shown in Screenshot 4) is also similar to the other two except that you cannot change the signal level (the MCP41010 digital potentiometer is not suitable for attenuating square waves). All the changes that you make, including the waveform selection, are automatically saved in non-volatile memory and are recalled on power up. This means that when you turn on the signal generator, it will start up with exactly the same settings that you were using the last time. Sinewave sweep The sweep screen (Screenshot 5) uses a different screen layout. To select the start and end frequencies, you simply touch the frequency that you need to change and enter the specific frequency on the pop-up numeric keypad. You can select any frequency that you wish so you could even sweep all the way from 1Hz to 10MHz if you wanted to. The output level is selected in a similar way, just touch the level display and a numeric keypad will pop siliconchip.com.au Screenshot 5: the sweep output screen allows you to select the start frequency, end frequency, signal level, the sweep time and whether an exponential sweep is required. Touching entries like the start frequency makes a numeric keypad appear so you can key in the value that you want. up allowing you to enter that setting. The sweep period works slightly differently; it will change every time you touch it, allowing you to step from a 50ms sweep time up to two seconds before wrapping around to 50ms again. Normally, the frequency sweep is performed in a linear manner with time but you can select an exponential (ie, inverse log) sweep with the “Log” check box. With a linear sweep, it would take twice as long to go from 200Hz to 400Hz as it would from 100Hz to 200Hz. With an exponential sweep, it takes the same amount of time to go from 200Hz to 400Hz as it does from 100Hz to 200Hz, as both require a doubling in the output frequency. This sounds more natural to human ears as doubling the frequency is equivalent to going up by one octave on a musical instrument. The swept output is always a sinewave and at the start of the sweep, the Micromite generates a 250µs positive-going pulse on its pin 16 output, which is connected to the trigger output socket. This signal can be used to trigger an oscilloscope so that it can lock onto the start of the sweep cycle for analysing the frequency response of a circuit or device. Circuit details Because the signal generator essentially consists of just two packaged modules connected together, the circuit is quite simple, as shown in Fig.1. There are six connections between the LCD BackPack and the DDS function generator module. These are for power (+3.3V and ground), the serial data lines to the DDS (DAT and CLK) and two additional signals: FSY, which when pulled low selects the AD9833 DDS chip as the recipient of serial data and CS, which similarly is pulled low when the MCP41010 digital potentiometer is being sent a command via the serial bus. The DDS module can run from 5V but we are using the regulated 3.3V supply rail from the Micromite LCD BackPack to avoid possible problems caused by potential noise from the output of a 5V USB charger. This noise can upset the AD9833 and MCP41010 ICs which need a clean power supply. There are two outputs on the DDS module. One is labelled Vout and this is a fixed direct-coupled output from AD9833 waveform generator itself (about 0.6V peak-to-peak). But we are using the PGA (programmable gain amplifier) output of the module and it is AC-coupled to two RCA sockets, one at the full output level and the second attenuated by a factor of 10. Combined with the MCP41010 digital potentiometer in the DDS module, this gives an output range from 10mV to 3V peak-to-peak (equivalent to 3.5mV to 1.06V RMS). The use of the 470µF coupling April 2017  71 capacitor means that the output is usable to below 10Hz even into a 600W load. The parallel 100nF capacitor caters for higher frequencies, essentially bypassing any internal inductance of the larger capacitor. The output from the module will swing from a little above ground to some maximum voltage determined by the MCP41010 digital potentiometer, below 3.3V. If you will be primarily using the signal generator for testing digital circuits, you might prefer to dispense with AC-coupling and use DC coupling instead. You could even install a toggle switch to switch between these modes. Similarly, you could use a switch to select different output attenuation levels if you wish. And you might consider using BNC sockets instead of the RCA sockets that we used. The trigger output has simply been connected to output pin 16 of the BackPack. You may wish to include a lowvalue series resistor (eg, 1kW or less) to protect the BackPack from static discharge or accidental application of voltage to this terminal; it should not affect the trigger signal greatly. Purchasing the right module If you search eBay or AliExpress for “AD9833”, you will find plenty of DDS modules (over 100 hits). However, you must be careful to purchase the correct module – there are a number of variations available and the firmware is written specifically to suit the module that we have pictured here. It will probably not work with other modules, even if they also use the AD9833. So, check that the photograph matches perfectly and do not purchase anything different. Here is one which should be suitable: w w w. a l i e x p r e s s . c o m / i t e m / 2 - 3 - 5 - 5 V- S i g n a l - G e n e r a t i o n M o d u l e - Tr i a n g l e - S i n e - Wa v e Signal-Source-IC-Integrated-CircuitSquare/32724505169.html Many of the photos on eBay show the module with the I/O connector and SMA output socket already soldered to the board but all the vendors that we purchased from supplied these two components separately. We did not find the SMA socket necessary in our application but you could fit it if you want to. Construction Construction mostly involves assembly of the Micromite LCD BackPack and then mounting and connecting the DDS function generator module. The BackPack PCB is silk-screened with the component placement and values so it is simply a case of populating the board and plugging it into an ILI9341-based LCD panel. We suggest you use the 2.8-inch version. The February 2016 issue of Silicon Chip, which described the Micromite LCD BackPack, fully covers this aspect. If you have a PIC32 chip that's already programmed with the MMBasic firmware then you will need to set up the LCD panel for display and touch, then load the BASIC code into the chip using a serial console.A detailed explanation of how to do this is provided in the Micromite User Manual and the February 2016 issue of Silicon Chip. However, if your PIC32 chip is blank, you can load MMBasic and the code for this project simultaneously by programming it with the file “SigGenerator.hex”, which can be downloaded from the Silicon Chip website (along with the BASIC code). You will need a PIC32 programmer such as the PICkit 3 or the cheap DIY PIC32 programmer described in the November 2015 issue. If you do not have such a device, you can simply purchase a fully programmed microcontroller from the Silicon Chip shop. Regardless, if your chip is programmed with “SigGenerator.hex”, all that you need do is plug the chip into its socket and connect the DDS module and you are ready to go. The only point that you need to be aware of is that the touch calibration in the above firmware was done with a standard LCD panel. However, yours might require re-calibration if it is significantly different from the one that we used. This can be done by connecting a USB-to-serial converter to the console, halting the program with CTRLC and running the calibration routine by issuing the “GUI CALIBRATE” command. For further information, see the February 2016 BackPack article or M3 x 10mm BLACK MACHINE SCREW ACRYLIC LID/PANEL WITH CUTOUT FOR LCD (REPLACES ORIGINAL UB3 BOX LID) TOUCH-SCREEN LCD M3 NYLON WASHER (1mm THICK) M3 x 12mm TAPPED SPACER 2.8-INCH LCD PCB MICROMITE 2.8-INCH BACKPACK PCB M3 x 6mm MACHINE SCREW The Signal Generator is based on this pre-assembled DDS function generator module which uses the Analog Devices AD9833 to generate the signal. It's amplified by an AD8051 high-speed op amp while a Microchip MCP41010 digital potentiometer controls the gain. 72  Silicon Chip M3 NYLON NUTS DDS MODULE PCB M3 x 10mm NYLON SCREWS UB3 BOX Fig.2: the DDS module is mounted in the bottom of the box using M3 machine screws, nuts and Nylon nuts as spacers. By contrast, the BackPack is attached to the underside of the laser-cut lid. The wiring is not shown in this diagram. siliconchip.com.au the Micromite User Manual (which can be downloaded from the Silicon Chip website). Putting it in a box The Micromite LCD BackPack fits neatly into a standard UB3 plastic box, as we have done with similar projects based on the BackPack. The easiest way is to use the lasercut acrylic front panel which replaces the standard lid supplied with the box and is normally supplied with the kit. This provides a neat looking assembly with the display and BackPack securely fastened. You can also purchase this panel from the Silicon Chip shop separately in a number of different colours including black and clear. Note that this panel is thicker than the lid supplied with the UB3 box so the self-tapping screws supplied with the box may not be long enough. In that case, replace them with No.4 x 10mm self-tapping screws. The first stage of assembly is to attach the LCD panel to the acrylic lid using an M3 x 10mm machine screw, a single M3 washer and an M3 x 12mm tapped spacer at each corner. This arrangement ensures that the surface of the LCD sits flush with the acrylic lid. Then, the backpack should be plugged into the LCD and fastened by M3 x 6mm machine screws to each spacer. Details of the full assembly is shown in Fig.2. The LCD and the BackPack require a 5V power supply with a minimum capacity of 300mA. For this, you can use a 5V plugpack or a USB charger. You can also find USB Type A to DC charging cables on eBay or AliExpress, which circumvents the need for cable rewiring. If you are using a plugpack, make sure that it is regulated and that its unloaded output does not rise above 5.5V as this could cause damage. Parts List 1 2.8-inch Micromite LCD BackPack module; see the February 2016 issue of Silicon Chip (kit available) 1 DDS function generator module with AD9833, AD8051 and MCP41010 ICs (see text and photos) 1 UB3 “jiffy” plastic box 1 pre-cut plastic lid to suit BackPack and UB3 box (normally included with kit) 1 USB charger plus USB cable with a male Type A connector on one end (alternatively, a USB Type A to DC connector charging cable) OR 1 5V regulated plugpack 1 matching chassis-mount DC barrel socket 6 flying leads (120mm) with single pin female headers (DuPont connectors) on each end (Jaycar WC6026, Altronics Cat P1017) 5 flying leads (120mm) with single pin female headers (DuPont connectors) on one end and bare wire on the other 1 6-pin right-angle male header 4 No.4 x 10mm self-tapping screws 4 M3 x 10mm tapped Nylon spacers 8 M3 x 10mm machine screws 4 M3 x 6mm machine screws 4 M3 Nylon washers 12 M3 Nylon nuts Capacitors 1 470µF 16V electrolytic 1 100nF multi-layer ceramic Resistors (all 0.25W, 5%) 1 820W 1 470W 1 56W For a USB charger, a suitable power cable can be made by cutting off one end of a standard USB cable (retaining the Type A connector on the other end) and soldering the free end to a suitable DC power plug. The red wire in the USB cable (+5V) should go to the centre pin of the plug and the black to the sleeve. The other two wires (the signal wires) can be cut short as they are not used. A matching DC socket for incoming power can be mounted on the side of the UB3 box. Two flying leads from this socket should be fitted with female header sockets (also known as DuPont connectors) which fit over the BackPack's power header pins (CON1). Fig.3 illustrates the complete assembly. The DDS function generator module can be mounted on the base of the UB3 box using four M3 machine screws and nuts. Use Nylon M3 nuts as spacers between the base of the box and the module. You need to select a spot for the module that will not foul the underside of the BackPack PCB, particularly CON1 and CON2 which extend close to the bottom of the box. Finally, connect flying leads from 5V 4 Tx 3 2 Rx 1 USB CONNECTOR TYPE A MALE GND DC INPUT PLUG DC INPUT SOCKET (ON END OF BOX) 4-PIN FEMALE HEADER CONNECTOR MICROMITE CON1 POWER AND CONSOLE CONNECTOR Fig.3: the Signal Generator is powered from a standard USB plugpack charger. To make a suitable power cable, cut one end off a USB cable (maintaining the type A male connector at the other end) and solder the red wire to the centre terminal pin of a DC plug and the black wire to the outer barrel connection. The matching DC socket is mounted on the side of the UB3 box and is connected to CON1 on the BackPack PCB. siliconchip.com.au April 2017  73 Interior view of the Touchscreen DDS Signal Generator showing the connections made from the Micromite BackPack to the module and internal connectors. You do not have to solder the extra through-hole components the way we did, as the UB3 jiffy box provides a fair bit of clearance. the module to the required pins on CON2 on the BackPack and from the DDS outputs to the RCA (or BNC) connectors. The most convenient method of mounting the output capacitor and resistors is to solder them directly onto the RCA/BNC connectors. Fig.4, overleaf, provides a convenient summary of all the connections to the DDS module. We suggest that you wire up the connections from the module to the BackPack using leads with female header sockets (DuPont connectors) at each end. These will simply plug onto the headers on both modules and this makes it easy to remove and/or Fig.4: an overview of all the connections to the DDS module. Flying leads can be used to connect the module to the BackPack and to the output connectors. The resistors and capacitors shown can be soldered directly between the output connectors. 74  Silicon Chip siliconchip.com.au replace the module if necessary. Altronics have suitable pre-assembled leads (Cat P1017) as do Jaycar (WC6026) or search eBay or AliExpress for "DuPont Jumper". Testing Before connecting the DDS function generator module, confirm that the Micromite LCD BackPack is working correctly and has been programmed with the BASIC code. The testing procedure is described in the Micromite User Manual and also in the February 2016 issue. Then it should simply be a matter of connecting the DDS module and checking its output. If it does not appear to be working, your first action should be to carefully re-check each connection. Then measure the volt- age across the pins marked VCC and GND on the module, which should give precisely 3.3V. Remember that the module does not provide any feedback to the Micromite so the LCD might show the frequency, level etc and look like it is working but this does not mean that the module is actually alive and reacting to these commands (it is a one-way communication path). If you have an oscilloscope or logic analyser, you can monitor the pins labelled FSY, CLK and DAT on the module. Every time you change the frequency you should see a burst of data on these pins. Similarly, the pins labelled CS, CLK and DAT will show a burst of data when the signal level is changed. If these are not present, re-check the Micromite LCD Backpack and its connections. A final test is to connect a LED with a suitable current limiting resistor or an old fashioned moving-coil multimeter directly to the output of the module and set the signal generator to a 1Hz square wave. You should see the LED or meter responding to the 1Hz output. If not, the simple option is to replace the DDS module. Scope 1-4 show waveforms that have been generated using the DDS Signal Generator. Firmware updates for the Micromite and the BASIC software for the DDS Signal Generator will be provided on the Silicon Chip website but you can also check the author's website for updates at: http://geoffg.net/micromite.html SC Scope 1-4: These scope captures show typical output waveforms. The sinewave output is reasonably smooth despite being digitally created; there is some harmonic distortion which means that you cannot use this project for precise noise and distortion measurements but it and the other outputs are quite suitable for general purpose tasks. The final scope capture shows a short sweep between 20Hz and 50Hz. siliconchip.com.au April 2017  75 CIRCUIT NOTEBOOK Interesting circuit ideas which we have checked but not built and tested. Contributions will be paid for at standard rates. All submissions should include full name, address & phone number. Two modifications to the Battery LifeSaver In Ask Silicon Chip this month, reader Dave asked whether it would be possible to modify the Battery LifeSaver (Silicon Chip, September 2013) to switch the battery positive line, rather than the negative line, and also whether it could be configured to protect a battery from being over-charged rather than over-discharged. These two modifications show how it can be done. In both cases, the onboard N-channel Mosfet is used to switch an external Mosfet with sufficient voltage and current ratings to handle the battery voltage (30V is sufficient) and load current, which depends on the application. The first modification, shown 76  Silicon Chip in the circuit diagram of Fig.1 and wiring diagram, Fig.3, shows how to use an external P-channel Mosfet (Q2) to operate in a similar manner to the original LifeSaver, but with the battery positive terminal disconnected when it is flat, rather than the negative terminal. An added 1MW resistor pulls the V- OUT terminal up to +12V when Q1 is off (ie, if the battery voltage is low). This terminal voltage goes down to 0V when Q1 switches on (ie, when the battery voltage is above the cut-out threshold). When Q1 switches on, it pulls down the voltage at the gate of Q2 (P-channel) so when Q1 switches on, so does Q2. Thus current can flow from the battery positive terminal, wired to its source pin, through to the load at its drain. To prevent battery over-charging, we want the LifeSaver to operate in the reverse of its normal mode, ie, so that it switches on when the voltage is below the threshold voltage and switch off when it is above, disconnecting the battery once it is fully charged. This is shown in Fig.2 and Fig.4. To reverse its normal operation, we again wire up a Mosfet with its gate to the V- OUT terminal but this time, since it is an N-channel Mosfet (like Q1), this effectively inverts the logic. Thus it is switched off when Q1 is on and turns on when Q1 is off and the 1MW resistor pulls its gate up to +12V. siliconchip.com.au Note that since the charger is disconnected from the battery once the output of the charger exceeds the threshold (which may be set at say 14.4V), if it's a smart charger, it may switch off when the battery is disconnected. A "dumb" charger will simply produce an even higher voltage, thus the LifeSaver will leave the battery disconnected until you switch Measuring weight using Arduino Digital scales have come down in price significantly and have now almost totally displaced the simple mechanical scales once used to measure body weight or weigh ingredients for cooking, etc. It is now possible build a 5kg scale with an accuracy of around ±1g, using an Arduino, an instrumentation amplifier module and a strain gauge-based “load cell”. This could be used as part of a robot which needs to deliver a certain weight of liquid, for example. In fact, you can use various different sizes of load cells using the same method, including those large enough to weigh a person. The load cell comprises four strain gauges on a flexible arm which are connected in a Wheatstone bridge configuration. Physically, the load cell is built as shown in the corner of the circuit diagram, with two strain gauges along the top of the “binocular beam” and two along the bottom. When a load is placed on the free end of the beam, the beam flexes and the upper two strain gauges are in tension while the lower two are placed in compression. This affects their resistance. As shown in the circuit diagram at left, the Wheatstone bridge is ef- fectively two resistive dividers in parallel with the same voltage across both (between E+ and E-). Due to the way it is arranged, as the load on the beam increases, the voltage at the S+ terminal increases, due to the lower resistance of the upper strain gauge under compression and the greater resistance of the lower one under tension. At the same time, the voltage at the S- terminal decreases, as the strain gauges are effectively swapped in that side of the bridge. The change in voltage is quite small so you need an amplifier to get a sensible reading from a microcontroller and it needs to accurately remove any “common mode” signal which might occur due to changes in temperature and so on. In other words, if the voltages at the S- and S+ terminals both rise at the same time and by the same amount, this should result in no change in the output of the amplifier as this is due to a change in the supply voltage or the properties of two adjacent resistors (eg, due to a temperature shift), not a change in the load weight. Instrumentation amplifiers are designed for this type of measurement so we are using an HX711 which in- the charger off yourself. Either way, charging is effectively terminated once the target voltage has been reached. Nicholas Vinen, Silicon Chip. cludes an inbuilt 24-bit analog-todigital converter (ADC). This is far more precise than the 10-bit ADC in an Arduino and other common microcontrollers. The HX711 also includes a twoinput multiplexer, allowing two load cells to be monitored, plus a programmable gain amplifier to control its sensitivity and a regulator to control the voltage applied to the load cell. You get all that for less than one dollar, in a module that’s easy to connect to an Arduino, so it’s really the ideal way of interfacing with a load cell. As well as the HX-711 module and load cell, the circuit comprises ATmega328 microcontroller IC1 (an Arduino or equivalent can also be used), a 4-line alphanumeric LCD to display the measured weight with a contrast adjustment potentiometer, a simple power supply and pushbutton S2 which is used to zero the readings. The whole thing is powered from a 5V rail derived from a 9V battery. As you can see, the hardware is quite simple and so is the software, at around 50 lines total. It uses just two libraries, one called “HX711” which is used to get the data from the HX711 module and one called continued next page Circuit Ideas Wanted Got an interesting original circuit that you have cleverly devised? We need it and will pay good money to feature it in the Circuit Notebook pages. We can pay you by electronic funds transfer, cheque (what are they?) or direct to your PayPal account. Or you can use the funds to purchase anything from the SILICON CHIP on-line shop, including PCBs and components, back issues, subscriptions or whatever. Email your circuit and descriptive text to editor<at>siliconchip.com.au siliconchip.com.au April 2017  77 “floatToString” which is used to convert the weight measurements to text, so it can be shown on the LCD. These are both included in the software download on the Silicon Chip website, along with the Arduino sketch itself. Its setup routine initialises the LCD, calibrates the scale and then goes into a loop where it measures the weight on the scale 25 times, averages the readings (for extra stability) and displays this on the LCD. If S2 is pressed, the software detects that pin 16 (digital input D10) has been pulled low and it stores the current reading from the load cell, in order to zero the measurement. This can be used to initially set the scale to read zero as well as for tare readings (eg, measuring the weight of items in a bowl without showing the weight of the bowl). If you want the displayed weight to update more rapidly, you can reduce the number of times the measurement is averaged by modifying the sketch. Note that the software contains a hard-coded calibration constant which determines the relationship between the weight on the strain gauge and the voltage across it. This “calibration_factor” constant is defined as -7050 at the top of the code and has been found to work Simple bird scarer stops tree damage We have problems in spring and summer with parrots eating the seeds in one of our trees, dropping a big mess of leaves on our driveway. This circuit was developed in response, with the prototype placed in a sandwich bag to protect it from rain and hung on a flexible branch of the tree. If a bird lands in the tree, the resulting motion triggers the mercury tilt switch, charging up the capacitor and switching on NPN transistor Q1, which powers the siren and generates a loud tone or series of tones 78  Silicon Chip BC337 B to scare off the bird. C When placing the bag E in the tree, the tilt of the mercury switch is adjusted to set the sensitivity to branch movement, allowing for movement when the wind blows. It's powered by a 9V battery and is simple enough to be air-wired or built on a small piece of protoboard. This could also be used to stop cockatoos from destroying flowering trees and shrubs, or any other time that animals making a nuisance of well with the load cell listed below (from China). If using a different load cell, you would need to run the software, measure a known weight and then adjust the calibration constant to suit. For example, if you put a 1kg object on the scale (after zeroing it with S2) and got a reading of 565g, change the constant to -12478 (-7050 × 1000g ÷ 565g). The load cell is available at: http:// siliconchip.com.au/l/aac6 And the HX-711 module at: http:// siliconchip.com.au/l/aac7 Bera Somnath, Vindhyanagar, India. ($80) * A SUITABLE MERCURY SWITCH IS THE JAYCAR SM-1035, WHILE A SUITABLE SIREN IS THE JAYCAR AB-3456 RED (CONTINUOUS) OR YELLOW (PULSED) DUAL SOUND PIEZO SIREN* MERCURY SWITCH* BLACK C 22kΩ B 33µF 9V BATTERY Q1 BC337 E themselves can be detected by the deflection of plant limbs. Roderick Wall, Mount Eliza, Vic. ($35) siliconchip.com.au Keysight DSOX1102G Oscilloscope Review by Nicholas Vinen A few years ago, Keysight brought two new series of InfiniiVision oscilloscopes, named DSOX2000 and DSOX3000, at prices that were previously unheard of for the performance they offered. This was thanks to their MegaZoom IV integrated circuit which is basically the guts of a high-performance scope on a single chip. Now they've put that same IC into a more compact and even more affordable scope. A fter reviewing the then brand-new MSOX2000 and MSOX3000-series scopes in the April 2011 issue, I was so impressed that I subsequently purchased an MSOX3014A 4-channel mixed signal oscilloscope to use at home. By comparison to the Agilent DSO7034A we were already using at the Silicon Chip lab, it has less bandwidth and a smaller screen but was also considerably less expensive and included a lot of new features and what I still think is outstanding performance. It's also more compact. Having just one modern DSO in our lab sometimes causes contention, so eventually I ended up bringing in siliconchip.com.au my own scope and it isn't exactly a hardship when I end up relegated to the smaller unit. In fact, despite the screen size disadvantage, I think mine is somewhat nicer to use. If you haven't read the 2011 review, to summarise, the MSOX2000 and MSOX3000 series scopes are the same size, with the same screen and look virtually identical. Both come with either two or four analog channels and a mixed-signal option with 8 digital channels for MSOX2000 or 16 for MSOX3000 series scopes. The main difference between the two is in the waveform update rate and the fact that the MSOX3000 offers more stand- ard and optional features. Until recently, the entry-level MegaZoom IV-equipped scope from Keysight was the MSOX2012A, with two 100MHz channels. At around $2500, we think it's good value but there are a lot of people who simply can't justify spending that much money on a scope. Hence the new DSOX1000 series, launched just last month, represented by the mid-range DSOX1102G reviewed here. Note that the DSOX1000 series is distinct from the Keysight DSO1000A/ DSO1000B models; the latter have been available for some time but do not use the MegaZoom IV IC and so April 2017  79 Scope 1: we found this Frequency Response Analysis feature tucked away in the “Analyze” menu. The blue trace shows the frequency response of the LC filter network connected between the arbitrary waveform generator (AWG) output and scope inputs, from 100Hz up to 25MHz. do not have comparable performance. The one advantage the A/B series models seem to have is the option for four channels; to get that with MegaZoom IV, you need to look at the DSOX2000 series. Similarities and differences Some of the similarities and differences between the DSOX1000 and DSOX2000 series scopes are immediately obvious. The DSOX1102G is clearly more compact than the DSOX2000 or DSOX3000 series, at 310mm wide, 170mm high (with feet retracted) and 140mm deep (including knobs and connectors). By comparison, my MSOX3014A is 380mm wide and 210mm high; its depth is similar. The difference in weight is less than you might expect. The DSOX1102G is a relatively hefty 3.2kg while my four-channel MSOX3014A is only a tad heavier at 3.9kg. Another difference that I immediately spotted is the lack of a logic probe interface on the front panel of the DSOX1102G. That's because there is no mixed signal option – it's a plain vanilla two-channel scope. Powering up the DSOX1102G, the interface is immediately familiar. Despite the slightly smaller screen (175mm/7” diagonal compared to 225mm/9”), the resolution appears to be the same and once you get used to the different button layout on the front panel, its operation is familiar. While some things have been rejigged, the interfaces and functions available on the 1000-series scope mostly parallel those on the higherspec models and other than some of 80  Silicon Chip Scope 2: using the scope's built-in Fast Fourier Transform (FFT) capability to analyse the 460kHz sinewave from the arbitrary waveform generator. You can see that the second harmonic (920kHz) and fourth harmonic (1840kHz) are the strongest. The other peaks are probably AM radio stations. the more advanced options such as plotting using complex mathematical equations, nothing really seems to be missing. Another difference I noticed immediately is that the fan on the DSOX1102G is a little louder than the fan on my MSOX3014A; not so much that it would drive you crazy but you certainly can hear the fan spinning, while the noise from the MSOX3014A is barely audible in a typical lab or workshop environment. Acquisition performance of the 1000-series scopes is pretty much on par with the 2000-series scopes; both have a waveform update rate of around 50,000 per second, which is not quite as good as the 3000-series or 4000-series (at over 1 million per second) but it's still right up there for an entrylevel scope. Like the 2000-series and 3000-series, the 1000-series scopes have the option for a single channel arbitrary waveform generator (AWG) output, which is quite handy to have. The 1000-series also has an option for serial protocol analysis that's equivalent to the one available on the 2000-series. However, there is no waveform search option for the 1000-series; something that's nice to have but I personally rarely use it. Interestingly, 1000-series scopes include standard features that cost extra on the more expensive models. This includes Digital Voltmeter (DVM) functionality, segmented memory and mask/limit testing. Sampling rate is 1Gsample/second for 2-channel models and 2Gsample/ second for 4-channel models which is more than adequate given the band- width choices are 50MHz, 70MHz and 100MHz. Educational models, accessories and upgrades While we don't have a lot of details at this stage, there are special “cutdown” scopes in the DSOX1000 series for the educational market with smaller sample memories (100kpoints maximum rather than 1Mpoint) and no standard segmented memory or mask/ limit testing features. These changes are unlikely to have much effect for educational use and we expect prices for educational models will be lower than the standard models. The DSO1000-series scopes are supplied with two suitable probes and a power cord. Presumably you will also get a user manual/CD although the sample unit we got to review did not have either. Some time after I bought my MSOX3014A, I upgraded its bandwidth from 100MHz to 200MHz and added a number of extra features including power analysis and segmented memory, at a time when Keysight had a 2-for-1 upgrade sale on. This was a relatively painless process and the extra features have come in handy from time to time. The DSOX1000-series scopes are also upgradeable, both in terms of bandwidth, memory and software features. The main difference is that they “top out” with lower specifications than the DSOX2000-series (which in turn, can't be upgraded as far as the DSOX3000-series) so upgrading after purchase can only take you so far before you have to buy a better scope. siliconchip.com.au Scope 3: another quite handy feature of the scope is the lowpass filter option. At top in yellow is the output of the AWG set for a sinewave at 10mV peak-to-peak using a 1:1 probe. Below it is the same waveform after having gone through a digital 1MHz low-pass filter. Conclusion While there are a lot of compact, low-cost scopes on the market, many of which would undercut the Keysight 1000-series on price, we doubt if any of them could compete with the sheer performance of the MegaZoom IV chipset. So if you just need a basic two-channel scope, but want one with the speed and features of a much more expensive unit, you certainly should take a good look at Keysight's offerings. Our only real criticism of the DSOX1102G applies also to the DSO/MSOX2000 series and DSO/ MSOX3000-series (including my own personal scope), which is that its in- Scope 4: shorting out the channel 1 probe and cranking up the vertical sensitivity gives this result, with bandwidth limiting enabled. This reveals the presence of a few millivolts of noise that could otherwise mask very low-level analog signals. put noise is not particularly low. While you can change the vertical scale to 5mV/div with a 10:1 probe, the result is a rather thick trace (see Scope 4). In fact, on the DSOX1102G, when you go to 5mV/div, channel bandwidth limiting is automatically activated to reduce noise. The practical effect of this is to make measuring low-level analog signals difficult. One simple solution is to use a 1:1 probe but then you have to swap probes depending on the signal you are measuring, which is a little frustrating. Depending on how you use the scope, you may never run into this and you can also pretty much solve this by using “high resolution” mode (or averaging, for repetitive signals). But we would like to see future Keysight scopes pay more attention to reducing input noise for better sensitivity. Regardless, we would have to say that the entire series of “InfiniiVision” scopes from Keysight is probably the most capable and well-rounded of any manufacturer, which is why we use them ourselves. Pricing and availability To get a price, enquire about one of these scopes or make a purchase, contact Trio Test & Measurement by ringing 1300 853 407 or e-mailing sales<at> triotest.com.au They are located at unit 4, level 1, 8 Century Circuit, Norwest Business Park, Baulkham Hills NSW 2153. SC The back of the set is quite bare in comparison to the front. However, there is one USB and an optional LAN port tucked away on edge of the set which can be used to connect the scope to other devices, such as a computer. siliconchip.com.au April 2017  81 SILICON CHIP .com.au/shop ONLINESHOP Looking for a specialised component to build that latest and greatest SILICON CHIP project? Maybe it’s the PCB you’re after? Or a pre-programmed micro? Or some other hard-to-get “bit”? The chances are they are available direct from the SILICON CHIP ONLINESHOP. As a service to readers, SILICON CHIP has established the ONLINESHOP. No, we’re not going into opposition with your normal suppliers – this is a direct response to requests from readers who have found difficulty in obtaining specialised parts such as PCBs & micros. • • • • • PCBs are normally IN STOCK and ready for despatch when that month’s magazine goes on sale (you don’t have to wait for them to be made!). Even if stock runs out (eg, for high demand), in most cases there will be no longer than a two-week wait. One low p&p charge: $10 per order, regardless of how many boards or micros you order! (Australia only; overseas clients – email us for a postage quote). Our PCBs are beautifully made, very high quality fibreglass boards with pre-tinned tracks, silk screen overlays and where applicable, solder masks. Best of all, those boards with fancy cut-outs or edges are already cut out to the SILICON CHIP specifications – no messy blade work required! HERE’S HOW TO ORDER: 4 Via the INTERNET (24 hours, 7 days): Log on to our secure website – All prices are in AUSTRALIAN DOLLARS ($AU)     siliconchip.com.au, click on “SHOP” and follow the links 4 Via EMAIL (24 hours, 7 days): email silicon<at>siliconchip.com.au – Clearly tell us what you want and include your contact and credit card details 4 Via MAIL (24 hours, 7 days): PO Box 139, Collaroy NSW 2097. Clearly tell us what you want and include your contact and credit card details 4 Via PHONE (9am-5pm EADST, Mon-Fri): Call (02) 9939 3295 (INT 612 9939 3295) – have your order ready, including contact and credit card details! YES! You can also order or renew your SILICON CHIP subscription via any of these methods as well! PRE-PROGRAMMED MICROS Price for any of these micros is just $15.00 each + $10 p&p per order# As a service to readers, SILICON CHIP ONLINESHOP stocks microcontrollers and microprocessors used in new projects (from 2012 on) and some selected older projects – pre-programmed and ready to fly! Some micros from copyrighted and/or contributed projects may not be available. PIC12F675-I/P PIC16F1507-I/P PIC16F88-E/P PIC16F88-I/P PIC16LF88-I/P PIC16LF88-I/SO PIC16LF1709-I/SO PIC16F877A-I/P PIC18F2550-I/SP UHF Remote Switch (Jan09), Ultrasonic Cleaner (Aug10), Ultrasonic Anti-fouling (Sep10), Cricket/Frog (Jun12), Do Not Disturb (May13) IR-to-UHF Converter (Jul13), UHF-to-IR Converter (Jul13) PC Birdies *2 chips – $15 pair* (Aug13), Driveway Monitor Receiver (July15) Hotel Safe Alarm (Jun16), 50A Battery Charger Controller (Nov16) Wideband Oxygen Sensor (Jun-Jul12) Hi Energy Ignition (Nov/Dec12), Speedo Corrector (Sept13), Auto Headlight Controller (Oct13), 10A 230V Motor Speed Controller (Feb14) Automotive Sensor Modifier (Dec16) Projector Speed (Apr11), Vox (Jun11), Ultrasonic Water Tank Level (Sep11), Quizzical (Oct11), Ultra LD Preamp (Nov11), 10-Channel Remote Control Receiver (Jun13), Revised 10-Channel Remote Control Receiver (Jul13), Nicad/NiMH Burp Charger (Mar14), Remote Mains Timer (Nov14), Driveway Monitor Transmitter (July15), Fingerprint Scanner (Nov15) MPPT Lighting Charge Controller (Feb16), 50/60Hz Turntable Driver (May16) Cyclic Pump Timer (Sep16), 60V 40A DC Motor Speed Controller (Jan17) Pool Lap Counter (Mar17) Garbage Reminder (Jan13), Bellbird (Dec13), GPS Analog Clock Driver (Feb17) LED Ladybird (Apr13) Battery Cell Balancer (Mar16) 6-Digit GPS Clock (May-Jun09), Lab Digital Pot (Jul10) Semtest (Feb-May12) Batt Capacity Meter (Jun09), Intelligent Fan Controller (Jul10) GPS Car Computer (Jan10), GPS Boat Computer (Oct10) USB Data Logger (Dec10-Feb11) Digital Spirit Level (Aug11), G-Force Meter (Nov11) Maximite (Mar11), miniMaximite (Nov11), Colour Maximite (Sept/Oct12), Touchscreen Audio Recorder (Jun/Jul 14) PIC32MX170F256B-50I/SP Micromite Mk2 (Jan15) – also includes FREE 47F tantalum capacitor Micromite LCD Backpack [either version] (Feb16), GPS Boat Computer (Apr16) Micromite Super Clock (Jul16), Touchscreen Voltage/Current Ref (Oct-Dec16) PIC32MX170F256B-I/SP Low Frequency Distortion Analyser (Apr15) PIC32MX170F256D-501P/T 44-pin Micromite Mk2 (Now with Mk2 Firmware at no extra cost) PIC32MX250F128B-I/SP GPS Tracker (Nov13), Micromite ASCII Video Terminal (Jul14) PIC32MX470F512H-I/PT Stereo Audio Delay/DSP (Nov13), Stereo Echo/Reverb (Feb 14), Digital Effects Unit (Oct14) PIC32MX470F512H-120/PT Micromite PLUS Explore 64 (Aug 16), Micromite Plus LCD BackPack (Nov16) PIC32MX470F512L-120/PT Micromite PLUS Explore 100 (Sep-Oct16) dsPIC33FJ128GP802-I/SP Digital Audio Signal Generator (Mar-May10), Digital Lighting Controller (Oct-Dec10), SportSync (May11), Digital Audio Delay (Dec11) Quizzical (Oct11), Ultra-LD Preamp (Nov11), LED Musicolor (Nov12) dsPIC33FJ64MC802-E/P Induction Motor Speed Controller (revised) (Aug13) dsPIC33FJ128GP306-I/PT CLASSiC DAC (Feb-May 13) ATTiny861 VVA Thermometer/Thermostat (Mar10), Rudder Position Indicator (Jul11) ATTiny2313 Remote-Controlled Timer (Aug10) PIC18F4550-I/P PIC18F27J53-I/SP PIC18LF14K22 PIC32MX795F512H-80I/PT When ordering, be sure to nominate BOTH the micro required AND the project for which it must be programmed. SPECIALISED COMPONENTS, HARD-TO-GET BITS, ETC NEW THIS MONTH: EFUSE (APR 17) - two NIS5512 ICs plus one SUP53P06      $22.50 EL CHEAPO MODULES (APR 17) - AD9833 DDS module (no gain control)      $15.00 MICROMITE DDS (APR 17) - AD9833 DDS module (with gain control)      $25.00 P&P – $10 Per order# MICROMITE PLUS EXPLORE 100 **COMPLETE KIT (no LCD panel)** (SEP 16) $69.90 (includes PCB, programmed micro and the hard-to-get bits including female headers, USB and microSD sockets, crystal, etc but does not include the LCD panel) DS3231-BASED REAL TIME CLOCK MODULE with two 10mm M2 spacers & four 6mm M2 Nylon screws (JUL 16) $5.00 (JUN 16) $20.00 (MAR 17) - two 70mm 7-segment high brightness blue displays plus logic-level Mosfet      $17.50 - laser-cut blue tinted lid, 152 x 90 x 3mm      $7.50 100dB STEREO AUDIO LEVEL/VU METER STATIONMASTER Two BSO150N03 dual N-channel Mosfets plus 4.7kΩ SMD resistor: (MAY 16) $5.00 MICROWAVE LEAKAGE DETECTOR - all SMD parts: (APR 16) $10.00 (JAN 17) $35.00 hard-to-get parts: Q8-Q16, D2-D4, 150pF/250V capacitor and five SMD resistors      BOAT COMPUTER - (REQUIRES MICROMITE LCD BACKPACK – $65.00 [see below]) (APR 16)   VK2828U7G5LF TTL GPS/GLONASS/GALILEO module with antenna & cable:   VK16E TTL GPS module with antenna & cable: $25.00 $20.00 60V 40A DC MOTOR SPEED CONTROLLER (JAN 17) $35.00 hard-to-get parts: IC2, Q1, Q2 and D1      ULTRASONIC PARKING ASSISTANT (REQUIRES MICROMITE LCD BACKPACK – $65.00 [see below] COMPUTER INTERFACE MODULES BATTERY CELL BALANCER POOL LAP COUNTER (MAR 17) - DRV8871 IC, SMD 1µF capacitor and 100kW potentiometer with detent      $12.50 ULTRA LOW VOLTAGE LED FLASHER (FEB 17) kit including PCB and all SMD parts, LDR and blue LED      $12.50 SC200 AMPLIFIER MODULE CP2102 USB-UART bridge microSD card adaptor (JAN 17) $5.00       $2.50 All SMD parts except programmed micro and LEDs (both available separately) RASPBERRY PI TEMPERATURE SENSOR EXPANSION Ultrasonic Range Sensor PLUS clear lid with cutout to suit UB5 Jiffy Box ALL SMD PARTS, including programmed micro TOUCHSCREEN VOLTAGE/CURRENT REFERENCE (DEC 16)   MICROMITE LCD BACKPACK KIT (programmed to suit) PLUS UB1 Lid $70.00    LASER-CUT MATTE BLACK LID (to suit UB1 Jiffy Box) $10.00 MICROMITE LCD BACKPACK ***** COMPLETE KIT ***** $99.00 100µH SMD inductor, 3x low-profile 400V capacitors & 0.33Ω resistor       SHORT FORM KIT with main PCB plus onboard parts (not including BackPack module, jiffy box, power supply or wires/cables) PASSIVE LINE TO PHONO INPUT CONVERTER - ALL SMD PARTS (NOV 16) $5.00 (MAR 16) $7.50 (MAR 16) $50.00 (FEB 16) *$65.00 includes PCB, micro and 2.8-inch touchscreen AND NOW INCLUDES LID (specify clear or black lid) VALVE STEREO PREAMPLIFIER - (JAN 16) $30.00 MINI USB SWITCHMODE REGULATOR Mk II all SMD components (SEP 15) $15.00 THESE ARE ONLY THE MOST RECENT MICROS AND SPECIALISED COMPONENTS. FOR THE FULL LIST, SEE www.siliconchip.com.au/shop *All items subect to availability. Prices valid for month of magazine issue only. All prices in Australian dollars and included GST where applicable. # P&P prices are within Australia. O’seas? Please email for a quote 04/17 PRINTED CIRCUIT BOARDS NOTE: The listings below are for the PCB only – not a full kit. If you want a kit, contact the kit suppliers advertising in this issue. For more unusual projects where kits are not available, some have specialised components available – see the list opposite. NOTE: Not all PCBs are shown here due to space limits but the SILICON CHIP ONLINESHOP has boards going back to 2001 and beyond. For a complete list of available PCBs, back issues, etc, go to siliconchip.com.au/shop Prices are PCBs only, NOT COMPLETE KITS! PRINTED CIRCUIT BOARD TO SUIT PROJECT: PUBLISHED: PCB CODE: Price: SOFT STARTER FOR POWER TOOLS JULY 2012 10107121 $10.00 DRIVEWAY SENTRY MK2 AUG 2012 03107121 $20.00 MAINS TIMER AUG 2012 10108121 $10.00 CURRENT ADAPTOR FOR SCOPES AND DMMS AUG 2012 04108121 $20.00 USB VIRTUAL INSTRUMENT INTERFACE SEPT 2012 24109121 $30.00 USB VIRTUAL INSTRUMENT INT. FRONT PANEL SEPT 2012 24109122 $30.00 BARKING DOG BLASTER SEPT 2012 25108121 $20.00 COLOUR MAXIMITE SEPT 2012 07109121 $20.00 SOUND EFFECTS GENERATOR SEPT 2012 09109121 $10.00 NICK-OFF PROXIMITY ALARM OCT 2012 03110121 $5.00 DCC REVERSE LOOP CONTROLLER OCT 2012 09110121 $10.00 LED MUSICOLOUR NOV 2012 16110121 $25.00 LED MUSICOLOUR Front & Rear Panels NOV 2012 16110121 $20 per set CLASSIC-D CLASS D AMPLIFIER MODULE NOV 2012 01108121 $30.00 CLASSIC-D 2 CHANNEL SPEAKER PROTECTOR NOV 2012 01108122 $10.00 HIGH ENERGY ELECTRONIC IGNITION SYSTEM DEC 2012 05110121 $10.00 1.5kW INDUCTION MOTOR SPEED CONTROLLER (NEW V2 PCB)DEC 2012 10105122 $35.00 THE CHAMPION PREAMP and 7W AUDIO AMP (one PCB) JAN 2013 01109121/2 $10.00 GARBAGE/RECYCLING BIN REMINDER JAN 2013 19111121 $10.00 2.5GHz DIGITAL FREQUENCY METER – MAIN BOARD JAN 2013 04111121 $35.00 2.5GHz DIGITAL FREQUENCY METER – DISPLAY BOARD JAN 2013 04111122 $15.00 2.5GHz DIGITAL FREQUENCY METER – FRONT PANEL JAN 2013 04111123 $45.00 SEISMOGRAPH MK2 FEB 2013 21102131 $20.00 MOBILE PHONE RING EXTENDER FEB 2013 12110121 $10.00 GPS 1PPS TIMEBASE FEB 2013 04103131 $10.00 LED TORCH DRIVER MAR 2013 16102131 $5.00 CLASSiC DAC MAIN PCB APR 2013 01102131 $40.00 CLASSiC DAC FRONT & REAR PANEL PCBs APR 2013 01102132/3 $30.00 GPS USB TIMEBASE APR 2013 04104131 $15.00 LED LADYBIRD APR 2013 08103131 $5.00 CLASSiC-D 12V to ±35V DC/DC CONVERTER MAY 2013 11104131 $15.00 DO NOT DISTURB MAY 2013 12104131 $10.00 LF/HF UP-CONVERTER JUN 2013 07106131 $10.00 10-CHANNEL REMOTE CONTROL RECEIVER JUN 2013 15106131 $15.00 IR-TO-455MHZ UHF TRANSCEIVER JUN 2013 15106132 $7.50 “LUMP IN COAX” PORTABLE MIXER JUN 2013 01106131 $15.00 L’IL PULSER MKII TRAIN CONTROLLER JULY 2013 09107131 $15.00 L’IL PULSER MKII FRONT & REAR PANELS JULY 2013 09107132/3 $20.00/set REVISED 10 CHANNEL REMOTE CONTROL RECEIVER JULY 2013 15106133 $15.00 INFRARED TO UHF CONVERTER JULY 2013 15107131 $5.00 UHF TO INFRARED CONVERTER JULY 2013 15107132 $10.00 IPOD CHARGER AUG 2013 14108131 $5.00 PC BIRDIES AUG 2013 08104131 $10.00 RF DETECTOR PROBE FOR DMMs AUG 2013 04107131 $10.00 BATTERY LIFESAVER SEPT 2013 11108131 $5.00 SPEEDO CORRECTOR SEPT 2013 05109131 $10.00 SiDRADIO (INTEGRATED SDR) Main PCB OCT 2013 06109131 $35.00 SiDRADIO (INTEGRATED SDR) Front & Rear Panels OCT 2013 06109132/3 $25.00/pr TINY TIM AMPLIFIER (same PCB as Headphone Amp [Sept11])OCT 2013 01309111 $20.00 AUTO CAR HEADLIGHT CONTROLLER OCT 2013 03111131 $10.00 GPS TRACKER NOV 2013 05112131 $15.00 STEREO AUDIO DELAY/DSP NOV 2013 01110131 $15.00 BELLBIRD DEC 2013 08112131 $10.00 PORTAPAL-D MAIN BOARDS DEC 2013 01111131-3 $35.00/set (for CLASSiC-D Amp board and CLASSiC-D DC/DC Converter board refer above [Nov 2012/May 2013]) LED Party Strobe (also suits Hot Wire Cutter [Dec 2010]) JAN 2014 16101141 $7.50 Bass Extender Mk2 JAN 2014 01112131 $15.00 Li’l Pulser Mk2 Revised JAN 2014 09107134 $15.00 10A 230VAC MOTOR SPEED CONTROLLER FEB 2014 10102141 $12.50 NICAD/NIMH BURP CHARGER MAR 2014 14103141 $15.00 RUBIDIUM FREQ. STANDARD BREAKOUT BOARD APR 2014 04105141 $10.00 USB/RS232C ADAPTOR APR 2014 07103141 $5.00 MAINS FAN SPEED CONTROLLER MAY 2014 10104141 $10.00 RGB LED STRIP DRIVER MAY 2014 16105141 $10.00 HYBRID BENCH SUPPLY MAY 2014 18104141 $20.00 2-WAY PASSIVE LOUDSPEAKER CROSSOVER JUN 2014 01205141 $20.00 TOUCHSCREEN AUDIO RECORDER JUL 2014 01105141 $12.50 THRESHOLD VOLTAGE SWITCH JUL 2014 99106141 $10.00 MICROMITE ASCII VIDEO TERMINAL JUL 2014 24107141 $7.50 FREQUENCY COUNTER ADD-ON JUL 2014 04105141a/b $15.00 TEMPMASTER MK3 AUG 2014 21108141 $15.00 44-PIN MICROMITE AUG 2014 24108141 $5.00 OPTO-THEREMIN MAIN BOARD SEP 2014 23108141 $15.00 OPTO-THEREMIN PROXIMITY SENSOR BOARD SEP 2014 23108142 $5.00 ACTIVE DIFFERENTIAL PROBE BOARDS SEP 2014 04107141/2 $10/SET MINI-D AMPLIFIER SEP 2014 01110141 $5.00 COURTESY LIGHT DELAY OCT 2014 05109141 $7.50 DIRECT INJECTION (D-I) BOX OCT 2014 23109141 $5.00 DIGITAL EFFECTS UNIT OCT 2014 01110131 $15.00 DUAL PHANTOM POWER SUPPLY NOV 2014 18112141 $10.00 REMOTE MAINS TIMER NOV 2014 19112141 $10.00 REMOTE MAINS TIMER PANEL/LID (BLUE) NOV 2014 19112142 $15.00 PRINTED CIRCUIT BOARD TO SUIT PROJECT: PUBLISHED: PCB CODE: Price: ONE-CHIP AMPLIFIER NOV 2014 01109141 $5.00 TDR DONGLE DEC 2014 04112141 $5.00 MULTISPARK CDI FOR PERFORMANCE VEHICLES DEC 2014 05112141 $10.00 CURRAWONG STEREO VALVE AMPLIFIER MAIN BOARD DEC 2014 01111141 $50.00 CURRAWONG REMOTE CONTROL BOARD DEC 2014 01111144 $5.00 CURRAWONG FRONT & REAR PANELS DEC 2014 01111142/3 $30/set CURRAWONG CLEAR ACRYLIC COVER JAN 2015 - $25.00 ISOLATED HIGH VOLTAGE PROBE JAN 2015 04108141 $10.00 SPARK ENERGY METER MAIN BOARD FEB/MAR 2015 05101151 $10.00 SPARK ENERGY ZENER BOARD FEB/MAR 2015 05101152 $10.00 SPARK ENERGY METER CALIBRATOR BOARD FEB/MAR 2015 05101153 $5.00 APPLIANCE INSULATION TESTER APR 2015 04103151 $10.00 APPLIANCE INSULATION TESTER FRONT PANEL APR 2015 04103152 $10.00 LOW-FREQUENCY DISTORTION ANALYSER APR 2015 04104151 $5.00 APPLIANCE EARTH LEAKAGE TESTER PCBs (2) MAY 2015 04203151/2 $15.00 APPLIANCE EARTH LEAKAGE TESTER LID/PANEL MAY 2015 04203153 $15.00 BALANCED INPUT ATTENUATOR MAIN PCB MAY 2015 04105151 $15.00 BALANCED INPUT ATTENUATOR FRONT & REAR PANELS MAY 2015 04105152/3 $20.00 4-OUTPUT UNIVERSAL ADJUSTABLE REGULATOR MAY 2015 18105151 $5.00 SIGNAL INJECTOR & TRACER JUNE 2015 04106151 $7.50 PASSIVE RF PROBE JUNE 2015 04106152 $2.50 SIGNAL INJECTOR & TRACER SHIELD JUNE 2015 04106153 $5.00 BAD VIBES INFRASOUND SNOOPER JUNE 2015 04104151 $5.00 CHAMPION + PRE-CHAMPION JUNE 2015 01109121/2 $7.50 DRIVEWAY MONITOR TRANSMITTER PCB JULY 2015 15105151 $10.00 DRIVEWAY MONITOR RECEIVER PCB JULY 2015 15105152 $5.00 MINI USB SWITCHMODE REGULATOR JULY 2015 18107151 $2.50 VOLTAGE/RESISTANCE/CURRENT REFERENCE AUG 2015 04108151 $2.50 LED PARTY STROBE MK2 AUG 2015 16101141 $7.50 ULTRA-LD MK4 200W AMPLIFIER MODULE SEP 2015 01107151 $15.00 9-CHANNEL REMOTE CONTROL RECEIVER SEP 2015 1510815 $15.00 MINI USB SWITCHMODE REGULATOR MK2 SEP 2015 18107152 $2.50 2-WAY PASSIVE LOUDSPEAKER CROSSOVER OCT 2015 01205141 $20.00 ULTRA LD AMPLIFIER POWER SUPPLY OCT 2015 01109111 $15.00 ARDUINO USB ELECTROCARDIOGRAPH OCT 2015 07108151 $7.50 FINGERPRINT SCANNER – SET OF TWO PCBS NOV 2015 03109151/2 $15.00 LOUDSPEAKER PROTECTOR NOV 2015 01110151 $10.00 LED CLOCK DEC 2015 19110151 $15.00 SPEECH TIMER DEC 2015 19111151 $15.00 TURNTABLE STROBE DEC 2015 04101161 $5.00 CALIBRATED TURNTABLE STROBOSCOPE ETCHED DISC DEC 2015 04101162 $10.00 VALVE STEREO PREAMPLIFIER – PCB JAN 2016 01101161 $15.00 VALVE STEREO PREAMPLIFIER – CASE PARTS JAN 2016 01101162 $20.00 QUICKBRAKE BRAKE LIGHT SPEEDUP JAN 2016 05102161 $15.00 SOLAR MPPT CHARGER & LIGHTING CONTROLLER FEB/MAR 2016 16101161 $15.00 MICROMITE LCD BACKPACK, 2.4-INCH VERSION FEB/MAR 2016 07102121 $7.50 MICROMITE LCD BACKPACK, 2.8-INCH VERSION FEB/MAR 2016 07102122 $7.50 BATTERY CELL BALANCER MAR 2016 11111151 $6.00 DELTA THROTTLE TIMER MAR 2016 05102161 $15.00 MICROWAVE LEAKAGE DETECTOR APR 2016 04103161 $5.00 FRIDGE/FREEZER ALARM APR 2016 03104161 $5.00 ARDUINO MULTIFUNCTION MEASUREMENT APR 2016 04116011/2 $15.00 PRECISION 50/60HZ TURNTABLE DRIVER MAY 2016 04104161 $15.00 RASPBERRY PI TEMP SENSOR EXPANSION MAY 2016 24104161 $5.00 100DB STEREO AUDIO LEVEL/VU METER JUN 2016 01104161 $15.00 HOTEL SAFE ALARM JUN 2016 03106161 $5.00 UNIVERSAL TEMPERATURE ALARM JULY 2016 03105161 $5.00 BROWNOUT PROTECTOR MK2 JULY 2016 10107161 $10.00 8-DIGIT FREQUENCY METER AUG 2016 04105161 $10.00 APPLIANCE ENERGY METER AUG 2016 04116061 $15.00 MICROMITE PLUS EXPLORE 64 AUG 2016 07108161 $5.00 CYCLIC PUMP/MAINS TIMER SEPT 2016 10108161/2 $10.00/pair MICROMITE PLUS EXPLORE 100 (4 layer) SEPT 2016 07109161 $20.00 AUTOMOTIVE FAULT DETECTOR SEPT 2016 05109161 $10.00 MOSQUITO LURE OCT 2016 25110161 $5.00 MICROPOWER LED FLASHER OCT 2016 16109161 $5.00 MINI MICROPOWER LED FLASHER OCT 2016 16109162 $2.50 50A BATTERY CHARGER CONTROLLER NOV 2016 11111161 $10.00 PASSIVE LINE TO PHONO INPUT CONVERTER NOV 2016 01111161 $5.00 MICROMITE PLUS LCD BACKPACK NOV 2016 07110161 $7.50 AUTOMOTIVE SENSOR MODIFIER DEC 2016 05111161 $10.00 TOUCHSCREEN VOLTAGE/CURRENT REFERENCE DEC 2016 04110161 $12.50 SC200 AMPLIFIER MODULE JAN 2017 01108161 $10.00 60V 40A DC MOTOR SPEED CON. CONTROL BOARD JAN 2017 11112161 $10.00 60V 40A DC MOTOR SPEED CON. MOSFET BOARD JAN 2017 11112162 $12.50 GPS SYNCHRONISED ANALOG CLOCK FEB 2017 04202171 $10.00 ULTRA LOW VOLTAGE LED FLASHER FEB 2017 16110161 $2.50 POOL LAP COUNTER MAR 2017 19102171 $15.00 STATIONMASTER TRAIN CONTROLLER MAR 2017 09103171/2 $15.00/set NEW THIS MONTH EFUSE APR 2017 04102171 $7.50 SPRING REVERB APR 2017 01104171 $12.50 LOOKING FOR TECHNICAL BOOKS? YOU’LL FIND THE COMPLETE LISTING OF ALL BOOKS AVAILABLE IN THE SILKS & DVDs” PAGES AT SILICONCHIP.COM.AU/SHOP Vintage Television By Ian Batty Sony’s TV8-301: the world’s first direct-view transistor TV set While TV sets were being made in huge numbers around the world in the late 1950s, they were all complex valve circuits typically driving 17-inch cathode ray tubes (CRTs). Portable transistor radios from Japan were well-known but there was no portable direct-view TV set. Then Sony produced an incredible new design, with an all solid-state motherboard and three daughter boards. A midst the ruins of postwar Japan, in 1947 young Masaru Ibuka and his friend Akio Morita set up Tokyo Tsushin Kogyo – Tokyo Telecommunications Engineering Corporation – ultimately to be known as Sony. Their first product was an electric rice cooker but the company quickly got into electronics, repairing radios, many of which had been stripped of their shortwave sections. As in Nazi Germany, the Japanese government had wanted to prevent its citizens from listening to anything but local propaganda on Medium Wave and Long Wave. So Sony made a tidy profit with their first electronic gadget, a short-wave converter for broadcastonly radios. They moved on in the 1950s to making tape recorders using oxide coatings on a paper strip base. 84  Silicon Chip Sony had acquired the tape-recording patent for ultrasonic bias from Anritsu, principally known today as an instrument company. This allowed Sony to begin their progress in magnetic recording. Their instruments were adopted by the courts and schools, establishing the company as a prestigious, high technology manufacturer. Following Ibuka’s visionary trip to attempt to sign a licence with Western Electric, Sony acquired patent rights for the transistor and began manufacturing portable radios in 1955. Preferring NPN transistors for their better high-frequency response, Sony were initially unable to produce working examples. In those days, the Bell Lab’s research was “like the word of God”. After much discussion, the research laboratory’s head, Makoto Kikuchi, suggested laying aside Bell’s experience. Sony’s labs then dropped Bell’s preferred indium as a doping agent and substituted phosphorus. It soon paid off, allowing Sony to produce the transistors used in their first transistor radios. Portable television receiver Sony’s approach to portable television design was far ahead of Philco, who had just beat them to market with their first set in 1959. Rather than taking the Safari approach (described in the November 2014 issue: http://siliconchip.com. au/Issue/2014/January/Philco+Safari %3A+the+first+transistor+portable+ projection+TV+set) with a compromise siliconchip.com.au Fig.1: block diagram of the Sony TV8-301. This is the US version of the diagram, showing 60Hz field frequency and a 15750Hz (525 × 30) horizontal sweep frequency. Note that it also has the sound IF at 4.5MHz instead of 5.5MHz used in the PAL system in Australia. design needing space-hogging optics, Sony built a “proper” portable television set, the TV8-301, with an 8-inch CRT. Its style, like Bush’s iconic TR82C radio (described in the September 2013: http://siliconchip.com.au/ Issue/2013/September/Best+Of+ British%3A+the+Bush+TR82C+Mk.2 +transistor+radio), was unmistakably modern. Its sleek grey case, far from being dull, adds an understated finish later seen in many laptop computers. But styling is only a superficial aspect of the design. The circuitry and physical arrangement of the chassis was far ahead of anything produced at that time. As well as being almost entirely solid-state, all of the circuitry was on PCBs. Mark that; PCBs; plural, not singular. At that time, very few manufacturers anywhere in the world were making a TV set based on PCBs. One of the very few was the American company Admiral but its sets were still all-valve designs. Apart from its mostly solid-state circuitry, the outstanding feature of this first Sony TV set was that it siliconchip.com.au had a motherboard and three plug-in daughter boards. Decades later, motherboards and daughter boards would become common-place in computers but this was 1959! I bought this set quite a while ago when I was teaching in Hong Kong. It is the TV8-301W US version. The 301E is the model for Western Europe while the 301T is a special version for Italy. Circuit description The block diagram of the circuit is shown in Fig.1 and is quite similar to the previously mentioned Philco Safari set. Indeed, most early solidstate TV sets follow pretty much the same design. The TV8-301 uses 23 transistors (a mix of PNP and NPN types), 18 semiconductor diodes (19 in the –E and –T models) and three tubes: the two highvoltage rectifiers and the 8-inch CRT. The transistors are all made by Sony but conform to the Japanese “2SA/ SB/SC” type numbering, so data and replacements can be determined. The 13-channel tuner is a turret design though not using the traditional “biscuits” we’re familiar with in TV sets manufactured in Australia. Each stage’s inductors are mounted on a rotating disc, giving individual inductances for each channel but without the mechanical complexity of the traditional turret tuner. This combines simplicity with the ability to adjust each channel individually. This TV8-301 is a VHF-only set, UHF transistors not being available at the time of production. Its tuner uses an RF amplifier, converter and separate local oscillator. It has four IF stages, each with neutralisation but operating at only 26.75MHz. All the transistors in this part of the circuit are PNP types, so their emitters are fed from the positive supply and collectors are connected via their transformers to ground. A separate detector feeds an AGC amplifier for application to the first and second IF stages. And like the Safari, the TV-301 uses simple “envelope” AGC that responds to Average Picture Level (white), rather than to peak signal strength. The TV8-301 lacks DC coupling in April 2017  85 The adjustment knobs at the back of the set are, from left to right: gain/ contrast, brightness, horizontal hold and vertical hold. The large knob at left is for channel selection and the outer ring is for fine tuning. The unmarked volume control is forward of the channel selector. The rear of the Sony TV8-301 set shows the AC (USA 117V) and DC (12V) power socket at top left. The large central two pin connector is used to power the set from an external 12V battery. At top right is the whip antenna, with the unbalanced and balanced antenna sockets just below it. 86  Silicon Chip the video amplifier and lacks a DC restorer, both of which are needed to ensure a constant black level. The video section begins with a conventional diode demodulator, feeding an emitter-follower first video amplifier stage and the sound pickoff trap. The main video amplifier’s gain is controlled by a variable resistor in the emitter bypass circuit. This would usually be the contrast control but it’s a preset. The user-adjustable “Gain” control, acting to attenuate the incoming RF signal and control the IF gain, gives the same effect as the usual contrast control. Does this seem familiar? Many earlier valve radios used a similar attenuating/gain design for the their volume controls. The gain control RF attenuator between the aerial connection and the input to the tuner is combined with a complex variable-bias system applied to the above-mentioned AGC circuit that controls the gain of the first and second vision IF stages It’s usual to allow the RF/IF channel to manage its own gain automatically, and to design it to deliver some 1~3V peak-to-peak either to the contrast control or to an amplifier with its gain subject to the contrast control. I can only assume that Sony’s engineers found their design vulnerable to overloading on strong signals and included the RF attenuator as a solution. The inherent inductance and capacitance of ordinary volume pots, which vary with frequency, make such an attenuator the exception in RF circuitry. The actual contrast control is a variable-gain affair in the emitter lead of the output transistor, but it’s a preset and not accessible to the operator. The picture tube is a 21cm/8-inch diagonal 210HB4, 90 degree type made by NEC. The larger size helps explain the high accelerator and focus voltages, and video drive, compared to Philco’s 2-inch 2EP4. The video amplifier runs off a 75V DC supply, allowing a full video output of around 60V peak-to-peak. The sound channel begins with the pickoff at 4.5MHz from the first video stage. This sound channel’s design, including the Foster-Seeley demodulator, is very similar to that of the Safari but with a higher output of 300mW. The balance of the circuitry, involving nine transistors, with eight lowvoltage and two high-voltage diodes, siliconchip.com.au Fig.2: this small section of the complete circuit shows the horizontal output stage (X20) which drives the deflection yoke. The horizontal output transformer (HOT) has a high voltage winding which drives the two thermionic diodes (HV1 & HV2) in a conventional voltage doubler rectifier circuit, to provide the +240V boost voltage for the CRT. separates the vertical and horizontal synchronising (sync) signals, produces the vertical and horizontal deflection power for the picture tube, and provides medium and high voltage supplies. These transistors are a mix of PNP and NPN types. The TV8-301’s vertical deflection circuit is similar to that of the Safari. The horizontal deflection circuit is also similar to that of the Safari, with the principal differences being that the medium and low-voltage supplies are derived from the horizontal output transformer. The TV8-301 generates a single medium-voltage +240V boost supply, by rectifying the large flyback pulse generated at the end of each scanned line as the horizontal output transistor is cut off and the deflection transformer/deflection coil magnetic fields collapse. The boost supply connects directly to the CRT as well as feeding +75V to the CRT and the video output stage via dropping resistors. Since the video output and CRT derive power from the horizontal circuitry (as shown in Fig.2), a set that gives “sound but no picture” is probably (like most TVs) indicating a loss of horizontal deflection. The main power supply uses a step-down mains transformer feeding 15VAC to a bridge rectifier. After filtering, the set receives +13V for all stages not fed by the horizontal output stage. The set can also run on an external 12V battery, rechargeable from the mains supply, or from a car battery adaptor lead. The major controls are clustered siliconchip.com.au towards the set’s rear, allowing clean cabinet lines that follow the CRT’s outline (a similar styling approach was taken with the very popular Pye Pedigree TV set manufactured years later). The only oddity is the un-labelled volume control: it’s the tall knob forward of the channel selector. Servicing and repairs Unlike the Safari’s “board on each side”, the TV8-301 uses the abovementioned motherboard and the three daughter boards sit like horseshoes over the neck of the CRT, giving a tightly packed assembly. This modular approach makes it easy to service. Deflection fault? Just pull the entire deflection board and swap in a good one. While this simplifies servicing, it does make repairs difficult. Boards will only work when plugged in to the motherboard, so extenders of some kind would be necessary to “sit” the boards up for easy access. In practice, I found myself removing a suspect board, soldering a lead to a test point, then reinserting the board and testing. It’s regrettable that items such as extender boards and other special tools are almost always junked as service centres downsize. Philip Nelson’s online article reports circuit board connector tarnishing, with a distinctive “fingerprint” pattern. I discovered very similar evidence – maybe we can get a forensic investigation team in and track down the culprit some day! Seriously, such deposits can cause long-term corrosion and bring otherwise fine and reliable equipment to a dead stop. Cleaning is easily done with alcohol and a Scotchbrite or similar scourer; definitely not steel wool. Chassis removal The main chassis slides “neatly” in to the case. Removal should be straightforward; undo the side and rear securing screws and slide the chassis out. Pry marks on the mating lip are a sure sign that someone hasn’t undone all screws before attempting disassembly. Be sure to also unscrew and loosen the underside speaker housing so that the cabinet’s speaker slot can expand and ease extraction. Getting it going Although I didn’t pay much attention at first, my TV8-301’s channel indicator light was dead. But so was the screen. It turns out that the channel indicator lamp is a neon running from the 240V DC supply picked off from the horizontal output stage. So if you’ve got a TV8-301 with no picture and no channel indicator, don’t suspect a dud tube, dead EHT rectifiers, burnt-out horizontal output transformer or other catastrophes. Maybe it’s just what I found – the horizontal drive setting is incorrect. So starting with a dead set, the questions was where to start? Connecting power to the battery input connector gave nothing. On examination, one contact leaf of the Off switch had been bent up away from the sliding contact. Gentle pressure returned it to its tensioned position. Now, applying power brought up sound but no picture. As well, it began April 2017  87 These two views inside the Sony TV8-301 show the densely packed assembly when the three daughter boards are in place. On the left, the daughter boards have been removed to reveal that they are ordinary phenolic PCBs. Note that the fingers of the daughter boards do not have their contacts gold-plated, so tarnishing of the copper was a problem. to smell hot. After turning off the power, I found that X20, the 2SC41 horizontal output transistor, was hot to the touch. A shorted horizontal output transformer or shorts in the high-voltage supplies are the most common causes; the transistor is switched into full saturation for some half of each horizontal line, so a short-circuited load (due to any cause) will see it drawing a lot of collector current. But it was just getting hot; not cooking. OK, did I have any high-voltage outputs? Yes, the B+ Boost was about 120V, about half the correct value and the EHT measured about 1.5kV, so I didn’t have a shorted output transformer. Sigh of relief! The output transistor’s collector waveform was distorted and less than its listed voltage of around 110V peak-topeak but again, a badly-shorted output circuit would have cut this pulse down to a few tens of volts. A careful look at the rectifier valves (EHT rectifier) inside the high-voltage screening failed to show any sign of lit filaments, but these are subminatures that don’t glow very brightly and the other low outputs probably meant that I wouldn’t see them lighting up either. In fact, the EHT rectifier comprises two diodes in a voltage doubler circuit. These are the only thermionic devices in the whole circuit (apart from the CRT). This would have been neces88  Silicon Chip siliconchip.com.au Above: this part of the servicing guide for the Sony TV8-301 shows the general specifications of the set for various regions in Europe and the US. sary because semiconductor diodes at the time did not yet have sufficiently high PIV ratings. Lifting the EHT doubler’s connection had no effect on the B+ boost. Reconnecting the EHT and removing the B+ boost had no useful effect either. So what about the drive to the horizontal output transistor? The transistor needs enough drive to force it into saturation, so low drive will give low deflection and, more importantly, low output from supplies run off the output transformer. Careful checking showed that the horizontal output drive was too high. Odd. A simple tweak brought the output stage’s drive voltage back to its correct value of around 9V peak-to-peak. This took the transistor out of overdrive (which I assume was being rectified at the base and putting it close to cut-off for too long). With the drive voltage fixed, the set came to life. I also noticed a distinctive glow from the two EHT rectifier filaments. And the channel indicator came on. After that, there was not much more to do, really. Check all other voltages, adjust the horizontal and vertical hold presets to run at 15625Hz and 50Hz for testing here in Australia, and that was about all. siliconchip.com.au The set’s original 4.5MHz FM sound channel works just fine, since my benchtop RF “beamer” has had its sound channel dropped down from 5.5MHz (Australian PAL) to the NTSC value of 4.5MHz. This was described in the previous article on the Philco Safari. Using it It looks, feels and carries like a portable telly should. It sits easily on a table or bench, without the Safari’s top-heavy appearance that suggests blowing over in the mildest of breezes. Since the CRT faceplate “fronts” the set, it is quite subject to screen reflections. The viewing hood does help with overhead illumination but even more than with the Safari, careful placement helps in viewing. The 300mW audio output is fine for indoors and adequate for outside use. And how good is it? Pretty good, actually. It’s the first TV set I’ve worked on that specifies an RF sensitivity. Sony claim “30 microvolts”. In practice, this is the minimum for a usable picture but it does at least help in determining whether the set’s gain and sensitivity are up to spec. At eight inches (200mm/20cm) diagonal the screen is large enough for viewing by two or three people. And like Sony’s later revolutionary “Walkman” (first generation), there are two earphone sockets for “buddy” listening. Would I buy another? Maybe. They do appear from time to time, though I’ve not seen the –E version, which would work directly on any CCIR/PAL RF converter, with its 5.5MHz sound IF. Perhaps one for the shed, one for the verandah? At least two different circuit diagrams exist. One shows an incorrect waveform (about 110V peakto-peak) at the collector of X19, the horizontal driver transistor. This should be the waveform for the X20 horizontal output collector, and is correct in the diagram available from www.radiomuseum.org Further reading A complete repair article appears on Philip Nelson’s fine website, along with many other restoration articles at: www.antiqueradio.org/Sony8301WTelevision.htm I must thank Ernst Erb for the schematic, from www.radiomuseum.org A complete description of horizontal output stages appears at: www.earlytelevision.org/damper. SC html April 2017  89 ASK SILICON CHIP Got a technical problem? Can’t understand a piece of jargon or some technical principle? Drop us a line and we’ll answer your question. Send your email to silicon<at>siliconchip.com.au Solar MPPT Charger question I have started building your Solar MPPT Charger & Lighting Controller from the February and March 2016 issues. There's something I don't understand in the circuit description. On page 32 of the February issue, you state that the gain of op amp IC2b is -45 however the op amp's negative rail is connected to ground (0V), so how can the op amp provide a negative output? Maybe it's not necessary to measure the panel current, since the firmware can adjust the PWM duty-cycle to maintain the constant MPPT voltage. Is that how it works? (M. C., via email) • The input voltage to op amp IC2b is negative, due to the direction that current flows through the 0.01W shunt resistor. So with a negative gain, the output of the op amp is positive (ie, above 0V) and hence no negative supply voltage is required. Note that while the voltage across the shunt is negative, because of the divider between it and the output of IC2b, the voltage at pin 6 does not ac- tually go negative; the op amp feedback maintains that pin voltage at 0V. The current does need to be measured so that the power can be calculated. The circuit is trying to find the solar panel voltage at which maximum power is achieved and thus power must be measured. It is calculated as current multiplied by voltage. It is not sufficient just to measure voltage to determine the maximum power transfer from the solar panel as this will vary depending on panel type, temperature, insolation and so on. Using alternate mode for Ultrasonic Cleaner I have built your Ultrasonic Cleaner (from the August 2010 issue) from an Altronics kit (K6021). While the "normal" mode works fine, I cannot get the unit to switch to the "alternate" mode. Holding the start button down while applying power does not even power the unit up (both LEDs are off and no sound produced). Any suggestions? (R. Z., via email) • Check that diode D4 is oriented correctly. If it is incorrectly oriented, this Ultrasonic Anti-fouling wiring and testing I have finished putting together the Jaycar KC-5498 kit for the Ultrasonic Anti-fouling (Silicon C hip , September & November 2010) but there is no instruction as to which colour wire goes where on the transducer out from the circuit board. Also, how do I adjust it? There are no testing steps in the instructions. (G. D., via email) • The wires to the transducer can be any colour and it does not matter which way they connect to the terminals. So long as you connect each of the two transducer wires to the two separate terminal entries, it should work. The only adjustment is for the 90  Silicon Chip 5V rail and this is described in the text under the section entitled Adjustment. The ultrasonic bursts are generated by software within IC2 and there is no adjustment required. If you want to test if the transducer is being driven, place the transducer onto a hard surface and power up the Ultrasonic Anti-fouling unit. The transducer should move slightly every few seconds as the drive signals pass through the transducer's resonance frequency. Alternatively, set a portable AM radio between stations; you should then be able to hear the hash from the driving circuitry when it's placed near the transducer wiring. would short the 5V supply when the start button is pressed. However, the fact that the power LED does not light suggests that the main 12V supply is off when the start button is pressed during power up. That's because the power LED is driven via the 12V supply. Check whether 12V is present at this time. Is Stationmaster safe for locomotive motors? I have some questions about the Stationmaster PWM train controller from the March 2017 issue. I built a PWM train controller, possibly ten years ago. It was quite a big unit with built-in transformer and walk-around throttle. I used it successfully with HO and N gauge layouts and found it to be "realistic". I then built a Z gauge layout and connected the same PWM controller to it, not using the walk-around throttle because of the layout size. The track voltage was limited to 9V by means of a resistor in series with the speed pot, if I remember correctly. I run a steam loco and noticed a rather loud "rattling" sound, especially at low speed and within a short time (1-2 minutes), the loco stopped dead on its track. It was very hot to the touch. The motor had burned out. It had run well with a normal (Märklin) transformer for several hours before. This new design appeals because of its small size but will a similar thing happen again and why? Is it because small motors have no flywheel, hence the rattling noise? Have you heard of similar problems with Z gauge or other small motors? By the way, CON2 on the Stationmaster circuit diagram appears to be drawn with all its terminals shorted. Also, LED4 is labelled as LED5 in the circuit diagram on page 36. (H. M., Bowral, NSW) • The Stationmaster will not cause rattling because it runs at a much higher PWM frequency of around 8-9.5kHz. However, that might be ausiliconchip.com.au Utilising solar power when the grid is down Being impressed with the reliability of solar electricity and the generous government rebates available several years ago, I (like many others) had a solar system fitted to my house. It has worked without any issues and has enabled me to save a moderate amount of money since it was commissioned. I would like to know if anyone has come up with a simple 12V charger that could be utilised by the HV solar DC supply that normally goes to the inverter. By law, when the grid supply fails, so too does the inverter’s output and electrical generation from the solar system. I see this as a lost opportunity. By simply connecting the solar plugs (that normally feed the solar inverter) into a charger that can supply 12V to charge a backup battery, this could provide enough power to run a 12V-to-230V inverter to keep your refrigerator and freezer running through the day. If there was enough battery backup, the available capacity could be dible from the locomotive, depending on its mechanism. If you want to try changing the frequency, you can do so by increasing the value of the 10nF capacitor between pins 6 and 7 of IC1. Thanks for bringing the circuit errors to our attention. We will publish errata and correct the diagram in the online version of the magazine. Faulty trimpot in Jacob's Ladder I just finished my second Jacob's Ladder kit (April 2007), and for some reason cannot get the same result as my first; VR1 seems to have no effect. I can get the spark to happen with VR2, but get no change when turning VR1. My first kit was great and I am unsure what would cause this. (D., by email) • You should be able to get a voltage change by adjusting VR1. So with a multimeter connected between pin 18 and 0V (GND) the voltage should vary between 0V and 5V as VR1 is adjusted. If this does not happen, there may be a fault with the trimpot (VR1) where the wiper is open circuit. Alternatively, there could be a dry joint siliconchip.com.au increased through the night but there is a trade-off with the cost of maintaining a lot of batteries. By disconnecting the mains and solar inverter from the solar panels, a well-designed backup system should be possible to employ, maintaining safety. An extension lead could supply 230VAC to your fridge and freezer from the inverter. I must stress that the backup system must not be connected to the house mains in any way as this is not only dangerous and illegal but there is no isolation from the grid. I have thought about fitting a solar array changeover switch to make a fully automatic system but I would be interested to hear if you know of a commercial solution as suggested. With the uncertainty and reliability in the electricity grid of recent times, I believe these are options that we need to look into, to help ourselves for emergency situations. (C. B., Geelong, Vic) • That's an interesting suggestion connection to one of the trimpot terminals or to pin 18 of IC1. Check also that pin 18 is not bent up under the IC so it does not make contact with the IC socket. Multiple pool pump failures We have a small above-ground swimming pool complete with pump, purchased for Christmas. After only four weeks, the pump failed; there was a bulge in one side of the area covered in epoxy resin. The pump is totally sealed with the mains lead going in through the resin; it is similar to a submersible pump. It was replaced under warranty. A week later, after only four hours of use, the replacement pump was tripping off the safety switch and again there was bulge in the area covered by the resin. Contacting the supplier, I was advised there must be a fault with my electricity service for two pumps to do this as they had no other complaints. I was initially asked to use a 15A extension lead as there could be a voltage drop in our 10A lead. but it is important to note that the solar panel supply to your grid-feed inverter will typically be around 360V DC so any step-down 12V charger is not likely to be a simple or inexpensive device. One possibility which might be workable would be to use a 230VAC to 12V DC switchmode power supply or high power battery charger. Given that the input to these switchmode power supplies is a bridge rectifier, it should be able to accept the high voltage DC from the solar panels. Such a switchmode 12V supply could probably be then used to directly drive a 12V to 230VAC inverter, possibly with a 12V lead acid battery also connected across the 12V DC rail. We must emphasise that we have not done any work on this concept and that any modifications to the connections between the solar panels and your existing grid-tied inverter may contravene the regulations for these installations. The pump is only rated at 16W and our lead is 6m long; this was suggested by the owner who tells me he was an electrician. I have enjoyed electronics for the last 55 years and although not an electrician, I feel I know enough that this is not the cause of the failure. I have tested the pump with my multimeter. It has a three-pin plug terminating 6mm flex which I believe to be threecore. There is a dead short between all three pins, suggesting the windings are touching the coil former which could have the earth wire attached. I believe the rotor is magnetically driven through the plastic for safety. Could my mains supply be at fault? Perhaps the voltage is too high? What else could cause this sort of failure – a mains surge? Overheating? Blocked pump? (G. H., Littlehampton, SA) • Why would a pump rated at 16W need a 10A or 15A extension lead? Surely the pump uses much more power than that. Even so, if a submersible pump or any pump trips your safety switch, the pump has failed. Simple. It has nothing to do with your mains supply. You can check your mains supply April 2017  91 Using LED Strobe circuit to fire high voltage coil I am experimenting with an ignition coil to generate a high voltage but am not sure what frequency or power to drive it at. I am considering using the August 2008 LED Strobe circuit as the coil driver. It provides an accurate, adjustable switching frequency. But instead of the output driving a BC337 transistor, I am planning to drive the input of an optocoupler (4N28) via a 1kW resistor, to isolate the strobe circuit from the coil. I would then use the output from the optocoupler to drive a power with your multimeter but we would be surprised if it was particularly high. The only situation in which your mains supply might be particularly high is if you live in an area where there are lots of houses with solar panel installations; that can lead to high local mains supply; perhaps above 250VAC. We're assuming that if it is indeed a submersible pump, it has been operated while submersed in water; submersible pumps often rely on the water for cooling and will quickly overheat and fail if run dry for more than a short time. Assuming you have been using it correctly, ask the supplier to replace your pump or give you a full refund. Or threaten to go to the consumer affairs /fair trading regulator in your state or territory and show them the pump. Capacitor quality and “audiophile” rip-offs I am about to start the renovation of a Playmaster 10 watt Stereo Amplifier (EL84 version published in Radio, TV & Hobbies, December 1959) together with a Playmaster 10 Stereo Pre-amplifier (Published in RTV&H, May 1960). Both units utilise electrolytic capacitors, polyester capacitors (“mustards”), polystyrene and silver mica capacitors – the majority, with the exception of the silver mica, need replacing. My question relates to the choice of replacements for the polyester and polystyrene capacitors. It seems that certain polyester capacitors have almost a cult following, eg, “mustards”, 92  Silicon Chip Mosfet (IRF540) which switches current through the coil. I would fit a diode across the coil inputs to protect the Mosfet and a resistor in series with coil to limit the current. I'm not sure whether I can use the strobe power supply to also power the coil. Any advice would be appreciated. (C. K., Parkhurst, Qld) • Whether you use the same supply or a different one for the LED strobe circuit and coil really depends on whether the supply voltage for each is the same and whether the coil supply will drop under load. “tropical fish” etc. Is there really a difference between reputable brands of polyester film capacitors or is this akin to the perceived difference in speaker and power cables? I was recently offered a mains cable for my Luxman 505uX for $1300 – Luxman themselves seem to think that a conventional IEC cable ($8) quite sufficient for their amplifier! In my last renovation of Mullard 5-10s (published in Silicon Chip, October 2014), I used Cornell Dubilier polyester film and the end result was fine, with low noise and distortion. I notice that in your Currawong amplifier, you use polyester film capacitors by Suntan and as far as I know these are considered to be a generic, good value product. So, assuming I am to replace all the “mustards” in both units (these have a 1960 third quarter date code), is it really necessary to pay a fortune for NOS or modern copies of the “mustards” when I can purchase modern metalised polyester film capacitors from reputable manufacturers for a fraction of the cost? (M. F., Mount Eliza, Vic) • In spite of the age of these Playmaster projects, we would be surprised if the plastic film capacitors, especially the polystyrene types, need replacing. If you do need to replace these capacitors, any general purpose metallised polyester, polypropylene or polcarbonate capacitors with adequate voltage ratings will be quite suitable. Do not pay high prices for NOS (new old stock) components if modern components can do the job. However, it is quite likely that you will have to replace many, if not all of You could test your circuitry with separate supplies as you have already catered for this by using an optocoupler for circuitry isolation. Then once you have established that your circuitry works, try to use the same supply for both, assuming the voltages are the same. You may need to isolate the LED strobe circuit supply from the coil with a low-value resistor or a diode and provide extra filtering with a larger electrolytic supply capacitor, to prevent noise from the coil upsetting the driving circuitry. the electrolytic capacitors and possibly some of the carbon resistors which may have drifted high in value. The manufacturers of Luxman amplifiers know far more about audio performance than the promoters of esoteric power leads, speaker cables, interconnects and whatever other "fabled" products are out there for gullible audio enthusiasts. The standard IEC power cable will work just fine. If you want to know more, we suggest you take a look at Douglas Self's book Small Signal Audio Design (reviewed in the May 2011 issue), which goes into quite some detail about the difference in performance between different types of capacitors, resistors and so on. In short, he finds that there is some difference in performance between various types of plastic film capacitors, most of them are only evident in equipment which already has a distortion level well below 0.001%. It's only in well-designed modern equipment with vanishingly low THD+N levels where, for example, a polypropylene capacitor will give a measureable improvement compared to a bog-standard polyester type. Courtesy Light Delay not wired correctly I purchased a Courtesy Light Delay kit (KC5392) from Jaycar in Hallam, Victoria last Friday, then assembled the kit on the same afternoon. When done, I tested it with a 12V battery rather than dismantle the car courtesy light and install it first. I wanted to make sure it worked off the siliconchip.com.au Run 12/24V Motor Speed Controller from 18V I have a project to motorise a billy cart with a 12V DC cordless drill motor and I want to use the 20A 12/24V DC Motor Speed Controller Mk.2 from your June 2011 issue. I have a number of 18V tools at home with their respective batteries and chargers and I was wondering if there was any way of using the speed controller with an 18V supply to run a 12V motor. (D. H., Maleny, Qld) • You can run a 12V DC motor from 18V provided that you set the upper car, a Nissan Pathfinder with a negative chassis. When connected across a 12V light globe wired to a lead-acid battery, it does not work as expected. The light comes on only when the negative wire from the globe touches negative on the battery, but when the wire is removed, the light doesn’t remain on. However, if the wire is left on the negative pole of the battery, the light stays on until time set by the pot is over then it dims and goes off. This shows that there is something wrong with this kit. (“valiantman”, via email) • The problem is that you are not wiring the Courtesy Lights Delay correctly. The door switch connections speed (with VR1) to provide up to an average of 12V. Do not run it up to full speed where the average voltage will be 18V or you might burn out the motor. You can increase the value of the 1kW resistor that's in series with VR1 so that the motor voltage is restricted to 12V with VR1 fully clockwise. Try a 3.3kW resistor. The lowvoltage cut-out should be set to suit the battery voltage. For an 18V supply, use a multiplication factor of 0.317. on the unit shown as D+ and D- are to connect across the door switch. In your diagram, you show that you have connected the door switch connections between battery positive and the lamp. Three horsepower motor drive wanted A good while ago (in April and May 2012), you described an Induction Motor Speed Controller that could drive a delta-wired 3-phase motor from a single phase supply. I don't think you've done anything similar since. My problem is slightly different: I have an old 3-phase motor wired in a Y or star configuration. Importantly, it only exposes one end of each of the motor's coils at its connection point. The common connection point is (presumably) buried deep in the motor and I am somewhat unwilling to pull the whole thing apart to see if I can find this common connection point. Can a Y-configured 3-phase motor also be driven from a single phase input? Have you considered describing a suitable device? My motor is rated at a nominal 3 HP (ie, about 2.25kW) so I'd really like something which can handle that much power if possible. Finally, I'd be using it in my garage, where I have a 15A outlet, if this is needed. (G. B., via email) • There are three problems with your proposal. First, you cannot make a three-phase motor run with only one of its phases energised. At the very least, you would need two phases energised with the second phase coupled via a capacitor to produce a rotating magnetic field (similar to a capacitorrun single phase motor). However, even if you did cobble some sort of split-phase arrangement from a single phase, you would not have enough voltage to drive a threephase motor, which normally runs from 415VAC. Second, we would not recommend any attempt to access the common connection for an old Y-connected motor. Any disturbance of the windings or connections is likely to lead to subsequent failure. Third, our Induction Motor Speed Controller has a output power rating Radio, Television & Hobbies: the COMPLETE archive on DVD YES! A MORE THAN URY NT CE R TE AR QU ONICS OF ELECTR HISTORY! This remarkable collection of PDFs covers every issue of R & H, as it was known from the beginning (April 1939 – price sixpence!) right through to the final edition of R, TV & H in March 1965, before it disappeared forever with the change of name to EA. For the first time ever, complete and in one handy DVD, every article and every issue is covered. If you’re an old timer (or even young timer!) into vintage radio, it doesn’t get much more vintage than this. If you’re a student of history, this archive gives an extraordinary insight into the amazing breakthroughs made in radio and electronics technology following the war years. And speaking of the war years, R & H had some of the best propaganda imaginable! Even if you’re just an electronics dabbler, there’s something here to interest you. Please note: this archive is in PDF format on DVD for PC. Your computer will need a DVD-ROM or DVD-recorder (not a CD!) and Acrobat Reader 6 or above (free download) to enable you to view this archive. This DVD is NOT playable through a standard A/V-type DVD player. Exclusive to: SILICON CHIP siliconchip.com.au ONLY 62 $ 00 +$10.00 P&P Order now from www.siliconchip.com.au/Shop/3 or call (02) 9939 3295 and quote your credit card number. April 2017  93 Source code for 12V to 230VAC Sinewave Inverter Could you please send me a copy of the source code for the variable speed drive in April 2012’s edition. I would like to learn more about PIC assembly language and also want to build a 12V DC to 230VAC pure sinewave inverter with a similar sort of circuit. Do these circuits usually feed a 12V PWM sinewave signal through a transformer primary to get the 230VAC or do they just create a 230VAC sinewave with a higher voltage that has already been stepped up and rectified? Any help would be greatly appreciated. (R. B., via email) • It has not been our policy to provide the source code for the Induction Motor Speed Controller project since alterations to it are extremely likely to cause catastrophic failure in the inverter circuitry, as we know from our own experience in developing that project. In any case, what we have done in that speed controller is not of 1.5kW or 2 HP. That figure is limited by the driving circuitry, its efficiency and the 10A limit of a normal 230VAC 10A GPO (ie, standard domestic power point). Even with a 15A GPO, there is no way that the power output can be increased to reliably drive a 3HP motor which would still need to be wired in delta configuration. 24VAC to 24V DC power supply wanted I was wondering if Silicon Chip could assist me with sourcing or constructing a power supply. It needs to operate with a 24VAC input, 24V DC output and rated to at least 100VA. I realise that one option is to simply put a bridge rectifier on the 24VAC supply and then connect it to a standard DC/DC converter, however, I believe that this may cause some problems with regard to the correct operation of the DC/DC converter. I have searched far and wide for an off-theshelf unit which can fulfil my requirements, all to no avail. (R. P., Burnett Heads, Qld) • If you use a 10A bridge rectifier such as the BR106 and two 4700µF 50V ca94  Silicon Chip directly applicable to what would be needed for a 12V to 230VAC sinewave inverter. As far as we know, any practical design capable of reasonable power and efficiency uses a high frequency boost converter to step up to about 360V DC or more and then uses a PWM bridge circuit to synthesise a 50Hz (or 60Hz) sinewave modulated waveform (note that word “synthesise”). It is then necessary to have LC circuitry to remove the high frequency switching artefacts to produce a clean sinewave. If you want to know how the Induction Motor Speed Controller works, we suggest you closely read the explanation in the April 2012 article and particularly the section which mentions a “squashed” sinewave. Note that the April 2012 design is essentially a 3-phase variable frequency variable voltage speed controller and it is only intendpacitors for filtering (to give ~4V ripple at 4A), you will have about 33V DC unloaded. This could be regulated down to 24V DC with an LM338 regulator. A 1.1°C-rated fan-type heatsink with fan cooling will be necessary to keep the regulator cool. The NDS-packaged device should be used. Note though that while this will do the job, it is an inefficient solution. You could replace the LM338 with a DC/DC converter as you have suggested and it should have no problem running from this supply as long as it's rated to operate off 30-36V when producing 24V DC. However note that DC/DC converters can generate a fair amount of high-frequency hash, both radiated and in their DC output; whether this matters or not depends on your application. Alternatively, if you can use 230VAC mains instead of 24VAC, a switchmode supply such as the Jaycar MP-3189 (24V at 6.5A) would be suitable. DIY Bluetooth receiver wanted Has Silicon Chip ever done a Bluetooth receiver that works with iPhone/ ed for use with single phase and 3-phase induction motors. Its output device is a 3-phase bridge with six IGBTs. The main functions of such a variable speed drive are not needed for a single-phase sinewave inverter. However, since 3-phase IGBT bridges are now available quite cheaply, it might well be practical approach to use a 3-phase IGBT bridge in a sinewave inverter. If you want to read a comprehensive description on how a sinewave inverter (with boost converter) works, have a look at our 2kW 24V DC to 240VAC inverter from the October 1992 issue. This was published over five months from October 1992 to February 1993 but you only need to read the description in the first issue. By the way, these days a high-power DIY sinewave inverter is not a practical proposition since commercial units are much cheaper and definitely more reliable. iPad/other smart units? Perhaps there is a project possibility for enabling the iPhone to drive a good set of speakers with Bluetooth connectivity? (J. K., Castlecrag, NSW) • Commercial Bluetooth audio dongles are so cheap now (just a few dollars) that there isn't much point even trying to build one. We did purchase a Bluetooth audio module but the data on it was woefully inadequate and we couldn't get it to work reliably. Problem with Garage Parking Assistant I've built the Micromite Garage Parking Assistant from the March 2016 issue but it doesn't seem very stable. The coloured screens and number display are changing continually even when a fixed object is placed in front of the sensor. Any suggestions to solve this would be appreciated. (G. O., Ringwood, Vic) • The first thing that you should check is your 5V power supply. A number of readers have reported erratic operation of the distance sensor when using a USB charger for the power supply. If possible, it would be siliconchip.com.au MARKET CENTRE Cash in your surplus gear. Advertise it here in SILICON CHIP Where do you get those HARD-TO-GET PARTS? FOR SALE PCB MANUFACTURE: single to multi­ layer. Bare board tested. One-offs to any quantity. 48 hour service. Artwork design. Excellent prices. Check out our specials: www.ldelectronics.com.au Where possible, the SILICON CHIP On-Line Shop stocks hard-to-get project parts, along with PCBs, programmed micros, panels and all the other bits and pieces to enable you to complete your SILICON CHIP project. SILICON CHIP LEDs, BRAND NAME and generic LEDs. Heatsinks, fans, LED drivers, power supplies, LED ribbon, kits, components, hardware, EL wire. www.ledsales.com.au tronixlabs.com - Australia’s best value for hobbyist and enthusiast electronics from adafruit, DFRobot, Freetronics, Raspberry Pi, Genuino and more, with same-day shipping. PCBs MADE, ONE OR MANY. Any format, hobbyists welcome. Sesame Electronics Phone 0434 781 191. sesame<at>sesame.com.au www.sesame.com.au WANTED WANTED: EARLY HIFIs, AMPLIFIERS, Speakers, Turntables, Valves, Books, Quad, Leak, Pye, Lowther, Ortofon, SME, Western Electric, Altec, Marantz, McIntosh, Tannoy, Goodmans, Wharfe­ On-Line SHOP www.siliconchip.com.au/shop dale, radio and wireless. Collector/ Hobbyist will pay cash. (07) 5471 1062. johnmurt<at>highprofile.com.au KIT ASSEMBLY & REPAIR KEITH RIPPON KIT ASSEMBLY & REPAIR: * Australia & New Zealand; * Small production runs. Phone Keith 0409 662 794. keith.rippon<at>gmail.com VINTAGE RADIO REPAIRS: electrical mechanical fitter with 36 years ex­ p erience and extensive knowledge of valve and transistor radios. Professional and reliable repairs. All workmanship guaranteed. $10 inspection fee plus charges for parts and labour as required. Labour fees $35 p/h. Pensioner discounts available on application. Contact Alan on 0425 122 415 or email bigal radioshack<at>gmail.com DAVE THOMPSON (the Serviceman from SILICON CHIP) is available to help you with kit assembly, project troubleshooting, general electronics and custom design work. No job too small. Based in Christchurch, NZ but service available Australia/NZ wide. Email dave<at> davethompson.co.nz ADVERTISING IN MARKET CENTRE Classified Ad Rates: $32.00 for up to 20 words plus 95 cents for each additional word. Display ads in Market Centre (minimum 2cm deep, maximum 10cm deep): $82.50 per column centimetre per insertion. All prices include GST. Closing date: 5 weeks prior to month of sale. To book, email the text to silicon<at>siliconchip.com.au and include your name, address & credit card details, or phone Glyn (02) 9939 3295 or 0431 792 293. worth testing the complete backpack/ sensor using a lab power supply or by using alternative USB supplies such as a computer's USB outlet. Fixed frequency Ultrasonic Cleaner Could you please put me in touch someone experienced in writing the source code for PICs. I am especially interested in the code used for Ultrasiliconchip.com.au sonic Cleaner project (August 2010). I would like to discuss whether there is a simple way of modifying source code to generate a single frequency output from the transducer. I would appreciate very much your help and support. (M. T., Vic) • We do have a version that runs at either 28kHz continuously or 40kHz continuously. The frequency is changed from one to the other by holding the start switch pressed when the ultrasonic cleaner is powered up. The ASM and HEX files are available upon request. If you are after different frequencies, you can compare the values for each frequency shown in the lookup table that is labelled SWEEP1 and SWEEP2 with those used in the original assembler file “ultrasonic cleaner.asm”, which is available for download from our website. See www.siliconchip. com.au/Shop/?article=244 SC April 2017  95 Next Month in Silicon Chip Getting Started with the Micromite, Part Three Advertising Index In the third part of Geoff Graham's MMBasic programming tutorial, he covers some more advanced subjects such as data types, arrays and drawing text on an LCD screen. Allan Warren Electronics........... 95 Industrial Robots Altronics...............................64-67 Dr David Maddison takes an in-depth look at the history of industrial robots, which perform many important tasks with a speed and precision that humans can't match. Digi-Key Electronics.................... 3 How to use LTspice to simulate circuits Emona Instruments................. IBC The first in a series of easy-to-follow, step-by-step tutorials on using the free LTspice Windows circuit simulation software from Linear Technology. Hare & Forbes....................... OBC Ultrasonic Anti-fouling for Boats, Mk2 High Profile Communications.... 95 This revised anti-fouling unit drives two transducers, has soft-start to prevent nuisance fuse blowing, simplified set-up and neon indicators to show output activity. Jaycar ........................... IFC,45-52 1000:1 6GHz+ Prescaler Keith Rippon Kit Assembly........ 95 Allows a standard frequency counter to be used for signals up to 6GHz and beyond. Has a selectable division ratio for better resolution with intermediate frequencies. LD Electronics........................... 95 Note: these features are prepared or are in preparation for publication and barring unforeseen circumstances, will be in the next issue. The May 2017 issue is due on sale in newsagents by Thursday April 27th. Expect postal delivery of subscription copies in Australia between April 27th and May 12th. Notes & Errata Pool Lap Counter, March 2017: on the circuit diagram two 1kW resistors are SC missing between the bases of Q4 & 6 and the collectors of Q3 & 5 respectively. Both are shown correctly on the PCB and are listed in the parts list. Stationmaster, March 2017: on page 36, Fig.2, LED5 is mistakenly listed twice, LED4 is the one closest to CON3. Also, CON2 is shown with all its connections shorted on Fig.2, the PCB has the correct connections made. Squash and Ping-Pong, Circuit Notebook, February 2017: Trimpot VR1 should be connected directly to the +5V rail rather than junction of the reset switch and 100nF capacitor. If this is not done, the speed of the ball cannot be properly adjusted. Voltage/Current Reference with Touchscreen, October & December 2016: in the overlay diagram (Fig.3) on page 66 of the December 2016 issue, a 10nF capacitor is shown below and to the right of IC3 (near the centre at the top of the board). This should be 100nF instead, to reduce noise in the output. It is shown correctly in the circuit diagram in the October issue, between pins 1 and 2 of IC5a, and listed correctly in the parts list. The PCB correctly shows this as 100nF on the silkscreen. SemTest, February, March & May 2012: in the parts list on page 86 in May 2012, SCR1 is incorrectly listed as a TYN812 semiconductor, where it should be a TYN816. LEDsales................................... 95 Master Instruments................... 95 Microchip Technology................ 17 Mouser Electronics...................... 5 Ocean Controls........................... 9 Pakronics................................... 24 Rohde & Schwarz........................ 7 Sesame Electronics.................. 95 SC Online Shop...................82-83 SC Radio & Hobbies DVD......... 93 Silicon Chip Binders.................. 13 Silicon Chip Wallchart............... 57 Silicon Chip Subscriptions......... 25 Silvertone Electronics................ 24 Tronixlabs............................. 11,95 WARNING! SILICON CHIP magazine regularly describes projects which employ a mains power supply or produce high voltage. All such projects should be considered dangerous or even lethal if not used safely. Readers are warned that high voltage wiring should be carried out according to the instructions in the articles. When working on these projects use extreme care to ensure that you do not accidentally come into contact with mains AC voltages or high voltage DC. If you are not confident about working with projects employing mains voltages or other high voltages, you are advised not to attempt work on them. Silicon Chip Publications Pty Ltd disclaims any liability for damages should anyone be killed or injured while working on a project or circuit described in any issue of SILICON CHIP magazine. Devices or circuits described in SILICON CHIP may be covered by patents. SILICON CHIP disclaims any liability for the infringement of such patents by the manufacturing or selling of any such equipment. SILICON CHIP also disclaims any liability for projects which are used in such a way as to infringe relevant government regulations and by-laws. Advertisers are warned that they are responsible for the content of all advertisements and that they must conform to the Competition & Consumer Act 2010 or as subsequently amended and to any governmental regulations which are applicable. 96  Silicon Chip siliconchip.com.au “Rigol Offer Australia’s Best Value Test Instruments” Oscilloscopes RIGOL DS-1000E Series NEW RIGOL DS-1000Z Series RIGOL DS-2000A Series 450MHz & 100MHz, 2 Ch 41GS/s Real Time Sampling 4USB Device, USB Host & PictBridge 450MHz, 70MHz & 100MHz, 4 Ch 41GS/s Real Time Sampling 412Mpts Standard Memory Depth 470MHz, 100MHz & 200MHz, 2 Ch 42GS/s Real Time Sampling 414Mpts Standard Memory Depth FROM $ 469 FROM $ ex GST 579 FROM $ ex GST 1,247 ex GST Function/Arbitrary Function Generators RIGOL DG-1022 NEW RIGOL DG-1000Z Series RIGOL DG-4000 Series 420MHz Maximum Output Frequency 42 Output Channels 4USB Device & USB Host 430MHz & 60MHz 42 Output Channels 4160 In-Built Waveforms 460MHz, 100MHz & 160MHz 42 Output Channels 4Large 7 inch Display ONLY $ 539 FROM $ ex GST Spectrum Analysers 971 FROM $ ex GST Power Supply RIGOL DP-832 RIGOL DM-3058E 49kHz to 1.5GHz, 3.2GHz & 7.5GHz 4RBW settable down to 10 Hz 4Optional Tracking Generator 4Triple Output 30V/3A & 5V/3A 4Large 3.5 inch TFT Display 4USB Device, USB Host, LAN & RS232 45 1/2 Digit 49 Functions 4USB & RS232 1,869 ONLY $ ex GST 649 ex GST Multimeter RIGOL DSA-800 Series FROM $ 1,313 ONLY $ ex GST 673 ex GST Buy on-line at www.emona.com.au/rigol Sydney Tel 02 9519 3933 Fax 02 9550 1378 Melbourne Tel 03 9889 0427 Fax 03 9889 0715 email testinst<at>emona.com.au Brisbane Tel 07 3392 7170 Fax 07 3848 9046 Adelaide Tel 08 8363 5733 Fax 08 83635799 Perth Tel 08 9361 4200 Fax 08 9361 4300 web www.emona.com.au EMONA