Chateauguay
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 =)
|
 |
« on: August 25, 2011, 03:19:07 am » |
is there any easy and simple way to change a polarity/ side/ direction or a +/- of a dc motor.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 137
Posts: 19006
I don't think you connected the grounds, Dave.
|
 |
« Reply #1 on: August 25, 2011, 05:26:54 am » |
DPDT relay?
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Bristol, UK
Offline
Edison Member
Karma: 0
Posts: 1197
Exhibitor at UK Maker Faire
|
 |
« Reply #2 on: August 25, 2011, 08:33:29 am » |
Maybe an H-bridge?
|
|
|
|
|
Logged
|
|
|
|
|
Calgary, AB
Offline
Newbie
Karma: 2
Posts: 46
Arduino Newbie
|
 |
« Reply #3 on: August 25, 2011, 10:27:01 am » |
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.htmlRegards Bill
|
|
|
|
|
Logged
|
Don't you just hate ONE D 10 T problems?
|
|
|
|
Chateauguay
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 =)
|
 |
« Reply #4 on: August 26, 2011, 01:36:11 pm » |
there are no programming code to change a polarity?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 137
Posts: 19006
I don't think you connected the grounds, Dave.
|
 |
« Reply #5 on: August 26, 2011, 01:38:26 pm » |
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
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 =)
|
 |
« Reply #6 on: August 26, 2011, 02:05:13 pm » |
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
Brattain Member
Karma: 137
Posts: 19006
I don't think you connected the grounds, Dave.
|
 |
« Reply #7 on: August 26, 2011, 02:10:28 pm » |
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
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 =)
|
 |
« Reply #8 on: August 26, 2011, 07:14:20 pm » |
i have an arduino uno, and im trying to controlle a +/- of dc motor that is 3 to 9 volts
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 40
|
 |
« Reply #9 on: August 26, 2011, 08:55:33 pm » |
There are some motor controller shields for the arduino. Easiest way. Plenty of code examples.
|
|
|
|
|
Logged
|
|
|
|
|
Chateauguay
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 =)
|
 |
« Reply #10 on: August 26, 2011, 10:31:51 pm » |
so tell me the code 
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 40
|
 |
« Reply #12 on: August 27, 2011, 12:26:35 am » |
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 137
Posts: 19006
I don't think you connected the grounds, Dave.
|
 |
« Reply #13 on: August 27, 2011, 03:34:01 am » |
im trying to controlle a +/- of dc motor that is 3 to 9 volts I suppose I asked for that.  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.
|
|
|
|
|