element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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
Forget Me Not Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Forget Me Not Design Challenge
  • More
  • Cancel
Forget Me Not Design Challenge
Blog Pas Home / Adafruit Motor Shield
  • Blog
  • Forum
  • Documents
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: verrverr
  • Date Created: 26 Sep 2014 2:55 AM Date Created
  • Views 882 views
  • Likes 0 likes
  • Comments 1 comment
  • forget_me_not
  • pas_home
Related
Recommended

Pas Home / Adafruit Motor Shield

verrverr
verrverr
26 Sep 2014

Pas Home - Index

 

This week i continue to play with adafruit motor shield. I configure the shield to run in 3.3v mode compatible with Raspberry pi and convert the driving library in nodejs because i plan to use nodejs for easy comminucate beetween pi and other pi with open hab.

 

image

 

Configuring

 

The motor shield comme with configuration for 5v mode. The shield is made to be easily switch to 3.3v.

This is the instruction to switch to 3.3v

 

imageimage

imageimage

 

Testing

 

Adafruit give great using tutorial for use with Arduino here https://learn.adafruit.com/adafruit-motor-shield-v2-for-arduino.

 

For raspberry pi we only need 4 wire to drive the shield 3.3v, GND, and i2c SDA, SCL. I put on me github the code to run the shield with python https://github.com/pascalmartin/Adafruit-Raspberry-Pi-Python-Code/tree/master/Adafruit_MotorShield and for nodejs https://github.com/pascalmartin/ForgetMeNot/tree/master/bundles/motorshield/MotorShieldControler

 

I wiil also put step by step install quide on the github during the next day.

 

 

Video

 

In the video you can see the result. From left to right, #1 is drive by arduino, #2 is drive with raspberry pi in python and #3 is also drive by rasberry pi in nodejs

All 3 use the same program but arduino run faster, raspberry pi is slower but but I can adjust the speed in the software.

 

In the video is a bit difficult to see but all stepper motor run in 4 different mode (Single coil steps, Double coil steps, Interleave coil steps, Microstep steps) . Nodejs version seems to have a bug in the driver with Microstep mode, but i plan to use double coil steps for maximun torque. Later maybe I'll look to fix the bug

 

 

 

image

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

  • Sign in to reply
  • manuel.ca
    manuel.ca over 8 years ago

    Hi,and congrats for your very usefull howto (i saw your video on youtube).

    I have a question, i looking for connect a "raspberry PI3" to a Adafruit motorshield V2 directly without an arduino.

    I already make the change of voltage as you describe in this ticket, but now i have no idea to connect the rasp to the motorshied (what GPIO i should use) ?

    Can you help me ?, and excuse my english but my last english lesson was very far away (i am french)

    Thank !

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