• Channels
Part Inventory
Go
 
powered by:

 
  • Quick Poll
What Social Networking site do you use the most?



VOTE VIEW RESULTS
Previous Polls

Premium Content

New Signal Chain Technical Papers from Texas Instruments:

 

 

 

Interface Circuit Allows Users To Control DC Motor's Speed


Firas M. Ali Al-Raie

October 01, 2009

Print
Reprints Comment Subscribe

The circuit in the figure provides three levels of speed control for a dc motor, using a PC’s parallel port (LPT1). A C++ program performs the control functions by allowing the signals from the PC port to deliver three different voltages to the motor.

The system is an interface circuit that connects the motor to the PC using a 4-bit binary counter (a 74LS193), three current- limiting resistors, three npn transistors, three 5-V relays, and two supply resistors. Counter inputs A, B, and C receive the control signals from three of LPT1’s data pins, through a suitable cable. The counter acts as a buffer for the weak signals coming from the PC, so any other buffer IC, like a 74LS244, can be used.

Counter outputs QA, QB, and QC connect to the three transistors (2N2222s were used in this example) through the currentlimiting resistors. The transistors increase the current level of the PC signals in order to drive the relays. Depending on the control signals generated by the PC, the relays insert or take out the supply resistors. This action applies the desired voltage level from the 12-V supply to the motor to achieve the proper speed. The On/Off operation of the relays depends on the digital sequence generated by the computer program (see the table).

When the program is selected, a Start screen appears. Pressing any key brings up a screen containing a selection menu. From this menu, the user selects the desired motor speed or Exit. Once the motor is running—at any speed—the user can stop it by pressing any key, causing the selection menu to appear again.

The integer variable “choice” in the program listing stores the selection case of the user. Based on the value of this variable, the necessary digital sequence is stored at the integer variable “data.” The function “outportb()” places the suitable digital signal at the data lines of the PC’s parallel port, which is identified through its address. (The program is available at http://electronicdesign.com.)

See code

Average (0 Ratings):

Subscribe
Subscribe to Electronic Design and start receiving more articles like this one
Filed Under:

Check for price and availability on Source ESB:

Go
powered by  
  • Bill Ross
    3 years ago
    Sep 30, 2009

    What is the purpose of putting the three relay contacts in series instead of putting them in parrellel and changing R2 to a 470 Ohm. This would allow troubleshotting a failure easier by which function doesn't work. the contact resistance would be 1/3 to the motor.

  • Bill Ross
    3 years ago
    Sep 30, 2009

    What is the purpose of putting the three relay contacts in series instead of putting them in parrellel and changing R2 to a 470 Ohm. This would allow troubleshotting a failure easier by which function doesn't work. the contact resistance would be 1/3 to the motor.

  • Bill Ross
    3 years ago
    Sep 30, 2009

    What is the purpose of putting the three relay contacts in series instead of putting them in parrellel and changing R2 to a 470 Ohm. This would allow troubleshotting a failure easier by which function doesn't work. the contact resistance would be 1/3 to the motor.

You must log on before posting a comment.

Are you a new visitor? Register Here
Acceptable Use Policy

Sponsored Links