Silicon ChipThrottle Interface For The DC Motor Speed Controller - May 2007 SILICON CHIP
  1. Outer Front Cover
  2. Contents
  3. Publisher's Letter: New 20W class-A module is a step closer to perfection
  4. Feature: Jaycar Sunswift III Solar Car Shatters Record by Leo Simpson
  5. Feature: Turntables – Give ’em A Spin by Barrie Smith
  6. Project: A 20W Class-A Amplifier Module by Leo Simpson & Peter Smith
  7. Project: Adjustable 1.3-22V Regulated Power Supply by John Clarke
  8. Project: VU/Peak Meter With LCD Bargraphs by John Clarke
  9. Project: Programmable Ignition System For Cars; Pt.3 by John Clarke
  10. Project: GPS-Based Frequency Reference: Circuit Modifications by Jim Rowe
  11. Vintage Radio: A look at the Kurrajong Radio Museum by Rodney Champness
  12. Project: Throttle Interface For The DC Motor Speed Controller by Leo Simpson & Brank Justic
  13. Advertising Index
  14. Book Store
  15. Outer Back Cover

This is only a preview of the May 2007 issue of Silicon Chip.

You can view 33 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:
  • Turntables – Give ’em A Spin (May 2007)
  • Turntables – Give ’em A Spin (May 2007)
  • Turntables – Give ’em A Spin; Pt.2 (June 2007)
  • Turntables – Give ’em A Spin; Pt.2 (June 2007)
Items relevant to "A 20W Class-A Amplifier Module":
  • Preamp & Remote Volume Control PCB for the Ultra-LD Mk3 [01111111] (AUD $30.00)
  • Speaker Protection and Muting Module PCB [01207071] (AUD $17.50)
  • 20W Class-A Amplifier Power Supply PCB [01105074] (AUD $20.00)
  • 20W Class-A Amplifier Module PCB, left channel [01105071] (AUD $15.00)
  • 20W Class-A Amplifier Module PCB, right channel [01105072] (AUD $15.00)
  • PIC16F88-I/P programmed for the Low Noise Stereo Preamplifier with Remote Volume Control (Programmed Microcontroller, AUD $15.00)
  • PIC16F88 firmware and source code for the Low Noise Preamplifier with Remote Volume Control (Software, Free)
  • Speaker Protector and Muting Module PCB pattern (PDF download) [01207071] (Free)
  • 20W Class A Low Noise Stereo Preamplifier/Remote Volume Control PCB pattern (PDF download) [01208071] (Free)
  • 20W Class A Amplifier Module PCB patterns (PDF download) [01105071/2] (Free)
  • 20W Class A Amplifier Power Supply PCB pattern (PDF download) [01105073] (Free)
Articles in this series:
  • A 20W Class-A Amplifier Module (May 2007)
  • A 20W Class-A Amplifier Module (May 2007)
  • 20W Class-A Amplifier Module; Pt.2 (June 2007)
  • 20W Class-A Amplifier Module; Pt.2 (June 2007)
  • 20W Class-A Amplifier Module; Pt.3 (July 2007)
  • 20W Class-A Amplifier Module; Pt.3 (July 2007)
  • 20W Class-A Amplifier Module; Pt.4 (August 2007)
  • 20W Class-A Amplifier Module; Pt.4 (August 2007)
  • Building The 20W Stereo Class-A Amplifier; Pt.5 (September 2007)
  • Building The 20W Stereo Class-A Amplifier; Pt.5 (September 2007)
Items relevant to "Adjustable 1.3-22V Regulated Power Supply":
  • Adjustable Regulated Power Supply PCB pattern (PDF download) [10105071] (Free)
Items relevant to "VU/Peak Meter With LCD Bargraphs":
  • VU/Peak Meter main PCB [01205071] (AUD $12.50)
  • VU/Peak Meter button PCB [01205072] (AUD $5.00)
  • PIC16F88-I/P programmed for the VU/Peak Meter (Programmed Microcontroller, AUD $15.00)
  • PIC16F88 firmware and source code for the VU/Peak Meter (Software, Free)
  • VU/Peak Meter PCB patterns (PDF download) [01205071/2] (Free)
  • VU/Peak Meter front panel artwork (PDF download) (Free)
Items relevant to "Programmable Ignition System For Cars; Pt.3":
  • Programmable Ignition System main PCB [05104071] (AUD $10.00)
  • Programmable Ignition System Trigger Module PCB [05104072] (AUD $5.00)
  • Programmable Ignition System Hand Controller PCB [05104073] (AUD $10.00)
  • PIC16F88-E/P programmed for the Programmable Ignition System [ignprgm.hex] (Programmed Microcontroller, AUD $15.00)
  • PIC16F88 firmware and source code for the Programmable Ignition System (Software, Free)
  • Sample timing maps for the Programmable Ignition System (Software, Free)
  • Programmable Ignition System PCB patterns (PDF download) [05104071/2/3] (Free)
  • Programmable Ignition System front panel artwork (PDF download) (Free)
Articles in this series:
  • Programmable Ignition System For Cars; Pt.1 (March 2007)
  • Programmable Ignition System For Cars; Pt.1 (March 2007)
  • Programmable Ignition System For Cars; Pt.2 (April 2007)
  • Programmable Ignition System For Cars; Pt.2 (April 2007)
  • Programmable Ignition System For Cars; Pt.3 (May 2007)
  • Programmable Ignition System For Cars; Pt.3 (May 2007)
  • A Knock Detector For The Programmable Ignition (June 2007)
  • A Knock Detector For The Programmable Ignition (June 2007)
Items relevant to "GPS-Based Frequency Reference: Circuit Modifications":
  • PIC16F628A-I/P programmed for the GPS Frequency Reference [GPSFrqRfv3.HEX or GPSFrqRfv4.HEX] (Programmed Microcontroller, AUD $10.00)
  • PIC16F628A firmware for the GPS-Based Frequency Reference (v3 & v4) (Software, Free)
  • Updated PCB pattern for the GPS-Based Frequency Reference (PDF download) [04103073] (Free)
  • Display PCB pattern for the GPS-Based Frequency Reference (PDF download) [04103072] (Free)
  • GPS-based Frequency Reference front and rear panel artwork (PDF download) (Free)
Articles in this series:
  • GPS-Based Frequency Reference; Pt.1 (March 2007)
  • GPS-Based Frequency Reference; Pt.1 (March 2007)
  • GPS-Based Frequency Reference; Pt.2 (April 2007)
  • GPS-Based Frequency Reference; Pt.2 (April 2007)
  • GPS-Based Frequency Reference: Circuit Modifications (May 2007)
  • GPS-Based Frequency Reference: Circuit Modifications (May 2007)
  • Improving The GPS-Based Frequency Reference (September 2011)
  • Improving The GPS-Based Frequency Reference (September 2011)

Purchase a printed copy of this issue for $10.00.

Throttle Interface For The DC Motor Speed Controller Words by Leo Simpson Design by Branko Justic* *Oatley Electronics Last month, we presented the High-Power Reversible DC Motor Speed Controller. Here is a companion controller which works with a motorcycle-style throttle control. It also features a forward/ reverse switch to control the motor direction. L AST MONTH’S DC Motor Speed Controller was designed to work from a joystick or a potentiometer that is normally centred. This has the virtue of simplicity but having the motor speed and direction under the control of a single potentiometer can be a problem in some applications. Therefore, this companion design was produced to allow a potentiometer to control only the motor speed while the motor direction is controlled by a forward/reverse toggle switch. Furthermore, the potentiometer can be substituted with a spring-loaded motorcycle-style throttle control which could be just the ideal solution for applications like electric scooters, Go-karts, etc. This throttle control 92  Silicon Chip is shown in the photographs in this article. The motorcycle-style throttle is based on a magnet and a Hall-effect IC to derive a control voltage. The more you rotate the throttle against its spring tension, the higher the control voltage fed to the input of the Throttle Interface circuit. Circuit details In effect, the interface circuit emulates the effect of the 10kW speed control pot used in last month’s circuit. The DC voltage from the wiper of that 10kW speed pot determines the motor speed and direction. When the potentiometer is centred, the wiper voltage is +4.4V; when set for the maximum forward speed, this voltage is +6.4V and when set for maximum reverse speed it is +2V. In order for the motor to go in the forward direction only, the control voltage range must be from +4.2V (motor stationary) to +6.4V (maximum speed). Similarly, for the reverse direction, the control voltage has to vary from +4.2V (stationary) to +2V for maximum speed. Therefore, the voltage range needed in both directions is around 2.2V. So the Throttle Interface circuit of Fig.1 has to produce this voltage range. In essence, the circuit of Fig.1 uses two op amps as a voltage level translator and some CMOS analog gates to provide the forward-reverse function. siliconchip.com.au This Hall-effect throttle works just like the spring-loaded throttle on a motorcycle. It’s ideal for use on electric scooters and Go-karts, etc. Let’s have a look at how it works. Consider a 10kW potentiometer connected to the input of the circuit so that its wiper is point C. If the potentiometer (or the alternative Hall-effect throttle control) is rotated over its full range, the voltage at the C input can vary between +1.6V and +6.8V. The attenuator comprising the 56kW and 68kW resistors reduces this range to between +0.65V and +2.8V. This is almost exactly the required control voltage range of around 2.2V. This voltage is fed to op amp IC1a which is connected as a unity gain buffer (ie, the input and output voltages will be the same). So its output range will still be between +0.65V and +2.8V. Transistor Q1, in conjunction with diodes D1 & D2, is connected as a constant current source with delivers 3mA into the output of IC1a via a 1.2kW resistor (a buffer can act as a sink or a source and in this case we are forcing IC1a to “swallow” 3mA while maintaining a constant output voltage). The result is that the output voltage range at the collector of Q1 is exactly 3.6V above the voltage at pin 1 of IC1a. And guess what? That means the voltage range at the collector of Q1 will be between +4.25V and +6.4V. This is exactly the voltage range of Fig.1: this is the interface circuit for the Hall-effect throttle. Op amps IC1a & IC1b provide voltage level translation, while CMOS gates IC2a-IC2d provide the necessary switching for the forward-reverse function. siliconchip.com.au May 2007  93 Parts List 1 PC board, code K244, 50 x 67mm 2 2-way 5mm screw terminal blocks 2 3-way 5mm screw terminal blocks 1 20kW trimpot (VR1) 1 100W trimpot (VR2) Semiconductors 1 M5223P low-voltage dual op amp (IC1) 1 4066 quad analog switch (IC2) 1 C8550 PNP transistor 2 1N4148 signal diodes (D1, D2) 1 3mm green LED (LED1) Fig.2: follow this parts layout to build the PC board. Make sure that all polarised parts are correctly oriented (ie, the ICs, diodes, Q1, LED1 and the electrolytic capacitors). Capacitors 2 10mF 35V PC electrolytic 2 15nF (.015mF) ceramic or metallised polyester (greencap) Resistors (0.25W, 1% or 5%) 2 100kW 1 1.8kW 4 56kW 1 1.2kW 2 39kW 2 1kW 1 22kW 1 120W 1 2.7kW Kit availability This Throttle Interface project was produced by Oatley Electronics who own the design copyright. Kits (Cat. K244) can be purchased from Oatley Electronics Pty Ltd, PO Box 89, Oatley, NSW 2223. The kit includes the PC board and all on-board components only.The Hall-effect throttle (Cat.Throt2) can be purchased separately from Oatley Electronics. See their website at: http://www.oatleyelectronics.com This full-size view shows the fully-assembled PC board. Refer to the wiring diagram (Fig.3) for the external wiring connections. the speed control pot in last month’s circuit. So that’s the forward control voltage range provided for. What about the reverse control voltage range? This is provided by op amp IC1b which is configured as a unity gain inverting buffer with a reference voltage of +4.4V connected to its noninverting input (pin 5). By inverting the voltage appearing at the collector of Q1, it produces the required reverse control range of +4.4V to +2V. Now that we have the required voltage ranges for forward and reverse motor control of last month’s circuit, we only need some CMOS gates to select the correct output from the collector of Q1 or the output of IC1b. This function is provided by the analog gates in IC2, under the control of switch S1. This works as follows. First, consider that switch S1 is open. This allows the control inputs of IC2a, IC2b & IC2c to be pulled “high” Table 1: Resistor Colour Codes o o o o o o o o o o No.   2   4   2   1   1   1   1   2   1 94  Silicon Chip Value 100kW 56kW 39kW 22kW 2.7kW 1.8kW 1.2kW 1kW 120W 4-Band Code (1%) brown black yellow brown green blue orange brown orange white orange brown red red orange brown red violet red brown brown grey red brown brown red red brown brown black red brown brown red brown brown 5-Band Code (1%) brown black black orange brown green blue black red brown orange white black red brown red red black red brown red violet black brown brown brown grey black brown brown brown red black brown brown brown black black brown brown brown red black black brown siliconchip.com.au Fig.3: the interface board connects between the Hall-effect throttle and the DC Motor Speed Controller board as shown here. Alternatively, you can use a 10kW pot instead of the Hall-effect throttle. by the associated 100kW resistor and do the job of the 10kW speed potentherefore all these switches are “on”. tiometer from last month’s circuit. IC2b lights LED1, indicating a forward Well, that’s not quite right because we direction. The voltage at pin 2 of IC2a wanted to change the function but you is “low” and therefore switch IC2d is now have the picture. “off”. Since IC2c is “on”, the forward The only wrinkle to be added is control voltage from the collector of that the low output voltage required Q1 is applied to output terminal C2 from IC1a (ie, +0.65V or less) means via the 56kW resistor. The time delay that an ordinary dual op amp would provided by the 56kW and the 10mF not do the job. Instead, an M5223P capacitor is included to prevent any low-voltage dual op amp is specified sudden changes in speed. for this task. If switch S2 is now closed (ie, terminal D2 is grounded), the control Construction inputs of IC2a, IC2b & IC2c are pulled All the components for the Throtlow, switching those gates off and tle Interface, with the exception of IC2d “on”. This connects the revers- the Throttle Control itself (or 10kW ing voltage from the output of IC1b potentiometer VR3) and switch S1, to output C2 via the abovementioned are mounted on a PC board measuring 56kW resistor. 50 x 67mm. The component overlay is So there you are. That’s how to use shown in Fig.2. RF_SiliconChip_60x181mm.qxd 30/3/07 2:12 PM Page 1 two op amps and four CMOS gates to It is easiest to fit the components to the PC board in order of height. Start with signal diodes D1 & D2 and finish with the electrolytic capacitors, soldering and trimming the leads of each component as you go. Make sure the ICs and electrolytic capacitors go in the right way around. Testing & adjusting Before you can check the operation of the Throttle Interface, you need to have assembled and checked the operation of the DC Motor Speed Controller presented last month. In particular, you should connect it as shown last month, with a 10kW potentiometer connected to the B, C & D terminals of the PC board. You also need to check that +8V is available at the output terminal on the main PC board. With those checks verified, you can ELECTRO CHEMICALS Chemical Technology siliconchip.com.au • Dust Off • Freezing Spray • Electronic Cleaning Solvent No. 1 • Electronic Circuit Board Cleaner • Electrical Contact Cleaner Lubricant • Video Head Cleaner • Ultrasonic Bath Cleaner • Isopropyl Alcohol • Protek • Contact Treatment Grease • Contact Treatment Oil • Solvent Diluted Oil • Contact Cleaning Strip • Circuit Board Lacquer • Q43 – Silicon Grease Compound • Heat Sink Compound Contact us to find your nearest distributor: sales<at>rfoot.com.au Tel: 02 9979 8311 Fax: 02 9979 8098 Richard Foot Pty Ltd, 14/2 Apollo Street,Warriewood NSW 2102 May 2007  95 Switchmode H-bridge: How It Works As noted last month, the DC Motor Speed Controller relies on a switchmode H-bridge employing four Mosfets. The relevant part of the circuit is shown in Fig.4. Only two Mosfets are turned on at any one time. For example, to drive the motor in the forward direction, Q7 & Q6 would be “on” while Q5 & Q8 would be “off”. Similarly, to drive the motor in the reverse direction, Q5 & Q8 would be “on” while Q7 & Q6 would be “off”. Furthermore, to turn on the upper Mosfets (ie, Q5 or Q7), a much higher gate voltage is required, as explained last month. This is demonstrated in the accompanying scope screen shots. For example, Scope 1 shows the gate voltage signals needed to turn on Q5 & Q8 while keeping Q7 & Q6 “off”. The higher amplitude yellow trace is the gate signal to Q5 and the lower amplitude blue trace is the gate signal to Q8. The purple trace and hidden green trace are the 0V gate signals to Q6 & Q8, keeping them “off”. Scope 2 shows the gate signals for reverse operation, where Q7 & Fig.4: the switchmode H-bridge output stage of the DC Motor Speed Controller employs four power Mosfets but only two are turned on at any one time. Q7 & Q6 are turned on to drive the motor in one direction, while Q5 & Q8 are turned on to drive the motor in the other direction. Q6 are “on”. The higher amplitude purple trace is the gate signal to Q7 and the lower amplitude green trace in the gate signal to Q6. The yellow and hidden blue traces SCOPE 1 connect the Throttle Interface board to the main PC board, as shown in Fig.3. If you use a “Hall-effect” throttle (from Oatley Electronics), it has to be connected to the “T1”, “T2” & “C” terminals. If you use a standard 96  Silicon Chip show the 0V gate signals to Q5 & Q8, keeping them off. In both scope screen shots the duty cycle of the gate signals is about 60%, corresponding to about half-speed operation. SCOPE 2 potentiometer, it has to be connected to the “P1”, “P2” & “C” terminals. Do not connect both the 10kW pot and the Hall Effect throttle. A motor should be connected, to check overall operation. First, adjust VR1 so that the motor stops when the throttle (or pot.) is at its minimum speed setting and the switch is set for the Forward direction. That done, adjust VR2 so that the motor stops when the throttle (or pot.) is at its minimum speed setting and the switch is set for SC the Reverse direction. siliconchip.com.au