I need some assistance. Here’s what I have:
Nema17PG27 (part# 17HS13-0404S-PG27)
Arduino Nano
EasyStepper
12volt power supply for motor.
Using the Focuserv265_DRV8825.ino
Based on my mathematical calculations (sorry my math is not the greatest) and some research, it appears I should be getting 5370 steps per revolution.
1.8 deg step angle = 200 steps X 26.85 for the gear box.
I have confirmed my settings are for “Full Steps” however when I run the motor using MyFocuserPro2 software it appears it’s taking approximately 43,000 steps to make one revolution of the motor shaft!
Any ideas what I might be doing wrong?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Gordon
Did you make any changes to the firmware ino file?
I take it that you are not using any gearing etc other than the PG27 which is direct connected to focuser shaft?
What version of myfocuserpro2 software is being used?
Please confirm that stepping is working using windows app.
Set controller to full steps then go 1000 steps.
If you now set it to half steps, and repeat 1000 steps, then focuser should rotate only half the distance. Is that correct?
to get 43000 steps means that it is set to 1/8th stepping. I would check the MS0/MS1/M2 wiring and make sure it is wired correctly. With controller on and set to full steps
M2 is D5 and should be 0v
M1 is D6 and should be 0v
M0 is D7 and should be 0v
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Gordon
Did you make any changes to the firmware ino file?
// Only change was to
define myDir 2
define myStep 3
As this is the way I have the board wired.
I take it that you are not using any gearing etc other than the PG27 which is direct connected to focuser shaft? // direct. I was measuring based on just the motor shaft turning.
What version of myfocuserpro2 software is being used? //2014-2016 2.3.6.5
Please confirm that stepping is working using windows app.
Set controller to full steps then go 1000 steps.
If you now set it to half steps, and repeat 1000 steps, then focuser should rotate only half the distance. Is that correct? //It appears than changing from full to half does NOT make any difference in the amount of travel.
to get 43000 steps means that it is set to 1/8th stepping. I would check the MS0/MS1/M2 wiring and make sure it is wired correctly. With controller on and set to full steps
M2 is D5 and should be 0v
M1 is D6 and should be 0v
M0 is D7 and should be 0v // I do not have any connections to any of those pins. Only connections between the Nano and Easydriver are as follows:
D3 – STEP
D2 – DIR
GND- GND
Easy Driver has correct connections to stepper as the motor does turn. And as mentioned I’m using a 12 volt power supply for the motor.
I have used this same unit (I changed from a NEMA17 to the NEMA17PG27 to increase the amount torque as I have a heavy imaging setup ) everything worked correctly with the NEMA17.
Last edit: Gordon 2018-03-21
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If the motor moved the same distance when step mode was changed this indicates issue with step mode line connections between nano and easydriver board
For easydriver, you need connections to
#define DRV8825M2 5
#define DRV8825M1 6
#define DRV8825M0 7
pin 7 connected to easydriver MS1
pin 6 connected to easydriver MS2
(pin 5 not connected)
Last edit: brownrb 2018-03-21
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Robert,
I need some assistance. Here’s what I have:
Nema17PG27 (part# 17HS13-0404S-PG27)
Arduino Nano
EasyStepper
12volt power supply for motor.
Using the Focuserv265_DRV8825.ino
Based on my mathematical calculations (sorry my math is not the greatest) and some research, it appears I should be getting 5370 steps per revolution.
1.8 deg step angle = 200 steps X 26.85 for the gear box.
I have confirmed my settings are for “Full Steps” however when I run the motor using MyFocuserPro2 software it appears it’s taking approximately 43,000 steps to make one revolution of the motor shaft!
Any ideas what I might be doing wrong?
Hi Gordon
Did you make any changes to the firmware ino file?
I take it that you are not using any gearing etc other than the PG27 which is direct connected to focuser shaft?
What version of myfocuserpro2 software is being used?
Please confirm that stepping is working using windows app.
Set controller to full steps then go 1000 steps.
If you now set it to half steps, and repeat 1000 steps, then focuser should rotate only half the distance. Is that correct?
to get 43000 steps means that it is set to 1/8th stepping. I would check the MS0/MS1/M2 wiring and make sure it is wired correctly. With controller on and set to full steps
M2 is D5 and should be 0v
M1 is D6 and should be 0v
M0 is D7 and should be 0v
Hi Gordon
Did you make any changes to the firmware ino file?
// Only change was to
define myDir 2
define myStep 3
As this is the way I have the board wired.
I take it that you are not using any gearing etc other than the PG27 which is direct connected to focuser shaft?
// direct. I was measuring based on just the motor shaft turning.
What version of myfocuserpro2 software is being used?
//2014-2016 2.3.6.5
Please confirm that stepping is working using windows app.
Set controller to full steps then go 1000 steps.
If you now set it to half steps, and repeat 1000 steps, then focuser should rotate only half the distance. Is that correct?
//It appears than changing from full to half does NOT make any difference in the amount of travel.
to get 43000 steps means that it is set to 1/8th stepping. I would check the MS0/MS1/M2 wiring and make sure it is wired correctly. With controller on and set to full steps
M2 is D5 and should be 0v
M1 is D6 and should be 0v
M0 is D7 and should be 0v
// I do not have any connections to any of those pins. Only connections between the Nano and Easydriver are as follows:
D3 – STEP
D2 – DIR
GND- GND
Easy Driver has correct connections to stepper as the motor does turn. And as mentioned I’m using a 12 volt power supply for the motor.
I have used this same unit (I changed from a NEMA17 to the NEMA17PG27 to increase the amount torque as I have a heavy imaging setup ) everything worked correctly with the NEMA17.
Last edit: Gordon 2018-03-21
windows app now up to 2394 but this is not issue
If the motor moved the same distance when step mode was changed this indicates issue with step mode line connections between nano and easydriver board
For easydriver, you need connections to
Last edit: brownrb 2018-03-21
Thanks Robert!
I will make those connections and retest!
Hi Robert!
Well, we have a winner!! Steps are now 5370 per revolution! Everything appears to be working correctly.
Thank you for all you do!
Gordon