Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Robotics Chat


Robotics Chat Specific to discussions about robots and the making of.

Reply
 
Thread Tools Display Modes
Old 21st October 2007, 11:53 AM   (permalink)
Experienced Member
Hesam Kamalan is on a distinguished road
Send a message via Yahoo to Hesam Kamalan
Red face Driving a DC Motor with PIC

Hi,
I want to build a Car with PIC and DC Motor. DC motor have two pins. when VCC Connected to first and GND Connected to second, wheels turns right and vice versa.
I think that i can not connect these two pins to PIC ports directly.
tell me how can i drive this motor and how can i control, speed of this motor, please (i want schematic if possible).

regards
__________________
Visit my site : http://sites.google.com/site/electornics/Home
Hesam Kamalan is offline   Reply With Quote
Old 21st October 2007, 12:06 PM   (permalink)
Experienced Member
 
Papabravo is a glorious beacon of lightPapabravo is a glorious beacon of lightPapabravo is a glorious beacon of lightPapabravo is a glorious beacon of light
Default

Use Google or search this forum for "H-bridge". The forum has 18 pages of results.
Papabravo is offline   Reply With Quote
Old 21st October 2007, 11:16 PM   (permalink)
Experienced Member
 
Wingmax is just really niceWingmax is just really niceWingmax is just really nice
Default

I suggest to use a motor driver such as L293D to drive the motor. Connect the motor winding to the output of L293D( refer to my previous post- Drive a stepper motor with PIC and L293D).
Use one of the port pin from the PIC to generate the Pulse Width Modulation to control the speed of the motor.
Use 2 port pins from the PIC to the enable pins of the L293D to control the direction.

I was going to put a post on this topic. But I am working on a unipolar stepper motor right now. I might change to DC motor speed control first.

Wingmax is offline   Reply With Quote
Old 21st October 2007, 11:27 PM   (permalink)
Experienced Member
watzmann can only hope to improve
Default

so easy to make H-Bridge circuit and you will learn too much through making it .

use this schematic i have tested it and it works very well
Attached Images
File Type: jpg H-Bridge.jpg (301.4 KB, 43 views)
watzmann is offline   Reply With Quote
Old 22nd October 2007, 10:00 AM   (permalink)
Experienced Member
Hesam Kamalan is on a distinguished road
Send a message via Yahoo to Hesam Kamalan
Default

thank you very much.
i find this site and schematic circuit. its look like Watzmann's schematic but has not diode.
can i use this circuit?
site : http://www.endtas.com/robot/modules....rticle&sid=148

Circuit: http://www.endtas.com/files/robot/pr...uk/circuit.gif
__________________
Visit my site : http://sites.google.com/site/electornics/Home

Last edited by Hesam Kamalan; 22nd October 2007 at 10:03 AM.
Hesam Kamalan is offline   Reply With Quote
Old 22nd October 2007, 02:39 PM   (permalink)
Experienced Member
 
dknguyen is a splendid one to beholddknguyen is a splendid one to beholddknguyen is a splendid one to beholddknguyen is a splendid one to beholddknguyen is a splendid one to beholddknguyen is a splendid one to beholddknguyen is a splendid one to behold
Default

You need the diodes in reverse parallel with each transistor. He should have them there but does not. The motor inductance will try to keep current flowing when the transistor turns off. If the diode is not there it will try and "spark" across the MOSFET and damage it. The diode gives this "flyback current" a path to flow.
dknguyen is offline   Reply With Quote
Old 23rd October 2007, 11:17 PM   (permalink)
Experienced Member
 
Wingmax is just really niceWingmax is just really niceWingmax is just really nice
Default

It's good and well to use discret components in your design for learning and fun. But in real world IC are used when ever practical and possible. For example in that diagram, there are more than 10 components, whereas you can use one low cost common driver IC instead. It save space, fewer connections, easier to implement, and less chance to make mistake. Consider if you have a dead line to meet.

__________________
May the force be with you.


My project: Simple White Line Follower

http://au.youtube.com/watch?v=8Z_MmrdH4oc

http://i271.photobucket.com/albums/j...nefollower.jpg
Wingmax is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
High ADC sampling rate PIC, 18F needed? bananasiong Micro Controllers 24 28th October 2007 12:13 PM
Driving a stepper motor with PIC and L293D Wingmax Robotics Chat 0 16th October 2007 12:50 PM
Can you help me for Isolated DC to DC gbmewada General Electronics Chat 7 15th October 2007 07:00 AM
closed loop DC motor control vuchris Electronic Projects Design/Ideas/Reviews 0 30th September 2007 11:27 AM
Four PIC with One LCD.. meera83 Micro Controllers 13 20th September 2007 06:40 AM



All times are GMT. The time now is 11:34 PM.


Electronic Circuits  |  Radio Controlled
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.