Practical EElleeccttrroonniiccss The UK’s premier electronics and computing maker magazine Circuit Surgery KickStart Make it with Micromite Using distortion and Exploring DACs and MMBASIC + RPi Pico + display distortion circuits microcontrollers = PicoMite Backpack! WIN! Microchip SAM V71 XXppllaaiinneedd UUllttrraa Multi-purpose Battery Evaluation Kit WIN! Manager Retro gaming with Nano Pong! FFlloowwccooddee DDDiiigggiiitttaaalll CCCllloooccckkk DDDeeesssiiigggnnn Simple Flowcode MIDI C void interrupt(void) { if (intcon & 4) { Assembly Music cFol(Ce);aMr__IbNitT(iEntRcoRnU, P2T);_TMR mbsof vSlwTA DT′U7′S, RP0 bcf STATUS, RP1 Hex movwf _adcon1 Keyboard mmoovvwlwf D_o′1p9ti2o′n_reg ::00480000000800008FA000011F20208S30730 EF10000 :10001000040EF2000A0 EF300BA110A122928352 86C :2000200D928FE28073 PPLLUUSS!! Aug 2022 £5.49 TTeecchhnnoo TTaallkk –– TTiimmee ffoorr aa ttoottaall rreetthhiinnkk?? 08 CCooooll BBeeaannss –– TToouucchh--sseennssiittiivvee rroobboottss aanndd uussiinngg sseerrvvooss 9 772632573023 Net Work – The irresistible rise of automotive electronics www.electronpublishing.com @practicalelec practicalelectronics Put the “Smart” in Smart Home Easy Design with the PIC16F18076 Family of MCUs No matter what you’re building, the PIC16F18076 family of MCUs can help you create faster, more feature- rich smart home technology. Now, you can easily add capacitive touch buttons, control motors, integrate IoT connectivity and monitor system health using the family’s on-chip smart peripherals. And, these cost- effective MCUs integrate seamlessly with our latest GUI-based code configuration tools for a refreshingly simple development experience. Start building your next smart home appliance today using Curiosity Nano rapid prototyping hardware. Key Features • 8 to 44-pin packages • 3.5 KB to 28 KB of internal memory • CPU Speed up to 32 MHz • 10-bit Analog-to-Digital Converter with Computation (ADCC) • Automated Capacitive Voltage Divider (CVD) • 8-bit Digital-to-Analog Converter (DAC) module The Microchip name and logo and the Microchip logo are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. All other trademarks are the property of their registered owners. © 2022 Microchip Technology Inc. All rights reserved. microchip.com/PIC16F180 MEC2423A-UK-05-22 Practical Volume 51. No. 8 August 2022 ISSN 2632 573X Electronics Contents Projects and Circuits Multi-purpose Battery Manager by Tim Blythman 14 (cid:37)uilding on our recent (cid:37)attery (cid:48)ulti (cid:47)ogger(cid:15) this design not only (cid:80)onitors (cid:90)hat(cid:183)s going on but also connects and disconnects loads based on battery charge state. Simple MIDI Music Keyboard by Tim Blythman 26 (cid:55)his (cid:48)(cid:44)(cid:39)(cid:44) (cid:46)ey(cid:69)oard is a (cid:73)ollo(cid:90)(cid:16)u(cid:83) to our (cid:25)(cid:23)(cid:16)(cid:78)ey (cid:48)(cid:44)(cid:39)(cid:44) (cid:48)atri(cid:91). (cid:44)t is (cid:77)ust as (cid:193) e(cid:91)i(cid:69)le and offers an easy way to make music, plus it can be repurposed for many other uses. Nano Pong by Tim Blythman 30 Our Nano Pong game is modern and retro at the same time; it replaces the 70-odd discrete logic chips in the original with a single chip that costs about £1! USB Power Delivery Chargers by Jim Rowe 36 Learn about low-cost modules that have appeared recently to take advantage of the dramatic growth in USB capability, especially in the area of power delivery (PD). Series, Features and Columns Techno Talkby Mark Nelson 8 Time for a total rethink? Net Work by Alan Winstanley 10 A round-up of topical technological issues and trends from the UK and Flowcode around the world. Make it with Micromite by Phil Boyce 40 C Part 38: How to build a PicoMite BackPack void interrupt(void) { if (intcon & 4) { Assembly KickStart by Mike Tooley 47 clear_bit(intcon, 2); Fo(C);M_INTERRUPT_TMR mbsof vSlwTA DT′7U′S, RP0 Part 9: Exploring microcontroller digital-to-analogue conversion bcf STATUS, RP1 Hex mmmooovvvlwwwff D__ao′1dp9cti2oo′nn1_reg ::E00F48100000000008000008FA000011F20208S30730 (cid:48)Flaas(cid:91)h(cid:183)sin Cg oLoElD (cid:37)se aannds d(cid:67)ryo o(cid:46)linagx eTnhgei n(cid:46)eaegrsn i–fi cPeanrtt 30 54 :10001000040EF2000A0 EF300BA110A122928352 86C Flowcode Graphical Programmingby Martin Whitlock 58 :2000200D928FE28073 Part 5: Building a Digital Clock Circuit Surgery by Ian Bell 65 Distortion and distortion circuits – Part 3 Regulars and Services Wireless for the Warrior 2 Subscribe to Practical Electronics and save money 4 Reader services – Editorial and Advertising Departments 7 Editorial 7 The power of batteries Exclusive Microchip reader offer 9 Win a Microchip SAM V71 Xplained Ultra Evaluation Kit PE Teach-In 8 25 Practical Electronics PCB Service 70 PCBs for Practical Electronics projects Classifi ed ads and Advertiser inde(cid:91) (cid:26)(cid:20) Next month! – highlights of our next issue of Practical Electronics 72 MMaaddee iinn tthhee UUKK.. Written in Britain, Australia, the US and Ireland. Read everywhere. © Electron Publishing Limited 2022 Copyright in all drawings, photographs, articles, technical designs, software and intellectual property published in Practical Electronics is fully protected, and reproduction or imitation in whole or in part are expressly forbidden. The September 2022 issue of Practical Electronics will be published on Thursday, 4 August 2022 – see page 72. Practical Electronics | August | 2022 1 WIRELESS FOR THE WARRIOR by LOUIS MEULSTEE THE DEFINITIVE TECHNICAL HISTORY OF RADIO COMMUNICATION EQUIPMENT IN THE BRITISH ARMY The Wireless for the Warrior books are timeframe saw the introduction of VHF FM a source of reference for the history and and hermetically sealed equipment. development of radio communication equipment used by the British Army from the Volume 3 covers army receivers from 1932 to very early days of wireless up to the 1960s. the late 1960s. The book not only describes receivers specifi cally designed for the British The books are very detailed and include Army, but also the Royal Navy and RAF. Also circuit diagrams, technical specifi cations covered: special receivers, direction fi nding and alignment data, technical development receivers, Canadian and Australian Army history, complete station lists and vehicle receivers, commercial receivers adopted by the fi tting instructions. Army, and Army Welfare broadcast receivers. Volume 1 and Volume 2 cover transmitters Volume 4 covers clandestine, agent or ‘spy’ and transceivers used between 1932-1948. radio equipment, sets which were used by An era that starts with positive steps special forces, partisans, resistance, ‘stay taken to formulate and develop a new behind’ organisations, Australian Coast series of wireless sets that offered great Watchers and the diplomatic service. Plus, improvements over obsolete World War I selected associated power sources, RDF and pattern equipment. The other end of this intercept receivers, bugs and radar beacons. ORDER YOURS TODAY! JUST CALL 01202 880299 OR VISIT www.electronpublishing.com QPOua Bsoaxr E69le3c5t,r oBnisihcosp Lsi mStiotertdfo rd ADPoellls ipvtareigcryee s-& i£ n4Pc.al9uc5dk :ei nU 2gK0 %OMp aVtiiAnolTna.sn F d(rU eNpee UtxotK 1D Kmagya ignDrloeaslnisvd ew dreyei gl-i hv£te9):r. y9U 5oK :n PS olteradanesderas or odrdv e2er-r 5 o£ nD6li0an.ye CM23 4WP, United Kingdom if you reside outside the UK (our website will calculate postage for you). Payment: We accept all major credit/debit cards. Make UK cheques/PO’s TEe-ml: a0i1l:2 s7a9l e4s6@77q9u9a sarelectronics.co.uk !Pp!al eOyaarsdbeel erv otisoni tlQi noueua rfs ooarnr rlEienldeeuc sctrheoodnp ipc nrsioc Lwei m pfooitrse tfdau glale nd dae ntiandic lfslau sodtfe do Pev&sepPr a 1dt0ce0ht0a ! i!el eledc atrboonviec. kits, Web: quasarelectronics.co.uk projects, modules and publications. Discounts for bulk quantities. Solutions for Home, Education & Industry Since 1993 Bidirectional DC Motor Speed Controller Digitally Controlled FM Radio Kit Control the Build your speed of own mod- most com- ern, high mon DC quality FM motors receiver (rated up to project with 32Vdc/5A) excellent in both the sensitivity forward and powered Official Main Dealer stocking the reverse by a simple full range of Kits, Modules, Ro- directions. The range of control is from fully 9V PP3 bots, Instruments, Tools and OFF to fully ON in both directions. The direc- battery (not included. Auto-seeking button. 4 tion and speed are controlled using a single station presets. Volume control. Excellent much, much more... potentiometer. Screw terminal block for con- learning project for schools and colleges. nections. PCB: 90x42mm. Not suitable for Order Code: MK194N - £20.39 Electronic Kits & Modules use with lead acid batteries! We have a massive selection of self- AKsit sOermdbelre Cd oOdred:e 3r 1C6o6dKeT: A- £S1391.6966 - £29.95 Audio Analyser Display Kit assembly electronic kits and pre- assembled modules. Please see the full 3 Channel RGB LED Light Organ Kit range on our website or call for details. LED Buddy / LED Tester Kit Hold any type of LED to Small, compact LCD display, ideal for panel the con- 3 outputs react to different sound frequen- mounting. Give your homemade audio gear tact pads cies. On-board microphone picks up sur- a high-tech look. Upgrade existing equip- to see it's rounding sound or music and drives the low, ment. Provides Peak Power, RMS Power, polarity, mid & high frequency outputs. Connect a 12- Mean dB, Peak dB, Linear Audio Spectrum forward voltage & the recommended series 24Vdc RGB LED strip or separate colour And 1/3 Octave Audio Spectrum. Auto / resistor value. Adjustable target current & LED strips or LEDs (not included). Master & Manual range selection. Peak-hold function. forward voltage. Great design aid. separate channel sensitivity adjustment. 1.25 Speaker impedance selection. Order Code: WSMI198 - £16.66 A max. per channel. Panel mountable facia Order Code: K8098 - £38.39 127 x 44mm. Terminal block or jack power 5-in-1 Mechanical Coding Robot Kit supply connection. Control knobs included. Electronic Component Tester Kit Mission-based, entry Order Code: WSL209 - £14.10 Build your level STEM (Science - own versa- Technology - Engi- Stereo Preamplifier with Tone Controls tile compo- neering - Mathemat- Hi-fi quali- nent test- ics) coding robot de- ty stereo er. Shows signed to inspire users preampli- value and to learn about me- fier board pin layout chanical engineering with very infor- & coding basics. Sol- pleasing mation for derless assembly. 2x AAA battery powered perfor- resistors (not included). Aged 14+. mance. (0.1 Ohm Order Code: KSR19 - £32.95 £29.95 Volume resolution, control max. 50 MOhm), coils (0.01mH - 20H), ca- Stereo Ultrasonic Bat Detector Kit with inte- pacitors (28pF - 100mF), diodes, BJT, JFET, grated power switch. +/-15 dB Bass and E-IGBT, D-IGBT, E-MOS & D-MOS. Treble tone controls. Channel balance con- Order Code: K8115 - £44.15 trol. RCA jacks f or audio inputs. Up to 20 dB of voltage gain. Selectable loudness func- LCD Oscilloscope Educational Kit tion. Philips TDA1524A based circuit. Build your own Kit Order Code: 3100KT - £23.95 LCD oscillo- Assembled Order Code: AS3100 - £32.95 scope with this exciting new The Lady Soldering Kit kit. Learn how Meet the Lady! This self- to read signals. This exciting, educational & fun kit converts assembly soldering kit See the elec- high frequency sounds (20 - 90kHz) normally includes both through- tronic signals imperceptible to humans like bat signals into hole and SMD compo- you learn about audible noise. Can also help detect failures nents, LEDs plus a beau- displayed on your own LCD oscilloscope. in machines, engines, etc. Stereo feature tiful red and white PCB. Despite the low cost, this oscilloscope kit adds the possibility to pinpoint the source. Order Code: WSAK206 - £8.99 has a lot of features found on expensive Frequency range 20-90kHz. 3.5mm jack units like signal markers, frequency, dB, true oteurtiepsu ta. n1d2 9sxte6r0exo4 h0emamdp. hRoenqeusi r(enso t3 ixn cAluAd ebda)t.- Card Sales RseMtuSp rfuenacdtoiounts w ailnl dg emt yoorue .g Aoi npgo iwne ar ffulal sahu!t o- Order Code: K8118 - £20.39 & Enquiries Order Code: EDU08 - £48.54 Practical EElleeccttrroonniiccss UK readers SAVE £1 on every issue SU PPrraaccttiiccaaBll S PPCrraaccttiiccaall RI B PPrraaccttiiccaaEll N PPrraaccOttiiccaall W PPrraacctt!iiccaall EEEllleeeccctttrrrooonnniiicccsss EEEllleeeccctttrrrooonnniiicccsss EEEllleeeccctttrrrooonnniiicccsss EEEllleeeccctttrrrooonnniiicccsss EEEllleeeccctttrrrooonnniiicccsss TThhee UUKK’’ss pprreemmiieerr eelleeccttrroonniiccss aanndd ccoommppuuttiinngg mmaakkeerr mmaaggaazziinnee TThhee UUKK’’ss pprreemmiieerr eelleeccttrroonniiccss aanndd ccoommppuuttiinngg mmaakkeerr mmaaggaazziinnee TThhee UUKK’’ss pprreemmiieerr eelleeccttrroonniiccss aanndd ccoommppuuttiinngg mmaakkeerr mmaaggaazziinnee TThhee UUKK’’ss pprreemmiieerr eelleeccttrroonniiccss aanndd ccoommppuuttiinngg mmaakkeerr mmaaggaazziinnee TThhee UUKK’’ss pprreemmiieerr eelleeccttrroonniiccss aanndd ccoommppuuttiinngg mmaakkeerr mmaaggaazziinnee CELMxipr3cl5ou rtiiten mgS upthr gsee enrsyor AVAVAoouuuccdddooiiooiddo PPee SSOrr::UU ut CMdCMdeeaaoobbssoooottllee uuBBrrnniinneeccggaaee ssnnwwssiittcchh CERxoiprycelourr iiotn sgSc uitllhraget eorry AVaVaoossussccdeeoommiddobbee Orrllyy fifi unntaall WSgWSgmmaaiirrnnaaddddlleell-- nnsstt ucucssaaeerrbbtlltee--iinn uueepp EBeEBelllluueeeeiiccllccddttttiirrnnrrooooggnnnn iiaacciicc ssbb ttBBuueeududtthhiiggllooddeessiittnnccooggpp BBeelloocckkss CDdiiissrttcoourrttiitioo Snn u caringrcdeu ritys ADdDdeeeeu--ssdiittgghhionnuuii mmnnOggppu aacct iipprrccrruuaaiiccttttiiccaall MCEMCElleeooaaccddkktteeeerroo ffiionnottiirr ccw w aa DDiinnttoo hhiiBBoo MMuurr ttLLiittcocooorcrcnnookk--mmbbaaiittsseeeedd CSainmirdcu udlaiitst tinSogurt ridoginset croyirrtciounit s AUaUauussuiiddnndiiggooio tteerr aaOlleennccussttfftrroooorrnnmmiicceessrrss iinn MIRMIRnnaassaattssaakkppeellbblliinn eeiiggttrr rr wwyyMM iiPPMMttiihh BBPP AMAMiiccSSooiicIcICCrroo oommnn iiaattee CUdisisritncogur tidito isSnt uocrrigrtcioeunrity sand KEmEmxxiiicppccrrkllooooSrrcciitnnooaggnnr tttDDrrooAAllllCCeerrssss aanndd MM=MM= PPMMaaiiccBBkkooeeAAMM SSiittIIiiCCtt wwee + +BBiitt RRaahhPPcc MMiikk PPppiicciicacarrooccoo kk+m+m!! ddiittiiseesppllaayy HBHBaaiiggtthhttFloeew--codrrcceyyuu BBrrrraaeellnnaattnncceerr 6M644a--tkkreeixyy MMIIDDII DDDiiigggiiitttaaaUUUlll nnnFFFiiiXXXttt 0CoooACoAuuuunnoorrrraamm iiiillmmmmooppggllppppeeuuDDrrrrtteeeeeeiiiinnggssss VVggssssii1ttiiiioovvvvaaccUUUeeeelloo nnnFFddiiiXXttteerrDDffeerroovvEEmmeexxWWll ppooMMllppooiiIImcmcrrNNrere2eoeorr!!nncc 88hhtt iiKKppiittIRHBIRHBnnaaaaiittggsstrtrhhoottppee--ddbbrrccuuyyeeuucc rrBBrrrriirrnnyyaaeegg llnPnPaa0 ttiittnn hhPPcceeiieecc oorr 28P88PP///rrrooo111444ggg///rrraaa222mm00m0---mmmpppiiiiiinnnnnn ggg PPP HHHIIICCCeeelllpppeee0rrrCCDDuueeMMSSrrvviiWAAiiBBooeeccssoMoMllrrooooiiaaItt ppNccyEyErrmmhhdd 55UU!ii44ppeellttnnrraatt IllIliiinnnnntteeerrooaaaddrrr uuaaacccccttttt8iiuuuooaaannttt ttooooorrrsss 7SSSLDSLDaaiiiiiinnnnggbbggggiissttllll aaeeeeFFll----MM RRCCCC/6/aahhhhAAddiiiippppMMiioo //SSSS RRSSiiiillllWWeeiiiiccccccoooo eennnniivv eerr 3ClCCliinnoooeennnEEaaXXvvtttppMMaaSSrrrrrllllaaWWiiAAuuccooo iiMMaarrnnaaooIIttee lllcNNciiCCddoolllhhcc22nn !! iiiiiPP1p1p nnnttKKrrooiiuutt gggaa aaa1ttoorr MMMMMMMMMMMMuuuuuaaaaauallllllSSnnnnnnttttttiiaaaaaaiiiiiimm------ggggggppppppppeeeeeeuuuuuullrrrrrreerrrrrrppppppoooooosssssseeeeee BBBBBBFlowaaaaaacodetttttttttttteeeeeerrrrrryyyyyy FDDFDDlliiieoogggXXEEswwppvviiiMMaalliSSaatttWWllgiiAAuucccciiaaannMMaarreeoonIIoott NNddccllliiVVoohh 77dUdU!!nnRwwwRwiiCCC11pp ll KKttrreeeeiiaattllliiii oootttttthhhhrrcccoo kkkNNNN ggaaaaaannnnmmoooo iiPPPPnnooooggnnnn gggg!!!! LFPPLLFFPPPeeelllrrrIIoooCCoooaaawwwggg,,rrr nnnAcccArrraaaooorrddmmmddduueeemmmiinniiinnnooggg aa:::nndd :12100026600D928xxFE2802273 LLCCDD FUSFUSuuppnnlleeiillvv--eeeewwddrraass CCaavvooeell MMnnttoorroottoollllrree rr TMCblTMCbliiooggaarroooooohhrrddrrttssttii eesssseett i illoonanarr RRssooggnn,,aatt d dflfl!!wwii ll aawwbbiittsseeaahhhhllyy lliimm!!nn LLggooee vvvviieennllggAAAAA dddddvvvvvaaaaannnnnccccceeeeeddddd GGGGGPPPPPSSSSS CCCCCooooommmmmpppppuuuuuttttteeeeerrrrr::::: MMKKMMKeeeIuIuDDyyyssbbbIIiiccoooaaarrrddd v{ cFo ol(Ce)i;daM ri__nIbt{N{iefit Tr((riiEnnuttpRccCtooR(vnnUo, &Pi2d T))4;_)TMRmbbmmmscooooff vvvvSSwwllwwATTffAA DD__sTTao′′UU71sdp′9SSctei2oo,, ′mnnRR1_PPrbe01gly::E:E8:00126FF4800C1300000000000000120B080000A000000D1HF8019A4002e0A008E01x1F1FF2E20222209088S2003800773A335002 PTFNPFeooeLLcxxtUU hWRRSSneeo!!oppr ookTa rr–ttl k––S – c AAa nnGnoonotte hhereescr,ro efifi , Vn ngeTeeO mmtL eeest ssahssn::i cmmda ootl!hvveiinn lgga ttteoos tWW friionnmddoo swwpssa 11c11e 9AA7pp72rr6 2232002257223 0 ££2355..44009944 PTCNPPCeeLLLooctUUUoo hWllSSS nBBo!!!oeer aakTnna –ssl k U–– –K SS gFiimmrigoppamlleefa nfific allttteeonrrroiiinne tggso, ww Rboiititolhhls -ssooRffottywwcaaerr eeelectric planes9M7a72y6 3220527230 2£35.4095 PTCNPTCeeLLeooccUUtoohh WllSSnn BB!!oooee rTTaakaann –llsskk G–––– o AAPPoomomgssaaliiettzzii vviiLnniiettggyyn AAsffoo nnplllalalooullwwoos ggsse uunggeeellooAAAA rAAgooIIddddmym aa avvvvnnnddaaaad aa nnnns hhpccccaaaeeeenncddeddddyy n PPeGGGGSSwUUsPPPPSSSS 9JJCCCC7uu7nn2oooo6 223mmmm200225722pppp3 0 £2£uuuu355..tttt440099eeee66rrrr PTCNPTCeeLLeooccUUtoohh WllSSnn BB!!oooee rTTaakaann –llsskk N––––F CCMMChhii xxaooeenoodddss ii MMnnthggeee nnss urueeisrrvveoo ossf aamccccnnoooooddb aannnnil ellssssii ttpttttttllarrrreeyuuuu ccmooccccemmttttnppiiiitooooseettnnnniittii ooaaaannnnnndddd9JJ7 uu7uuuu2ll 6223ssss00222eeee52273 0££2553..44990077 PTCNCCeeLooocUtoooh WlllSn BBB!ooeee rTaaaka nnn–lsssk T ––––h eTTTTooo iimruuureccceshhh ifs---otsssribeee annlne ssst oriiitttistiiivvvaeeee lo rrrrefooo atbbbhuoooitntttoksssm ? aaaonnntdddiv euuuss seiiinnnlegggc tsssreeeorrrnvvviooocssss9AA7uu7gg26 3222005227223 0 2££355..44009988 www.electronpublishing.com @practicalelec practicalelectronics www.electronpublishing.com @practicalelec practicalelectronics www.electronpublishing.com @practicalelec practicalelectronics www.electronpublishing.com @practicalelec practicalelectronics www.electronpublishing.com @practicalelec practicalelectronics Take out a one-year subscription and save more than £10 over the year. Even better – save over £1 per issue if you subscribe for two years – a total saving of £26. Overseas rates represent exceptional value You also: • Avoid any cover price increase for the duration of your subscription • Get your magazine delivered to your door each month • Guarantee a copy, even if your local newsagent sells out Order by: • Phone or post with a cheque, postal order or credit card • Or order online at: www.electronpublishing.com Practical SUBSCRIPTION ORDER FORM (cid:133) 6 Months:UK £29.99, Europe £33.99 (Airmail), EElleeccttrroonniiccss Rest of the World £41.99 (Airmail) (cid:133) 1 Year: UK £54.99, Europe £63.99 (Airmail), Rest of the World £77.99 (Airmail) SUBSCRIPTION PRICES (cid:133) 2 Years: UK £104.99, Europe £119.99 (Airmail), Rest of the World £149.99 (Airmail) Subscriptions for delivery direct to any address in: To: Practical Electronics Subscriptions PO Box 6337 UK: 6-months £29.99, 12-months £54.99, 24-months £104.99 Bournemouth BH1 9EH Europe Airmail: 6-months £33.99, 12-months £63.99, United Kingdom 24-months £119.99 Tel: 01202 087631 Email: [email protected] Rest Of The World Airmail: 6-months £41.99, 12-months £77.99, 24-months £149.99 I enclose payment of £ .............. (cheque/PO in £ sterling only) Cheques (in £ sterling only) payable to Practical Electronics payable to Practical Electronics and sent to: Practical Electronics Subscriptions, PO Box 6337, (cid:133)Please charge my Visa/Mastercard Bournemouth BH1 9EH, United Kingdom My card number is: ....................................................................... Tel: 01202 087631 Please print clearly, and check that you have the number correct Email: [email protected] Card Security Code .................. Valid From Date........................ Also via our online shop at: www.electronpublishing.com (The last 3 digits on or just under the signature strip) Subscriptions start with the next available issue. We accept Card Ex. Date ...................................... MasterCard or Visa. Name ............................................................................................ (For past issues see the Back Issues page.) Address ........................................................................................ DIGITAL SUBSCRIPTIONS Post code .................................. Tel. ........................................... Electronic subscriptions are available from £24.99 for 12 months, Email ............................................................................................ more details at: www.electronpublishing.com Subscriptions start with the next available issue. 4 Practical Electronics | August | 2022 Subscribe to DECEMBER 2021 ISSN1030-2662 12 SThe VMERY BDEST DIY Projects! 9$17711I5N0C G30ST0* 2N66Z0 0$112IN9C G0ST Trainer and how to solder surface-mount parts The small but powerful Hummingbird Amplifier Hands-on with the Raspberry Pi Pico The smallest Raspberry Pi yet! Australia’s top electronics magazine S(cid:483)(cid:480)(cid:483)(cid:561)(cid:477)(cid:478) C(cid:484)(cid:483)(cid:476) is one of the best DIY electronics magazines in the Published in world. Each month is fi lled with a variety of projects that you can build (cid:55)(cid:483)(cid:480)(cid:483)(cid:561)(cid:477)(cid:478) (cid:39)(cid:484)(cid:483)(cid:476) yourself, along with features on a wide range of topics from in-depth electronics articles to general tech overviews. Print Combined Online $100 $110 (cid:8)(cid:25)0 Big Brother is Tracking 6 months (cid:435)(cid:407)(cid:25)4 (cid:435)(cid:407)(cid:26)0 (cid:435)(cid:407)27 You; November 2021 (cid:435)(cid:413)(cid:26)4 (cid:435)(cid:413)70 (cid:435)(cid:413)31 (cid:8)1(cid:29)(cid:25) (cid:8)21(cid:25) (cid:8)(cid:29)(cid:25) 1 year (cid:435)(cid:407)10(cid:25) (cid:435)(cid:407)11(cid:26) (cid:435)(cid:407)(cid:25)1 (cid:435)(cid:413)124 (cid:435)(cid:413)137 (cid:435)(cid:413)(cid:26)0 USB Cable Tester; November 2021 (cid:8)3(cid:28)0 (cid:8)41(cid:25) (cid:8)1(cid:28)(cid:25) 2 years (cid:435)(cid:407)20(cid:25) (cid:435)(cid:407)224 (cid:435)(cid:407)100 (cid:435)(cid:413)242 (cid:435)(cid:413)2(cid:26)4 (cid:435)(cid:413)11(cid:28) (cid:149) Combined subscriptions include both the printed magazine and online access. (cid:149) (cid:52)(cid:86)i(cid:71)es a(cid:86)e i(cid:82) (cid:37)(cid:89)st(cid:86)alia(cid:82) (cid:72)(cid:83)lla(cid:86)s ((cid:37)(cid:57)D) (cid:89)(cid:82)less (cid:83)t(cid:76)e(cid:86)(cid:91)ise s(cid:84)e(cid:71)ifi e(cid:72)(cid:18) Hummingbird Amp; (cid:149) Prices listed are for everywhere in the world except Australia and New Zealand. December 2021 View siliconchip.com.au/Shop/SubRates for a full list of current prices. (cid:149) Price estimates are just that and should only be used as a guide, we primarily take payment in the form of Australian dollars. Raspberry Pi Pico; Try our Online Subscription – now with PDF downloads! December 2021 An online issue is perfect for those who don’t want too much clutter around the house and is the same price worldwide. Issues can be viewed online, or downloaded as a PDF. To start your subscription go to siliconchip.com.au/Shop/Subscribe Practical Volume 51. No. 8 August 2022 ISSN 2632 573X Electronics Editorial Editorial offi ces Practical Electronics Tel 01273 777619 The power of batteries Electron Publishing Limited Mob 07973 518682 1 Buckingham Road Fax 01202 843233 We have a great set of projects for you this month. An easy-to- Brighton Email [email protected] East Sussex BN1 3RA Web www.electronpublishing.com build MIDI keyboard; Nano Pong, a modern twist on a retro game; and a PicoMite Backpack that combines the power of MMBasic, Advertisement offi ces a high-quality touchscreen display and an inexpensive but very Practical Electronics Adverts Tel 01273 777619 capable Raspberry Pi Pico microcontroller. But that’s not all – 1 Buckingham Road Mob 07973 518682 Brighton Email [email protected] my favourite in this issue is a very useful Battery Manager that East Sussex BN1 3RA combines three recent projects (Battery Multi-logger, Battery Balancer, and a Mini Isolated Serial Link) with some new circuits Editor Matt Pulzer to produce a handy design that is compact, fl exible and modular. General Manager Louisa Pulzer Digital subscriptions Stewart Kearn Tel 01202 880299 It can connect and disconnect up to four loads/sources to protect Online Editor Alan Winstanley batteries, and is capable of switching well over 20A at 10V-60V. Web Systems Kris Thain If you’re in the market for battery charging designs that go above Publisher Matt Pulzer and beyond basic ‘electron pumping’ then this is one for you. Print subscriptions Practical Electronics Subscriptions Back in the early days of PE, most battery circuits really only PO Box 6337 meant one thing, some variation on a simple lead-acid battery Bournemouth BH1 9EH Tel 01202 087631 United Kingdom Email [email protected] charger. They were relatively crude, mostly safe and worked reasonably well, but there wasn’t a lot of sophistication built into Technical enquiries the designs. We regret technical enquiries cannot be answered over the telephone. We are unable to offer any advice on the use, purchase, re(cid:83)air or (cid:80)odifi cation o(cid:73) co(cid:80)(cid:80)ercial e(cid:84)ui(cid:83)(cid:80)ent or the incor(cid:83)oration Fast forward to 2022 and the range of battery technologies, cell or (cid:80)odifi cation o(cid:73) designs (cid:83)u(cid:69)lished in the (cid:80)aga(cid:93)ine. (cid:58)e cannot designs and supporting circuity is huge. Power density and provide data or answer queries on articles or projects that are charge time have improved in leaps and bounds, but so too has (cid:80)ore than fi ve years old. the need to charge/discharge properly – get that wrong and at best Questions about articles or projects should be sent to the editor you will damage a cell, at worst it may catch fi re. Lithium-based by email: [email protected] batteries have become the cornerstone of many technologies Projects and circuits that run untethered from the mains, from in-ear headphones to All reasonable precautions are taken to ensure that the advice and electric vehicles, but they are very picky about how you use them data given to readers is reliable. We cannot, however, guarantee and do not tolerate abuse. it and we cannot accept legal responsibility for it. A number of projects and circuits published in Practical Electronics As the world moves away from fossil fuels and towards employ voltages that can be lethal. You should not build, test, distributed generation systems (photovoltaic panels or wind modify or renovate any item of mains-powered equipment unless turbines) and electric transport expands to include everything you fully understand the safety aspects involved and you use an RCD (GFCI) adaptor. from scooters to fl ying taxis, modern batteries are going to become ever more important. Having the right circuit designs and Component supplies knowhow will be vital, and I hope you enjoy reading about, or We do not supply electronic components or kits for building the even building, this month’s Battery Manager. projects featured, these can be supplied by advertisers. We advise readers to check that all parts are still available before commencing any project in a back-dated issue. Matt Pulzer Publisher Advertisements Although the proprietors and staff of Practical Electronics take reasonable precautions to protect the interests of readers by ensuring as (cid:73)ar as (cid:83)ractica(cid:69)le that advertise(cid:80)ents are (cid:69)ona fi de(cid:15) the magazine and its publishers cannot give any undertakings in respect of statements or claims made by advertisers, whether these advertisements are printed as part of the magazine, or in inserts. The Publishers regret that under no circumstances will the magazine accept liability for non-receipt of goods ordered, or for late delivery, or for faults in manufacture. Transmitters/bugs/telephone equipment We advise readers that certain items of radio transmitting and telephone equipment which may be advertised in our pages cannot be legally used in the UK. Readers should check the law (cid:69)e(cid:73)ore (cid:69)uying any trans(cid:80)itting or tele(cid:83)hone e(cid:84)ui(cid:83)(cid:80)ent(cid:15) as a fi ne(cid:15) confi scation o(cid:73) e(cid:84)ui(cid:83)(cid:80)ent and(cid:18)or i(cid:80)(cid:83)rison(cid:80)ent can result (cid:73)ro(cid:80) illegal use or ownership. The laws vary from country to country; readers should check local laws. Practical Electronics | August | 2022 7 Time for a Techno Talk total rethink? Mark Nelson The way we have electric power delivered to our homes – and the method in which we consume it – needs to be reconsidered. It’s ineffi cient and no longer rational says one think tank. So, what are we doing wrong, and why should we change? I’m going to hazard a guess. the Green Lib Dems, which functions practice positively therapeutic. What’s If you are reading this article at home as an environmental think tank for the more, I make no secret of this shame- in the UK, then I can say with near Liberal Democrat party. You can read less pleasure. certainty that your domestic electric- full details of the proposal, which was If you are not a sodderer, watch https:// ity supply is delivered as alternating published last November, at: https://bit. youtu.be/BnbcTtMptkU where you’ll current (AC) at not far off 230 volts. ly/pe-aug22-acdc rapidly discover that soddering is how Conveniently, your light fi ttings and In a nutshell, it argues that according many Americans pronounce (and spell) electrical appliances are designed for a to the Committee on Climate Change, the word soldering. Alternatively, just corresponding 230V AC supply, making the UK will need a quadrupling of our consult www.Urbandictionary.com, for an extremely harmonious setup. But electrical supply capacity to support which pompously defi nes the word as is this ideal? Is it even logical? electrification of heating and trans- an incorrect term for ‘soldering’, usually port. This in turn will require a huge used by idiots and people with ‘labtop’ Horses for courses investment in new power distribution computers. I was certainly confused back Fifty or even fewer years ago the an- infrastructure, which offers a once-in- in the 1970s when hobby electronics swer was undoubtedly yes. After all, a-hundred-year opportunity to replace shops began selling small plastic con- your appliances (cooker, fridge, wash- our anachronistic AC power distribu- tainers labelled ‘Soder-Wick’. Always ing machine, TV and trendy music tion with something much better and curious and easily beguiled by novel- centre) and lighting (incandescent and truly modern: a DC power distribution ties, I asked what Soder-Wick was, and fl uorescent) all categorically required system. By establishing the UK as a discovered it was a small reel of copper high voltages to work effi ciently. But a leader, not a follower, DC switchover braid that had the amazing ability to lot has changed in recent decades. We can be part of the Green Recovery and absorb and removed unplanned solder now use LED light bulbs that could op- a signifi cant export opportunity. splashes on PCBs and other unwanted erate far more effi ciently and effectively effects of clumsy soldering. The prod- from a low-voltage direct current (DC) Coexistence is the way forward uct wasn’t cheap but was much less supply. Ditto for your fl at-screen TV The Lib-Dem proposal has plenty of expensive than a proper solder pump; and other home entertainment devic- merit, but it is not in harmony with it saved my bacon many a time. es. A low-voltage DC supply would be the International Electrotechnical But why did they call it ‘Soder-Wick’, far more appropriate for your comput- Commission (IEC), which supports and why the missing ‘l’? Was it a mis- ers and other IT stuff, Wi-Fi, security maintaining a mixture of AC and DC sup- print or typo? Hardly, because the name alarm and Internet of Things products. ply systems, to satisfy the applications was (and still is) a registered trademark. For most people, it will also soon apply that are appropriate for one system or It was many years later that I learnt that to the battery backup supply required the other. However, the IEC does accept ‘soder’ and ‘sodder’ are what we Brits to keep your landline telephone and that, ‘since the late 20th century, the pro- call ‘solder’. A correspondent on Quora. broadband router alive during mains liferation of modern power electronics com states that the word solder was bor- failures. All of these gizmos work in- has heralded a growth in decentralised rowed from Norman French and, at the herently on low-voltage DC sources, yet power generation. Coupled with a grow- time, was spelled without the ‘l’. The ‘l’ we are still going through the wasteful ing interest in renewable energy sources was added, probably in the 16th cen- process of transforming 230V AC down that generate DC power and the decen- tury, by people who wanted to make to a likely 12V DC. tralisation of the electricity grid, a new the spelling of French-derived English Obviously, we still need higher-voltage era has begun of co-existence between words match their original Latin spell- AC for cooking, heating, refrigeration AC and DC grids.’ Emphasising this ing. Thus, the traditional pronunciation and clothes washing, but that’s as far as duality, Jacques Peronnet, Chair of the of the word lacks the ‘l’ sound, and this it goes. Logic tells us that a dual-supply IEC’s Technical Committee 64, declared ‘l’-less pronunciation is preserved in power system would make better sense earlier this year, ‘We are moving from a American English. (The word derives and help reduce energy consumption purely AC environment to one that is a originally from the Latin verb solidare, and hence global warming. combination of AC and DC.’ meaning to fasten together.) So, our American friends are correct! No novelty Do you sodder? I feel totally humbled. But I must con- Thought along these lines is not new, No, it’s not a rude word and many PE cede that we Brits are inconsistent over although it has had little exposure or readers indulge in soddering regularly. I pronunciation. Take the word ‘almond’; discussion in the media. Nor, as far as I confess that I do, although at fi rst, I was some people say ‘ah-mond’, while oth- know, has the subject had the possible unsure whether I would like it or was ers say ‘al-mond’. Do you call salt ‘sollt’ endorsement of a political party. But that even capable. It didn’t take long to dis- or ‘sawt’? ‘Goll-f’ or ‘gofe’ for the game has now changed, with an initiative from cover that I loved it and I still fi nd the of golf? It’s a crazy, mixed-up world! 8 Practical Electronics | August | 2022