Menu

Please help with strange issue.

2017-09-11
2017-09-11
  • alexander obradovic

    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

     
  • brownrb

    brownrb - 2017-09-11

    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

     
  • alexander obradovic

    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

     
    • brownrb

      brownrb - 2017-09-12

      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

       
  • alexander obradovic

    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

     
  • brownrb

    brownrb - 2017-09-12

    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.

     
  • alexander obradovic

    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.

     
  • alexander obradovic

    IT WORKS!!! THANK YOU

     
  • brownrb

    brownrb - 2017-09-13

    Hi Alexander
    Glad to hear it works, you must have fixed the vibration issue?
    Best wishes for your project
    Robert

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.