Aby těm problémům nebyl konec, teď řeším že se mi nerozbíhají motory.
Asi bych měl popsat konfiguraci.
Motory 2x NEMA 17
https://www.omc-stepperonline.com/nema ... 1584s-mg50
Onstep je deska MaxESP3, na ní ESP32S3, WEMOS8266, drivery TMC5160 a hodiny DS3231.
Kabely a napájení by mělo být v pořádku, že když mi to od pana P přišlo, zkusil jsem to připojit a obě osy se točily. Teď s mým configem se když dám GOTO nebo jen ruční posun ovladačem nerozběhnou.
Paradoxně, když osu popostrčím ručně, tak se rozjede a GOTO najíždí. Někde mám něco špatně a nevím co.
// AXIS1 RA/AZM
// see
https://onstep.groups.io/g/main/wiki/6- ... tion#AXIS1
#define AXIS1_STEPS_PER_DEGREE 5222.222222222223 // 12800, n. Number of steps per degree: <-Req'd
// n = (stepper_steps * micro_steps * overall_gear_reduction)/360.0
#define AXIS1_STEPS_PER_WORMROT 0 // 12800, n. Number of steps per worm rotation (PEC Eq mode only:) <-Req'd
// n = (AXIS1_STEPS_PER_DEGREE*360)/reduction_final_stage
#define AXIS1_DRIVER_MODEL TMC5160_QUIET // OFF, (See above.) Stepper driver model. <-Often
#define AXIS1_DRIVER_MICROSTEPS 8 // OFF, n. Microstep mode when tracking. <-Often
#define AXIS1_DRIVER_MICROSTEPS_GOTO 4 // OFF, n. Microstep mode used during gotos. Option
#define AXIS1_DRIVER_IHOLD OFF // OFF, n, (mA.) Current during standstill. OFF uses IRUN/2.0 Option
#define AXIS1_DRIVER_IRUN 1200 // OFF, n, (mA.) Current during tracking, appropriate for stepper/driver/etc. Option
#define AXIS1_DRIVER_IGOTO 1200 // OFF, n, (mA.) Current during slews. OFF uses same as IRUN. Option
#define AXIS1_DRIVER_REVERSE OFF // OFF, ON Reverses movement direction, or reverse wiring instead to correct. <-Often
#define AXIS1_DRIVER_STATUS OFF // OFF, TMC_SPI, HIGH, or LOW. Polling for driver status info/fault detection. Option
#define AXIS1_LIMIT_MIN -180 // -180, n. Where n= -90..-270 (degrees.) Minimum "Hour Angle" for Eq modes. Adjust
// n. Where n=-180..-360 (degrees.) Minimum Azimuth for AltAzm mode.
#define AXIS1_LIMIT_MAX 180 // 180, n. Where n= 90.. 270 (degrees.) Maximum "Hour Angle" for Eq modes. Adjust
// n. Where n= 180.. 360 (degrees.) Maximum Azimuth for AltAzm mode.
// AXIS2 DEC/ALT
// see
https://onstep.groups.io/g/main/wiki/6- ... tion#AXIS2
#define AXIS2_STEPS_PER_DEGREE 6138.888888888889 // 12800, n. Number of steps per degree: <-Req'd
// n = (stepper_steps * micro_steps * overall_gear_reduction)/360.0
#define AXIS2_DRIVER_MODEL TMC5160_QUIET // OFF, (See above.) Stepper driver model. <-Often
#define AXIS2_DRIVER_MICROSTEPS 8 // OFF, n. Microstep mode when tracking. <-Often
#define AXIS2_DRIVER_MICROSTEPS_GOTO 4 // OFF, n. Microstep mode used during gotos. Option
#define AXIS2_DRIVER_IHOLD OFF // OFF, n, (mA.) Current during standstill. OFF uses IRUN/2.0 Option
#define AXIS2_DRIVER_IRUN 1200 // OFF, n, (mA.) Current during tracking, appropriate for stepper/driver/etc. Option
#define AXIS2_DRIVER_IGOTO 1200 // OFF, n, (mA.) Current during slews. OFF uses same as IRUN. Option
#define AXIS2_DRIVER_POWER_DOWN OFF // OFF, ON Powers off 10sec after movement stops or 10min after last<=1x guide. Option
#define AXIS2_DRIVER_REVERSE OFF // OFF, ON Reverses movement direction, or reverse wiring instead to correct. <-Often
#define AXIS2_DRIVER_STATUS OFF // OFF, TMC_SPI, HIGH, or LOW. Polling for driver status info/fault detection. Option
#define AXIS2_TANGENT_ARM OFF // OFF, ON +limit range below. Set cntr w/[Reset Home] Return cntr w/[Find Home] Infreq
#define AXIS2_LIMIT_MIN -90 // -90, n. Where n=-90..0 (degrees.) Minimum allowed declination. Infreq
#define AXIS2_LIMIT_MAX 90 // 90, n. Where n=0..90 (degrees.) Maximum allowed declination. Infreq