Menu

Problems with firmware version 270

Claude
2018-05-26
2018-06-01
  • Claude

    Claude - 2018-05-26

    First of all a big thank you Robert for this fabulous and huge work.
    I just finished assembling the board and I'm doing tests.
    Here is my problem: with the latest version of the firmware, the 270, the stepper motor runs with jerks, in both directions. If I ask to go back to the home position, as soon as it arrive to aproximativelly the position 10, the motor starts running indefinitely, the Arduino board disconnects often itself, I have to disconnect everything and turn off the 12v power supply.
    I do not have all these problems with version 264, the motor runs smoothly and all work fine.
    An idea, did I forget a configuration in the Arduino code?
    In advance, thanks for the answers.
    Claude

     
  • brownrb

    brownrb - 2018-05-26

    Hi
    You do not mention what the firmware version is.
    The home position - what you describe sounds like HOMEPOSITION is enabled in the firmware but you do not have a home position switch fitted. You need to look at the start of the firmware file under DEFINABLE FEATURES

    To disable the home position switch switch it should read

    //#define HOMEPOSITIONSWITCH 1

    Jerking - The way in which the motor is controlled/moved changed in 270 - not that much, but the delays were changed to make the motor speed rpm a little more consistent between motor speeds and micro-stepping.

    I need to know the firmware file, the motor speed, the stepmode to look closer.

     
  • Claude

    Claude - 2018-05-29

    Hello Robert
    Thank you for your answer
    The arduino firmware is the myFocuserPro2 270.
    Motor speed : all
    Micro stepping enabled

    I have commented out the HOMEPOSITIONSWITCH 1 and that reseolved the problem of ifinit motor run with HOME command.
    What I interpreted as jerky movement is perhaps the new way of driving the stepper motor.
    It looks like "a pulsation", compared to Firmware version 264 with which the stepper motor engine was running more smoothless.

    Regards
    Claude

     
  • brownrb

    brownrb - 2018-05-29

    "The arduino firmware is the myFocuserPro2 270."

    The actual name of the firmware file?

    Do you update lcd during move enabled?

    Regards
    Robert

     
  • Claude

    Claude - 2018-05-29

    the file name is "Focuserv270_DRV8825_HW203.ino"
    I don't know if the LCD is updated whene moving, where is this setting ?

    Regards
    Claude

     
    • brownrb

      brownrb - 2018-05-29

      Under extra settings

       
  • brownrb

    brownrb - 2018-05-29

    Can you post a video of the jerky movement so I can see what is happening?
    What is motor speed setting, slow, med, fast?
    What is step mode set to? Full, 1/2, 1/4 etc

     
  • Claude

    Claude - 2018-05-30

    No the LCD update was not checked.
    Where is no difference checked or unchecked
    I made two videos, one with the Focuserv264_DRV8825_HW203.ino firmware and one with the Focuserv270_DRV8825_HW203.ino firmware.
    You can hear the differences.
    The stepper motor settings are the same for the two tests
    Half steppes, motor speed medium. CoilPower : ON
    also, there are no differences with different stepper settings, full, half 1/4 and speed.
    the videos :
    https://www.dropbox.com/s/thh2hvvdzcarmji/Focuserv264_DRV8825_HW203.MOV?dl=0
    https://www.dropbox.com/s/1jqbdlcax0sjulk/Focuserv270_DRV8825_HW203.MOV?dl=0

     

    Last edit: Claude 2018-05-30
  • brownrb

    brownrb - 2018-05-30

    Hi Claude
    Yes there will be differences in motor speed between 264 and 270 - the speeds were changed, so looking at medium and low speed between 264 and 270 there will not be the same. In 270 the speed is slower than 264. Looks normal to me - not jerky, because when lower speed small pauses in code are easier to see effect on motor speed.

    There should be little difference in motor speed when set to say medium, then change step mode to full, 1/2, 1/4 because these were all changed in 270 to try and get motor speed same. BUT when change step mode, full = 200 steps, when set to 1/2 the motor will only go half distance of full, when set to 1/4 will only go 1/4 distance of full etc.

    So if full goes 1 revolution, then 1/2 only 1/2 revolution, 1/4 only 1/4 revolution etc butmotor speed should be same or similar.

    I can make suggestion if you are not happy with speeds in 270
    Find this line in code

    delayMicroseconds(motorSpeedDelay);
    
    and change to
    
     delayMicroseconds(motorSpeedDelay / 2);
    

    then reprogram controller and see if this is better

     
  • Claude

    Claude - 2018-05-31

    Hi Robert
    Thank you for all that explanations.
    My first thought was that was something wrong for my material and an incompatibility with the latest driver.
    After applying the delayMicroseconds(motorSpeedDelay / 2); modification to the code, the motor mouvement seem to be a little smoother, but only the slow and medium speed, at fast speed, the motor made more noise and does only move for some stepps.
    So, I will live the Focuserv270_DRV8825_HW203.ino code unchanged, many tests revelled that at 1/2 stepps and medium speed all work fine, abstracting the little noise the motor make.
    Thank you for all that nice work and have a nice day.
    Regards
    Claude

     
  • brownrb

    brownrb - 2018-05-31

    It might be that the current adjustment on the DRV8825 is not best for full steps.
    see
    https://www.youtube.com/watch?v=3TIrv_IkQuY

     
  • Claude

    Claude - 2018-06-01

    Yes I have recalibrated the motor current, it's better now. :-)

    Regards
    Claude

     

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.