Silicon ChipEl Cheapo: 500MHz frequency counter and preamp - July 2018 SILICON CHIP
  1. Outer Front Cover
  2. Contents
  3. Publisher's Letter: Don’t be ripped off by your smart meter
  4. Feature: The farm of the future . . . Part II by Ross Tester
  5. Feature: Revolutionary: the Philips Compact Cassette by Ian Batty
  6. Project: Super Clock now shows your electricity tariff by Tim Blythman
  7. Serviceman's Log: Valve repairs are not for the inexperienced by Dave Thompson
  8. Review: The latest Raspberry Pi – the Model 3 B+ by Tim Blythman
  9. Project: Raspberry Pi Tide Chart by Tim Blythman
  10. Project: How’s your memory? Build the Event Reminder by John Clarke
  11. Project: 800W (+) Uninterruptible Power Supply (UPS) Part III by Duraid Madina and Tim Blythman
  12. Feature: El Cheapo: 500MHz frequency counter and preamp by Jim Rowe
  13. Vintage Radio: The 6-transistor Motorola 66T1 by Ian Batty
  14. Product Showcase
  15. PartShop
  16. Market Centre
  17. Advertising Index
  18. Notes & Errata: AM Radio Transmitter
  19. Outer Back Cover: Hare & Forbes Machineryhouse

This is only a preview of the July 2018 issue of Silicon Chip.

You can view 40 of the 104 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.

Articles in this series:
  • AgBots – robots working on the farm of tomorrow! (June 2018)
  • AgBots – robots working on the farm of tomorrow! (June 2018)
  • The farm of the future . . . Part II (July 2018)
  • The farm of the future . . . Part II (July 2018)
Items relevant to "Super Clock now shows your electricity tariff":
  • PIC32MX170F256B-50I/SP programmed for the Tariff Super Clock [SuperTariffClock.hex] (Programmed Microcontroller, AUD $15.00)
  • VK2828U7G5LF TTL GPS/GLONASS/GALILEO module with antenna and cable (Component, AUD $25.00)
  • Micromite LCD BackPack V2 complete kit (Component, AUD $70.00)
  • Firmware (HEX) files and BASIC source code for the Micromite-based Tariff Super Clock [v2] (Software, Free)
Items relevant to "Raspberry Pi Tide Chart":
  • Raspberry Pi 2.8-inch Touchscreen Display Adaptor PCB [24108181] (AUD $5.00)
  • 2.8-inch TFT Touchscreen LCD module with SD card socket (Component, AUD $25.00)
  • Software for the Raspberry Pi Tide Chart (Free)
  • Raspberry Pi 2.8-inch Touchscreen Display Adaptor PCB pattern (PDF download) [24108181] (Free)
Items relevant to "How’s your memory? Build the Event Reminder":
  • Recurring Event Reminder PCB [19107181] (AUD $5.00)
  • PIC12F617-I/P programmed for the Recurring Event Reminder [1910718A.HEX] (Programmed Microcontroller, AUD $10.00)
  • Firmware (ASM and HEX) files for the Recurring Event Reminder [1910718A.HEX] (Software, Free)
  • Recurring Event Reminder PCB pattern (PDF download) [19107181] (Free)
Items relevant to "800W (+) Uninterruptible Power Supply (UPS) Part III":
  • 800W+ Uninterruptible Power Supply control shield PCB [11106181] (AUD $5.00)
  • Arduino Sketches (.ino) and library for the 800W+ Uninterruptable Power Supply (Software, Free)
  • 800W+ Uninterruptible Power Supply control shield PCB pattern (PDF download) [11106181] (Free)
  • 800W+ Uninterruptible Power Supply front panel artwork (PDF download) (Free)
Articles in this series:
  • 800W (+) Uninterruptible Power Supply (UPS) (May 2018)
  • 800W (+) Uninterruptible Power Supply (UPS) (May 2018)
  • 800W (+) Uninterruptible Power Supply (UPS) Part II (June 2018)
  • 800W (+) Uninterruptible Power Supply (UPS) Part II (June 2018)
  • 800W (+) Uninterruptible Power Supply (UPS) Part III (July 2018)
  • 800W (+) Uninterruptible Power Supply (UPS) Part III (July 2018)
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)

Purchase a printed copy of this issue for $10.00.

Using Cheap Asian Electronic Modules Part 18: by Jim Rowe 500MHz frequency counter and a wideband preamp This month we look at two more low-cost RF/UHF modules. One is a tiny digital counter module which can operate up to 500MHz with a resolution of 0.1kHz. The other is a low-noise wideband amplifier module. The two modules can be combined to make a very sensitive frequency counter. F irst, let’s look at the 500MHz frequency counter module. It’s pretty small, with the PCB measuring only 58 x 32mm; exactly the same size as the backlit 8x2 LCD display board it’s mounted behind. The whole assembly measures only 58 x 40 x 28mm, including the SMA input connector mounted on the underside of the counter PCB. A subminiature on/off slider switch is fitted on the right-hand end of the same PCB, with the ends of a standard 9V battery clip lead attached nearby. Before we go any further, I should note that the slider switch in the counter module pictured turned out to be very flimsy, with the actuator falling out after being used only a couple of times. Rather than try and fix it, I removed the rest of the switch (which is why it’s missing in the pictures) and used a small toggle switch off the PCB to perform the same function. 82 Silicon Chip Fig.1 shows the full circuit and IC1, an ATmega48PA microcontroller, does most of the work. As well as doing the frequency counting, it also displays the result on the LCD module. The other IC to its left (IC2) is obviously a prescaler but I can’t find any real information on it; 5064N06 is what is marked on its IC package (it looks to be pin-compatible with the MB506 prescaler IC). By measuring its input and output frequencies, I determined that it is a 64:1 prescaler, so IC1 only needs to measure frequencies up to 7.8125MHz (500MHz ÷ 64), which is well within its capabilities. IC1 uses a 20MHz crystal (X1) for both its master clock and its counting timebase. To allow adjustment of the exact frequency for calibration of the counter, the module’s designers have provided a 5-40pF trimmer cap to “pull” its frequency. Australia’s electronics magazine At first, it appears that the 8x2 LCD module has no connections to its builtin LED back-lighting but these are presumably made inside the module. There’s no trimpot to adjust the LCD contrast but the default contrast seems to be fine. There’s provision on the counter PCB for a 6-pin header (shown at lower left in Fig.1) with the same connections as used for the ICSP connector on most Arduino MCUs. This would allow you to reprogram IC1 if you wish. There’s also provision on the counter PCB for three 2-pin headers for jumper shunts (J1-J3) but I haven’t been able to find any information on their function. All of the counter circuitry runs from 5V DC, derived from the 9V battery via REG1, a 78L05 regulator. The total current drain measured 57mA, much of which would be for the LCD backlight. Therefore it would be a siliconchip.com.au Fig.1: IC2 is marked 5064N06 and is most likely a variant of the MB506 prescaler IC. The MB506 can divide its input frequency by 64, 128 or 256, and is set to a division ratio of 64:1 by connecting SW & SW2 to Vdd. The 6-pin header is not fitted, but can be installed if IC1 needs to be reprogrammed. good idea to power it from a 9V alkaline battery or a 9V DC plugpack. You could even use a 5V USB charger with its output wired directly to the output of REG1. Trying out the counter I powered the module using a 9V alkaline battery and connected its input to the 10.000000MHz output from a GPS-disciplined Rubidium vapour frequency standard. Then I adjusted the frequency reading using the 5-40pF trimcap on the counter PCB. The adjustment was fairly critical and the closest reading I was able to achieve was 10.0002MHz, ie, 20ppm or 200Hz high. That’s quite reasonable. I then checked its operation over the full range of frequencies it claims to handle, using my Gratten GA1484B signal generator. With the generator’s output set to 0dBm (224mV RMS), there were no problems measuring frequencies from 500MHz down to about 8MHz. Below 8MHz, I found that the siliconchip.com.au Fig.2: input sensitivity for the 500MHz frequency counter module over its full range. Below 1MHz no reading was recorded with an output level of +13dBm. Australia’s electronics magazine July 2018  83 Fig.3: complete circuit for the low-noise wideband amplifier module. It’s a simple design incorporating a single IC (N02), which is very similar to an ERA-2SM+, in a 4-pin Micro-X package. signal level had to be increased somewhat to get a correct reading. In fact, for frequencies below 3MHz I needed to crank up the generator’s output to its maximum level of +13dBm (1.00V RMS); even so, I got no reading below 1MHz. I then measured the input sensitivity for reliable readings over the range from 1MHz to 500MHz and the resulting plot is shown in Fig.2. The effective input sensitivity is below -15dBm (40mV) for all frequencies above 25MHz, falling to around -19dBm (25mV) at 500MHz. But it rises fairly steeply at lower frequencies to reach 0dBm (224mV) at around 7.5MHz and climbs further to +13dBm (1.00V) at 3MHz. So although the mini 500MHz counter module is claimed to be able to operate down to 100kHz, its useful range is really from 1MHz to 500MHz. At this point, I decided to try fitting three pin headers to the pads marked JP1-JP3. Shorting JP1 did not appear to have any effect on the readings. JP2 caused the readout to only display 0MHz. This might be some sort of disabling or gating function for the counter. Fitting JP3 causes the value displayed to be about 95.45% of the actual value. Overall these jumpers may be for a feature that didn’t make it into the final product. Mounting it in a case Since its performance is quite good, I decided to build it into a UB3 Jiffy box, which is large enough to also house the 9V battery, making it a selfcontained portable instrument. I mounted the module itself behind the box lid/front panel using 9mm long untapped spacers and 15mm long M3 screws, replacing the original four very short screws on the top of the module. I cut a 38 x 18mm rectangular window in the lid for the LCD and mounted a small toggle switch below it for 84 Silicon Chip on/off switching. I then drilled a 10mm diameter hole at the back for access to the module’s SMA input connector. A strip of sturdy gaffer tape was also used to hold the battery securely in one end of the box. You could build the module into an even smaller UB5 Jiffy box (83 x 54 x 31mm) if you don’t need to include the 9V battery for fully portable operation. Despite its flimsy on-board on/off switch, the 500MHz frequency counter has the potential to be quite useful for many applications. They’re priced at $19 from Banggood (siliconchip. com.au/link/aak3). You can also find them on eBay or AliExpress for around $15 or less. Low-noise preamplifier Next up is a low-noise amplifier module. Its PCB measures 32.5 x 24.5mm, with SMA input and output connectors at each end and pads for a mini 2-way terminal block for power along one side. The circuit for the module is shown in Fig.3. The amplification work is done by the “NO2” IC, which is similar to the Mini-Circuits ERA-2SM+ device used in our recent UHF Prescaler (siliconchip.com.au/Article/10643; May 2017) and 6GHz Frequency Counter (siliconchip.com.au/Series/319; October-December 2017) projects. It’s in the same kind of 4-pin MicroX package and the circuit of Fig.3 is virtually identical to the recommended circuit for the ERA-2SM+. To check out the module’s performance, I connected it to a 9V regulated supply (it draws around 40mA) and linked its RF output to an Agilent V3500A RF power meter. Then to check its noise performance I terminated its input with 50W and measured its output over the module’s claimed range of 0.1MHz-2GHz and beyond (up to 4GHz, in fact). The results of this first test are shown in the blue curve of Fig.4, with Australia’s electronics magazine the noise level axis on the right. The module’s noise level is close to -50dBm across the entire range so it qualifies as a low-noise amplifier or “LNA”. For the frequency response, I drove the input with my Gratten GA1484B signal generator, using a short SMA cable and a T-connector at the input with a 50W terminator. I ran the signal generator from 0.1kHz to 4GHz with its output level set to -30dBm. I ran the same test with just the test cable and subtracted the cable loss from the earlier results, giving the red curve in Fig.4, which corresponds to the gain axis. This shows a gain figure of around 30dB up to 1GHz, dropping to 24dB at 2GHz, then to 16dB at 3GHz and a whisker less than 12dB at 4GHz. So the module provides a useful amount of gain up to 2GHz. Finally, I did some measurements to see the input signal levels that the module could handle before compression took place. I actually used a second module for this testing, and the second module turned out to have lower gain than the first, by about 3dB. That’s why the levels shown in Fig.5 are all a little lower than in Fig.4. At just about all frequencies, the maximum input level without compression is close to -20dBm, or 22.4mV across 50W. Above this, gain falls away. So it’s better to think of it as a lownoise preamplifier rather than a power amplifier. They are available from Banggood (siliconchip.com.au/link/aak4) for around $10 each, or even less on eBay. You’ll pay more for a pair of edgemount SMA connectors! Teaming it up with the frequency counter module Since both modules can be run from 9V DC, you could power them from the same supply, although the combined current draw of nearly 100mA is on the high side for a 9V battery. siliconchip.com.au Silicon Chip Binders NOW PRICED AT $19.50 * PLUS P & P Fig.4: the blue curve represents the noise output of the preamplifier module when terminated with 50W, from 10MHz to 4GHz. The red curve shows the gain of the preamplifier over the same range. Are your copies of SILICON CHIP getting damaged just lying around in a cupboard or on a shelf? Can you quickly find a particular issue that you need to refer to? Keep your copies safe, secure and always available with these handy binders These binders will protect your copies of SILICON CHIP. They feature heavy-board covers, hold 12 issues & will look great on your bookshelf. H 80mm internal width Fig.5: shows the input signal levels the module could handle before compression took place. Note that a second module was used with these tests, one which had a gain about 3dB lower than the module used for the tests in Fig.4. You would definitely need to use an alkaline 9V battery if you don’t want to power them from a plugpack. It’s simply a matter of using a short SMA patch cable to wire the output of the LNA to the input of the frequency counter and you will have a counter with a sensitivity of around -40dBm from 20MHz to 500MHz, falling to -30dBm at 10MHz, -20dBm at 6MHz and around -10dBm at 3MHz. This would mean, for example, that you could connect a whip antenna to siliconchip.com.au the LNA input and “sniff” the transmission from an RF transmitter which operates in the 10-500MHz range by simply bringing the two antennas close SC together. The 8x2 LCD on the 500MHz frequency counter module will display up to 4 digits of precision. Australia’s electronics magazine H SILICON CHIP logo printed in gold-coloured lettering on spine & cover Silicon Chip Publications PO Box 139 Collaroy Beach 2097 Order online from www. siliconchip.com.au/Shop/4 or call (02) 9939 3295 and quote your credit card number. *See website for overseas prices. July 2018  85