Giter Site home page Giter Site logo

adafruit / adafruit-motor-shield-library Goto Github PK

View Code? Open in Web Editor NEW
338.0 73.0 350.0 23 KB

Adafruit Motor shield V1 firmware with basic Microstepping support. Works with all Arduinos and the Mega

Home Page: http://www.ladyada.net/make/mshield

C++ 100.00%

adafruit-motor-shield-library's Introduction

This library is old and deprecated - and the hardware disconinued years ago. V2 of the shield uses i2c only and works with anything that has I2C support (e.g. all arduinos) without endless incompatibilities and porting requirements! :)
-> https://www.adafruit.com/products/1438

--------------

This is the August 12, 2009 Adafruit Motor shield firmware with basic Microstepping support. Works with all Arduinos and the Mega
Updated in September 2012 for use on PIC32 architecture (chipKIT/MPIDE)

For more information on the shield, please visit https://learn.adafruit.com/adafruit-motor-shield

To install, click DOWNLOAD SOURCE in the top right corner, and see our tutorial at http://www.ladyada.net/library/arduino/libraries.html on Arduino Library installation

adafruit-motor-shield-library's People

Contributors

bitdealer avatar embeddedman avatar ladyada avatar paintyourdragon avatar tdicola avatar zikolach avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

adafruit-motor-shield-library's Issues

THe library is not working with esp8266. Please make it compatiable with ESP8266. Thanks

Thank you for opening an issue on an Adafruit Arduino library repository. To
improve the speed of resolution please review the following guidelines and
common troubleshooting steps below before creating the issue:

  • Do not use GitHub issues for troubleshooting projects and issues. Instead use
    the forums at http://forums.adafruit.com to ask questions and troubleshoot why
    something isn't working as expected. In many cases the problem is a common issue
    that you will more quickly receive help from the forum community. GitHub issues
    are meant for known defects in the code. If you don't know if there is a defect
    in the code then start with troubleshooting on the forum first.

  • If following a tutorial or guide be sure you didn't miss a step. Carefully
    check all of the steps and commands to run have been followed. Consult the
    forum if you're unsure or have questions about steps in a guide/tutorial.

  • For Arduino projects check these very common issues to ensure they don't apply:

    • For uploading sketches or communicating with the board make sure you're using
      a USB data cable and not a USB charge-only cable. It is sometimes
      very hard to tell the difference between a data and charge cable! Try using the
      cable with other devices or swapping to another cable to confirm it is not
      the problem.

    • Be sure you are supplying adequate power to the board. Check the specs of
      your board and plug in an external power supply. In many cases just
      plugging a board into your computer is not enough to power it and other
      peripherals.

    • Double check all soldering joints and connections. Flakey connections
      cause many mysterious problems. See the guide to excellent soldering for examples of good solder joints.

    • Ensure you are using an official Arduino or Adafruit board. We can't
      guarantee a clone board will have the same functionality and work as expected
      with this code and don't support them.

If you're sure this issue is a defect in the code and checked the steps above
please fill in the following fields to provide enough troubleshooting information.
You may delete the guideline and text above to just leave the following details:

  • Arduino board: INSERT ARDUINO BOARD NAME/TYPE HERE

  • Arduino IDE version (found in Arduino -> About Arduino menu): INSERT ARDUINO
    VERSION HERE

  • List the steps to reproduce the problem below (if possible attach a sketch or
    copy the sketch code in too): LIST REPRO STEPS BELOW

Convert examples from .pde to .ino

Hello! Here is the Arduino Create team.
Examples from this libraries are still in .pde format.
On the Arduino Web Editor all the .pde sketches are converted to .ino the first time you save, but since this is a read-only example it is saved as a copy in your Sketchbook. A bit inconvenient.
Here the report from a user.

Since .pde files are quite obsolete now, would it be possible to update the examples format from .pde to .ino and make a new tag of the library?

Thanks a lot!

AFMotor won't Compile on My iMac OR Windows PC

I have down loaded the AFMotor files and added them to my Arduino IDE but they won't run on either machine, both come up with the same error reports, did anyone have this problem and If so how did you overcome it. This is the error that comes up for the motor test sketch.
/Users/tjmaccabe/Documents/Arduino/libraries/AFMotor/AFMotor.cpp:136:5: error: #error "This chip is not supported!"
/Users/tjmaccabe/Documents/Arduino/libraries/AFMotor/AFMotor.cpp:173:5: error: #error "This chip is not supported!"
/Users/tjmaccabe/Documents/Arduino/libraries/AFMotor/AFMotor.cpp:205:5: error: #error "This chip is not supported!"
/Users/tjmaccabe/Documents/Arduino/libraries/AFMotor/AFMotor.cpp:226:5: error: #error "This chip is not supported!"
/Users/tjmaccabe/Documents/Arduino/libraries/AFMotor/AFMotor.cpp:259:5: error: #error "This chip is not supported!"
/Users/tjmaccabe/Documents/Arduino/libraries/AFMotor/AFMotor.cpp:279:5: error: #error "This chip is not supported!"
/Users/tjmaccabe/Documents/Arduino/libraries/AFMotor/AFMotor.cpp:314:5: error: #error "This chip is not supported!"
/Users/tjmaccabe/Documents/Arduino/libraries/AFMotor/AFMotor.cpp:334:5: error: #error "This chip is not supported!"
/Users/tjmaccabe/Documents/Arduino/libraries/AFMotor/AFMotor.cpp: In constructor 'AF_Stepper::AF_Stepper(uint16_t, uint8_t)':
/Users/tjmaccabe/Documents/Arduino/libraries/AFMotor/AFMotor.cpp:438: error: 'CS20' was not declared in this scope
This is way out of my league so if someone can assist I would be very much appreciative of the support.

onestep() optimization

onestep() is the innermost call most people will make when running their steppers. As such it should be as efficient as possible.

One way to optimize it is to calculate values in advance and store them for when needed. At the start of the onestep() method the values a, b, c, and d are recalculated for each stepper, though they remain constant for each stepper. I made private class variables calculated in the constructor, turning 4 assignments, 4 shifts, and a branch into 4 lookups.

As a bonus the release() method can use a, b, c, and d in the same way.

If this optimization makes it into the next version, please give a little hello on your blog to http://marginallyclever.com.

artificial index?

Warning;There is an artificial index in library of 'Adafruit Motor Shield library'
i always receive this warning when i upload my codes !!! help me please

Error: no member named 'setMinPulseWidth'

I've used this sketch in previous versions and it's worked fine. When I installed the new IDE though, it won't work.

polargraph_server_84.cpp: In function 'void setup()':
polargraph_server_84.pde:-1: error: 'class AccelStepper' has no member named 'setMinPulseWidth'
polargraph_server_84.pde:-1: error: 'class AccelStepper' has no member named 'setMinPulseWidth'

I'm not sure what I'm doing wrong, I haven't changed the sketch.

Thanks!

False .github in libraries (help)

When i'm start the program, i have an error:
ATTENTION : Faux .github dossier dans la bibliothèque 'Adafruit Motor Shield library'
WARMING: False .github in libraries folder 'Adafruit Motor Shield library'

Double Precision Floating point

Dear all,
I am using below version of MPIDE, I am trying to NREL code on chipkit UNO32 Board. Nrel CODE on above board. SInce the algorithm involve Double pres ion floating point.I have attached output expected and the result coming out from MPIDE ide.i run same code on mplab with c32 compiler Where i am getting as expected when run on visual studio. But result are totally different when run on controller and also process is getting slowing down.
Question are"

1)Which version of IDE similar to arduino Work better here with double precision floating point

nrel-ardunio_chipkit
nrel-visualstudio

mpide v

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.