Sie sind auf Seite 1von 2

A REPORT ON PC BASED DC MOTOR SPEED CONTROL

This circuit allows you to control the speed of a DC motor (in eight levels) from your PCs parallel port. The PC uses a softw are
program to control the speed of the motor. The motor is connected to the PC through an interface circuit. The interface circuit consists of 1-of-8 decoder IC 74LS138 (IC1), hex inverter ICs 74LS04 (IC2 and IC3), resistor networks, timer IC 555 (IC4) and motor driver transistor SL100 (T1). The decoder IC accepts binary weighted inputs A0, A1 and A2 at pins 1, 2 and3 , respectively. With active-low enable input pins 4 and 5 of the decoder grounded, it provides eight mutually exclusive active-low outputs (Q0 through Q7). These outputs are inverted by hex inverters IC2 and IC3. The resistor network comprising presets VR1 through VR8, resistors R1 and R2 and capacitor C1 are the timing components of timer IC 555 (IC4), which is configured in astable mode. The output of IC4 is a square wave, which is fed to the base of transistor T1 via current-limiting resistor R3. Transistor T1 is used to drive the motor. The pulse-width modulation (PWM) method is used for efficient control of the motor. The output of the PC is decoded to select a particular preset (VR1 through VR8). The value of the selected preset, along with resistors R1 and R2 and capacitor C1, changes the output pulse width at pin 3 of IC4. Thus the motor speed can be increased/decreased by choosing a particular resistance. For high-power motors, the transistor can be replaced by an IGBT or a power MOSFET. The software (speedM.c) is written in C language and compiled using Turbo C compiler. Initially, when the motor is off, the program prompts you to press Enter key to start the motor. Once you press the key, the motor starts run ning at full speed. After a few seconds, the program asks you to press any key from the keyboard to go to the next screen for controlling the speed of the motor. This screen has options for increasing and decreasing the motor speed and also for exiting from the program. For increasing the speed enter choice 1 and press Enter key, and for decreasing the speed enter choice 2 and press Enter key. This action changes the speed by one step at -a-time and the message Speed decreased or Speed increased is displayed on the screen. To go to the main menu, again press Enter key.

How to control a small DC motor, both in speed and direction, from a PC


DC motors are used in a wide variety of applications. They can be used in novelty items and toys such as train sets right through to more serious applications in industrial process control and automation. Whatever the application the role of the humble DC motor can be greatly enhanced by controlling its motion from a PC compatible computer. Having the intelligence of the PC available to dictate the operation of the motor allows elaborate control systems to be created with the flexibility of the PC control system. Whatever the DC motor is hooked up to the first step is to bring it under PC control both in speed and direction. For this purpose we will use a MotorBee USB adaptor board and a small 9v DC motor arranged in a worm drive to increase available torque. Connecting the motor to MotorBee The DC motor has two connection points. One is invariably labelled + and one . To a certain extent this is fairly meaningless, as the motor will operate with either polarity of supply. Reversing the supply simply makes the motor go in the opposite direction. Some applications only require the motor to go in one direction albeit at varying speeds and , for this purpose, the MotorBee has 4 independent motor control outputs. However, in our application, we require the motor to go in both directions so we will be using two of the MotorBee outputs for this one motor. We will use outputs 1 and 2 for this and the connection arrangement is shown below.

Although the MotorBee gets its own power directly from its USB connection to the computer, the power to drive the motor is supplied separately. The 5v available on the USB cable to the MotorBee powers its on-board processor and its associated control circuitry. The external supply to power the motor in our case is a 9v battery. A photo of the connection arrangement is shown below for clarity...

PRESENTED BY:GOURAB BANERJEE DEEPAK SETHI SANKET GOUTAM ASHUTOSH KUMAR

Das könnte Ihnen auch gefallen