Loading...
Pages: [1]   Go Down
Author Topic: changing a polarity or a +/- of a dc motor?  (Read 815 times)
0 Members and 1 Guest are viewing this topic.
Chateauguay
Offline Offline
Full Member
***
Karma: 0
Posts: 110
-8 years old: LEGO BLOKS 8 to 9 years old: little cards magician 9 to 12 years old : meccano 13 years old: Arduino Uno!!!! Usually my real dream was to make little gadjets and that sort of stuff =)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

is there any easy and simple way to change a polarity/ side/ direction or a +/- of a dc motor.
Logged


Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 137
Posts: 19006
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

DPDT relay?
Logged

Pete, it's a fool looks for logic in the chambers of the human heart.

Bristol, UK
Offline Offline
Edison Member
*
Karma: 0
Posts: 1197
Exhibitor at UK Maker Faire
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Maybe an H-bridge?
Logged

Calgary, AB
Offline Offline
Newbie
*
Karma: 2
Posts: 46
Arduino Newbie
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Muneeb

Simplest solution DPDT switch (double pole double throw)

If you used center off, then you would also get an off position.  The motor gets wired to the center position.

E.g.  http://www.robotroom.com/DPDT-Bidirectional-Motor-Switch.html

Regards  Bill
Logged

Don't you just hate ONE D 10 T problems?

Chateauguay
Offline Offline
Full Member
***
Karma: 0
Posts: 110
-8 years old: LEGO BLOKS 8 to 9 years old: little cards magician 9 to 12 years old : meccano 13 years old: Arduino Uno!!!! Usually my real dream was to make little gadjets and that sort of stuff =)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

there are no programming code to change a polarity?
Logged


Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 137
Posts: 19006
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, of course, unless you're using physical switches
Logged

Pete, it's a fool looks for logic in the chambers of the human heart.

Chateauguay
Offline Offline
Full Member
***
Karma: 0
Posts: 110
-8 years old: LEGO BLOKS 8 to 9 years old: little cards magician 9 to 12 years old : meccano 13 years old: Arduino Uno!!!! Usually my real dream was to make little gadjets and that sort of stuff =)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Any video or tutorial for this,

is it also possible to change a +/- of a dc motor using a potentionmeter or a photo resistor with a code
Logged


Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 137
Posts: 19006
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Tell us what hardware you've got and what sort of a motor you're trying to control.

(and please, don't just say "it's a 12V motor")
Logged

Pete, it's a fool looks for logic in the chambers of the human heart.

Chateauguay
Offline Offline
Full Member
***
Karma: 0
Posts: 110
-8 years old: LEGO BLOKS 8 to 9 years old: little cards magician 9 to 12 years old : meccano 13 years old: Arduino Uno!!!! Usually my real dream was to make little gadjets and that sort of stuff =)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

i have an arduino uno,
and im trying to controlle a +/- of dc motor that is 3 to 9 volts
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 40
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

There are some motor controller shields for the arduino.  Easiest way.  Plenty of code examples.
Logged

http://ilektron-x.blogspot.com - Hacking and General Electronics Goodness

Chateauguay
Offline Offline
Full Member
***
Karma: 0
Posts: 110
-8 years old: LEGO BLOKS 8 to 9 years old: little cards magician 9 to 12 years old : meccano 13 years old: Arduino Uno!!!! Usually my real dream was to make little gadjets and that sort of stuff =)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

so tell me the code  smiley-grin
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 40
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Here is my blog with a higher current motor shield.  I thought I had some example code on there, let me find it.

http://ilektron-x.blogspot.com/search/label/high%20current%20motor%20controller%20shield
Logged

http://ilektron-x.blogspot.com - Hacking and General Electronics Goodness

Offline Offline
Newbie
*
Karma: 0
Posts: 40
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

This is just a rudimentary example to control the motor shield.

http://ilektron-x.blogspot.com/2011/02/high-current-motor-controller-shield.html
Logged

http://ilektron-x.blogspot.com - Hacking and General Electronics Goodness

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 137
Posts: 19006
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
im trying to controlle a +/- of dc motor that is 3 to 9 volts
I suppose I asked for that. smiley-roll-blue

When asked to describe a motor, you need to state the voltage and the current.

Think about it; a slot-car runs on 12V, but so does a starter motor.
Logged

Pete, it's a fool looks for logic in the chambers of the human heart.

Pages: [1]   Go Up
Print
 
Jump to: