Silicon ChipAutomatic night light - 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 #017 – by Tim Blythman Automatic Night Light While Arduino modules make it easy to add sensors to microcontrollers, the same modules can often be used without a micro. For example, Jaycar’s XC4444 PIR sensor modules can be easily turned into a night light controller with just a few extra parts. M any night lights are programmed to only turn on when they detect motion in the dark, using a PIR (passive infrared) motion sensor and an LDR (light dependent resistor) to detect the ambient light level. It’s certainly a handy thing to have around the house. Recently, we came across an application note explaining how to add an LDR to the BISS0001 PIR sensor controller chips, as used in Jaycar’s XC4444 PIR sensor module. By adding an LDR to the PIR module, the PIR sensor will only operate when the LDR has a high resistance; that is, when it is dark. We just need a way for the PIR sensor module to switch on a light, and we have a useful circuit. One bonus of this arrangement is that these PIR sensor controllers are designed to have a very low quiescent (idle) current, so our circuit is wellsuited to being powered by batteries. It will only draw any significant current when the light is actually on. We’ll mention some other features of the PIR sensor module a bit later. It is quite configurable and has some adjustments that can be changed to tweak its behaviour. The XC4444 PIR module This module has a PIR sensor with two sensing elements. The elements detect the IR radiation that is passively emitted from people and animals. The elements are arranged so the output is their difference. When a passive IR emitter walks past, the signal changes as the elements report differing amounts of IR radiation. The BISS0001 PIR sensor controller chip mentioned earlier turns this into a digital output signal that is usually low but goes high when a moving object is detected. The module has two trimpots to set the sensitivity and the duration of the output pulse. Figs.1 & 2 show a block diagram and their corresponding parts Fig.1 (left): this block diagram shows what is built into the PIR sensor module’s small PCB. The output has a series 1kW resistor, so we can directly connect it to a bipolar transistor’s base. DELAY TRIMPOT SENSITIVITY TRIMPOT VOLTAGE REGULATOR LDR (NOT FITTED) After removing the plastic lens, the LDR module is soldered to the pads labelled “RL” on the PIR module as shown. The LDR’s light-sensitive side must be facing the same direction as the IR sensor. 52 Silicon Chip PIR SENSOR ON REVERSE OF PCB POWER AND IO HEADER CONTROLLER IC Fig.2 (above): the locations of the parts on the PIR PCB. The two pads near the header are for the optional LDR, while two others can accept a thermistor to provide temperature compensation. Australia's electronics magazine siliconchip.com.au ADVANCED TEST T EEZERS The Advanced Test Tweezers have 10 different modes, so you can measure ☑ Resistance: 1Ω to 40MΩ, ±1% ☑ Capacitance: 10pF to 150μF, ±5% ☑ Diode forward voltage: 0-2.4V, ±2% ☑ Combined resistance/ capacitance/diode display ☑ Voltmeter: 0 to ±30V ±2% ☑ Oscilloscope: ranges ±30V at up to 25kSa/s ☑ Serial UART decoder ☑ I/V curve plotter ☑ Logic probe ☑ Audio tone/square wave on the module. Note that the module does not come with the LDR fitted, so it needs to be added, but that is quite easy. emitter (E) pin. As a result, all three elements of the RGB LED light up, providing white illumination. The human eye is surprisingly sensitive, so even a small LED module like this will provide adequate light in a dark room. Circuit details Fig.3 is the circuit for our Night Light. Power comes from a 3×AA battery holder, providing a nominal 4.5V. The PIR sensor module contains a 3.3V regulator and will work with any supply voltage from 4V to 12V. We have arranged for the output of the sensor to drive an NPN transistor. A bipolar junction transistor like this should have a base resistor to limit the base current, but there is actually a 1kW resistor in series with the module’s output, so an external resistor is not needed. When the output goes high, it biases the transistor on and current can flow from the transistor’s collector (C) to its generator Assembly Because soldering is needed to add the LDR to the PIR module, we decided to build the Night Light on a small prototyping board. The wiring is elementary and could easily be done without a prototyping board, but it makes a nice, stable base for the device. The first step is to fit the LDR to the PIR module. The large plastic lens is just a friction fit to the PIR module’s PCB, so it can be pulled or prised off with a flat-tipped screwdriver. Having done that, solder the LDR to the pads labelled RL on the PCB, with Complete Kit (Cat SC6631) siliconchip.com.au/Shop/20/6631 The kit includes everything pictured, except the lithium coin cell and optional programming header. See the series of articles in the February & March 2023 issues for more details (siliconchip.com.au/Series/396). the LDR’s light sensitive side facing in the same direction as the existing IR sensor. Make sure the LDR doesn’t block the IR sensor; refer to our photos to see how we arranged it. After that, pop the lens back on. Next, carefully bend the three-pin header to allow the PIR module to be mounted facing outwards on the prototyping board. Again, refer to our photos if you aren’t sure about this. The prototyping board has two copper tracks that snake around it, which we used for the Vcc (4.5V) and GND (0V) rails. Fig.4 shows how we laid out the parts and wiring. Note that this assumes you have a −BRG marked RGB LED module, as we got from our local Jaycar. Other versions of the module may be wired differently and may not even need the three external resistors. Fig.3: in our Night Light circuit, a signal from the PIR module drives the transistor which then switches the LED module on. It will run for a long time from three AA cells, using negligible power until it is activated. siliconchip.com.au Australia's electronics magazine December 2024  53 Parts List – Automatic Night Light (JMP017) 1 PIR sensor module [Jaycar XC4444] 1 RGB LED module [Jaycar XC4428] 1 light-dependent resistor (LDR) [Jaycar RD3480] 1 BC546, BC547, BC548, BC549 or similar NPN transistor [Jaycar ZT2154] 3 150W ½W axial resistors [Jaycar RR0552] 1 mini prototyping board [Jaycar HP9556] 1 3×AA cell holder [Jaycar PH9274] 3 AA cells 1 10cm length of insulated wire (cut from excess length on battery holder) 4 self-adhesive feet (optional) [Jaycar HP0815] If you have a part marked +BRG or similar (meaning it is a common anode type, instead of common cathode), the + or anode should go to the red 4.5V supply and the common end of the three resistors should connect to the transistor’s collector. If you want to use a different LED, make sure that it has the appropriate series resistor for your chosen voltage and connect the anode to 4.5V and the cathode to the transistor collector. We recommend fitting the lower-­ profile parts (like resistors) and wires before the modules, as they are difficult to get to otherwise. Fortunately, two of the three transistor leads line up with two of the PIR module’s leads, simplifying the layout. Make sure you don’t get the transistor backwards. Now add the LED module, battery holder and insert the cells. You can test that the LED is wired correctly by shorting the outer two leads of the transistor (emitter and collector), which could cause it to light, as long as the cells are inserted in the battery holder. If all is well, remove the cells, solder the PIR module in place and then refit the cells. As we’ve added the LDR to the PIR module, you’ll need a dark room to test the Night Light. Walk in front of it and check that the LED lights up. It might only be for a second or so, but that is enough to know it is working. Conclusion Using the two trimpots shown in Fig.2, you can adjust the sensitivity and delay time. Both increase when the trimpots are rotated clockwise. The delay refers to the time that the output is high and thus the time the LED is on after each trigger event. We suggest setting the delay to its minimum (fully anti-clockwise) and sensitivity near the middle, then adjust the sensitivity until you are happy with how close you have to get before it’s triggered. That’s easier to do when the LED only stays on for about a second at a time. After that, adjust the delay to your liking. The working range is about one second to three minutes. Fit rubber feet if you wish, and set up the Night Light where it is needed. We measured the current draw of our prototype at 50μA when idle and 35mA when the LED was on, so the battery life will mostly depend on how much the light is activated. If the Night Light is used infrequently, the AA cells should last for several years. You will see the light getting dimmer as the battery SC goes flat. Fig.4 (left): a top view of how we laid out our prototype. The copper pattern is not visible from this angle; we have shown it here so you can see how the 4.5V and ground rails are connected on the other side of the PCB. The photo above shows how we have laid out the wiring on our prototyping board. The adjacent close-up photo shows the two points under the board where we used blobs of solder to connect to the 4.5V supply and ground rails. 54 Silicon Chip Australia's electronics magazine siliconchip.com.au