Giter VIP home page Giter VIP logo

hcmotor's Introduction

HCMotor

An Arduino library for controlling DC and stepper motors

alt tag

This Arduino library (current only supports ATMega328p based Arduinos) will allow you to control one or more DC or stepper motors from you Arduino. The library makes use of the Arduinos hardware interrupt timer 2 to drive the motors in the background leaving your sketch totally free for you main program. It also allows you to mix motor types and connect them to any available digital pins (you are not limited to just PWM pins). You can simply add motors by using the libraries 'Attach' function and remove them using the 'Detach' command. You can also mix supported motor types. Current supported motor types are as follows:

DCMOTOR - A standard DC type motor driven via a transistor or driver module.

DCMOTOR_H_BRIDGE - A standard DC motor connected via a H-Bridge driver module allowing for forward and reverse directions.

STEPPER - A stepper motor connected via a standard stepper motor driver (Step/CLK & Direction)

####For suitable motor drivers see the following:

For driving DC motor in one direction http://hobbycomponents.com/transistors/507-12n10l-fet-transistor-rfp12n10

For driving DC motor in both forward and reverse http://hobbycomponents.com/modules/264-l9110s-dc-stepper-motor-driver-h-bridge http://hobbycomponents.com/modules/54-l298n-stepper-motor-driver-controller-board

For driving a stepper motor http://hobbycomponents.com/other/547-stepper-motor-driver-a4988 http://hobbycomponents.com/modules/249-tb65603a-single-axis-stepper-motor-driver-board

To use this library you will need to download and unzip this library to the Arduino development environments library area.

On Windows: My Documents\Arduino\libraries\

On Mac: Documents/Arduino/libraries/ or similarly for Linux.

More information on how to use this library can be found in the software section of our support forum: http://forum.hobbycomponents.com/viewtopic.php?f=58&t=1870&p=4468#p4468

hcmotor's People

Contributors

hobbycomponents avatar

Watchers

 avatar

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.