![]() | ![]() | ![]() |
| | |||||||
| Robotics Chat Specific to discussions about robots and the making of. |
| | Thread Tools | Display Modes |
| | (permalink) |
| Experienced Member | 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 |
| | |
| | (permalink) |
| Experienced Member | Use Google or search this forum for "H-bridge". The forum has 18 pages of results. |
| | |
| | (permalink) |
| Experienced Member | 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. |
| | |
| | (permalink) |
| Experienced Member | 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 |
| | |
| | (permalink) |
| Experienced Member | 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. |
| | |
| | (permalink) |
| Experienced Member | 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. |
| | |
| | (permalink) |
| Experienced Member | 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 |
| | |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| 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 |