Hello everyone, this is the first project i have ever tried to build, with the help of a friend i was able to get it all connected and working (mostly).
I am useing a aduino uni, DVR high voltage controller and nema 17 stepper motor. it connects to the software and controls stepper motor but will randomly sometimes go the other direction or change direction mid step. i was wondering if any has experienced this or may know how to fix it? apprectiate any help, thank you
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Alexander
One possible cause could be that you are using F code (full version) but did not implement the push buttons.
To be of any help we really need to know
1. What board did you build, rev number etc
2. What Software are you using, version number etc
3. What firmware are you using, rev number, filename
4. What other mods or changes have been made
5. A logfile is always necessary
Regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hmm ok, honestly im not too sure what i am using since i had a friend do the installation. I might try and clear the uno and start from scrtach so i learn how to do it myself.
Ill provide a list of the specs i am using and hopefully that is enough, thank you for your help and prompt reply.
I will be building the focuser with none of the add ons, even the buttons, all i want it to do is hook up to the computer and control the focuser through the software.
I will be using the...
Arduino Nano
DRV8825
Nema17 PG5
I assume i have to use the code in the file. Focuserv255_DRV8825_M
I am pretty sure i connected everything up correctly, just dont know how to adjust current through the DRV8825.
should all of that work straight away if i have done it correctly? or should i use a different file? Am i missing anything?
thank you very muc0h
-Alex
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Adjust current is easy. Do it manual method. Use small screwdriver. Connect to focuser. Set maxsteps to 10000. Set position to 10000. Set motor speed to slow. Set to full steps. Then click home.
Now slowly turn small pot on drv chip with screwdriver. Turn it till stepper stops. Now very slow turn other way till stepper moves and steps look good and not missing. Then is done.
Yes this is correct file and yes it should work straight away
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ok hello again, i have decided to go with the nano+L982N option instead, i have sucsessfully uploaded the code to the nano, i just dont know how to wire up the board. i have checked out the schematic but it isnt too clear to me. there is no label on the L982N as to which is A1 or A2 just, A and B, does it matter which way you plug them in? thank you very much for all your hard work on designing this
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
For wiring the L298N board
D5 to IN1
D6 to IN2
D7 to IN3
D8 to IN4
The Output A/B
A1 to RS232 pin 4 to BLUE wire of stepper
A2 to RS232 pin 3 to GREEN wire of stepper
B1 to RS232 pin 2 to RED wire of stepper
B2 to RS232 pin 1 to BLACK wire of stepper
If stepper does not move because not sure what pins A1/A2 and B1/B2 are
First swap B1/B2 and try again (B1 to Black, B2 to Red)
If still not working
Put B1/B2 back as per above
Swap A1/A2 and try again (A1 to Green, A2 to blue)
If still not working
Swap B1/B2 again (B1 to Black, B2 to Red)
One of these combinations will work. But must have 12V to the L298N board or stepper will not move.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello again, sorry for all the questions,
I have set it up, it connects to the myFocuserpro app. the coil power works as the motor locks. when i select the bottons to move the motor however it just vibrates. i have tested all combinations of A1/A2 B1/B2 and this is the only configuration that the coil lock works so it must be correct. what should i try from here? could it be a cabling issue or do i have to do some things with the code? i have read through everything and i cant seem to find anything that suggests i need to set stuff in the code apart from the 1028 steps for the NEMA 17 PG5.
Hello everyone, this is the first project i have ever tried to build, with the help of a friend i was able to get it all connected and working (mostly).
I am useing a aduino uni, DVR high voltage controller and nema 17 stepper motor. it connects to the software and controls stepper motor but will randomly sometimes go the other direction or change direction mid step. i was wondering if any has experienced this or may know how to fix it? apprectiate any help, thank you
Hi Alexander
One possible cause could be that you are using F code (full version) but did not implement the push buttons.
To be of any help we really need to know
1. What board did you build, rev number etc
2. What Software are you using, version number etc
3. What firmware are you using, rev number, filename
4. What other mods or changes have been made
5. A logfile is always necessary
Regards
hmm ok, honestly im not too sure what i am using since i had a friend do the installation. I might try and clear the uno and start from scrtach so i learn how to do it myself.
Ill provide a list of the specs i am using and hopefully that is enough, thank you for your help and prompt reply.
I will be building the focuser with none of the add ons, even the buttons, all i want it to do is hook up to the computer and control the focuser through the software.
I will be using the...
Arduino Nano
DRV8825
Nema17 PG5
I assume i have to use the code in the file. Focuserv255_DRV8825_M
I am pretty sure i connected everything up correctly, just dont know how to adjust current through the DRV8825.
should all of that work straight away if i have done it correctly? or should i use a different file? Am i missing anything?
thank you very muc0h
-Alex
Adjust current is easy. Do it manual method. Use small screwdriver. Connect to focuser. Set maxsteps to 10000. Set position to 10000. Set motor speed to slow. Set to full steps. Then click home.
Now slowly turn small pot on drv chip with screwdriver. Turn it till stepper stops. Now very slow turn other way till stepper moves and steps look good and not missing. Then is done.
Yes this is correct file and yes it should work straight away
ok hello again, i have decided to go with the nano+L982N option instead, i have sucsessfully uploaded the code to the nano, i just dont know how to wire up the board. i have checked out the schematic but it isnt too clear to me. there is no label on the L982N as to which is A1 or A2 just, A and B, does it matter which way you plug them in? thank you very much for all your hard work on designing this
For wiring the L298N board
D5 to IN1
D6 to IN2
D7 to IN3
D8 to IN4
The Output A/B
A1 to RS232 pin 4 to BLUE wire of stepper
A2 to RS232 pin 3 to GREEN wire of stepper
B1 to RS232 pin 2 to RED wire of stepper
B2 to RS232 pin 1 to BLACK wire of stepper
If stepper does not move because not sure what pins A1/A2 and B1/B2 are
First swap B1/B2 and try again (B1 to Black, B2 to Red)
If still not working
Put B1/B2 back as per above
Swap A1/A2 and try again (A1 to Green, A2 to blue)
If still not working
Swap B1/B2 again (B1 to Black, B2 to Red)
One of these combinations will work. But must have 12V to the L298N board or stepper will not move.
Hello again, sorry for all the questions,
I have set it up, it connects to the myFocuserpro app. the coil power works as the motor locks. when i select the bottons to move the motor however it just vibrates. i have tested all combinations of A1/A2 B1/B2 and this is the only configuration that the coil lock works so it must be correct. what should i try from here? could it be a cabling issue or do i have to do some things with the code? i have read through everything and i cant seem to find anything that suggests i need to set stuff in the code apart from the 1028 steps for the NEMA 17 PG5.
IT WORKS!!! THANK YOU
Hi Alexander
Glad to hear it works, you must have fixed the vibration issue?
Best wishes for your project
Robert