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 & Tria 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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Driving bipolar stepper motor using piface
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 11 replies
  • Subscribers 676 subscribers
  • Views 1779 views
  • Users 0 members are here
  • bipolar
  • raspberry_pi
  • raspberrypi
  • stepper
  • motor
  • piface
Related

Driving bipolar stepper motor using piface

Former Member
Former Member over 11 years ago

hi All,

I bought Piface recently and want to drive 12V bipolar stepper motor(four wire). i did found some tutorial on internet around driving unipolar motor, but there is nothing on bipolar motor.

 

I am from software background, and have very little electronic knowledge, so if someone can guide me on circuit arrangement that will be helpful.

 

thanks in advance for your help,

  • Sign in to reply
  • Cancel
  • D_Hersey
    D_Hersey over 11 years ago

    Both unipolar and bipolar motors are intended to set up a magnetic flux in order to turn the rotor.  The unipolar has four coils, two in opposition magnetically speaking.  The bipolar has two coils which must be driven both ways.  If you have a 6 or more (8) wire unipolar motor, it can be run in bipolar mode at twice the potential through connecting it appropriately.

     

    You need either a split supply with push-pull drivers, or a single supply and H drivers.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • rew
    rew over 11 years ago in reply to D_Hersey

    Yes, but he has a 4-wire motor, so hooking it up as an unipolar one is not possible.

     

    My suggestion: Buy an A4988 stepper driver. (I have a few, more are in the mail. :-) ). If you configure most of the inputs statically, you need only two GPIOsignals to drive the module: "direction" and "step"....

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

    Thanks Don,

    At a moment I have only bipolar four wire motor, I had drived this motor previously with Arduino using Arduino motor shield, so interfacing was straight forward, but how do interface/connect my four wire motor with Piface ? can it be done without using any additional components/drivers ? if not then which driver is recommended on top of PiFace ?

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

    I like A4988 drivers, I will order couple of them to experiment with.
    but for now can drive motor with simple H-bridge or  ULN ? and how circuit will look like ?

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

    I checked the specifications for the "piface". PiFace – PiFace Digital and it lists: 8 Open-Collector Outputs, which is good for driving two unipolar stepper motors, but doesn't help you a bit in driving a bipolar one like you have.

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

    hi Roger, I got my A4988 driver, I am trying to setup circuit using PiFace. In A4988 connection diagram logic power supply is going to VDD pin, now I am not sure which pin on PiFace is VDD ?

    also I am assuming "logical power" is actually power coming out of PiFace (output pin 5V and GND on input pins) ?

     

    it will be helpful if you can show me complete circuit arrangement.

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

    Hi Sharique,

     

    As I understand (I don't have a PiFaceDigital or a A4988) the PFD has a 5V supply rail derived from the raspberry pi. There are screw terminals on the PFD for that, marked 5V and 0V. You can confirm that 5V is present with a multimeter. It could in theory be used to power the logic of the A4988.

    You need a separate supply for the motors of course.

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

    thanks Shabaz, on PiFace there is 5V pin within output pins and I guess your referring to GND pin by 0V, there is a GND pin within input pins.

    and to confirm is it ok to use 5V pin as VDD ?

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

    Hi, that's correct.

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

    thanks it works.

    • 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