Pages: 1 2 [3]   Go Down
Author Topic: how can i add more motors to work for the arduino  (Read 2991 times)
0 Members and 1 Guest are viewing this topic.
Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17301
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
The Cape and Martha's Vineyard really are gems that few outside of New England know about-- but it's where the Presidents go on their summer vacations- guess that says SOMETHING...

In the early 90s I took my wife and mother in law on a 10 day trip down to the cap, and then north, off for the fall colors all the way to upper NY and returned in a big circle route. The Mane coast remined me alot of parts of our north coast here.

The fall colors were everything they say about them. We may have bigger trees out here but you make up for it in quanity and colors in late fall. That is not a visit to miss if you haven't seen it or live there.  smiley-wink
Logged

Boston Suburbs
Offline Offline
God Member
*****
Karma: 16
Posts: 955
I am above your silly so-called "Laws", Mister Ohm.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I do flat water kayaking when I can.. local state park lake and a meandering local river.  I've made it out for paddles twice now during the "Foliage Season", a Maple in full regalia arching over a riverbank.. I'll see if I can find one of my photos.  It really can be beautiful.

Maine, especially the North Coast is stunning.  My wife has family up that way, outside of Bar Harbor.  Last year we actually went camping for a few days in Acadia National Park, which is is on "Mount Desert Island".  I am not kidding.  The point is, Acadia includes Mount Cadillac, which is a huge mass of granite (leftover volcano so I am told) right on the coast.  1500 feet of pink granite in like a distance of five miles from the water, all of national park. http://www.acadiamagic.com/CadillacMountain.html

I've never posted/shown the photos I took of it anywhere publicly, but when I was there, it was bathed in fog which burned off like wisps of fire as the rising sun hit it.  Not shabby shots.  Several I think are superior to the ones the travel and tour companies use, in my own humble opinion smiley-wink  The top of Mount Cadillac is the first place in the USA to see the sun every day.

I guess I should post a few of those too... I really want terribly to have even a single day of shooting in Yellowstone.... Big Sur also has that stunning scenery you'll see nowhere else.  Last time I was there, I was in grade school.  Having a camera just gives me an excuse to walk around and stare at nothing all day and look legitimate doing it.
« Last Edit: July 09, 2011, 10:27:32 pm by focalist » Logged

When the testing is complete there will be... cake.

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

I would like to thank every body for helping me you all just literally saved my life but i have one more quick question so do i use schematic by cr0tch and if i do do i need the diode? also based on the schematic i don't need to give the motors(4 of them) their own 9v battery?. also im going to go to radio shack so can i get the final schematic on wether to use the diode or not? also for the programming want to control the speed of motors so  can i get the programming on that based on the PWM pin nine on the arduino duimilanove ATMEGA328.
thank you very much for your help

Logged

Phoenix, Arizona USA
Offline Offline
Faraday Member
**
Karma: 40
Posts: 5594
Where's the beer?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I would like to thank every body for helping me you all just literally saved my life but i have one more quick question so do i use schematic by cr0tch and if i do do i need the diode?

You should use the diode if you want the transistor to live for any reasonable amount of time. This diode prevents what's called "flyback voltage" (caused by the collapse of a magnetic field in a coil - as in the case of a motor) from back propagating through the transistor, which can break it. The voltage generated is generally much, much larger than the supply voltage. IIRC, the 1n4001 is good for about 50 volts, which is well within the range of what your are working with (if you want to be "doubly sure", sub in a 1n4004, which is good up to 400 volts).

See also this wikipedia article on flyback diodes: http://en.wikipedia.org/wiki/Flyback_diode


also based on the schematic i don't need to give the motors(4 of them) their own 9v battery?

Well, technically no - you only need one 9 VDC source. With that said, four of those motors running off a single PP3 9 volt battery is going to run that battery down to nothing in no time flat. You really want to use a better source for the entire project (something based on AA cells, minimum - if sticking with alkaline/NiCd/NiMH - otherwise you are looking at having to use a lithium-based battery, and all the potential recharging hassle/expense that can entail).

also im going to go to radio shack so can i get the final schematic on wether to use the diode or not? also for the programming want to control the speed of motors so  can i get the programming on that based on the PWM pin nine on the arduino duimilanove ATMEGA328.

I hope I've answered the question; but you are free to wait for any second opinions, of course (I'm certainly not one for thinking I'm the last word on any topic).

As far as the PWM control is concerned, just hook the circuit to the pin for the PWM control, and use the analogWrite() function to control it (see the Fade sample code/tutorial - or any other of the myriad tutorials for motor speed control using PWM for the Arduino out there).

thank you very much for your help

Good luck, and have fun! smiley
Logged

I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.

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

so i guess i can add one more motor to the schematic and other then that thank you very much for your help and i will let yall know if i have any more questions
thank you very much for your help
Logged

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

hey i tried the schematics by cr0tch on page 2 and 4 some reason its not working any suggestion on why?
Logged

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

                                                                                           +----[Motor1]-----+
                                                                                      |                 |
                                                                         +------------+----[Motor2]-----+---- 9 VDC
                                                                         |            |                 |
                                                                         |            +----[Motor3]-----+
                                                                         |            |                 |
                                                                         |            +-------->|-------+
                                                                         |               Flyback Diode (1n4001 or similar)
                                                                         |
                                                                         / Collector
                                                            Base        /
                    Arduino Digital Pin 8 --------\/\/\/\/--------[NPN transistor]
                                                1k resistor             \
                                                                         \ Emitter
                                                                         |
                                                                         |
                                                                         |
                                                                         +---------------- GND
Logged

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

                                                                                           +----[Motor1]-----+
                                                                                      |                 |
                                                                         +------------+----[Motor2]-----+---- 9 VDC
                                                                         |            |                 |                  (i used a nine volt connector clip so i connected + to motors and - to THE GND WERE THE EMITTER IS CONNECTED TO)
                                                                         |         
                                                                         |            |                 |
                                                                         |            +-------->|-------+
                                                                         |               Flyback Diode ( i used a 1n4004 )
                                                                         |
                                                                         / Collector
                                                            Base        /
                    Arduino Digital Pin 8 --------\/\/\/\/--------[NPN transistor]
                                                1k resistor             \          (i used the TIP120 DARLINGTON TRASNSISTOR)
      (i used a 1K resistor 1/2 watts 5% tolerance)                         \ Emitter
                                                                         |
                                                                         |
                                                                         |
                                                                         +---------------- GND
HERES THE PROGRAM I USED
#define LED 8


void setup()
  {
    pinMode(LED, OUTPUT);
   
  }
 
  void loop()
    {
      digitalWrite(LED, HIGH);
      delay(10);
      digitalWrite(LED, LOW);
      delay(10);
     
    }

thank you very much for your help













Logged

Pages: 1 2 [3]   Go Up
Jump to: