Silicon ChipJMP014 - Analog pace clock & stopwatch - November 2024 SILICON CHIP
  1. Outer Front Cover
  2. Contents
  3. Publisher's Letter: The hydraulic analogy is valuable for beginners
  4. Feature: Nikola Tesla, Part 2 by Dr David Maddison
  5. Project: Variable Speed Drive Mk2, Part 1 by Andrew Levido
  6. Subscriptions
  7. Feature: Precision Electronics, Part 1 by Andrew Levido
  8. Project: Surf Sound Simulator by John Clarke
  9. Project: JMP014 - Analog pace clock & stopwatch by Tim Blythman
  10. Project: JMP013 - Digital spirit level by Tim Blythman
  11. Project: FlexiDice by Tim Blythman
  12. Feature: 0.91-inch OLED Screen by Jim Rowe
  13. Project: 3D Printer Filament Dryer, Part 2 by Phil Prosser
  14. Feature: Maxwell’s Equations by Brandon Speedie
  15. PartShop
  16. Serviceman's Log: The Show Must Go On by Dave Thompson
  17. Vintage Radio: Revisting the Zenith Royal 500 by Ian Batty
  18. Market Centre
  19. Advertising Index
  20. Notes & Errata: PicoMSA, September 2024
  21. Outer Back Cover

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

You can view 46 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.

Articles in this series:
  • The life of Nikola Tesla, Part 1 (October 2024)
  • The life of Nikola Tesla, Part 1 (October 2024)
  • Nikola Tesla, Part 2 (November 2024)
  • Nikola Tesla, Part 2 (November 2024)
Items relevant to "Variable Speed Drive Mk2, Part 1":
  • 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)
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 "Surf Sound Simulator":
  • Surf Sound Simulator PCB [01111241] (AUD $10.00)
  • Surf Sound Simulator PCB pattern (PDF download) [01111241] (Free)
Items relevant to "JMP014 - Analog pace clock & stopwatch":
  • Firmware for JMP014 - Pace Clock (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 "JMP013 - Digital spirit level":
  • Firmware for JMP013 - Digital Spirit Level (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 "FlexiDice":
  • FlexiDice PCB set [08107241-2] (AUD $5.00)
  • PIC16F18146-I/SO programmed for the Flexidice [0810724A.HEX] (Programmed Microcontroller, AUD $10.00)
  • 1.3-inch blue OLED with 4-pin I²C interface (Component, AUD $15.00)
  • 1.3-inch white OLED with 4-pin I²C interface (Component, AUD $15.00)
  • FlexiDice kit (Component, AUD $30.00)
  • Firmware (C and HEX) files for the FlexiDice (Software, Free)
  • FlexiDice PCB patterns (PDF download) [08107241-2] (Free)
Items relevant to "0.91-inch OLED Screen":
  • Software for driving a 0.91in OLED module (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 "3D Printer Filament Dryer, Part 2":
  • Filament Dryer Control PCB [28110241] (AUD $7.50)
  • PIC16F15214-I/P programmed for the 3D Printer Filament Dryer [2811024A.HEX] (Programmed Microcontroller, AUD $10.00)
  • Firmware and 3D printing (STL) files for the 3D Printer Filament Dryer (Software, Free)
  • Filament Dryer Control PCB pattern (PDF download) [28110241] (Free)
  • 3D Printer Filament Dryer drilling templates (Panel Artwork, Free)
Articles in this series:
  • 3D Printer Filament Dryer, Part 1 (October 2024)
  • 3D Printer Filament Dryer, Part 1 (October 2024)
  • 3D Printer Filament Dryer, Part 2 (November 2024)
  • 3D Printer Filament Dryer, Part 2 (November 2024)

Purchase a printed copy of this issue for $13.00.

Mini Projects #014 – by Tim Blythman SILICON CHIP Analog Pace Clock & Stopwatch Despite the commonality of digital clocks, analog Pace Clocks are still prevalent, being used for purposes like timing swimming laps. This version is driven by a microcontroller, so it can be started and stopped and even used as a stopwatch. As well as the mounting and wiring arrangements, you can also see the jumper wire connected between D8 and ground to force the Pace Clock to operate when it is powered on. If wiring up the switches, they connect to D8-D12 and GND. P ace Clocks are used by swimmers for training and practice. It is claimed they were invented on Sydney’s Northern Beaches, just up the road from the Silicon Chip office. A pace clock has a solitary hand, and the face is marked out in seconds, making it easy and quick to check lap times. It is usually marked with a 60 (or zero) at the top and a 30 at the bottom. The hand sweeps one revolution per minute, allowing times to be measured by simply glancing at the clock at the end of each lap. It would be easy to make a Pace Clock using just the second hand of a standard quartz analog wall clock, but using a stepper motor and a microcontroller gives us several advantages. Firstly, the stepper motor is much more powerful than the motor in a quartz clock, so the Pace Clock can be built with a bigger face and longer hand, making it more visible. Secondly, adding a microcontroller means it is possible to turn the Pace Clock into a stopwatch. Our Pace Clock can be started, stopped and reset. Since this can be done using digital inputs on the microcontroller, you could even Parts List – Pace Clock (JMP014) 1 5V Stepper Motor with Controller [Jaycar XC4458] 1 Arduino Leonardo main board [Jaycar XC4430] 6 male-female jumper wires [Jaycar WC6028] 1 male-male jumper wire [Jaycar WC6024] power supply for the Leonardo (eg, a USB power supply & micro-USB cable) 2 M4 × 15mm panhead machine screws [Jaycar HP0453] 4 M4 flat washers [Jaycar HP0465] 2 M4 hex nuts [Jaycar HP0462] Nylon M3 screws, nuts and washers to mount the Leonardo & stepper driver 5 SPST momentary pushbutton switches (optional) wire to connect switches to Leonardo board (optional) 1 sheet of cardboard, Corflute or thin ply 1 printed clock face (see text) 1 clock hand (eg, cut from cardboard or 3D-printed) space-filling glue such as epoxy, hot melt glue or neutral-cure silicone sealant siliconchip.com.au Australia's electronics magazine use it for automated race timing with the right accessory hardware. You can see a short video of the Clock in operation at siliconchip.au/ Videos/Pace+Clock The Leonardo board we are using (like many Arduino-compatible boards) has a crystal oscillator, so it will be pretty accurate, typically within 50ppm; that’s certainly accurate enough for an analog clock that is meant to be read by eye. We’ll detail the construction of our prototype, which is based on a clock face around 20cm across (allowing it to be printed on A4 paper). But you should have no trouble scaling up your version to be larger if needed. Circuit details Fig.1 shows the circuit. The stepper motor and its controller are on the right and are connected by a harness terminated with a polarised plug, so it can only plug in one way. The boxed area shows the parts on the stepper motor control module. Note how they connect to the motor and the Arduino Leonardo microcontroller board. This stepper motor has four windings, each of which is positioned in conjunction with an arrangement of fixed metal teeth. When energised November 2024  59 ALL DIMENSIONS ARE IN MILLIMETRES sequentially, they attract the corresponding teeth on the rotor. Because the teeth are positioned at intervals, the motor’s position can be set quite accurately. The motor we are using has 32 teeth and is also connected to a 1:64 reduction gearbox. That is equivalent to a simple stepper motor with 2048 teeth, which is more than enough to count out seconds with precision. The driver IC is a ULN2003 chip with open-collector Darlington transistor outputs; only four of its seven channels are used. The ULN2003 pulls its outputs to ground when the corresponding input is driven high. In addition to the connections to the motor windings, there are four LEDs with series resistors. Their anodes are connected to 5V and the cathodes to the outputs, so the LEDs light up as each winding is activated. Since the stepper motor is a unipolar type, this simple control system works well. A bipolar stepper motor type would require a more complex circuit, such as an H-bridge, that can drive positive and negative voltages. 60 Silicon Chip Six jumper wires provide power and control signals from the Leonardo to the stepper motor controller. For more information on stepper motors, see our primer article (January 2019 issue; siliconchip.au/Article/11370). To build a functioning circuit, you need only the first five items in the parts list. You might like to test and assemble them first to get a feel for the stepper motor’s operation. Assembly We tested our prototype with an Arduino Leonardo, so we know that it works, but just about any Arduino board with enough pins should also work. The functions of the pins are set by #defines in the sketch so that they can be changed if needed. The motor draws around 100mA, which any Arduino board can supply from its 5V pin. Connect the six jumper wires between the Leonardo and driver board as shown in Fig.1. For testing, connect an extra jumper wire between D8 and ground; that will start the clock when it is powered on (you can see this Australia's electronics magazine in our lead photo showing the back of the Clock). Software You’ll need the Arduino IDE software to upload the sketch to the board. It can be downloaded from: siliconchip.au/link/aatq Once it is installed and running, choose the Leonardo board and its corresponding serial port in its menus. Download the PACE_CLOCK sketch from our website (siliconchip. au/Shop/6/486), open it in the IDE and upload it to the Leonardo board (Ctrl-U). The default sketch scans all the switches shown in Fig.1; they are simply ignored if they are unconnected. You should see the LEDs on the driver board start to move in a quick sequence. Connect the motor and it should start to rotate at 1 RPM. If the motor buzzes or hums without turning, check that all the wires are connected and in the correct sequence. You can test the other switch functions by disconnecting the jumper wire from D8 and touching it to each siliconchip.com.au Fig.1: the driver module and pluggable wiring harness make this a very easy project to build, at least electronically. Take care with the wiring between the Leonardo and the driver module and you should have no trouble getting this circuit up and running. Fig.2: the dimensions for mounting the stepper motor. The larger 9mm hole accommodates the boss that protrudes from the body of the motor; the shaft is only 5mm in diameter and 3mm across the flats. The centre of the 9mm hole also marks the centre of the clock face. of D9-D12. The function pins are set out in the sketch. When the Start switch is pressed, the clock begins delivering the sequence to the control board needed to advance the clock hand. When the Stop switch is closed, the sequence is paused. Pressing Reset causes a faster sequence to be generated in reverse order, which rewinds the hand to the zero position. All we need to do this accurately is to keep count of the steps that the hand has moved. The Trim+ and Trim- buttons only work when the hand is stopped. They move the hand forwards and backwards at a moderate pace, to allow it to move to a new zero position, such as when first powered on. This also resets the step number. Clock face An online image search for “pace clock face” gave us many samples that could be printed out for use on the Pace Clock. We simply printed ours on a sheet of A4 copy paper and glued it to a piece of cardboard. siliconchip.com.au Our clock face was printed on a sheet of A4 paper and glued to a piece of cardboard. The metal screws retain the stepper motor while the plastic screw heads are for the Leonardo and driver module; the positions of the latter are not critical. If you want something a bit more polished, Bunnings has sheets of white Corflute (corrugated plastic sheet) that would also work quite well as a baseboard. We used Fig.2 to mark out the holes we would need and carefully cut them out with a sharp hobby knife. Wad punches would work quite well if you have them. Use M4 machine screws to mount the stepper motor to the board, with just the shaft poking out the front. The driver board and Leonardo have 3mm mounting holes, so they can be mounted with the Nylon M3 hardware. The positions are not critical; we recommend placing the Leonardo near the bottom of the clock so its power lead can hang down. We also designed a 3D-printed hand and a bracket to help mount a custom-­ built hand to the stepper motor’s shaft. These are available as part of the software download. We printed ours on a resin printer, and you can see them in our finished clock in the photos. A simpler approach would be to use a cardboard cutout for the hand. When Australia's electronics magazine The hand on the right has a socket on its underside, like the bracket at lower left, that makes it a friction fit to the stepper motor shaft. You might like to add some glue to help secure it. November 2024  61 gluing the parts, apply the glue and then rest the clock face-down. That will prevent the glue from running back up the shaft and into the workings of the motor. Customisation Our Pace Clock is not waterproof at all, so you will need to install it in a waterproof enclosure for use around the pool or at the beach. For simplicity, we left the control switches off our prototype. You could mount the Trim switches on the back since they won’t be used often. You could mount the Stop, Start and Reset buttons remotely, so that they can be controlled from a convenient location. If you want to make your Pace Clock more robust, something like the XC4482 prototyping shield could be used to mount the wires and switches. A few #defines in the sketch can be used to customise the Pace Clock. The PERIOD #define sets the time for one revolution and could be changed if you wanted a different period (eg, 30 seconds or two minutes). We have seen some Pace Clocks at swimming pools with dual opposing hands of different colours, so you The Palm Beach Scientific Training Group poses with the world’s first swimming pace clock at the Palm Beach rock pool north of Sydney, Australia. Source: https://swimswam.com/history-swimming-pace-clock/ Songbird don’t have to wait as long for one to reach the zero. If you need the clock to operate anti-clockwise, use the ANTICLOCKWISE #define in the code. An easy-to-build project Unfortunately, this will not make time run backwards. As noted earlier, the nine I/O pins that are used are also set by #defines, so you can change them SC too if you wish. that is perfect as a gift. SC6633 ($30 plus postage): Songbird Kit Choose from one of four colours for the PCB (purple, green, yellow or red). The kit includes nearly all parts, plus the piezo buzzer, 3D-printed piezo mount and switched battery box (base/stand not included). See the May 2023 issue for details: siliconchip.au/Article/15785 62 Silicon Chip Australia's electronics magazine siliconchip.com.au