Silicon ChipWiFi weather logger - December 2024 SILICON CHIP
  1. Outer Front Cover
  2. Contents
  3. Publisher's Letter: Printer ink costs more than gold!
  4. Subscriptions
  5. Feature: Undersea Communications by Dr David Maddison
  6. Project: Capacitor Discharger by Andrew Levido
  7. Feature: Precision Electronics, Part 2 by Andrew Levido
  8. Project: Compact HiFi Headphone Amp by Nicholas Vinen
  9. Project: Automatic night light by Tim Blythman
  10. Project: WiFi weather logger by Tim Blythman
  11. Review: Raspberry Pi Pico 2 by Tim Blythman
  12. Project: The Pico Computer by Tim Blythman
  13. Project: Variable Speed Drive Mk2, Part 2 by Andrew Levido
  14. PartShop
  15. Serviceman's Log: All washed up by Dave Thompson
  16. Vintage Radio: Dallas Arbiter Fuzz Face guitar pedal by Brandon Speedie
  17. Vintage Radio: MicroBee 256TC Computer by Don Peterson
  18. Market Centre
  19. Advertising Index
  20. Outer Back Cover

This is only a preview of the December 2024 issue of Silicon Chip.

You can view 40 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 "Capacitor Discharger":
  • Capacitor Discharger PCB [9047-01] (AUD $5.00)
  • AOT10N60 High-voltage Mosfet for the 230VAC Fan Speed Controllers (Component, AUD $5.00)
  • Capacitor Discharger short-form kit (Component, AUD $30.00)
  • Capacitor Discharger PCB pattern (PDF download) [9047-01] (Free)
  • Capacitor Discharger drilling diagrams (Panel Artwork, Free)
Articles in this series:
  • Precision Electronics, Part 1 (November 2024)
  • Precision Electronics, Part 1 (November 2024)
  • Precision Electronics, Part 2 (December 2024)
  • Precision Electronics, Part 2 (December 2024)
  • Precision Electronics, Part 3 (January 2025)
  • Precision Electronics, part one (January 2025)
  • Precision Electronics, part one (January 2025)
  • Precision Electronics, Part 3 (January 2025)
  • Precision Electronics, part two (February 2025)
  • Precision Electronics, Part 4 (February 2025)
  • Precision Electronics, Part 4 (February 2025)
  • Precision Electronics, part two (February 2025)
  • Precision Electronics, part three (March 2025)
  • Precision Electronics, part three (March 2025)
  • Precision Electronics, Part 5 (March 2025)
  • Precision Electronics, Part 5 (March 2025)
  • Precision Electronics, Part 6 (April 2025)
  • Precision Electronics, Part 6 (April 2025)
  • Precision Electronics, part four (April 2025)
  • Precision Electronics, part four (April 2025)
  • Precision Electronics, part five (May 2025)
  • Precision Electronics, Part 7: ADCs (May 2025)
  • Precision Electronics, part five (May 2025)
  • Precision Electronics, Part 7: ADCs (May 2025)
  • Precision Electronics, part six (June 2025)
  • Precision Electronics, part six (June 2025)
Items relevant to "Compact HiFi Headphone Amp":
  • Compact HiFi Headphone Amplifier PCB [01103241] (AUD $7.50)
  • Dual Horizontal PCB-mounting RCA sockets (white/red) [RCA-210] (Component, AUD $2.50)
  • Compact HiFi Headphone Amplifier kit (Component, AUD $70.00)
  • Compact HiFi Headphone Amplifier PCB pattern (PDF download) [01103241] (Free)
  • Compact HiFi Headphone Amplifier panel drilling diagram (Panel Artwork, Free)
Articles in this series:
  • Compact HiFi Headphone Amp (December 2024)
  • Compact HiFi Headphone Amp (December 2024)
  • Compact HiFi Headphone Amp (January 2025)
  • Compact HiFi Headphone Amp (January 2025)
Articles in this series:
  • Wired Infrared Remote Extender (May 2024)
  • Symbol USB Keyboard (May 2024)
  • Wired Infrared Remote Extender (May 2024)
  • Thermal Fan Controller (May 2024)
  • Symbol USB Keyboard (May 2024)
  • Thermal Fan Controller (May 2024)
  • Self Toggling Relay (June 2024)
  • Self Toggling Relay (June 2024)
  • Arduino Clap Light (June 2024)
  • Arduino Clap Light (June 2024)
  • Lava Lamp Display (July 2024)
  • Digital Compass (July 2024)
  • Digital Compass (July 2024)
  • Lava Lamp Display (July 2024)
  • JMP009 - Stroboscope and Tachometer (August 2024)
  • JMP007 - Ultrasonic Garage Door Notifier (August 2024)
  • JMP009 - Stroboscope and Tachometer (August 2024)
  • JMP007 - Ultrasonic Garage Door Notifier (August 2024)
  • IR Helper (September 2024)
  • IR Helper (September 2024)
  • No-IC Colour Shifter (September 2024)
  • No-IC Colour Shifter (September 2024)
  • JMP012 - WiFi Relay Remote Control (October 2024)
  • JMP012 - WiFi Relay Remote Control (October 2024)
  • JMP015 - Analog Servo Gauge (October 2024)
  • JMP015 - Analog Servo Gauge (October 2024)
  • JMP013 - Digital spirit level (November 2024)
  • JMP013 - Digital spirit level (November 2024)
  • JMP014 - Analog pace clock & stopwatch (November 2024)
  • JMP014 - Analog pace clock & stopwatch (November 2024)
  • WiFi weather logger (December 2024)
  • Automatic night light (December 2024)
  • WiFi weather logger (December 2024)
  • Automatic night light (December 2024)
  • BIG LED clock (January 2025)
  • Gesture-controlled USB lamp (January 2025)
  • Gesture-controlled USB lamp (January 2025)
  • BIG LED clock (January 2025)
  • Transistor tester (February 2025)
  • Wireless flashing LEDs (February 2025)
  • Transistor tester (February 2025)
  • Wireless flashing LEDs (February 2025)
  • Continuity Tester (March 2025)
  • RF Remote Receiver (March 2025)
  • Continuity Tester (March 2025)
  • RF Remote Receiver (March 2025)
  • Discrete 555 timer (April 2025)
  • Weather monitor (April 2025)
  • Discrete 555 timer (April 2025)
  • Weather monitor (April 2025)
Items relevant to "WiFi weather logger":
  • Firmware for JMP016 - WiFi Weather Logger (Software, Free)
Articles in this series:
  • Wired Infrared Remote Extender (May 2024)
  • Symbol USB Keyboard (May 2024)
  • Wired Infrared Remote Extender (May 2024)
  • Thermal Fan Controller (May 2024)
  • Symbol USB Keyboard (May 2024)
  • Thermal Fan Controller (May 2024)
  • Self Toggling Relay (June 2024)
  • Self Toggling Relay (June 2024)
  • Arduino Clap Light (June 2024)
  • Arduino Clap Light (June 2024)
  • Lava Lamp Display (July 2024)
  • Digital Compass (July 2024)
  • Digital Compass (July 2024)
  • Lava Lamp Display (July 2024)
  • JMP009 - Stroboscope and Tachometer (August 2024)
  • JMP007 - Ultrasonic Garage Door Notifier (August 2024)
  • JMP009 - Stroboscope and Tachometer (August 2024)
  • JMP007 - Ultrasonic Garage Door Notifier (August 2024)
  • IR Helper (September 2024)
  • IR Helper (September 2024)
  • No-IC Colour Shifter (September 2024)
  • No-IC Colour Shifter (September 2024)
  • JMP012 - WiFi Relay Remote Control (October 2024)
  • JMP012 - WiFi Relay Remote Control (October 2024)
  • JMP015 - Analog Servo Gauge (October 2024)
  • JMP015 - Analog Servo Gauge (October 2024)
  • JMP013 - Digital spirit level (November 2024)
  • JMP013 - Digital spirit level (November 2024)
  • JMP014 - Analog pace clock & stopwatch (November 2024)
  • JMP014 - Analog pace clock & stopwatch (November 2024)
  • WiFi weather logger (December 2024)
  • Automatic night light (December 2024)
  • WiFi weather logger (December 2024)
  • Automatic night light (December 2024)
  • BIG LED clock (January 2025)
  • Gesture-controlled USB lamp (January 2025)
  • Gesture-controlled USB lamp (January 2025)
  • BIG LED clock (January 2025)
  • Transistor tester (February 2025)
  • Wireless flashing LEDs (February 2025)
  • Transistor tester (February 2025)
  • Wireless flashing LEDs (February 2025)
  • Continuity Tester (March 2025)
  • RF Remote Receiver (March 2025)
  • Continuity Tester (March 2025)
  • RF Remote Receiver (March 2025)
  • Discrete 555 timer (April 2025)
  • Weather monitor (April 2025)
  • Discrete 555 timer (April 2025)
  • Weather monitor (April 2025)
Items relevant to "The Pico Computer":
  • Pico Computer PCB [07112234] (AUD $5.00)
  • PWM Audio PCB [07112238] (AUD $2.50)
  • ESP-PSRAM64 64Mb (8MB) PSRAM chip (SOIC-8) (Component, AUD $5.00)
  • DS3231MZ real-time clock IC (SOIC-8) (Component, AUD $8.00)
  • DS3231 real-time clock IC (SOIC-16) (Component, AUD $7.50)
  • Pico Computer kit (Component, AUD $40.00)
  • PWM Audio Module kit (Component, AUD $10.00)
  • Pico Computer kit with Pico (Component, AUD $50.00)
  • Digital Video Terminal kit (Component, AUD $65.00)
  • Pico Computer front panel (07112235) (PCB, AUD $2.50)
  • Pico Computer demonstration software (Free)
  • Pico Computer & PWM Audio Module PCB patterns (PDF download) [07112234, 07112238] (Free)
  • Pico Computer panel cutting diagrams (Panel Artwork, Free)
Items relevant to "Variable Speed Drive Mk2, Part 2":
  • Mk2 VSD PCB [11111241 or 9048-02] (AUD $15.00)
  • STM32G030K6T6 programmed for the VSD Mk2 [1111124A] (Programmed Microcontroller, AUD $10.00)
  • Firmware for the VSD Mk2 (Software, Free)
  • VSD Mk2 PCB pattern (PDF download) [11111241] (Free)
  • Mk2 VSD drilling & cutting diagrams (Panel Artwork, Free)
Articles in this series:
  • Variable Speed Drive Mk2, Part 1 (November 2024)
  • Variable Speed Drive Mk2, Part 1 (November 2024)
  • Variable Speed Drive Mk2, Part 2 (December 2024)
  • Variable Speed Drive Mk2, Part 2 (December 2024)

Purchase a printed copy of this issue for $13.00.

SILICON CHIP Mini Projects #016 – by Tim Blythman WiFi Weather Logger This simple but incredibly useful project can put the weather at your fingertips. It monitors and logs temperature and humidity. You can download the logs and see all the important statistics from a web browser on any device connected to your WiFi network. Y ou can buy all manner of wireless weather stations but this one is simple and easy to build. Because it’s programmed using the Arduino IDE, you can customise it as you wish. The hardware assembly is simple as it consists of just three pluggable boards. You might need to do some soldering if the headers are not already attached when you buy them, but that’s about it. We’re using a WiFi Mini board, which sports an ESP8266 processor. A module based on the DHT11 sensor measures the temperature and humidity. Finally, a microSD card module is used to save the data. Fig.1 shows the circuit for the Logger, with the three boxes showing the contents of each of the peripheral modules. The WiFi Mini board has a few niceties that aren’t shown, such as a USB-serial converter and voltage regulator, while the other modules are quite minimal. The processor on the WiFi Mini board connects to the DHT11 sensor using its D4 digital input/output pin. It uses a simple bidirectional one-wire protocol, so only one pin is needed, along with the included 5.1kW pullup resistor. You’ll note that the onboard LED of the WiFi Mini also uses the D4 pin. It doesn’t interfere, and we know communication is occurring when the LED flashes. The SPI pins of the WiFi Mini board connect to their respective pins on the microSD card socket. siliconchip.com.au If you don’t have the exact DHT11 module or microSD card shield, then you should be able to work out the connections using Fig.1. The software library we are using also supports the similar DHT22 sensors without requiring any changes. However, note that we have not tested this. Construction Ensure that the three boards are fitted with suitable headers. We used stackable headers on all of them for flexibility, but you could use male or female headers for some to make the stack more compact. Simply plug the boards together, being sure to match their orientation to our photos! We placed the DHT module at the bottom so it wouldn’t be affected by any heat rising from boards below it. We put the WiFi Mini board at the top to keep it free from radio interference, meaning the microSD card module ended up in the middle. If you don’t have the shields, a breadboard or prototyping board might help to make the connections, although you might need a few jumper wires to complete the circuitry. Fit a microSD card to the socket, Fig.1: the circuit consists of three shield boards that we plugged together, although you could use different modules/components and jumper wires if you already have them. The coloured boxes show the contents of the two peripheral boards and how they connect to the processor board. Australia's electronics magazine December 2024  59 freshly FAT-formatted if possible. FAT16 and FAT32 are supported; usually, FAT16 is used for cards up to 2GB. The fewer files on the card, the less processing the WiFi Mini will have to do to read it. The Logger generates less than 1MB of data per year, so even a low-capacity card should be sufficient. Parts List – Weather Logger (JMP016) 1 WiFi Mini ESP8266 Main Board (MOD1) [Jaycar XC3802] 1 microSD card shield (MOD2) [Jaycar XC3852] 1 DHT11 temperature and humidity shield (MOD3) [Jaycar XC3856] 1 FAT-formatted microSD card 1 micro USB cable for programming and power The WiFi Weather Logger uses just these three modules, a microSD card and a micro USB cable. Add http://arduino.esp8266.com/ stable/package_esp8266com_index. json to the Additional Board Manager URLs list, then search for and install “esp8266” from the Board Manager. You’ll also need the DHTNEW library. We’ve included a copy of version 4.3.1 (the one we used) in the software download package at siliconchip. au/Shop/6/512 You can also search for DHTNEW in the Library Manager to install the library named DHTNEW, or download it from https://github.com/RobTillaart/ DHTNEW If you haven’t used the WiFi Mini before, your computer may need drivers. These can be found in the download section of the Jaycar WiFi Mini product page at www.jaycar.com.au/p/ XC3802 Open the WIFI_WEATHER_LOGGER sketch from the software download package. You will have to edit the sketch to include your WiFi name (SSID) and password, which are set by #defines at the very start of the sketch. The NORMAL_OFFSET #define can be altered to set your local timezone offset in minutes. The default of 600 minutes (+10 hours) is correct for Sydney, Melbourne, Hobart and Canberra. You can see these in Screen 1. Select the serial port of the WiFi Mini and choose “D1 R2 & Mini” for the board type, then upload the sketch to the board. When this completes, open the serial monitor at 115,200 baud and check that everything is working as expected, as shown in Screen 2. The WiFi Mini will reboot after 30 seconds if it does not successfully connect to WiFi. Otherwise, it will report its progress in initialising the hardware. Typing ‘~’ followed by Enter in the Serial Monitor will run the card contents listing seen at the bottom of Screen 2. If you have a problem, trying resetting the WiFi Mini with its RESET button. Check that the card is correctly inserted if it is giving an error. Typing ‘s’ followed by Enter in the Serial Monitor will show its status, while Australia's electronics magazine siliconchip.com.au Software The Logger’s software will connect to the internet and fetch the time using NTP (network time protocol). It will then get temperature and humidity data from the DHT11 sensor hourly and log them to the microSD card. It also presents an HTTP server that can be used to check the status and download data using a web browser. You’ll need to install the Arduino IDE (if you don’t already have it, you can download it from siliconchip.au/ link/aatq) and the ESP8266 processor board add-on. The add-on is installed from the Preferences menu of the IDE. Screen 1: make sure to update your WiFi network settings here so that the Logger can connect to your WiFi network. Adjust the time zone offset (in minutes) relative to UTC to suit your location. Connecting to Tim. ................ Connected! IP address: 192.168.xxx.xxx Getting time from NTP sending NTP packet... 48 bytes received. NTP is 0xEA5C1453 Time is 13:17:39 on 06/08/2024 (local time) SD card initialised Root directory found STATUS: IP=192.168.xxx.xxx, Card OK, NTP OK Card listing: 0 System Volume Information [FOLDER] 1 202404.csv 29541 bytes 2 202405.csv 30525 bytes 3 202406.csv 29541 bytes 4 202407.csv 30525 bytes 5 202408.csv 5516 bytes Screen 2: The Arduino Serial Monitor should show something like this if all is working well. The serial port is set to 115,200 baud. 60 Silicon Chip typing a number followed by Enter (as per listing on Screen 2) will show the corresponding file contents. If you see the LED flashing briefly, about once every two seconds, most likely everything is working as expected. If you have the necessary experience, you can modify the Arduino software to collect and log other data. Web interface Note down the IP address from the Screen 2 status report and type that into a web browser’s address bar. This will only be accessible from your local network (eg, devices that are on the same WiFi network). This should show a web page like the one shown in Screen 3. Your values and the files may be different. Check that the time is correct and that you are getting reasonable readings for temperature and humidity. You can refresh the page to get the latest data. The Logger will record data to the microSD card once per hour, on the hour, so let it run for a while to accrue some data. After that, refresh the page and see that you can download the CSV data files by clicking on the links. One file is generated for each month; each will grow to about 30kB. Screen 3: the Logger’s web page shows the current status and lists any files that can be downloaded from the microSD card. CSV files You can open the CSV files in a spreadsheet program like Excel or LibreOffice Calc. The leftmost column is a so-called ‘date serial number’. If you change this column to a date or time format, it will show as such and should match the date and time text in the second column. You can see this in Screen 4, along with the actual temperature and humidity readings, which can now be charted or converted to another data format as needed. Completion You can now install the Logger in its final location. You’ll need power, and you should make sure that the Logger and its wiring are protected from the sun and rain if it is outside. The shelter used to protect meteorological instruments is called a Stevenson screen (instrument shelter). We had no trouble finding versions online that could be 3D-printed. Otherwise, an inverted plastic container should do the trick. SC siliconchip.com.au Screen 4: CSV files from the Logger can be viewed in a spreadsheet program. You can change the format of column A to a suitable date or time format. Australia's electronics magazine December 2024  61