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
  • 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
Experts, Learning and Guidance
  • Technologies
  • More
Experts, Learning and Guidance
Ask an Expert Forum obstacle avoidance robot
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Experts, Learning and Guidance to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 2 replies
  • Subscribers 280 subscribers
  • Views 297 views
  • Users 0 members are here
Related
See a helpful answer?

Be sure to click 'more' and select 'suggest as answer'!

If you're the thread creator, be sure to click 'more' then 'Verify as Answer'!

obstacle avoidance robot

Former Member
Former Member over 11 years ago

I've just got my Arduino uno for my project Obstacle detection and avoidance robot.My motors are 6 wires,4 phases 12V unipolar motors........how do i connect them to ULN2003A while am using arduino adapter of 9V??

  • Sign in to reply
  • Cancel

Top Replies

  • robotop
    robotop over 11 years ago +1
    Hello, your motors seems to be unipolar stepper, so you must use four output pins of your controller to supply the right sequence. The driver (ULN) has to be connected to these 4 output lines and to motor…
  • robotop
    0 robotop over 11 years ago

    Hello, your motors seems to be unipolar stepper, so you must use four output pins of your controller to supply the right sequence. The driver (ULN) has to be connected to these 4 output lines and to motor coil wires. Six wires are : one common, two windings (multiplied for two). Please note that a stepper motor needs for a proper step sequence to move; it isn't on-off way. Generally, considering 4 bits, you have to supply a sequence like this: 0101 - 0110 -1010 - 1001 and restart from beginning. The stepper motor, driven directly without any pwm, isn't in the optimal condition, but can work (may go hot). Note that if you have 9V power supply and 12V motor, you can simply buy (or build) a step-up converter that can rise the voltage from 9V to 12V. The 12V must be used as power supply for the ULN interface (the common diodes point) and the motor. I don't know if you have some library, in your software, to drive the stepper motors in the right sequence. If you don't, simply use a timer with interval set to the step frequency you need for. If your motors have to run slowly (say about 100 steps per second) you can drive them directly, without any ramp. If you want to drive the motors at higher speed, you must supply the sequence as a ramp, starting from very low step frequency, ending with the target frequency. Also, note that the motor can stall if you start at high frequency or don't connect the windings in the right order. For the last case, in a prototype, you can just try to cross the wires, but after the PCB has been produced, you must modify the bits pattern in the appropriate way. The sequence indicated in previous example, obviously, makes the motor run in one direction. If you want to run it in the opposite direction, simply execute the sequence in inverse order (1001 -1010 - 0110 - 0101). To turn the motor OFF, set all outputs to 0000. Hope this helps... bye

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • saurocksall
    0 saurocksall over 11 years ago

    Hi Aggery,


    Why don't you use Simple DC motors ?? It would be allot more easier and cheaper to do..

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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