Unipolar Stepper Motor Controlling Library

This is Unipolar Stepper library in Arduino that gives different functionalities and rotates all unipolar type stepper motors.

Nov 30, 2018

21165 views

8 respects

Components and supplies

1

Arduino UNO

1

BOOSTXL-ULN2003 ULN2003A Dual Stepper Motor BoosterPack

Apps and platforms

1

Arduino IDE

Project description

Code

Uni polar stepper motor library

c_cpp

this library controls RPM, direction, revolutions, angle of all types of uni polar stepper motor

Uni polar stepper motor library

c_cpp

this library controls RPM, direction, revolutions, angle of all types of uni polar stepper motor

Unipolar Stepper Motor library for Arduino

c_cpp

This Library control motion of unipolar type stepper motor having 4 phases. it can control its RPM (speed), direction, angle of rotation etc. also it can rotate it in different modes like single-coil, double-coil, half step etc

Downloadable files

Unipolar Stepper motor controller using arduino

this circuit control unipolar type stepper motor using arduino and ULN2003A chip

Unipolar Stepper motor controller using arduino

Unipolar Stepper motor controller using arduino

this circuit control unipolar type stepper motor using arduino and ULN2003A chip

Unipolar Stepper motor controller using arduino

Comments

Only logged in users can leave comments

Anonymous user

6 years ago

I was really excited when I came across this work. Its apparent that a lot of effort went into it. However, being still somewhat new to experimenting with Arduinos and stepper motors, I may be doing something basic that is preventing the sketch from loading. I just loaded the .zip files for this library using "Add .ZIP Libraries..." and it shows up in my list of libraries. Below is a paste of the very last of the error message I get. (Its only the part where it starts alluding to some error has taken place.) The only thing my untrained eye catches is that 'Uni_polr_Stepper' is referenced differently at times as 'Uni_polar_Stepper'. I have used "stepper.h" library with some success but its not all that great for my setup. I am using Arduino IDE 1.6.7. Anybody have any guidance? ***Portion of Error Message Follows*** C:\\Users\\All\\Documents\\Arduino\\libraries\\Uni_polar_Stepper\\Uni_polar_Stepper.cpp:19:72: error: ISO C++ forbids declaration of 'Uni_polr_Stepper' with no type [-fpermissive] Uni_polar_Stepper::Uni_polr_Stepper(int pin1,int pin2,int pin3,int pin4) // this is a constructor C:\\Users\\All\\Documents\\Arduino\\libraries\\Uni_polar_Stepper\\Uni_polar_Stepper.cpp:19:72: error: no 'int Uni_polar_Stepper::Uni_polr_Stepper(int, int, int, int)' member function declared in class 'Uni_polar_Stepper' Using library Uni_polar_Stepper in folder: C:\\Users\\All\\Documents\\Arduino\\libraries\\Uni_polar_Stepper (legacy) exit status 1 Error compiling.

Anonymous user

2 years ago

Ambhatt,  thanks for your response.  Forgive me for replying here but I continue to have problems trying to move my geared 28BYJ48 (with a ULN2003A driver) via my NodeMCU ESP8266 12E V3 dev board.  I am new to using such MCUs.  Would you be so kind as to point to a sample sketch that uses just this equipment?  Also I am avoiding WiFi communications altogether as I learn this.  At this point I'd never now if I'd have a WiFi issue or a simple problem in my code involving pin assignment! lol  I am not using an Arduino board but I am using the Arduino IDE.  My (learning) immediate goal is to move this stepper 10 turns in one direction then back 2 turns every 10 minutes.  I thought this would be relatively simple  but I don't know what 'subprogram' I should be using since my stepper (or one that appears to match mine) is not included in the examples.  Do I cut and paste only a section of the code you published plus insert "#include uni_polar_Stepper" in the beginning? Regards

ambhatt

2 years ago

thanks for pointing out an error. the new ZIP file is uploaded please download it

Anonymous user

2 years ago

The ZIP file still contains the error. Please make sure libraries are thoroughly tested before you publish them. @Joe: you can fix it easily by editing Uni_polar_Stepper.cpp in Documents\\Arduino\\libraries\\Uni_polar_Stepper. Just replace polr with polar.