electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

control DC motor speed and direction


Post new topic  Reply to topic    EDAboard.com Forum Index -> Robotics and Automatics Forum -> control DC motor speed and direction
Author Message
olof102



Joined: 19 Sep 2009
Posts: 6
Location: Sweden


Post22 Oct 2009 7:48   

control DC motor speed and direction


Hi,
me and a classmate is coming with a schoolproject where we're supposed to control 2 100W 12v DC motors using a computer.

We're looking for suggestions, can we do this through the computers parallelport or COM-port?

Do you guys have any wiring diagrams for circuits that we will need?

All suggestions are appreciated!

PS! We will be writing a program ourselves.
Back to top
haker_fox



Joined: 24 Jun 2009
Posts: 51
Helped: 4
Location: Russia, Irkutsk


Post26 Oct 2009 1:52   

Re: control DC motor speed and direction


olof102 wrote:
All suggestions are appreciated!

Key words are: H-bridge, microcontroller, motion control, motor control and etc. Google it and have a lot of examples, books, papers.
This theme is very very large. And it's impossible to answer all your questions here.
Best regards!
Back to top
elrayes



Joined: 03 Jun 2008
Posts: 164
Helped: 8
Location: Egypt


Post31 Oct 2009 16:38   

control DC motor speed and direction


i prefer parallel port, much easier in interfacing just remember if you working under win XP you will need program to low level access to access your parallel port like "User port", also don't forget to use buffers like 74244 and 74373, it is very important to buffer the parallel port outputs/inputs.
you can use H-bridge IC L298, it is a dual h-bridge IC which mean you can control two motors through it, you can generate PWM signal from the parallel port and connect it to the enable of the IC, you can use either C/C++ or Matlab to interface parallel port.
good luck
Back to top
Naveed Ahmed



Joined: 31 Aug 2008
Posts: 22
Location: Pakistan


Post31 Oct 2009 17:27   

Re: control DC motor speed and direction


Dear it is better to use Microcontroller.

1) Connect Microcontrollers serial port with COM port of PC.

2) Connect Motor through H-Bridge circuit with microcontroller.

3) Program your Microcontroller.

4) Using your defined commands, control the motor through PCs serial port.


Thanks

Regards
Naveed Khowaja
Back to top
haker_fox



Joined: 24 Jun 2009
Posts: 51
Helped: 4
Location: Russia, Irkutsk


Post02 Nov 2009 1:44   

Re: control DC motor speed and direction


elrayes wrote:
ou can use H-bridge IC L298, it is a dual h-bridge IC which mean
you can control two motors through it


I think 100W dc motor is too power for L298. Guys should to use MOSFETs.
Back to top
elrayes



Joined: 03 Jun 2008
Posts: 164
Helped: 8
Location: Egypt


Post02 Nov 2009 11:18   

control DC motor speed and direction


then you can use two IC's of the L298 in parallel, or build you H-bridge using MOSFETs like "haker_fox" mentioned.
Back to top
Peter Nachtwey



Joined: 10 Nov 2009
Posts: 3
Helped: 1
Location: Vancouver, WA


Post10 Nov 2009 16:12   

Re: control DC motor speed and direction


If you are doing this in a serious way you should use PWM but if you are just supplying a DC voltage then look at this.
http://www.engin.umich.edu/group/ctm/examples/motor/motor.html
There are other useful links on the bottom of this page.

PWM requires that you have a very fast means of switching the pulses. I would use a micro controller or better yet a DSP for this.
Back to top
Google
AdSense
Google Adsense




Post10 Nov 2009 16:12   

Ads




Back to top
hameeds01



Joined: 23 Aug 2005
Posts: 308
Helped: 15
Location: NUST Islamabad


Post10 Nov 2009 17:28   

Re: control DC motor speed and direction


to vary the speed of DC motors u need PWM signal, it can be generated via software programming, in order to keep the hardware simple use parallel port + H-bridge Driver


Sorry, but you need login in to view this attachment

Back to top
haker_fox



Joined: 24 Jun 2009
Posts: 51
Helped: 4
Location: Russia, Irkutsk


Post11 Nov 2009 3:57   

Re: control DC motor speed and direction


hameeds01 wrote:
to vary the speed of DC motors u need PWM signal, it can be generated via software programming, in order to keep the hardware simple use parallel port + H-bridge Driver

Also this IC needs the external drivers to drive the MOSFETS (especially the upper ones) and to have a dead-time. Fellows should pay attention to app notes on www.irf.com.
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Robotics and Automatics Forum -> control DC motor speed and direction
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
encoder to measure motor speed.how to specify the direction? (5)
Direction control for motor (6)
DC MOTOR CONTROLLING( speed and forward-backward control) (1)
how do i control DC motor speed using dac and pwm (1)
Motor speed control - operates well at low speed only (2)
speed control of DC motor with inner current loop control (3)
speed control of DC motor with inner current control loop (2)
ac motor speed control (3)
motor speed control (8)
Speed control of DC motor (1)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS