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 Not another Arduino or Pi question!! (Relax - I'm not that annoying, honest)
  • 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
  • State Verified Answer
  • Replies 7 replies
  • Answers 3 answers
  • Subscribers 674 subscribers
  • Views 743 views
  • Users 0 members are here
  • raspberry_pi
Related

Not another Arduino or Pi question!! (Relax - I'm not that annoying, honest)

the-dubster
the-dubster over 9 years ago

Before you all shout at me, I've done some digging, read similar questions on here and have actually made up my mind. This is really just to see if I made the best choice.

 

I've been digging around looking for a way to recreate a vehicle dashboard using Switec X27.168 steppers (nice low 5V and 20mA/coil with 315degree swing).

 

I initially looked down the route of the Laika Explorer but soon realised it was only capable of driving 1 stepper per board! Next I was looking at stepper driver boards for the Pi - I already have an old Model B lying around.

 

The more I looked and the more I read, the more I became convinced that the Microcontroller basis of the Arduino (Uno in particular) was the best option.

I also discovered that the steppers I'm using can be driven directly by the Uno - no HAT required (only 20mA/coil - source current is 40mA max according to specs); essentially if I protect the outputs with diodes then I'm golden (plus the Uno can drive 3 of them)!

 

The final nail in the coffin of trying to do it with a Pi was I found a nice resource of driver libraries for the motor I'm using - all for Arduino - and that does kinda help A LOT as I can learn what the code is doing and manipulate it instead of trying to figure out how to code it from scratch.

 

 

So, in summary, with the 6 available analogue inputs (I can use F/V convertors to turn the Revs / Speed into corresponding voltage levels - or maybe there is a way to use the frequency directly into Uno - I'll have to dig some more there), pre-made libraries and a proven application for exactly this, I'm hoping the decision I came to is the best one?

 

Any thoughts all? image

 

Anyone?

 

Regards

  • Sign in to reply
  • Cancel
Parents
  • shabaz
    0 shabaz over 9 years ago

    Hi Andrew,

     

    Using the Arduino for this sounds like it should work!

    You could use I2C for the comms between Pi and Arduino (with pull-ups to 3.3V, not 5V), some information on this is here:

    https://blog.adafruit.com/2014/02/21/connecting-an-arduino-to-a-raspberry-pi-using-i2c-raspberry_pi-piday-raspberrypi/

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • the-dubster
    0 the-dubster over 9 years ago in reply to shabaz

    Thanks shabaz I knew moving this 'question' around would finally get an answer.

     

    The extra info regarding linking it to the Pi could come in handy in the future, in the meantime I'm just waiting for my steppers to arrive from China - then it's time to experiment some!

     

    Regards and have a great weekend! image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • the-dubster
    0 the-dubster over 9 years ago in reply to shabaz

    Thanks shabaz I knew moving this 'question' around would finally get an answer.

     

    The extra info regarding linking it to the Pi could come in handy in the future, in the meantime I'm just waiting for my steppers to arrive from China - then it's time to experiment some!

     

    Regards and have a great weekend! image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
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