Project showcase
First Test: Super StarterKit from Elegoo - Stepper Motor 5V

First Test: Super StarterKit from Elegoo - Stepper Motor 5V © GPL3+

This is a project controlling a stepper motor.

  • 1,798 views
  • 0 comments
  • 5 respects

Components and supplies

Apps and online services

About this project

Project

Today we look at the control of a stepper motor, and influence the rotation speed via inputs of the serial monitor.

Following the schematic of the manufacturer from its instruction lesson number 23, the set-up with the additional components in the set can be quickly solved.

Just connect the prefabricated cable with the enclosed driver board. Here, errors are excluded: the cable harness only fits in one direction into the provided sleeve. Do not follow the color scheme of Schematic. In my opinion it is a shift register. On the head side, GND and + 5V are removed and applied to the device. Importing the necessary libary from CD will import additional sample sketches. The suggested original code is immediately ready for use and moves the arm slightly clockwise and backwards.

As far as good: I did not enter a deployment area promptly, which I could have used a stepping motor. The difference to a normal electric motor, which was also attached to the set and in another project, was not clear to me immediately.

Presumably, the "steps" in which the arm rotates can be very precisely and granularly influenced by means of a potentiometer.

For a celebration of the end-of-the-day building is quite interesting, but whether the stepper engine will last long in a real craft project I dare to doubt: the engine was already warm on his first mission and I was anxious about his electronic life.

In addition, I missed a few extra components to make the arm movement visually more recognizable, such as an adapter to accommodate the propellers from another engine project.

Information about a servo motor is available here.

You will find more under my account.

Code

Original Example Code from ElegooC/C++
// Stepper - Version: Latest 
#include <Stepper.h>

/*
 Stepper Motor Control - one revolution

 This program drives a unipolar or bipolar stepper motor.
 The motor is attached to digital pins 8 - 11 of the Arduino.

 The motor should revolve one revolution in one direction, then
 one revolution in the other direction.


 Created 11 Mar. 2007
 Modified 30 Nov. 2009
 by Tom Igoe

 */

const int stepsPerRevolution = 800;  // change this to fit the number of steps per revolution
// for your motor

// initialize the stepper library on pins 8 through 11:
Stepper myStepper(stepsPerRevolution, 8, 10, 9, 11);

void setup() {
  // set the speed at 60 rpm:
  myStepper.setSpeed(20);
  // initialize the serial port:
  Serial.begin(9600);
}

void loop() {
  // step one revolution  in one direction:
  Serial.println("clockwise");
  myStepper.step(stepsPerRevolution);
  delay(500);

  // step one revolution in the other direction:
  Serial.println("counterclockwise");
  myStepper.step(-stepsPerRevolution);
  delay(500);
}

Schematics

Original Example Schematic from Elegoo
Stepper schematic 7zfeoszbr0

Comments

Similar projects you might like

Stepper - A First Introduction to Nema 17

by Ingo Lohs

  • 5,643 views
  • 6 comments
  • 43 respects

Motor controlled with Arduino

by Benjamin Larralde

  • 18,257 views
  • 20 comments
  • 48 respects

Control The Stepper Motor

Project tutorial by Haoming Weng

  • 7,840 views
  • 1 comment
  • 19 respects

3D Printed Stepper Motor

Project tutorial by Anthony Garofalo

  • 13,959 views
  • 10 comments
  • 58 respects
Add projectSign up / Login