Silicon ChipEl Cheapo modules: 8-channel USB Logic Analyser - February 2020 SILICON CHIP
  1. Outer Front Cover
  2. Contents
  3. Publisher's Letter: IoT is a security nightmare
  4. Feature: Underground mapping, leak detection & pipe inspection by Dr David Maddison
  5. Project: Remote monitoring station messages or emails by 4G! by Tim Blythman
  6. Review: chipKIT’s new “Lenny” by Tim Blythman
  7. Project: Indoor Air Quality Monitor based on a Micromite BackPack by Geoff Graham
  8. Serviceman's Log: When in doubt, swap it out by Dave Thompson
  9. Project: Low distortion, two-channel DDS audio signal generator by Phil Prosser
  10. Feature: El Cheapo modules: 8-channel USB Logic Analyser by Jim Rowe
  11. Product Showcase
  12. Project: Building the new “bookshelf” stereo speakers, Pt 2 by Phil Prosser
  13. Vintage Radio: 1946 Tecnico-Aristocrat Model 651 by Associate Professor Graham Parslow
  14. Subscriptions
  15. PartShop
  16. Market Centre
  17. Advertising Index
  18. Notes & Errata: Digital Lighting Controller, October-December 2010; DSP Active Crossover, May-July 2019; Super-9 FM Radio, November & December 2019
  19. Outer Back Cover

This is only a preview of the February 2020 issue of Silicon Chip.

You can view 38 of the 112 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 "Remote monitoring station messages or emails by 4G!":
  • 4G Remote Monitoring Station Power Control Shield PCB [27111191] (AUD $5.00)
  • Firmware (Arduino Sketch) for the 4G Remote Monitoring Station (Software, Free)
  • 4G Remote Monitoring Station Power Control Shield PCB pattern (PDF download) [27111191] (Free)
Items relevant to "Indoor Air Quality Monitor based on a Micromite BackPack":
  • PIC32MX170F256B-50I/SP programmed for the Indoor Air Quality Monitor [AirQuality.hex] (Programmed Microcontroller, AUD $15.00)
  • Micromite LCD BackPack V2 complete kit (Component, AUD $70.00)
  • Firmware (HEX) files and BASIC source code for the Indoor Air Quality Monitor [AirQuality.hex] (Software, Free)
Items relevant to "Low distortion, two-channel DDS audio signal generator":
  • DSP Crossover CPU PCB [01106193] (AUD $5.00)
  • DSP Crossover LCD Adaptor PCB [01106196] (AUD $2.50)
  • DSP Crossover front panel control PCB [01106195] (AUD $5.00)
  • Low-distortion DDS complete PCB set (5 boards) [01106192-6] (AUD $20.00)
  • DSP Crossover DAC PCB [01106192] (AUD $7.50)
  • DSP Crossover power supply PCB [01106194] (AUD $7.50)
  • PIC32MZ2048EFH064-250I/PT programmed for the Low-distortion DDS Signal Generator (Programmed Microcontroller, AUD $30.00)
  • Pulse-type rotary encoder with pushbutton and 18t spline shaft (Component, AUD $3.00)
  • 128x64 Blue LCD screen with KS0108-compatible controller (Component, AUD $30.00)
  • ST7920 driver for PIC32MZ projects (Software, Free)
  • Firmware and source code for the Low-distortion DDS Signal Generator (Software, Free)
  • DSP Active Crossover/DDS/Reflow Oven PCB patterns (PDF download) [01106191-6] (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 "Building the new “bookshelf” stereo speakers, Pt 2":
  • Bookshelf Speaker Passive Crossover PCB [01101201] (AUD $10.00)
  • Bookshelf Speaker Subwoofer Active Crossover PCB [01101202] (AUD $7.50)
  • Bookshelf Speaker Passive and Active Crossover PCB patterns (PDF download) [01101201-2] (Free)
  • Bookshelf Speaker System timber and metal cutting diagrams (PDF download) (Panel Artwork, Free)
Articles in this series:
  • Easy-to-build Bookshelf Speaker System (January 2020)
  • Easy-to-build Bookshelf Speaker System (January 2020)
  • Building the new “bookshelf” stereo speakers, Pt 2 (February 2020)
  • Building the new “bookshelf” stereo speakers, Pt 2 (February 2020)
  • Building Subwoofers for our new “Bookshelf” Speakers (March 2020)
  • Building Subwoofers for our new “Bookshelf” Speakers (March 2020)
  • Stewart of Reading (October 2023)
  • Stewart of Reading (October 2023)
  • Stewart of Reading (November 2023)
  • Stewart of Reading (November 2023)
  • ETI BUNDLE (December 2023)
  • ETI BUNDLE (December 2023)
  • Active Subwoofer For Hi-Fi at Home (January 2024)
  • Active Subwoofer For Hi-Fi at Home (January 2024)
  • Active Subwoofer For Hi-Fi at Home (February 2024)
  • Active Subwoofer For Hi-Fi at Home (February 2024)

Purchase a printed copy of this issue for $10.00.

Using Cheap Asian Electronic Modules by Jim Rowe USB Logic Analysers This 8-channel USB logic analyser, is essentially a clone of the original version of the well-known and respected Saleae Logic unit. It’s completely compatible with the Saleae design, but you can get this one for as little as A$12.40 – less than one-tenth the cost! I n the September 2009 issue, we published a review of the then-new Saleae USB Logic Analyser, written by Geoff Graham (siliconchip.com.au/Article/1558). Although Geoff pointed out a few limitations (like only having eight channels), on the whole, he found it an excellent little performer. He wrote that it was probably suitable for 95% of the analysis work done by hobbyists, technicians and designers. In 2009, you could buy the original Logic direct from Saleae (www. saleae.com/) in the USA for US $149 plus delivery, which ended up being about AU $250. This was still only a fraction of the previous cost of getting a ‘professional’ logic analyser, which made it an attractive purchase – particularly since Saleae allowed you to download the matching control and analysis software for free. Prompted by Geoff’s review, I bought one myself. Then when Saleae brought out a 16-channel version, I bought one of those too. And I’ve been very happy with them both, especially as Saleae has kept their software up-to-date. But recently, USB logic analysers like the original Saleae Logic began to appear on the world market, at a much lower cost. They all seem to be made in China, and many of them are virtual ‘clones’ of the original Saleae Logic. They’re all 8-channel units with a maximum sampling rate of 24 Megasamples per second (MS/s), and in most cases, they work exactly the same as the Saleae Logic when hooked up to your PC. Even Saleae’s software can’t tell the difference. What was that old saying about “imitation being the sincerest form of flattery”? However, their “Terms of Service” says that you may not use their software with unauthorised clones of their products (www. saleae.com/terms-of-service/). But there is a alternative, which we’ll get to a bit later. At the time of writing, there are quite a few of these Saleae Logic clones available on various online sites, at prices varying between $12 and $36 depending on the supplier and their location. Sources include Banggood in China, Sparkfun Inside the logic analyser (shown enlarged for clarity), we found a board with a 56-pin Cypress Semiconductor USB-capable micro, a 24C02 EEPROM, octal bus transceiver chip, regulator, crystal, transistor, two LEDs and a handful of passive components. The bus transceiver operates as a level shifter and also protects the micro inputs. siliconchip.com.au Australia’s electronics magazine February 2020  75 For comparison, here is the original Saleae Logic unit which I purchased a few years ago, along with the supplied (functional!) USB cable and high-quality test clips. in the USA, Sparkfun’s supplier Core Electronics in Australia and quite a few others you can find on eBay and AliExpress (www.ebay.com.au/ itm/193121890194). I should point out that Saleae no longer makes the original 8-channel 24MS/s logic analyser. Instead, they offer the Logic 8, which samples at up to 100MS/s (priced at $639) and the Logic Pro 8, which offers 500MS/s sampling ($1119). They also sell the Logic Pro 16, offering 500MS/s sampling of 16 channels. So Saleae has moved up-market, leaving the lower end to the clones. Cheapest & most popular Unsurprisingly, the most popular of these clone logic analysers is the cheapest one. It’s available from Banggood for approximately $12 (Banggood 1177821; siliconchip.com.au/link/ aax7). This includes a USB type-A to mini type-B cable (the analysers are powered via the USB cable) and a set of 10 ribbon cable test leads, with female pin sockets at each end. 76 Silicon Chip The clone from Sparkfun for US $19.95 appears to be identical (www. sparkfun.com/products/15033), apart from a more attractive label on the top, as is the one which Core Electronics sells for just over $35 plus delivery (siliconchip.com.au/link/aax8). This device is housed in a plastic box measuring 55 x 27 x 14mm, which appears slightly smaller than the original Saleae Logic unit. That came in a nicely finished machined metal box measuring 41 x 41 x 8.5mm. Apart from this, the main physical difference is that the ‘el cheapo’ unit has a 10-pin DIL connector for the test leads, whereas the original Saleae Logic had a 9-pin SIL connector. Another difference is that, while the original Logic (and the later Saleae models) came with a set of nine highquality E-Z-Hook Micro test clips, the clone units just come with female-tofemale ribbon cable leads. If you want test clips, you have to buy them separately – more about this a little later. Finally, whereas the original Saleae Logic (and later versions) came with a Australia’s electronics magazine sturdy little storage case for itself, its USB cable, test leads and clips, the clones come without a case. Electrically, the clones seem to be virtually identical to the original Saleae Logic. When you connect them up to a USB port of a PC, they are recognised as a Saleae unit. And if you fire up Saleae’s software, it behaves in precisely the same way as it does with a genuine Logic (but you’re not really allowed to do that...) Alternative software If – like me – you’re not willing to violate Saleae’s terms of use and use their software with one of these clone units, there is an alternative. The open-source software website http://sigrok.org has a software package for download called PulseView. This comes in three versions, to suit Windows, Linux, macOS etc. For PulseView to be installed on a Windows machine (XP or later), the WinUSB driver must already be installed. If this isn’t already installed, you can install this using software siliconchip.com.au Screen 1: the free PulseView software working with one of the ‘el cheapo’ clone logic analysers to decode SPI serial data. It’s easy to use and can decode a great many different digital protocols. Screen 2: the official Saleae logic software operating with one of their logic analysers to decode the same bus as shown in Screen 1, although there’s slightly different data this time. While there are some visual differences, the two pieces of software work similarly. siliconchip.com.au Australia’s electronics magazine February 2020  77 called Zadig (http://zadig.akeo.ie/), which we have used in the past for driver installation (eg, in the Banggood SDR kit, reviewed in November 2017; siliconchip.com.au/Article/10879). I downloaded and installed PulseView, and found using it to be quite similar to the Saleae software in operation. You can also download a 24-page PDF user manual from the sigrok website, to help you figure out how to use it (https://sigrok.org/doc/pulseview/ unstable/manual.html). PulseView worked equally well with both the Saleae Logic and the clone, and offers an even larger range of protocol analyser options (54 in all), including all the popular ones like I2C, SPI, UART, CAN, I2S, 1-wire, S/PDIF, HDMI CEC, JTAG, MIDI, PS/2 Keyboard/Mouse, USB LS/FS, RGB LED (WS281x) and PWM. Most importantly, there is no limitation on using PulseView with the clone logic analysers! That, and the fact that it has more features, makes PulseView the way to go. You can see a typical display from the PulseView software in Screen 1, which again shows the SPI signals on one of my Arduino-based Audio Millivoltmeter prototypes (October 2019; siliconchip.com.au/Article/12018). As this software works with both the original Logic and the clones (as shown in Screen 2), I was able to make a direct comparison when analysing both I2C and SPI signals on one of the prototypes of my Audio Millivoltmeter. I’m glad to report that the results were identical. Sparkfun have a short tutorial on using their USB logic analyser with PulseView at siliconchip.com.au/ link/aaxa USB cables and test clips An end-on view of the clone logic analyser showing its 10-pin DIL box header and the supplied USB cable which was missing a pin. available for only a few dollars (and you’re likely to have a few already, as they’re pretty common). As mentioned earlier, these ultralow-cost USB logic analysers don’t come with any test clips – just a set of female-to-female ribbon cable leads. So unless you’re only going to be testing signals already routed to pin headers, you will need a set of test clips as well. The E-Z-Hook XKM-S micro test clips originally supplied by Saleae are available separately, but at a fairly steep price. For example, you can buy a set of 10 from Digi-key (461-1012ND), but they’ll set you back about $40 plus shipping. This doesn’t seem all that attractive, since it’s around three times the price of the USB logic analyser itself! I found some likely-looking sets of 10 ribbon cable leads with micro hook test clips on eBay for just over $6, so I ordered a couple of them. But when they arrived, I found that the micro hook test clips were not nearly as well The genuine E-Z-Hook test clips, shown at right, are much easier to use and more reliable than the cheap test hooks I initially purchased, at left. I eventually found a much better-looking set of low-cost test clips at Banggood (see text). I ordered two of these low-cost analysers to check them out for this review, and when they arrived, I tried connecting them to a PC using the supplied USB cables. But neither of them were identified by Windows when plugged in. It was only when I tried using another, known-good USB cable that they sprang into life. When I looked inside the type-B mini plugs on the end of the supplied cables, they were both missing the pin 4 contact! Presumably, that’s why the analysers wouldn’t work with those cables. That was a bit disappointing, but luckily this type of cable is readily 78 Silicon Chip made as the genuine E-Z-Hook clips. The female connector on the end of the lead would not attach securely to the pin at the back of the clip, and the hook tips didn’t seem to have the right shape to mesh properly and attach securely to an IC pin. So it was “back to the drawing board” – or more accurately, back to the web. On the Banggood website, I found sets of “logic analyser test leads with hook clips” that looked more promising. These have the lead wires soldered to the rear of the hook metalwork inside the plastic housing, removing the problem of connecting the clips reliably to the leads (Banggood 956251; siliconchip.com.au/link/aaxb). These sets of leads were priced at just over $7 for 12, or over $11 for 20. So if you don’t want to invest in a set of genuine E-Z-Hook clips, these would probably be your best alternative. You can also try Jaycar Cat HM3037 for SC $1.75 each. Australia’s electronics magazine siliconchip.com.au