Giter Club home page Giter Club logo

redbasecap / stepper_28byj-48_with_uln2003_driver_libary Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 377 KB

This libary let's you easy drive your stepper in WaveDrive, Fullstep and Halfstep. Enjoy! This is a libary for the 28BYJ-48 stepper motor with the ULN2003 driver module. With this you can run your stepper motor in the Wavedrive(fast__512steps/360degree), the Fullstep(fast__512steps/360degree, double the torque compared to Wavedrive) and Halfstep(slow__1024steps/360degree, double the torque compared to Wavedrive) method. It makes it much easier for beginners to use this stepper motor. Credtis to Bret Stateham. His video about stepper motors is great! https://www.youtube.com/watch?v=B86nqDRskVU

License: Apache License 2.0

C++ 100.00%
stepper-motor libary uln2003 28byj-48 chinese stepper bret rbc fullstep halfstep

stepper_28byj-48_with_uln2003_driver_libary's Introduction

Stepper_28BYJ-48_with_ULN2003_Driver_Libary

Welcome to my little StepperLibary

How to use it:

  1. Get the libary
  • Clone it in to your libaries folder which is in /Documents/Arduino/Sketches/libaries or
  • Just download, exctract it and put it into it manually
  1. Include the libary
  • #include <stepperMotor_RBC.h> or
  • Choose Sketch in the toolbar -> Include libary -> Stepper_28BYJ-48_with_ULN2003_Driver_Libary //this is the way I recommend
  1. First you have to give the pins that you are using to the class in the libary.

    ////////CODEEXAMPLE///////

    #include <stepperMotor_RBC.h>

    StepperMotor StepperMotor(2,3,4,5,20); //Pin for IN1, IN2, IN3, IN4, Timedelay //the TIMEDELAY have to be >5 ms

    void setup() { }

    void loop() { }

    //////// END CODEEXAMPLE///////

  2. Use on off the 3 different modes Take a look at the DriveMethod.png (Source: https://www.youtube.com/watch?v=B86nqDRskVU by Bret Stateham) StepperMotor... -1) .waveDrive(100);

    //Only a single coil is controlled per time. //Low torque and precision but very easy to understand. 512 Steps/360 Degrees

-2) .fullStep(100);

//Two Coils active at a time
//Maximum Torque, Medium precision, 512 Steps/360 Degrees

-3) .halfStep(100);

//One or Two coils active at a time
//Medium Torque, Smallest step angle, 1024 Steps per 360 Degrees

-4) .clearInputs();

//Put all Digital Outputs to 0

stepper_28byj-48_with_uln2003_driver_libary's People

Contributors

redbasecap avatar

Watchers

 avatar

stepper_28byj-48_with_uln2003_driver_libary's Issues

Repository can't directly be used as library

If you rename the repository so it doesn't begin with a number and move the library files to the top directory, it will be possible to clone the repository directly into the Arduino libraries folder.

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.