element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Arduino + Driver Board & Stepper motor
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 13 replies
  • Subscribers 398 subscribers
  • Views 940 views
  • Users 0 members are here
Related

Arduino + Driver Board & Stepper motor

Former Member
Former Member over 12 years ago

Hi everyone,

 

I wonder if anyone can help me, I'm trying to build a 'Barn Door tracker mount' (see - http://500px.com/eliperelman/stories/60797 )

 

I'm totally confussed, as I was told that you need a Driver Board to be wired into the Arduino... but the guy in that link above seems to have wired the motor directly into the Arduino, also, Im not sure how he's powering it? (Would it be a 9v battery?)

 

I have an Arduino and a driver board + stepper motor... all the gear and no idea! lol

 

Any help would really be appreciated.

 

Thank you.

  • Sign in to reply
  • Cancel
  • Nate1616
    Nate1616 over 12 years ago

    Hey Stuart

    The images is showing a driver baord.  He is using the adafruit motor shield http://www.adafruit.com/products/81.  He has the 9v line going to the finderscope.  As for powering your motor it all depends on its rated voltage.  What stepper board do you have?

     

    Nate

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to Nate1616

    Thanks for the reply Nate, so that little shield is clipped on directly to Arduino, then he's wired stright into that?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to Former Member

    Here's the stepper motor and board i have - http://www.ebay.co.uk/itm/130860581877?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Nate1616
    Nate1616 over 12 years ago in reply to Former Member

    Stuart

    Your specific board will not be directly clipped to the Arduino like the shield i showed above.  If you see shield in the name it will clip to the Arduino otherwise it’s a standalone board like yours. Follow this link to show how to hook up the board.  http://www.utopiamechanicus.com/article/arduino-stepper-motor-setup-troubleshooting/.   Here is one showing you a little sample code http://www.botshop.co.za/index.php?route=product/product&product_id=156. Hope this gets you up and running.

     

    Nate

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to Nate1616

    Ah that's great thanks, he's mentioned which wires need to go where etc.

     

    Do you know if I'd need to power the arduino and driver/motor seperately?

     

    Was thinking this for the Arduino -

    http://i.ebayimg.com/t/9v-Battery-to-2-1mm-Jack-Adapter-Power-Plug-Power-Adapter-for-Arduino-Boards-/00/s/NTAwWDUwMA==/z/vgoAAOxyzHxROxUi/$T2eC16F,!yUE9s6NEHHDBRO)UhfBqg~~60_35.JPG

     

    http://farm3.static.flickr.com/2107/2234444260_8d5d32326f.jpg

     

    Im not exactly sure what I'd need to power the motor/driver board with.

     

    As all this is meant to be portable, I really need it all to be battery powered.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to Former Member

    Just checking out this - http://dylanhacks.wordpress.com/category/weekly-updates/

     

    Looks like he's connected a 9v to the motor board as well.

     

    So I guess that would be the way to go? (9v on each board?)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to Former Member

    Just seen this - http://www.ebay.co.uk/itm/9v-BATTERY-SNAP-JST-MALE-PLUG-CONNECTOR-LEAD-125MM-PP3-RC-LED-/200775529343?pt=UK_ToysGames_RadioControlled_JN&hash=item2ebf27737

     

    I think that would be the connector I'd need to power the motor board?

     

    http://i.ebayimg.com/t/9v-BATTERY-SNAP-JST-MALE-PLUG-CONNECTOR-LEAD-125MM-PP3-RC-LED-/00/s/MTIwMFgxNjAw/$(KGrHqFHJDUE+OcFrOgkBP2Er+VU2w~~60_35.JPG

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Nate1616
    Nate1616 over 12 years ago in reply to Former Member

    You will need a seperate power supply for the driver board.  Is the arduino going to be hooked up to a computer if so you can power it from there.  Or you can use a 9v battery like you stated.

     

    Nate

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to Nate1616

    Excellent, will be running it all on its own (no PC) so batteries are perfect. Will order the bits, hopefully I can this up and running.

    Cheers for your help.

    Will update once the bits are here (and hopefully assembled)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago

    Just a little update.

    The 9v battery connectors arrived last night and I hooked it all up and loaded on an sketch from the example folder and it runs!

     

    Really pleased to see it working off the batteries.

    I'm not sure if the little motor will be upto the job (of turning a drive bolt) but I do have a chunky motor at hand if needed.

     

    The motor isn't turning smoothly with the example code I used (I think it's doing a 1/4 turn then stops then a 1/4 turn ect.)

     

    Here is the Code -

     

     

    /*

    Stepper Motor Control - one revolution

     

    This program drives a unipolar or bipolar stepper motor.

    The motor is attached to digital pins 8 - 11 of the Arduino.

     

    The motor should revolve one revolution in one direction, then

    one revolution in the other direction. 

     

     

    Created 11 Mar. 2007

    Modified 30 Nov. 2009

    by Tom Igoe

     

    */

     

    #include <Stepper.h>

     

    const int stepsPerRevolution = 200;  // change this to fit the number of steps per revolution

                                         // for your motor

     

    // initialize the stepper library on pins 8 through 11:

    Stepper myStepper(stepsPerRevolution, 8,9,10,11);           

     

    void setup() {

      // set the speed at 60 rpm:

      myStepper.setSpeed(60);

      // initialize the serial port:

      Serial.begin(9600);

    }

     

    void loop() {

      // step one revolution  in one direction:

       Serial.println("clockwise");

      myStepper.step(stepsPerRevolution);

      delay(500);

     

       // step one revolution in the other direction:

      Serial.println("counterclockwise");

      myStepper.step(-stepsPerRevolution);

      delay(500);

    }

     

     

     

     

    I need to work out how to get it to turn at 1rpm.

     

    Here's a snap shot of it all connected up -

     

     

    http://i1012.photobucket.com/albums/af244/967stuart/20130924_155048_zps1c80ec14.jpg

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube