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
 
Tools
Old 18th August 2009, 04:37 PM   #1
Question Electric motor

Hello!

This might be a silly question, but I have no idea.

I need to control an electric DC motor (those little motors you can find on a toy, that can work with a 1.3v battery) so:

-It will inverse the rotation every X seconds (I would like to be able to define/change X)

-I can control the speed of the rotation.

Can somebody help me out with this (the simplest way if it is possible).
Thank you!

Pablo
pcordoba is offline  
Old 18th August 2009, 11:03 PM   #2
Default

Use an h-brige, it uses two phase pwm. Φ1 in the attachment is the phase to
make the motor go foward Φ2 to reverse.To produce the pwm a mcu is necessary,it is also necessary for switching between foward and reverse.
Attached Files
File Type: doc pwm.doc (23.5 KB, 40 views)
yctek is offline  
Old 18th August 2009, 11:05 PM   #3
Default

What is doing the controlling... you with switches? Or is it supposed to autonomously run in one direction for X seconds and then reverse, etc?

Break the problem down into several smaller problems.

1. How do you control the direction of a DC motor -- look up H-bridge circuits as well as H-bridge ICs and motor driver ICs. A simple way for a small low current motor is to just use the motor driver IC and be done with it.

2. How do you control the speed of a DC motor -- the *best* way to do this from an efficiency, torque standpoint, is to use Pulse Width Modulation (PWM). You can look that up next. The lame way to do this is to use a variable resistor of appropriate wattage. The better way to do this is using some type of multivibrator operating at > audible frequencies with adjustable duty cycle. The 555 timer would be one option...

3. How do you send a signal that is on for X seconds and off for X seconds -- look up 555 timers and how to use one as a multivibrator. You can create a pulsetrain of adjustable frequency and duty cycle. Actually there is a dual 555 called the 556 ; one could do PWM, the other could do the forward/reverse signal.

4. How do I interface the 555 signal with the H-bridge -- depends on what you are using for your H-bridge... ask when we come to that point If you're just using an L293 or SN754410, it is probably fairly simple.

Michael
__________________
Michael Shimniok
http://bot-thoughts.blogspot.com/
Microcontrollers can solve world hunger, too!
shimniok is offline  
Old 18th August 2009, 11:17 PM   #4
Default

Quote:
Originally Posted by yctek View Post
Use an h-brige, it uses two phase pwm. Φ1 in the attachment is the phase to
make the motor go foward Φ2 to reverse.To produce the pwm a mcu is necessary,it is also necessary for switching between foward and reverse.
Just helping you distributing the image. PNG is much better than doc

Grossel is offline  
Old 18th August 2009, 11:54 PM   #5
Default

How are you going to find MOSFETs that will give the required current with a gate voltage of just 1.3V?
__________________

I do not answer private messages asking for help because no one else can: benefit from advice I may give or correct me if I'm wrong.

Please ask on the open forum if you have a question and I'll be happy to help,
if I know the answer.
Hero999 is offline  
Old 19th August 2009, 03:45 AM   #6
Default

As I understand it, you'd need circuitry to drive the gate voltage much higher...
__________________
Michael Shimniok
http://bot-thoughts.blogspot.com/
Microcontrollers can solve world hunger, too!
shimniok is offline  
Old 19th August 2009, 02:04 PM   #7
Default

I think using a Joule thief style circuit to give about 5.5V for the controller. Most PICs will work from 5.5V and you can get MOSFETs (for the high side) which can pass a reasonable current with a gate voltage of 4V.
__________________

I do not answer private messages asking for help because no one else can: benefit from advice I may give or correct me if I'm wrong.

Please ask on the open forum if you have a question and I'll be happy to help,
if I know the answer.
Hero999 is offline  
Old 20th August 2009, 01:33 PM   #8
Default

You don't really need a 555 timer if you have a microcontroller,because you can implement both the pwm and X seconds to switch between the two states (reverse and foward) in the microcontroller.
yctek is offline  
Old 20th August 2009, 01:34 PM   #9
Default

Thanx Grossel
yctek is offline  
Reply

Tags
electric, motor

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Electric motor Recep Electronic Projects Design/Ideas/Reviews 11 8th June 2009 06:13 PM
Electric motor mechanicaltom General Electronics Chat 2 14th April 2009 03:44 AM
electric motor wires confounded General Electronics Chat 15 29th March 2009 08:55 PM
rheostat for electric motor bunghole Electronic Projects Design/Ideas/Reviews 20 22nd January 2008 06:15 AM
electric motor queston tkrobi General Electronics Chat 2 5th August 2007 11:59 PM



All times are GMT. The time now is 02:05 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker