Skip to content

Commit

Permalink
Version 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinlyonsrepo committed May 9, 2021
1 parent e3c17f8 commit 071ee0d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
4 changes: 4 additions & 0 deletions Documentation/Nema11DRV8825.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ that is common on several bipolar motors
but you should check your motor connections to be sure they are correct.

Connect 5 GPIO pins to MS0, MS1, MS2, STEP and DIR.
If you do not wish to use GPIO for MS_X pins
and hard wire MS-X to logic levels.
You can also pass in (-1, -1, -1) to software.
Do this if your project only uses one type of resolution and you wish to save GPIO pins.
Connect pi gnd to DRV8825 at GND.
Connect Reset and sleep together and to pi 5V.
Connect up capacitor and Motor leads.
Expand Down
Binary file modified images/LV8729pic.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 10 additions & 6 deletions test/DRV8825_Nema_Test.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ def main():

# ====== Tests for motor ====
#GPIO pins
GPIO_pins = (14, 15, 18) # Microstep Resolution M0-M1-M2 -> GPIO Pin
# Microstep Resolution M0-M1-M2 -> GPIO Pin
# Note: you can Pass in (-1,-1,-1) if you wish to hardwire Ms-X to logic and
# Save GPIO pins.
GPIO_pins = (14, 15, 18)

direction= 20 # Direction -> GPIO Pin
step = 21 # Step -> GPIO Pin

Expand Down Expand Up @@ -59,19 +63,19 @@ def main():
print("TEST SECTION B")

# motor_go(clockwise, steptype, steps, stepdelay, verbose, initdelay)
input("TEST: Press <Enter> to continue half Test1")
input("TEST: Press <Enter> to continue half Test6")
mymotortest.motor_go(False, "Half" , 400, .005, True, .05)
time.sleep(1)
input("TEST: Press <Enter> to continue 1/ 4 Test1")
input("TEST: Press <Enter> to continue 1/ 4 Test7")
mymotortest.motor_go(False, "1/4" , 800, .005, True, .05)
time.sleep(1)
input("TEST: Press <Enter> to continue 1/8 Test1")
input("TEST: Press <Enter> to continue 1/8 Test8")
mymotortest.motor_go(False, "1/8" , 1600, .005, True, .05)
time.sleep(1)
input("TEST: Press <Enter> to continue 1/16 Test1")
input("TEST: Press <Enter> to continue 1/16 Test9")
mymotortest.motor_go(False, "1/16" , 3200, .005, True, .05)
time.sleep(1)
input("TEST: Press <Enter> to continue 1/32 Test1")
input("TEST: Press <Enter> to continue 1/32 Test10")
mymotortest.motor_go(False, "1/32" , 6400, .005, True, .05)
time.sleep(1)

Expand Down

0 comments on commit 071ee0d

Please sign in to comment.