Visuino Control Powerful Nema17 Planetary Gearbox 48 Kg·cm of Torque

About: Arduino fan!

In this tutorial we will use Arduino UNO, DRV8825 to control Nema17 STEPPER motor with planetary Gearbox, and Visuino visual software. Watch a demonstration video.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: What You Will Need

  1. Breadboard
  2. Jumper wires
  3. Bipolar stepper motor (in our case it's nema 17 with gearbox)
  4. DRV8825 stepper motor driver
  5. Power Supply
  6. Visuino program: Download Visuino

Step 2: The Circuit

See Schematic on the picture:

  • Connect the Power Supply to Driver DRV8825
  • Connect the stepper motor to Driver DRV8825
  • Connect the Driver DRV8825 to Arduino

Step 3: VISUINO Special Edition

Visuino is a visual programming for Arduino

All you need to do is drag and drop components and Connect them together. Visuino will create the working code for you so you don’t have to waste time on creating the code. It will do all the hard work for you fast and easy! Visuino is perfect for all kind of projects, you can easily build complex projects in no time!

Download the Latest Powerful Visuino Software

Step 4: Start Visuino, and Select the Arduino UNO Board Type

To start programming the Arduino, you will need to have the Arduino IDE installed from here: http://www.arduino.cc/.

Please be aware that there are some critical bugs in Arduino IDE 1.6.6. Make sure that you install 1.6.7 or higher, otherwise this Instructable will not work! If you have not done follow the steps in this Instructable to setup the Arduino IDE to program Arduino UNO! The Visuino: https://www.visuino.eu also needs to be installed. Start Visuino as shown in the first picture Click on the "Tools" button on the Arduino component (Picture 1) in Visuino When the dialog appears, select "Arduino UNO" as shown on Picture 2

Step 5: In Visuino Add Components

  1. Add "PulseGenerator" component
  2. Add 3X "Compare Integer Range" component
  3. Add "DigitalValue" component
  4. Add "Counter" component
  5. Add "AND" component

Step 6: In Visuino: ​Set Components

Set text value of "PulseGenerator1" component "Frequency" to 100 <<This will determine the speed of the the stepper motor

Set "CompareRange1" component Range>Max:1000, Min:0 <<How many steps to one direction

Set "CompareRange2" component Range>Max:2000, Min:1000 <<How many steps to the reverse direction

Set "CompareRange3" component Range>Max:3000, Min:2000 <<How many steps to wait at the end, before repating the process again

Set "DigitalValue1" component "Value" to "true"

Set "And1" component "Input Pins" to "3"

Step 7: In Visuino: ​Connecting Components

  1. Connect PulseGenerator1 pin[Out] to And1 pin [1]
  2. Connect PulseGenerator1 pin[Out] to Counter1 pin [In]
  3. Connect Counter1 pin[out] to CompareRange1 pin[In]
  4. Connect Counter1 pin[out] to CompareRange2 pin[In]
  5. Connect Counter1 pin[out] to CompareRange3 pin[In]
  6. Connect CompareRange1 pin[Out] to And1 pin[0]
  7. Connect CompareRange2 pin[Out] to And1 pin[2]
  8. Connect CompareRange2 pin[Out] to DigitalValue1 pin[In]
  9. Connect CompareRange3 pin[Out] to Counter pin[Reset]
  10. Connect And1 pin [Out] to Arduino digital pin[7]
  11. Connect DigitalValue1 pin[Out] to Arduino digital pin[6]

Step 8: Generate, Compile, and Upload the Arduino Code

In Visuino, Press F9 or click on the button shown on Picture 1 to generate the Arduino code, and open the Arduino IDE

In the Arduino IDE, click on the Upload button, to compile and upload the code (Picture 2)

Step 9: Play

If you power the Arduino UNO module, turn ON the Power Supply, the stepper motor will start to rotate right and left.

Congratulations! You have completed your project with Visuino. Also attached is the Visuino project, that I created for this Instructable. You can download and open it in Visuino: https://www.visuino.eu

Be the First to Share

    Recommendations

    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    Discussions