Menu

ULN2003 M MT F BT - No stepper output, works with test sketch

2024-12-21
2024-12-22
  • anthony bradley

    anthony bradley - 2024-12-21

    Hi,

    The FP2 test app can connect to my ULN2003M-MT-F-BT via Ascom, but when I try and move it (e.g. just +1) via the test app:
    * the motor does not move
    * LEDs on the driver board do not flicker
    * app reports "Moving: Current Position 5000" and never changes.
    * an in/out LED illuminates and stays on (until Nano is reset)
    * No signal is observed on stepper signal lines In1-In4 on a scope at any time.
    * Tx Rx leds flicker on the Nano when the test app is running.

    It is as though it is trying to move but never does so carries on trying indefinitely.

    I have loaded the ULN2003 test program and that works ok on the MyFP2 board. The stepper driver board LEDs flicker and the motor rotates as expected, so it does not appear to be a hardware issue between the Nano and the stepper.

    Setup:
    * Using the PCB for ULN2003M-MT-F-BT (BT not connected), with a Nano
    * ULN2003M driver board and 28BYJ-48 5v motor
    * Using the code in the 'myFP2_ULN2003_338' folder
    * Supply is 9v (8.5v after the protection diode)
    * In Config.h I have un-commented the line "#define DRVBRD ULN2003_M_MT_F_BT" line.
    * In MyBoards.h added the line "#define STEPSPERREVOLUTION 1028 " as per the manual (tried with and without this line).
    * The jumper on J3 (normal/program).
    * No LCD, buttons, HPSW or Bluetooth are connected, so they are not enabled in config.h.

    Am I missing something else in the configuration? I can't see what else in the hardware would cause this given that the stepper test program works ok.

    (BTW there is an error in the ULN2003_M_MT_F_BT circuit diagram and PCB, there are 2 'D3' and not a 'D2', so need to be careful which diode you put in which 'D3' location)

    Thanks

     

    Last edit: anthony bradley 2024-12-22
  • brownrb

    brownrb - 2024-12-22

    Hi Anthony
    Thanks for the heads up re D2. U have made the changes to the board and gerbers and uploaded v6

    Regards
    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.