Showing posts with label Speed. Show all posts
Showing posts with label Speed. Show all posts
Friday, October 24, 2014
PWM Dimmer Motor Speed Controller
This is yet another project born of necessity. Its a simple circuit, but does exactly what its designed to do - dim LED lights or control the speed of 12V DC motors. The circuit uses PWM to regulate the effective or average current through the LED array, 12V incandescent lamp (such as a car headlight bulb) or DC motor. The only difference between the two modes of operation is the addition of a power diode for motor speed control, although a small diode should be used for dimmers too, in case long leads are used which will create an inductive back EMF when the MOSFET switches off.
Photo of Completed PWM Dimmer/Speed Control
The photo shows what a completed board looks like. Dimensions are 53 x 37mm, so its possible to install it into quite small spaces. The parts used are readily available, and many subsitiutions are available for both the MOSFET and power diode (the latter is only needed for motor speed control). The opamps should not be substituted, because the ones used were chosen for low power and their ability to swing the output to the negative supply rail.
Note that if used as a motor speed controller, there is no feedback, so motor speed will change with load. For many applications where DC motors are used, constant speed regardless of load is not needed or desirable, but it is up to you to decide if this will suit your needs.
Description
First, a description of PWM is warranted. As the pot is rotated clockwise, the input voltage changes linearly with rotation. At first, the voltage is such that the comparator output is just narrow spikes, which turn the MOSFET on for a very short period. Average current is low, so connected LEDs will be quite dim, or a motor will run (relatively) slowly. As the input voltage coming from the pot increases, the MOSFET is on for longer and longer, so increasing power to the load.
Figure 1 - PWM Waveform Generation
Figure 1 shows how the PWM principle works. The red trace is the triangle wave reference voltage, and the green trace is the voltage from the pot. When the input voltage is greater than the reference voltage, the MOSFET turns on, and current flows in the load. Because the frequency is relatively high (about 600Hz), we dont see any flicker from the LEDs, but the tone is audible from a motor thats PWM controlled. The PWM signal is shown in blue. The average current through the load is determined by the ratio of on-time to off-time, and when both are equal, the average current is exactly half of that which would be drawn with DC.
Figure 2 - Dimmer/Speed Controller Schematic
The circuit is shown in Figure 2. U1 is the oscillator, and generates a triangular waveform. R4 and R5 simply set a half voltage reference, so the opamps can function around a 6V centre voltage. U2A is an amplifier, and its output is a 10V peak to peak triangle wave that is used by the comparator based on U2B. This circuit compares the voltage from the pot with the triangle wave. If the input voltage is at zero, the comparators output remains low, and the MOSFET is off. This is the zero setting.
In reality, the reference triangle waveform is from a minimum of about 1.5V to a maximum of 9.5V, so there is a small section at each end of the pots rotation where nothing happens. This is normal and practical, since we want a well defined off and maximum setting. Because of this range, for lighting applications, an industry standard 0-10V DC control signal can be used to set the light level. C-BUS (as well as many other home automation systems) can provide 0-10V modules that can control the dimmer.
While a 1N4004 diode is shown for D2, this is only suitable if the unit is used as a dimmer. For motor speed control, a high-current fast recovery diode is needed, such as a HFA15TB60PBF ultra-fast HEXFRED diode. There are many possibilities for the diode, so you can use whatever is readily available that has suitable ratings. The diode should be rated for at least half the full load current of the motor, and the HFA15TB60PBF suggested is good for 15A continuous, so is fine with motors drawing up to 30A.
Construction
While its certainly possible to build the dimmer on veroboard or similar, its rather fiddly to make and mistakes are easily made. Also, be aware that because of the current the circuit can handle, you will need to use thick wires to reinforce some of the thin tracks. This is even necessary for the PCB version. Naturally, I recommend the PCB, and this is available from ESP. The board is small - 53 x 37mm, and it carries everything, including the screw terminals. The PCB is double-sided with plated-through holes, and has solder masks on both sides.
The MOSFET will need a heatsink unless you are using the dimmer for light loads only. It is necessary to insulate the MOSFET from the heatsink in most cases, since the case of the transistor is the drain (PWM output). For use at high current and possible high temperatures, the heatsink may need to be larger than expected. Although the MOSFET should normally only dissipate about 2W or so at 10A, it will dissipate a lot more if its allowed to get hot. Switching MOSFETs will cheerfully go into thermal runaway and self destruct if they have inadequate heatsinking. You may also use an IGBT (insulated gate bipolar transistor) - most should have the same pinouts, and they do not suffer from the same thermal runaway problem as MOSFETs.
As noted above, there are many different MOSFETs (or IGBTs) and fast diodes that are usable. The IRF540 MOSFET is a good choice, and being rated 27A it has a generous safety margin. There are many others that are equally suitable - in fact any switching MOSFET rated at 10A or more, and with a maximum voltage of more than 20V is quite ok.
Testing
Connect to a suitable 12V power supply. When powering up for the first time, use a 100 ohm "safety" resisor in series with the positive supply to limit the current if you have made a mistake in the wiring. The total current drain is about 2.5mA with the pot fully off, rising to 12.5mA when fully on. Most of this current is in the LED, which is also fed from the PWM supply so you can see that everything is working without having to connect a load.
Make sure that the pot is fully anti-clockwise (minimum), and apply power. You should measure no more than 0.25V across the safety resistor, rising to 1.25V with the pot at maximum. If satisfactory, remove the safety resistor and install a load. High intensity LED strip lights can draw up to ~1.5A each, and this dimmer should be able to drive up to 10 of them, depending on the capabilities of the power supply and the size of the heatsink for the MOSFET.
Photo of Completed PWM Dimmer/Speed ControlThe photo shows what a completed board looks like. Dimensions are 53 x 37mm, so its possible to install it into quite small spaces. The parts used are readily available, and many subsitiutions are available for both the MOSFET and power diode (the latter is only needed for motor speed control). The opamps should not be substituted, because the ones used were chosen for low power and their ability to swing the output to the negative supply rail.
Note that if used as a motor speed controller, there is no feedback, so motor speed will change with load. For many applications where DC motors are used, constant speed regardless of load is not needed or desirable, but it is up to you to decide if this will suit your needs.
Description
First, a description of PWM is warranted. As the pot is rotated clockwise, the input voltage changes linearly with rotation. At first, the voltage is such that the comparator output is just narrow spikes, which turn the MOSFET on for a very short period. Average current is low, so connected LEDs will be quite dim, or a motor will run (relatively) slowly. As the input voltage coming from the pot increases, the MOSFET is on for longer and longer, so increasing power to the load.
Figure 1 - PWM Waveform GenerationFigure 1 shows how the PWM principle works. The red trace is the triangle wave reference voltage, and the green trace is the voltage from the pot. When the input voltage is greater than the reference voltage, the MOSFET turns on, and current flows in the load. Because the frequency is relatively high (about 600Hz), we dont see any flicker from the LEDs, but the tone is audible from a motor thats PWM controlled. The PWM signal is shown in blue. The average current through the load is determined by the ratio of on-time to off-time, and when both are equal, the average current is exactly half of that which would be drawn with DC.
Figure 2 - Dimmer/Speed Controller SchematicThe circuit is shown in Figure 2. U1 is the oscillator, and generates a triangular waveform. R4 and R5 simply set a half voltage reference, so the opamps can function around a 6V centre voltage. U2A is an amplifier, and its output is a 10V peak to peak triangle wave that is used by the comparator based on U2B. This circuit compares the voltage from the pot with the triangle wave. If the input voltage is at zero, the comparators output remains low, and the MOSFET is off. This is the zero setting.
In reality, the reference triangle waveform is from a minimum of about 1.5V to a maximum of 9.5V, so there is a small section at each end of the pots rotation where nothing happens. This is normal and practical, since we want a well defined off and maximum setting. Because of this range, for lighting applications, an industry standard 0-10V DC control signal can be used to set the light level. C-BUS (as well as many other home automation systems) can provide 0-10V modules that can control the dimmer.
While a 1N4004 diode is shown for D2, this is only suitable if the unit is used as a dimmer. For motor speed control, a high-current fast recovery diode is needed, such as a HFA15TB60PBF ultra-fast HEXFRED diode. There are many possibilities for the diode, so you can use whatever is readily available that has suitable ratings. The diode should be rated for at least half the full load current of the motor, and the HFA15TB60PBF suggested is good for 15A continuous, so is fine with motors drawing up to 30A.
Construction
While its certainly possible to build the dimmer on veroboard or similar, its rather fiddly to make and mistakes are easily made. Also, be aware that because of the current the circuit can handle, you will need to use thick wires to reinforce some of the thin tracks. This is even necessary for the PCB version. Naturally, I recommend the PCB, and this is available from ESP. The board is small - 53 x 37mm, and it carries everything, including the screw terminals. The PCB is double-sided with plated-through holes, and has solder masks on both sides.
The MOSFET will need a heatsink unless you are using the dimmer for light loads only. It is necessary to insulate the MOSFET from the heatsink in most cases, since the case of the transistor is the drain (PWM output). For use at high current and possible high temperatures, the heatsink may need to be larger than expected. Although the MOSFET should normally only dissipate about 2W or so at 10A, it will dissipate a lot more if its allowed to get hot. Switching MOSFETs will cheerfully go into thermal runaway and self destruct if they have inadequate heatsinking. You may also use an IGBT (insulated gate bipolar transistor) - most should have the same pinouts, and they do not suffer from the same thermal runaway problem as MOSFETs.
As noted above, there are many different MOSFETs (or IGBTs) and fast diodes that are usable. The IRF540 MOSFET is a good choice, and being rated 27A it has a generous safety margin. There are many others that are equally suitable - in fact any switching MOSFET rated at 10A or more, and with a maximum voltage of more than 20V is quite ok.
Testing
Connect to a suitable 12V power supply. When powering up for the first time, use a 100 ohm "safety" resisor in series with the positive supply to limit the current if you have made a mistake in the wiring. The total current drain is about 2.5mA with the pot fully off, rising to 12.5mA when fully on. Most of this current is in the LED, which is also fed from the PWM supply so you can see that everything is working without having to connect a load.
Make sure that the pot is fully anti-clockwise (minimum), and apply power. You should measure no more than 0.25V across the safety resistor, rising to 1.25V with the pot at maximum. If satisfactory, remove the safety resistor and install a load. High intensity LED strip lights can draw up to ~1.5A each, and this dimmer should be able to drive up to 10 of them, depending on the capabilities of the power supply and the size of the heatsink for the MOSFET.
source: http://sound.westhost.com/project126.htm
Monday, October 20, 2014
Fan Speed Control for Temperature Circuit Diagram
With this simple circuit that you will be able to control the speed of a DC fan according to the temperature measured by a temperature sensor. It is an ideal accessory for your projects that require cooling that are not constant.
This simple design allows precise speed control of motors, fans, and blowers, proportional to the temperature. An NTC thermistor (R1) is used as temperature sensor. A circuit optional was added to remotely monitor the operation of the fan and to allow some kind of indication of the approximate speed by increasing the brightness of an LED.
Fan Speed Control for Temperature Circuit Diagram

The R5 must be configured to allow the engine just starting to run at the desired temperature. Any 6K8 between the NTC thermistor 22K can operate provided that the R2 value is one tenth of the thermistor. R6, R7 and D1 are optional: R7 obligation is adjusted until the LED glow dimly when the engine is just running.
Parts List
R1 15K @ 20 ° C NTC Thermistor (See Notes)
R2 1K5 1/4W Resistor (See Notes)
R3 1K 1/4W Resistor
R4 270R 1/4W Resistor 1/2W
R5 22K Trimpots
R6 680R 1/4W Resistor (Optional, see Notes)
R7 470R Trimpots
C1 100μF 25V Electrolytic Capacitor
LED D1 (Optional, any shape and color, see Notes)
Q1 BC547 45V 100mA NPN Transistor
Q2 BD140 80V 1.5A PNP Transistor
M1 Fan Motor 12V 700mA max.
R1 15K @ 20 ° C NTC Thermistor (See Notes)
R2 1K5 1/4W Resistor (See Notes)
R3 1K 1/4W Resistor
R4 270R 1/4W Resistor 1/2W
R5 22K Trimpots
R6 680R 1/4W Resistor (Optional, see Notes)
R7 470R Trimpots
C1 100μF 25V Electrolytic Capacitor
LED D1 (Optional, any shape and color, see Notes)
Q1 BC547 45V 100mA NPN Transistor
Q2 BD140 80V 1.5A PNP Transistor
M1 Fan Motor 12V 700mA max.
Thursday, October 2, 2014
High Torque DC Motor Speed Controller Circuit Bidirectional Motor Speed Controller
The speed of DC motors is relatively simple to control.
For independently energized motors, the speed is, in principle, a linear function of the supply voltage. Motors with a permanent magnet are a sub category of independently energized motors, and they are often used in toys and models. In this circuit, the motor supply voltage is varied by means of pulse width modulation (PWM), which ensures good efficiency as well as a relatively high torque at low motor speeds. A single control voltage between 0 and +10 V enables the motor speed to be reversed and varied from nought to maximum in both directions. Astable multivibrator IC1 is set up as an 80 Hz oscillator, and determines the frequency of the PWM signal.
Current source T1 charges C3. The sawtooth , voltage across this capacitor is compared with the control voltage in IC2, which outputs the PWM signal to buffer N1-N3 or N4-N6. The darlington based motor driver is a bridge circuit capable of driving loads up to 4A, provided the run-in current stays below 6A, and sufficient cooling is provided for the power transistors Tz T5. Diodes D2-D5 afford protection against inductive surges from the motor winding. Switch S1 makes it 1 possible to reverse the motor direction instantly.

For independently energized motors, the speed is, in principle, a linear function of the supply voltage. Motors with a permanent magnet are a sub category of independently energized motors, and they are often used in toys and models. In this circuit, the motor supply voltage is varied by means of pulse width modulation (PWM), which ensures good efficiency as well as a relatively high torque at low motor speeds. A single control voltage between 0 and +10 V enables the motor speed to be reversed and varied from nought to maximum in both directions. Astable multivibrator IC1 is set up as an 80 Hz oscillator, and determines the frequency of the PWM signal.
Current source T1 charges C3. The sawtooth , voltage across this capacitor is compared with the control voltage in IC2, which outputs the PWM signal to buffer N1-N3 or N4-N6. The darlington based motor driver is a bridge circuit capable of driving loads up to 4A, provided the run-in current stays below 6A, and sufficient cooling is provided for the power transistors Tz T5. Diodes D2-D5 afford protection against inductive surges from the motor winding. Switch S1 makes it 1 possible to reverse the motor direction instantly.

Labels:
Bidirectional,
circuit,
controller,
dc,
high,
Motor,
Speed,
Torque
Subscribe to:
Posts (Atom)