×

With the recent surge in Omicron cases, shipping may be slower than stated times. We are working to build, ship and respond to everything as quickly as possible. Please see all COVID-19 updates here. Thank you for your continued support.

Member #715573

Member Since: September 1, 2015

Country: United States

  • I'm using the Autodriver with a Teensy 3.1. I can make the stepper turn but my program seems to hault after giving a move or run command. All of the config works. If I issue a run command the motor will move at the correct steps per second but no other lines of code on the Teensy are run. The same happens if I issue a move command. The stepper moves the correct number of steps but no more lines of code on the Teensy are run. Any ideas? I'm fairly new to all of this, I hope I'm missing something simple.

    Edit: The lines of code following the run command are a serial.println, delay(30000), and softstop. The println doesn't come through though the println just before the run command does.

    Fixed: The AutoDriverCommands.ccp uses chars to iterate through variables. Making the chars signed fix this issue.

    for (char i = 2; i >= 0; i--)
    

    becomes

    for (signed char i = 2; i >= 0; i--)
    

    There are 5 spots in the code where this happens.