BrandonM via Pololu Forum schreef op 27-06-2019 22:08:
BrandonM Pololu Employee
June 27
Hello.
How are you verifying that the step mode is not changing? Are your Tic controllers indicating an error with the red LED? It is possible that the controllers are in safe start mode (which would cause the red LED to light and a “safe start violation” error). In the “Serial / I²C / USB” control mode, the Tic will generally set the “Safe start violation” error bit whenever the Tic is not in the normal operation state. You can send an “Exit safe start” command to clear the error.
Additionally, note that if you have the “Command timeout” feature enabled the “Command timeout” error will be triggered if the Tic does not receive a command for the specified length of time (default is 1 second). This feature can be configured in the “Input and motor settings” tab of the Tic Control Center.
If you check those settings and are still having problems, could you post your entire Arduino code as well as the settings files for each of your Tic controllers? You can save your settings file by selecting the “Save settings file…” option within the “File” drop-down menu of the Tic Control Center while the desired Tic is connected. Also, could you post some pictures of your setup that show all of your connections?
Brandon
Visit Topic or reply to this email to respond.
To unsubscribe from these emails, click here.
thanks Brandon for answering so quickly.
First we were working with a whole set-up with 12 steppers and one serial line.
Running the steppers goes well; we’re using position control.
But no luck with the settings.
Then we tried with a simple sketch with 1 T834.
Again no luck.
i’m checking the settings with the Tic Control app on my computer, which is refreshing it’s readings every second (i believe).
there’s no red light or an error message. the Command timeout feature is turned off.
The last tries were with this arduino sketch:
#include <Tic.h>
#include <SoftwareSerial.h>
SoftwareSerial ticSerial(4,5);
#define ledpin 8
int led = 1;
TicSerial tic(ticSerial, 14);
TicStepMode sm[]{
TicStepMode::Microstep1,
TicStepMode::Microstep2,
TicStepMode::Microstep4,
TicStepMode::Microstep8,
TicStepMode::Microstep16,
TicStepMode::Microstep32
};
void setup()
{
ticSerial.begin(57600);
delay(20);
tic.enterSafeStart();
delay(20);
tic.setMaxAccel(3333); //just a test
*//tic.setStepMode(sm[3]); //another test*
delay(20);
tic.exitSafeStart();
}
void loop()
{
}
Because i’m away from the lab i cannot send you a picture of the test set-up.
The SoftwareSerial TX pin (5) was connected to the Rx pin on the T834.
And the grounds were connected.(The power for the T834 and the Arduino came from the same source).
Hoping you can give us a hint to make it work.
rolf