Pages: [1]   Go Down
 Author Topic: Voltage for Vibration Motor  (Read 1566 times) 0 Members and 1 Guest are viewing this topic.
0
Offline
Newbie
Karma: 0
Posts: 21
Arduino rocks
 « on: November 08, 2009, 01:32:19 pm » Bigger Smaller Reset

I know the output pins are 5v.  I plan on using PWM to drive a vibration motor.  Generally the motors I see readily available are rated for around 3.5 volts max.

Do I need to drop the voltage down?  Should I keep looking for vibration motors rated for higher voltage?

Thanks,

John
 Logged

Global Moderator
UK
Offline
Brattain Member
Karma: 291
Posts: 25898
I don't think you connected the grounds, Dave.
 « Reply #1 on: November 08, 2009, 01:33:59 pm » Bigger Smaller Reset

You may want to find what sort of current the vibra takes.
The ones I use draw well in excess of the AVR's pin rating.
 Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

0
Offline
Newbie
Karma: 0
Posts: 21
Arduino rocks
 « Reply #2 on: November 08, 2009, 03:09:39 pm » Bigger Smaller Reset

Thanks...I will look into current draw.

Voltage should be OK than?
 Logged

0
Offline
Newbie
Karma: 0
Posts: 11
Arduino rocks
 « Reply #3 on: November 08, 2009, 03:14:00 pm » Bigger Smaller Reset

I use the following setup supplying 4.5 V to a motor...works great!

http://lizarum.com/assignments/physical_computing/2008/motors.html

You should be able to control the motor/voltage out  as follows

int analogPin9 = 9;
int val = 0;       // variable to store the data

void setup() {
pinMode(analogPin9,OUTPUT);

}

void loop () {
int val = 6;  // gives about 2.5 volts   when supplying ~5 volts
/* val can be any number 0 thru 9 */
{
val = 28 * val;        // convert from 0-9 to 0-255

analogWrite(motorPin,val);

}
}
 Logged

0
Offline
Newbie
Karma: 0
Posts: 21
Arduino rocks
 « Reply #4 on: November 08, 2009, 05:02:17 pm » Bigger Smaller Reset

Thanks for the info and the link...

I had thought that utilizing PWM (via analogWrite) did not change the voltage but turned the 5v on and off.  Is the 4.5v you mention is an "average" and that is OK as far as driving a motor needing less than 5V?
 Logged

0
Offline
Newbie
Karma: 0
Posts: 11
Arduino rocks
 « Reply #5 on: November 08, 2009, 07:43:53 pm » Bigger Smaller Reset

The PWM (via analogWrite) is used to excite the transistor  (TIP120) which in turn swicth on the the voltage required for you load.

You motor is connected to a external voltage source ( for motor that needs a lot of current  )or you can use the 5v from the arduino if your motor does not draw a lot of current. The other terminal of the motor is connected to the collector of the transistor.

Theory : excite the base of the transistor with pwm  will cause a voltage between the collector and the emitter which is grounded.

The more you excite the TIP120  the more volts to the motor.

 Logged

Left Coast, CA (USA)
Offline
Brattain Member
Karma: 361
Posts: 17263
Measurement changes behavior
 « Reply #6 on: November 08, 2009, 10:40:40 pm » Bigger Smaller Reset

Quote
I had thought that utilizing PWM (via analogWrite) did not change the voltage but turned the 5v on and off

Yes, PWM is either fully on or off at any given instant in time, however the duty cycle (percentage of on time Vs off time) does deliver more or less average power to the motor over time. The induction of the motor winding allows it to smooth out the highs and lows to a useful average power of 0 to 100% depending on the duty cycle of the PWM signal.

Lefty
 « Last Edit: November 08, 2009, 10:41:10 pm by retrolefty » Logged

0
Offline
Newbie
Karma: 0
Posts: 21
Arduino rocks
 « Reply #7 on: November 09, 2009, 06:46:14 pm » Bigger Smaller Reset

Thanks to everyone that responded...a lot of good information here!
 Logged

 Pages: [1]   Go Up