Silicon ChipHigh Power DC Motor Speed Control – Part 2 - February 2017 SILICON CHIP
  1. Outer Front Cover
  2. Contents
  3. Publisher's Letter: Where does innovation come from?
  4. Feature: Autonomous Flying Cars: your next mode of transport? by Ross Tester
  5. Feature: Getting Started with the Micromite by Geoff Graham
  6. PartShop
  7. Project: GPS-synchronised Analog Clock Driver by John Clarke
  8. Project: Ultra-low-voltage Versatile LED Flasher by Nicholas Vinen
  9. Subscriptions
  10. Project: El Cheapo Modules from Asia - Part 4 by Jim Rowe
  11. Serviceman's Log: Snoring through the night by Dave Thompson
  12. Project: High Power DC Motor Speed Control – Part 2 by Design by John Clarke
  13. Project: New SC200 Audio Amplifier – Part 2 by Nicholas Vinen
  14. Feature: First look: Aussie-made battery soldering iron by Ross Tester
  15. Vintage Radio: Hotpoint Model P64MEX 4-valve by Associate Professor Graham Parslow
  16. Feature: First look: Icom’s VE-PG3 Radio over IP Gateway by Ross Tester
  17. Market Centre
  18. Advertising Index
  19. Notes & Errata: High Power DC Motor Speed Control, Jan-Feb 2017
  20. Outer Back Cover

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

You can view 44 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:
  • Getting Started with the Micromite (February 2017)
  • Getting Started with the Micromite (February 2017)
  • Getting Started with the Micromite, Part Two (March 2017)
  • Getting Started with the Micromite, Part Two (March 2017)
  • Micromite Tutorial, Part 3: strings and arrays (May 2017)
  • Micromite Tutorial, Part 3: strings and arrays (May 2017)
  • Getting Started with the Micromite, Part 4 (June 2017)
  • Getting Started with the Micromite, Part 4 (June 2017)
Items relevant to "GPS-synchronised Analog Clock Driver":
  • GPS-synchronised Analog Clock Driver PCB [04202171] (AUD $10.00)
  • PIC16LF88-I/P programmed for the GPS-Synchronised Analog Clock for movements with stepping hands [04120217A.HEX] (Programmed Microcontroller, AUD $15.00)
  • PIC16LF88-I/P programmed for the GPS-Synchronised Analog Clock for movements with sweep hands [04130217A.HEX] (Programmed Microcontroller, AUD $15.00)
  • CP2102-based USB/TTL serial converter with microUSB socket and 6-pin right-angle header (Component, AUD $5.00)
  • VK2828U7G5LF TTL GPS/GLONASS/GALILEO module with antenna and cable (Component, AUD $25.00)
  • CP2102-based USB/TTL serial converter with microUSB socket and 6-pin right-angle header (clone version) (Component, AUD $3.00)
  • Firmware (C and HEX) files for the GPS-synchronised Analog Clock [04120217A.HEX/04130217A.HEX] (Software, Free)
  • GPS-synchronised Analog Clock Driver PCB pattern (PDF download) [04202171] (Free)
Items relevant to "Ultra-low-voltage Versatile LED Flasher":
  • Ultra-low-voltage Versatile LED Flasher PCB [16110161] (AUD $2.50)
  • Ultra Low Voltage Bright LED flasher kit (Component, AUD $17.50)
  • Ultra-low-voltage Versatile LED Flasher PCB pattern (PDF download) [16110161] (Free)
Items relevant to "El Cheapo Modules from Asia - Part 4":
  • DHT22/AM2302 Compatible Temperature and Humidity sensor module (Component, AUD $9.00)
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 "High Power DC Motor Speed Control – Part 2":
  • High Power DC Motor Speed Control main PCB [11112161] (AUD $10.00)
  • High Power DC Motor Speed Control Mosfet PCB [11112162] (AUD $12.50)
  • PIC16F88-I/P programmed for the High Power DC Motor Speed Controller [1111216A.HEX] (Programmed Microcontroller, AUD $15.00)
  • Hard-to-get parts for the High Power DC Motor Speed Controller (Component, AUD $50.00)
  • Firmware (ASM and HEX) files for the High Power DC Motor Speed Control [1111216A.HEX] (Software, Free)
  • High Power DC Motor Speed Control PCB patterns (PDF download) [11112161/2] (Free)
Articles in this series:
  • High Power DC Motor Speed Control (January 2017)
  • High Power DC Motor Speed Control (January 2017)
  • High Power DC Motor Speed Control – Part 2 (February 2017)
  • High Power DC Motor Speed Control – Part 2 (February 2017)
Items relevant to "New SC200 Audio Amplifier – Part 2":
  • Ultra-LD Mk3/Mk4 Amplifier Power Supply PCB [01109111] (AUD $15.00)
  • New SC200 Audio Amplifier PCB [01108161] (AUD $10.00)
  • Hard-to-get parts for the SC200 Audio Amplifier Module (Component, AUD $50.00)
  • New SC200 Audio Amplifier PCB pattern (PDF download) [01108161] (Free)
Articles in this series:
  • New SC200 Audio Amplifier (January 2017)
  • New SC200 Audio Amplifier (January 2017)
  • New SC200 Audio Amplifier – Part 2 (February 2017)
  • New SC200 Audio Amplifier – Part 2 (February 2017)
  • New SC200 Audio Amplifier - Part 3 (March 2017)
  • New SC200 Audio Amplifier - Part 3 (March 2017)

Purchase a printed copy of this issue for $10.00.

High Power DC Motor Speed Controller Part 2 Design by JOHN CLARKE Continuing on from last month’s introduction, here are all the construction and setup details. Because this circuit is such a high power design, it made sense for us to split the circuit into two sections and two PCBs. O ne PCB accommodates the control section, mainly involving the PIC16F88 microcontroller IC1 and the high-side driver, IC2. The second board is the switching or power side of the circuit, involving two or three (optional) Mosfets and all the linking options to take care of highside or low-side switching. In fact, this second board can be thought of as a single high-power Mosfet which can be wired for high or lowside switching. Construction Hence, construction of this project simply involves assembling the two PCBs and connecting them together inside the compact diecast aluminium box which measures 119 x 94 x 57mm. The control PCB is coded 11112161 and measures 107 x 82mm and it is installed on the bottom of the diecast case. The power PCB is coded 11112162 and measures 111 x 85mm. It is installed on the lid of the diecast case and the two boards are connected together with five wires. No heavy cur64  Silicon Chip rents flow between the two PCBs so we don’t need heavy-duty wiring for the interconnections. Nor is there any heavy duty wiring between the power PCB and the various terminals for the DC supply and the motor. Instead, all the heavy duty currents flow in the tracks of the PCB which is manufactured using “2-ounce” copper, twice as thick as normally used. In addition, the four 50A rated terminals are mounted directly on the PCB, with substantial tin-plated “lands” to provide low resistance connections. Furthermore, since six of the “links” on the power PCB also carry heavy currents, they each have four paralleled tinned copper wire links, ie, LK1, LK2 & LK3 for high-side switching or LK4, LK5 & LK6 for low-side switching. The component overlays for the two PCBs are shown in Fig.4, with the power board at top and the control board below. Start by assembling the control board and install IC2 first, as it is the only surface mount component used in this project. Align the IC onto the pads and solder one corner lead to the PCB. Check that the IC is aligned correctly before soldering the remaining pins. You can re-align the IC easily by melting the solder joint and readjusting the position. Check that none of the IC leads are shorted with solder. Any excess solder can be removed with solder wick. Next, you can install the resistors. We recommend that you use a digital multimeter to check the values of each resistor, as you install them. Note that the values for R1 and R2 are dependent upon the battery supply, as shown in Table 1, which is slightly modified from that in last month’s issue. Diodes D2 and D3 and ZD2 and ZD3 can be installed next. These need to be inserted with the correct polarity, with the striped end (cathode, k) oriented as shown in the overlay diagram. Zener diode ZD4 is only used when the battery voltage is higher than 12V; Table 1 shows the required zener for 24V, 36V or 48V batteries. For a 12V battery, when ZD4 is not required, JP1 is installed instead. Only if you are using low side switching, siliconchip.com.au install JP2 at the same time, otherwise it must be omitted. There are five test points, at TP1, TP2, TP GND, TPS & TPV. To make them easy to use, we suggest that you install a PC stake at each point. Next, install the 18-p in DIL socket for IC1. Ensure it is oriented correctly. Then you can install the capacitors, noting that the electrolytic types must be installed with the polarity shown on the overlay diagram. Note that the 10F capacitor located just to the left of REG1 has a 63V rating, as shown on the diagram. REG1 and REG2 mount horizontally on the PCB with their leads bent at 90° to allow them to be inserted into the holes. The metal tab is secured to the PCB using an M3 x 6mm screw and M3 nut. Secure each tab before soldering the leads. Trimpots VR1 to VR7 come next. VR1 to VR6 are 10k and may be marked as 103. VR7 is 50k and may be marked as 503. Switch S2 is installed directly onto the PCB. Terminal strips and LEDs Terminal strips CON7 and CON8 are made by first dove-tailing two sections together. CON7 comprises a 3-way terminal with a 2-way section secured on each side. Similarly, CON8 is made by dovetailing a 3-way and 2-way terminal. Orient these with the wire entry side adjacent to the edge of the PCB. LED1-LED4 need to have their leads bent so they can protrude through the side of the diecast box. Each LED is mounted so the inside of the top lead is 15mm above the PCB. Drilling the case Now insert the control PCB inside the case. Mark the mounting hole positions and drill the required four 3mm holes. Final PCB preparation involves attaching an M3 tapped x 9mm standoff to each corner mounting position. The other holes in the side and lid of the case are shown in the diagram of Fig.5 on page 67. The required holes for the LEDs are 5mm in diameter and 25mm up from the outside base of the case. Do not forget to drill the hole at the CON7 end of the box for the cable gland. Drill this hole 25mm down from the top edge. Mount the PCB onto the spacers with the M3 x 6mm screws. If using siliconchip.com.au This photo shows the two-board construction of the DC Motor Speed Controller. All the heavy current wiring is kept to the upper PCB; indeed, all point-to-point wiring can be made with ordinary duty hookup wire. countersunk screws on the base, countersink the holes first. Secure to the base of the box with the M3 screws. Power PCB assemby Assembly of the PCBs can begin by installing the 4.7 gate resistors for Mosfets Q1 and Q2 and 15V zener diode ZD1. As already noted, the high current links for low or high side switching each consist of four sections of tinned copper wire. And we now repeat: only install LK1, LK2, LK3 and LK7 for high side switching (HSS) or LK4, LK5, LK6 and LK8 for low side switching (LSS). These links are shown in red for HSS and blue for LSS. Do not install both sets otherwise you will provide a complete short circuit which will vaporise the fuse! Note that each set of HSS or LSS links must be soldered on both the top and bottom of the PCB. Q1 and Q2 are mounted directly on the PCB and secured with M3 screws and nuts. Bend the leads to insert into the Mosfet holes on the PCB and solder the leads to the top and bottom of the PCB. Diode D1 is mounted in the same manner. Note that it was installed differently on our prototype but this has now been fixed. Fuse and fuse clips And now some notes about the fuse clips and fuse. The fuse holder clips February 2017  65 Nominal R1 R2 supply voltage JP1 Inserted? ZD4 12V 22k 10k Yes None 24V 56k 27k No 10V 1W 36V 82k 47k No 20V 1W 48V 91k 68k No 30V 3W Table 1: resistor, zener and jumper settings for various battery voltages. Fig.4: component overlays for the two PCBs – the power board at top and the control board at bottom. Again, we must reiterate that only one set of links (LK1LK6) for either high-side switching (pink) or low-side switching (blue) can be fitted, otherwise the life-span of the fuse can be measured in milliseconds! are rated for a continuous current of up to 30A although it is possible to fit a 40A fuse. If the motor you intend to use with this controller is rated for a continuous current up to 30A, then there is no problem. Solder the fuse clips on both sides of the PCB. On the other hand, if your motor has a continuous current of up to 40A or more, the PCB-mount fuse clips will not be adequate. 66  Silicon Chip In this case, the correct approach is to fit an in-line 5AG fuseholder in place of the 30A blade fuseholder (eg, Jaycar SZ-2065) together with a 40A 5AG fuse. The holes in the PCB which housed the 30A fuseholder may need to be enlarged slightly to fit heavycurrent wires for the 5AG fuseholder. Terminals CON1 and CON2 are mounted with the wire entry toward the outside of the PCB. Install the two 12mm spacers on the underside of the PCB using two M3 screws. The banana connectors/binding posts are unscrewed and the insulating bush arrangement fitted on top and the underside of the lid, then the nut is attached. The second nut goes on after the PCB is attached to the terminals. Use red for the Motor + and Battery + and black for the Motor – and Battery – terminals. Fig.6 shows the wiring connections between the two PCBs. Make sure there is sufficient length for each wire so the terminal side of the “power” PCB can sit over the CON8 terminals. The wires are secured with cable ties. For the main control PCB, there are holes available on the PCB in front of the screw terminals that allow cable ties to secure the wiring to the PCB for strain relief. For our prototype, we installed the power switch on the side of the box adjacent the Power LED and wired it to CON7. Similarly, the throttle can be installed in the box. However, the switch and throttle would generally be used separate to the box, with the wires passing through the cable gland from CON8 and to a potentiometer or throttle. The emergency shut down switch wiring would also pass through this gland. Wiring to a motor Unless the motor is to run at a full 30A load current continuously, 25A rated wire could be used to make the battery and motor connections. Typically, this wire comprises 41 strands of 0.3mm tinned copper wire. These wires will fit through the binding post wire hole. For higher current, use 56A wire (7 x 95 x 0.12mm wire). This wire won’t fit through the post wire hole. However, you can crimp the wires first to 8mm ID crimp eyelets and secure these to the terminals. siliconchip.com.au Testing With IC1 out of its socket, apply power between the Battery + and Battery – terminals. Check that there is approximately 12V at the output of REG1 and 5V at the REG2 output. Rotate VR2 and VR3 fully clockwise and VR1, VR4, VR5 and VR6 fully anticlockwise. Set VR7 mid way. If you are using a Hall Effect throttle, monitor the voltage at TP1 as the throttle is rotated from minimum to maximum. Take note of the minimum and maximum voltage. Then set VR1 to the minimum voltage and VR2 to the maximum voltage. Check that these settings are within the allowable range. See the specifications published in Part 1 last month for the reference voltage settings. Now turn the power off and insert IC1. Shut down You can use the shut down feature in one of two modes. Mode 1 is where normal motor speed control operation is restored once the throttle is returned to zero. The second mode is where motor speed control operation is only restored when power is switched off and on again. Emergency shut down is indicated by LED4. At every power up, this LED also lights up momentarily to indicate which mode is set. For the first mode, the LED blinks once and it blinks twice for the second mode. To change the mode, press and hold the limit switch (S2) during at power up. (Note that it is not the shut down switch that is pressed at power up). The mode will then change from one to the other. The shut down LED will also flash once if it is the first mode that’s selected or twice for the second mode. The selected mode is stored in IC1 to be used subsequently. Throttle limit Press S2 and adjust the throttle for the maximum speed required from the motor. Release the switch at this speed. In use, bringing the throttle beyond the speed limit will be indicated by the shut down/limit LED lighting. Low battery threshold The low battery threshold is set by adjusting VR3 and measuring the voltage at test point TPV. To make the adjustment, firstly desiliconchip.com.au 10mm 13.5mm A 22mm ALL DIMENSIONS IN MILLIMETRES 16mm 22mm 22mm A C 18mm B B B BOX LID 10mm 15 B 15 10 A A 10 10 A 13.5mm 25 20 A D FRONT SIDE OF BOX DIMENSIONS SUIT JAYCAR HB5064 DIECAST BOX HOLES HOLES HOLES HOLES HOLES A: 3mm DIAMETER B: 12 mm DIAMETER C: 5mm DIAMETER D: 10 mm DIAMETER E: 14 mm DIAMETER 27 E LEFT-HAND END OF BOX CL Fig.5: drilling detail for the diecast box. You may find it easier to place the unassembled “power” PCB on the lid (underside) and use it as a template to mark out the lid holes – they’re the only ones that are really critical. cide on the low battery cutout voltage required; typically around 11.5V for a 12V lead-acid battery. Then measure the voltage at the switch S1 terminals or at the CON7 switch terminals when the switch is on and make a note of it. Finally, measure the actual 5V supply (at the out terminal of REG2 – while the regulator has a nominal 5V output, it could be anywhere from 4.95 to 5.05V out). Divide the voltage measured at S1 by the required low voltage threshold value. Then multiply the result by one half of the actual 5V supply. The formula is TPV = (voltage at S1÷low battery voltage value) x (the actual 5V supply÷2). Say, for example, the measured voltage at S1 is 13V and the required low battery shut-down voltage is 11.5V. Now divide 13V by 11.5V. The result of the calculation is 1.13. If the actual 5V supply is 4.95V, then half its value is 2.475V. Multiplying this by 1.13 gives a result of 2.80V. Note that if you decide to change the low battery threshold, the voltage February 2017  67 F1 LK4 LK1 4.7 4.7 30 40A DC Motor Speed Controller © 2017 MOSFET Board RevB CON2 Q1 CON3 BATTERY + LSS NOTE: THIS PCB IS MOUNTED BEHIND LID OF CASE, UPSIDE DOWN LK7 HSS VCC HSS GND D1 LK2 HSS Feedback CON5 MOTOR + CABLE TIES LK8 HSS Q2 MOTOR − CON6 CUT ALL OF THESE WIRES TO A LENGTH OF 100mm LK5 15V LK3 LSS HSS LK6 LSS CON1 Source Gate (Q3) 4.7 BATTERY − CON4 ZD1 11112162 Rev.B THIS PCB IS MOUNTED IN BASE OF CASE 4.7V 4004 POWER SWITCH S1 CABLE TIES +5V CON8 SPEED POT 0V SHUT DOWN SOURCE FB HALL EFFECT 0V or FUSED + THESE WIRES MAY BE TWISTED TOGETHER 4.7V 1 A POWER SWITCH S1 POWER A SPEED A A IC2 GATE CON7 DC MOTOR CONTROLLER 16121111 CABLE TIES C 2016 11112161 Rev.A LOW BATT. SHUTDOWN CABLE TIES THROTTLE/SPEED POT (VR8) Fig.6: the wiring diagram for connections between the power PCB and the control PCB. As mentioned earlier, none of this wiring has heavy currents through it so ordinary hookup wire (not rainbow cable!) can be used. at S1 needs to be re-measured and the TPV voltage recalculated and reset. Adjusting feedback Rotate the gain trimpot fully anticlockwise if you don’t want motor speed feedback. Otherwise, set the feedback control VR6 fully clockwise for high-side op68  Silicon Chip eraton (and fully anti-clockwise for low side operation) and the gain control VR5 about one-third back from its fully anticlockwise position. Then with the motor running rotate the feedback control anticlockwise (clockwise for low side operation) until the motor just starts to increase in speed. Rotate slightly clockwise (anti- clockwise for low side operation), until the motor speed slows again. The gain control is then adjusted for the required amount of speed regulation when the motor is under load. You can adjust the soft start control VR4 and the frequency control VR7 to suit your particular motor and apSC plication. siliconchip.com.au