Showing posts with label motor. Show all posts
Showing posts with label motor. Show all posts

Saturday, November 8, 2014

Stepper Motor Controller

Stepper motors are available in several versions and sizes with a variety of operating voltages. The advantage of this general-purpose controller is that is can be used with a wide range of operating voltages, from approximately 5 V to 18 V. It can drive the motor with a peak voltage equal to half the supply voltage, so it can easily handle stepper motors designed for voltages between 2.5 V and 9 V. The circuit can also supply motor currents up to 3.5 A, which means it can be used to drive relatively large motors. The circuit is also short-circuit proof and has built-in over temperature protection. Two signals are required for driving a stepper motor. In logical terms, they constitute a Grey code, which means they are two square-wave signals with the same frequency but a constant phase difference of 90 degrees. IC1 generates a square-wave signal with a frequency that can be set using potentiometer P1. 

This frequency determines the rpm of the stepper motor. The Grey code is generated by a decimal counter in the form of a 4017. Outputs Q0–Q9 of the counter go high in succession in response to the rising edges of the clock signal. The Grey code can be generated from the outputs by using two OR gates, which are formed here using two diodes and a resistor for each gate, to produce the I and Q signals. Here ‘I’ stands for ‘in-phase’ and ‘Q’ for ‘quadrature’, which means it has a 90-degree phase offset from the I signal. It is common practice to drive the windings of a stepper motor using a pair of push-pull circuits for each winding, which is called an ‘H bridge’. 

That makes it possible to reverse the direction of the current through each winding, which is necessary for proper operation of a bipolar motor (one whose windings do not have centre taps). Of course, it can also be used to properly drive a unipolar motor (with centre-tapped windings). Instead of using a push-pull circuit of this sort, here we decided to use audio amplifier ICs (type TDA2030), even though that may sound a bit strange. In functional terms, the TDA2030 is actually a sort of power opamp. It has a difference amplifier at the input and a push-pull driver stage at the output.

Circuit diagram:
Stepper Motor Controller Circuit Diagram

IC3, IC4 and IC5 are all of this type (which is economically priced). Here IC3 and IC4 are wired as comparators. Their non-inverting inputs are driven by the previously mentioned I and Q signals, with the inverting inputs set to a potential equal to half the supply voltage. That potential is supplied by the third TDA2030. The outputs of IC3 and IC4 thus track their non-inverting inputs, and each of them drives one motor winding. The other ends of the windings are in turn connected to half the supply voltage, provided by IC5. As one end of each winding is connected to a square-wave signal that alternates between 0 V and a potential close to the supply voltage, while the other end is at half the supply voltage, a voltage equal to half the supply voltage is always applied to each winding, but it alternates in polarity according to the states of the I and Q signals.

That’s exactly what we want for driving a bipolar stepper motor. The rpm can be varied using potentiometer P1, but the actual speed is different for each type of motor because it depends on the number of steps per revolution. The motor used in the prototype advanced by approximately 9° per step, and its speed could be adjusted over a range of approximately 2 to 10 seconds per revolution. In principle, any desired speed can be obtained by adjusting the value of C1, as long as the motor can handle it. The adjustment range of P1 can be increased by reducing the value of resistor R5. The adjustment range is 1:(1000 + R5)/R5, where R5 is given in k.If a stepper motor is switched off by removing the supply voltage from the circuit, it’s possible for the motor to continue turning a certain amount due to its own inertia or the mechanical load on the motor (flywheel effect).

It’s also possible for the position of the motor to disagree with the states of the I and Q signals when power is first applied to the circuit. As a result, the motor can sometimes ‘get confused’ when starting up, with the result that it takes a step in the wrong direction before starting to move in direction defined by the drive signals. These effects can be avoided by adding the optional switch S1 and a 1-k resistor, which can then be used to start and stop the motor. When S1 is closed, the clock signal stops but IC2 retains its output levels at that moment, so the continuous currents through the motor windings magnetically ‘lock’ the rotor in position. The TDA2030 has internal over temperature protection, so the output current will be reduced automatically if the IC becomes too hot. For that reason, it is recommended to fit IC3, IC4 and IC5 to a heat sink (possibly a shared heat sink) when a relatively high-power motor is used. The tab of the TO220 case is electrically bonded to the negative supply voltage pin, so the ICs can be attached to a shared heat sink without using insulating washers.
Read More..

Friday, September 12, 2014

Bi directional motor

This is a simple and easy to construct schema that can be used to provide a bidirectional drive to a DC motor. The schema operation is straight forward. Output of an astable mutivibrator based on IC1 (NE555) is used to control the relay RL1 driving the motor. The motor is connected between the two poles of the relay contacts. The relay contacts are so wired as to reverse the DC supply to the motor when the contacts changeover.






The astable multivibrator produces a square wave at the output with its high time given by 0.69(R1+R3+R5)C1 and low time given by 0.69(R1+R2+R4)C1.The high and low times can be varied by varying potentiometers R4 and R5.For the given values the high and low times can be adjusted between 1S and 8S separately. When the IC1 output is low, the relay is de energised and the relay contacts are in position 1-1 with the result that A terminal of the motor is positive and motor runs in one direction. The IC1 output is high the relay is energised and the contacts changeover to position 2-2.Now the terminal B of the motor becomes positive and motor runs in the opposite direction. The transistor Q1 is used to drive the relay according to the output from IC1.The diode D4 acts as freewheeling diode.





Notes.

* Assemble the schema on a good quality PCB.
* The schema can be powered from a 12V DC power supply.
* The IC1 must be mounted on a holder.
* The capacitor C1 must be rated at least 15V.
* The relay RL1 can be a 12V DPDT relay.

Read More..

Tuesday, August 19, 2014

Converting a DCM Motor

We recently bought a train set made by a renowned company and just couldn’t resist looking inside the locomotive. Although it did have an electronic decoder, the DCM motor was already available 35 (!) years ago. It is most likely that this motor is used due to financial constraints, because Märklin (as you probably guessed) also has a modern 5-pole motor as part of its range. Incidentally, they have recently introduced a brushless model. 

The DCM motor used in our locomotive is still an old-fashioned 3-pole series motor with an electromagnet to provide motive power. The new 5-pole motor has a permanent magnet. We therefore wondered if we couldn’t improve the driving characteristics if we powered the field winding separately, using a bridge rectifier and a 27 Ω current limiting resistor. This would effectively create a permanent magnet. The result was that the driving characteristics improved at lower speeds, but the initial acceleration remained the same. But a constant 0.5 A flows through the winding, which seems wasteful of the (limited) track power. A small schema can reduce this current to less than half, making this technique more acceptable. 

Circuit diagram :
Converting
Converting a DCM Motor Circuit Diagram

The field winding has to be disconnected from the rest (3 wires). A freewheeling diode (D1, Schottky) is then connected across the whole winding. The centre tap of the winding is no longer used. When FET T1 turns on, the current through the winding increases from zero until it reaches about 0.5 A. At this current the voltage drop across R4-R7 becomes greater than the reference voltage across D2 and the opamp will turn off the FET. The current through the winding continues flowing via D1, gradually reducing in strength. When the current has fallen about 10% (due to hysteresis caused by R3), IC1 will turn on T1 again. The cur-rent will increase again to 0.5 A and the FET is turned off again. This goes on continuously.
The current through the field winding is fairly constant, creating a good imitation of a permanent magnet. The nice thing about this schema is that the total current consumption is only about 0.2 A, whereas the current flow through the winding is a continuous 0.5 A. 

We made this modification because we wanted to convert the locomotive for use with a DCC decoder. A new controller is needed in any case, because the polarity on the rotor winding has to be reversed to change its direction of rotation. In the original motor this was done by using the other half of the winding.
There is also a good non-electrical alter-native: put a permanent magnet in the motor. But we didn’t have a suitable magnet, whereas all electronic parts could be picked straight from the spares box. 

Author : Karel Walraven
Read More..