Onstep 4.24 goto error


Alexandru Savin
 

Hi group, 

I m helping a friend and build him an onstep stm32 bluepill module with 4.24 version. He s having issues with go to that is not pointing correct. I'm suspecting that no of steps are not OK. Polar alignment is decent before go to, backlash minimum. Given data:
Vixen SP, 144 tooth both ra and dec (Gr2 144)
Belt driven, 16 tooth wheel on motor 40 tooth wheel on worm (gr1 2.5)
Stepper 400 steps (0.9 degree) 1.7A
Drv 8729 16microsteps, vref set at 0.85V
Calculated and put in config.h
6400 steps
16000 steps per wormrot

Anything you see wrong? What else to verify?

Kind regards
Alex


Dave Schwartz
 

Is it moving approximately the distance expected in each axis, just the wrong way? It may need one or more axes reversed.

There is no such thing as a DRV8729. There's a DRV8825 and an LV8729. Which?

Please post the Config.h file.

On 2021-10-01 4:58 a.m., savinalexandru@... wrote:
Hi group,

I m helping a friend and build him an onstep stm32 bluepill module with 4.24 version. He s having issues with go to that is not pointing correct. I'm suspecting that no of steps are not OK. Polar alignment is decent before go to, backlash minimum. Given data:
Vixen SP, 144 tooth both ra and dec (Gr2 144)
Belt driven, 16 tooth wheel on motor 40 tooth wheel on worm (gr1 2.5)
Stepper 400 steps (0.9 degree) 1.7A
Drv 8729 16microsteps, vref set at 0.85V
Calculated and put in config.h
6400 steps
16000 steps per wormrot

Anything you see wrong? What else to verify?

Kind regards
Alex
--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


Alexandru Savin
 

Hi,

yes, sorry, it's LV. Ra is moving let's say 50% of the real distance and rec less than 50%. Directions are both ok as i've inverted the wiring
below the config:
 ---------------------------------------------------------------------------------------------------------------------------------
// Configuration for OnStep

/*
            For more information on setting OnStep up see http://www.stellarjourney.com/index.php?r=site/equipment_onstep
                        and join the OnStep Groups.io at https://groups.io/g/onstep

 *           *** Read the compiler warnings and errors, they are there to help guard against invalid configurations ***
*/

// ---------------------------------------------------------------------------------------------------------------------------------
// ADJUST THE FOLLOWING TO CONFIGURE YOUR CONTROLLER FEATURES ----------------------------------------------------------------------
// <-Req'd = always must set, <-Often = usually must set, Option = optional, Adjust = adjust as req'd, Infreq = infrequently changed

// PINMAP ---------------------------------------------------------- see https://onstep.groups.io/g/main/wiki/6-Configuration#PINMAP
//   *** See the matching Pins.xxx.h file for your setup (found by looking in src/pinmaps/Models.h) with detailed information ***
//   *** to be sure it matches your wiring.            *** USE AT YOUR OWN RISK ***                                           ***

//      Parameter Name              Value   Default  Notes                                                                      Hint
#define PINMAP                        STM32Blue //    OFF, Choose from: MiniPCB, MiniPCB2, MaxPCB, MaxPCB2, STM32Blue,             <-Req'd
//         Ramps14, MaxESP2, MaxESP3.  Check Constants.h for more info.

// SERIAL PORTS ---------------------------------------------------- see https://onstep.groups.io/g/main/wiki/6-Configuration#SERIAL
#define SERIAL_A_BAUD_DEFAULT        9600 //   9600, n. Where n=9600,19200,57600,115200 (common baud rates.)                  Infreq
#define SERIAL_B_BAUD_DEFAULT        9600 //   9600, n. See (src/HAL/) for your MCU Serial port # etc.                        Option
#define SERIAL_B_ESP_FLASHING         OFF //    OFF, ON Upload ESP8266 WiFi firmware through SERIAL_B with :ESPFLASH# cmd.    Option
#define SERIAL_C_BAUD_DEFAULT         OFF //    OFF, n, ON for ESP32 Bluetooth.                                               Option
#define SERIAL_C_BLUETOOTH_NAME  "OnStep" // "On..", Bluetooth device name for ESP32.                                         Option

// MOUNT TYPE -------------------------------------------------- see https://onstep.groups.io/g/main/wiki/6-Configuration#MOUNT_TYPE
#define MOUNT_TYPE                    GEM //    GEM, GEM for German Equatorial, FORK for Equatorial Fork, or ALTAZM          <-Req'd
//         Dobsonian etc. mounts. GEM Eq mounts perform meridian flips.

// USER FEEDBACK -------------------------------------------- see https://onstep.groups.io/g/main/wiki/6-Configuration#USER_FEEDBACK
#define LED_STATUS                     ON //     ON, Blinks w/sidereal tracking otherwise steady on indicates activity.       Option
#define LED_STATUS2                   OFF //    OFF, ON Blinks 1s interval w/PPS sync, steady for gotos, off if in standby.   Option
#define LED_RETICLE                   OFF //    OFF, n. Where n=0..255 (0..100%) activates feature sets default brightness.   Option
#define BUZZER                        ON //    OFF, ON, n. Where n=100..6000 (Hz freq.) for piezo speaker. ON for buzzer.    Option
#define BUZZER_STATE_DEFAULT          OFF //    OFF, ON Start with piezo buzzer/speaker enabled.                              Option

// TIME AND LOCATION -------------------------------------------------- see https://onstep.groups.io/g/main/wiki/6-Configuration#TLS
#define TIME_LOCATION_SOURCE          DS3231 //    OFF, DS3231 (I2c,) DS3234 (Spi,) TEENSY (T3.2 internal,) or GPS source.       Option
//         Provides Date/Time, and if available, PPS & Lat/Long also.

// SENSORS -------------------------------------------------------- see https://onstep.groups.io/g/main/wiki/6-Configuration#SENSORS
// * = also supports ON_PULLUP or ON_PULLDOWN to activate MCU internal resistors if present.
#define WEATHER                       OFF //    OFF, BME280 (I2C 0x77,) BME280_0x76, BME280_SPI (see pinmap for CS.)          Option
//         Provides temperature, pressure, humidity.

#define TELESCOPE_TEMPERATURE         OFF //    OFF, DS1820 for telescope temperature on one wire interface.                  Option

#define HOME_SENSE                    OFF //    OFF, ON*. Automatically detect and use home switches. For GEM mode only.      Option
#define HOME_SENSE_STATE_AXIS1       HIGH //   HIGH, State when clockwise of home position, as seen from front. Rev. w/LOW.   Adjust
#define HOME_SENSE_STATE_AXIS2       HIGH //   HIGH, State when clockwise of home position, as seen from above. Rev. w/LOW.   Adjust
//         Signal state reverses when travel moves ccw past the home position.

#define LIMIT_SENSE                   OFF //    OFF, ON* limit sense switch close to Gnd stops gotos and/or tracking.         Option
#define LIMIT_SENSE_STATE             LOW //    LOW, For NO (normally open) switches, HIGH for NC (normally closed.)          Adjust
#define PEC_SENSE                     OFF //    OFF, ON*, n, sense digital OR n=0 to 1023 (0 to 3.3V or 5V) analog threshold. Option
#define PEC_SENSE_STATE              HIGH //   HIGH, Senses the PEC signal rising edge or use LOW for falling edge.           Adjust
//         Ignored in ALTAZM mode.

#define PPS_SENSE                     OFF //    OFF, ON* enables PPS (pulse per second,) senses signal rising edge.           Option
//         Better tracking accuracy especially for Mega2560's w/ceramic resonator.

// ST4 INTERFACE ------------------------------------------------------ see https://onstep.groups.io/g/main/wiki/6-Configuration#ST4
// *** It is up to you to verify the interface meets the electrical specifications of any connected device, use at your own risk ***
#define ST4_INTERFACE                 ON //    OFF, ON, ON_PULLUP enables interface. <= 1X guides unless hand control mode.  Option
//         During goto btn press: aborts slew or continue meridian flip pause home
#define ST4_HAND_CONTROL              OFF //    OFF, ON for hand controller special features and SHC support.                 Option
//         Hold [E]+[W] btns >2s: Guide rate   [E]-  [W]+  [N] trk on/off [S] sync
//         Hold [N]+[S] btns >2s: Usr cat item [E]-  [W]+  [N] goto [S] snd on/off
#define ST4_HAND_CONTROL_FOCUSER      OFF //    OFF, ON alternate to above: Focuser move [E]f1 [W]f2 [N]-     [S]+            Option

// GUIDING BEHAVIOR ----------------------------------------------- see https://onstep.groups.io/g/main/wiki/6-Configuration#GUIDING
#define GUIDE_TIME_LIMIT                0 //      0, No guide time limit. Or n. Where n=1..120 second time limit guard.       Adjust
#define GUIDE_DISABLE_BACKLASH        OFF //    OFF, Disable backlash takeup during guiding at <= 1X                          Option

// TRACKING BEHAVIOUR -------------------------------------------- see https://onstep.groups.io/g/main/wiki/6-Configuration#TRACKING
#define TRACK_AUTOSTART               OFF //    OFF, ON Start with tracking enabled.                                          Option
#define TRACK_REFRACTION_RATE_DEFAULT ON //    OFF, ON Start w/atmospheric refract. compensation (RA axis/Eq mounts only.)   Option
#define TRACK_BACKLASH_RATE            25 //     25, n. Where n=2..50 (x sidereal rate) during backlash takeup.               Option
//         Too fast motors stall/gears slam or too slow and sluggish in backlash.

// SYNCING BEHAVIOUR ---------------------------------------------- see https://onstep.groups.io/g/main/wiki/6-Configuration#SYNCING
#define SYNC_CURRENT_PIER_SIDE_ONLY    ON //     ON, Disables ability of sync to change pier side, for GEM mounts.            Option

// SLEWING BEHAVIOUR ---------------------------------------------- see https://onstep.groups.io/g/main/wiki/6-Configuration#SLEWING
#define SLEW_RATE_BASE_DESIRED        1.25 //    1.0, n. Desired slew rate in deg/sec. Adjustable at run-time from            <-Req'd
//         1/2 to 2x this rate, and as MCU performace considerations require.
#define SLEW_RATE_MEMORY              ON //    OFF, ON Remembers rates set across power cycles.                              Option
#define SLEW_ACCELERATION_DIST        4.0 //    5.0, n, (degrees.) Approx. distance for acceleration (and deceleration.)      Adjust
#define SLEW_RAPID_STOP_DIST          2.5 //    2.0, n, (degrees.) Approx. distance required to stop when a slew              Adjust
//         is aborted or a limit is exceeded.

#define MFLIP_SKIP_HOME               OFF //    OFF, ON Goto directly to the destination without visiting home position.      Option
#define MFLIP_PAUSE_HOME_MEMORY       OFF //    OFF, ON Remember meridian flip pause at home setting across power cycles.     Option
#define MFLIP_AUTOMATIC_MEMORY        ON //    OFF, ON Remember automatic meridian flip setting across power cycles.         Option

// PARKING BEHAVIOUR ---------------------------------------------- see https://onstep.groups.io/g/main/wiki/6-Configuration#PARKING
#define STRICT_PARKING                OFF //    OFF, ON Un-parking is only allowed if successfully parked.                    Option

// MOTION CONTROL -------------------------------------------------- see https://onstep.groups.io/g/main/wiki/6-Configuration#MOTION
#define STEP_WAVE_FORM             SQUARE // SQUARE, PULSE Step signal wave form faster rates. SQUARE best signal integrity.  Adjust

// Stepper driver models (also see ~/OnStep/src/sd_drivers/Models.h for additional infrequently used models and more info.):
// A4988, DRV8825, LV8729, S109, SSS TMC2209*, TMC2130* **, and TMC5160* ***
// * = add _QUIET (stealthChop tracking) or _VQUIET (stealthChop tracking & slew,) for example "TMC2130_VQUIET"
// ** = SSS TMC2130 if you choose to set stepper driver current (in mA) set Vref pot. 2.5V instead of by motor current as usual.
// *** = SSS TMC5160 you must set stepper driver current (in mA) w/ #define AXISn_TMC_IRUN (IHOLD, etc.)

// AXIS1 RA/AZM
// see https://onstep.groups.io/g/main/wiki/6-Configuration#AXIS1
#define AXIS1_STEPS_PER_DEGREE    6400.0 //  12800, n. Number of steps per degree:                                          <-Req'd
//         n = (stepper_steps * micro_steps * overall_gear_reduction)/360.0
#define AXIS1_STEPS_PER_WORMROT     16000 //  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            LV8729 //    OFF, (See above.) Stepper driver model.                                      <-Often
#define AXIS1_DRIVER_MICROSTEPS       16 //    OFF, n. Microstep mode when tracking.                                        <-Often
#define AXIS1_DRIVER_MICROSTEPS_GOTO  OFF //    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             OFF //    OFF, n, (mA.) Current during tracking, appropriate for stepper/driver/etc.    Option
#define AXIS1_DRIVER_IGOTO            OFF //    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_UNDER_POLE        180 //    180, n. Where n=150..180 (degrees.) Max HA hour angle + or - for Eq modes.    Adjust
#define AXIS1_LIMIT_MAXAZM            360 //    360, n. Where n=180..360 (degrees.) Max Azimuth + or - for AltAzm mode only.  Adjust

// AXIS2 DEC/ALT
// see https://onstep.groups.io/g/main/wiki/6-Configuration#AXIS2
#define AXIS2_STEPS_PER_DEGREE    6400.0 //  12800, n. Number of steps per degree:                                          <-Req'd
//         n = (stepper_steps * micro_steps * overall_gear_reduction)/360.0

#define AXIS2_DRIVER_MODEL            LV8729 //    OFF, (See above.) Stepper driver model.                                      <-Often
#define AXIS2_DRIVER_MICROSTEPS       16 //    OFF, n. Microstep mode when tracking.                                        <-Often
#define AXIS2_DRIVER_MICROSTEPS_GOTO  OFF //    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             OFF //    OFF, n, (mA.) Current during tracking, appropriate for stepper/driver/etc.    Option
#define AXIS2_DRIVER_IGOTO            OFF //    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               -91 //    -91, n. Where n=-91..0 (degrees.) Minimum allowed declination.                Infreq
#define AXIS2_LIMIT_MAX                91 //     91, n. Where n=0..91 (degrees.) Maximum allowed declination.                 Infreq

// AXIS3 ROTATOR
// see https://onstep.groups.io/g/main/wiki/6-Configuration#AXIS3
#define ROTATOR                       OFF //    OFF, ON to enable the rotator (or de-rotator for ALTAZM mounts.)              Option
#define AXIS3_STEPS_PER_DEGREE       64.0 //   64.0, n. Number of steps per degree for rotator/de-rotator.                    Adjust
//         Alt/Az de-rotation: n = (num_circumference_pixels * 2)/360, minimum
#define AXIS3_STEP_RATE_MAX           8.0 //    8.0, n, (millisec.) Minimum ms/step depends on processor.                     Adjust

#define AXIS3_DRIVER_MODEL            OFF //    OFF, TMC2130, TMC5160. Leave OFF for all drivers models except these.         Option
#define AXIS3_DRIVER_MICROSTEPS       OFF //    OFF, n. Microstep mode when tracking.                   For TMC2130, TMC5160. Option
#define AXIS3_DRIVER_IHOLD            OFF //    OFF, n, (mA.) Current standstill. OFF uses IRUN/2.0.                  "       Option
#define AXIS3_DRIVER_IRUN             OFF //    OFF, n, (mA.) Current tracking, appropriate for stepper/driver/etc.   "       Option
#define AXIS3_DRIVER_POWER_DOWN       OFF //    OFF, ON Powers off the motor at stand-still.                                  Option
#define AXIS3_DRIVER_REVERSE          OFF //    OFF, ON Reverses movement direction, or reverse wiring instead to correct.    Option

#define AXIS3_LIMIT_MIN              -180 //   -180, n. Where n=-360..0 (degrees.) Minimum allowed rotator angle.             Infreq
#define AXIS3_LIMIT_MAX               180 //    180, n. Where n=0..360 (degrees.) Maximum allowed rotator angle.              Infreq

// AXIS4 FOCUSER 1
// see https://onstep.groups.io/g/main/wiki/6-Configuration#AXIS4
#define FOCUSER1                      OFF //    OFF, ON to enable this focuser.                                               Option
#define AXIS4_STEPS_PER_MICRON        0.5 //    0.5, n. Steps per micrometer. Figure this out by testing or other means.      Adjust
#define AXIS4_STEP_RATE_MAX           8.0 //    8.0, n, (millisec.) Min. ms/step depends on processor. In DC mode, PWM freq.  Adjust

#define AXIS4_DRIVER_MODEL            OFF //    OFF, TMC2130, TMC5160. Leave OFF for all drivers models except these.         Option
#define AXIS4_DRIVER_MICROSTEPS       OFF //    OFF, n. Microstep mode when tracking.                   For TMC2130, TMC5160. Option
#define AXIS4_DRIVER_IHOLD            OFF //    OFF, n, (mA.) Current standstill. OFF uses IRUN/2.0.                  "       Option
#define AXIS4_DRIVER_IRUN             OFF //    OFF, n, (mA.) Current tracking, appropriate for stepper/driver/etc.   "       Option
#define AXIS4_DRIVER_POWER_DOWN       OFF //    OFF, ON Powers off the motor at stand-still.                                  Option
#define AXIS4_DRIVER_REVERSE          OFF //    OFF, ON Reverses movement direction, or reverse wiring instead to correct.    Option
#define AXIS4_DRIVER_DC_MODE          OFF //    OFF, DRV8825 for pwm dc motor control on stepper driver outputs.              Option

#define AXIS4_LIMIT_MIN_RATE           10 //     10, n. Where n=1..1000 (um/s.) Minimum microns/second. In DC mode, min pwr.  Adjust
#define AXIS4_LIMIT_MIN                 0 //      0, n. Where n=0..500 (millimeters.) Minimum allowed position.               Adjust
#define AXIS4_LIMIT_MAX                50 //     50, n. Where n=0..500 (millimeters.) Maximum allowed position.               Adjust

// AXIS5 FOCUSER 2
// see https://onstep.groups.io/g/main/wiki/6-Configuration#AXIS5
#define FOCUSER2                      OFF //    OFF, ON to enable this focuser.                                               Option
#define AXIS5_STEPS_PER_MICRON        0.5 //    0.5, n. Steps per micrometer. Figure this out by testing or other means.      Adjust
#define AXIS5_STEP_RATE_MAX           8.0 //    8.0, n, (millisec.) Min. ms/step depends on processor. In DC mode, PWM freq.  Adjust

#define AXIS5_DRIVER_MODEL            OFF //    OFF, TMC2130, TMC5160. Leave OFF for all drivers models except these.         Option
#define AXIS5_DRIVER_MICROSTEPS       OFF //    OFF, n. Microstep mode when tracking.                   For TMC2130, TMC5160. Option
#define AXIS5_DRIVER_IHOLD            OFF //    OFF, n, (mA.) Current standstill. OFF uses IRUN/2.0.                  "       Option
#define AXIS5_DRIVER_IRUN             OFF //    OFF, n, (mA.) Current tracking, appropriate for stepper/driver/etc.   "       Option
#define AXIS5_DRIVER_POWER_DOWN       OFF //    OFF, ON Powers off the motor at stand-still.                                  Option
#define AXIS5_DRIVER_REVERSE          OFF //    OFF, ON Reverses movement direction, or reverse wiring instead to correct.    Option
#define AXIS5_DRIVER_DC_MODE          OFF //    OFF, DRV8825 for pwm dc motor control on stepper driver outputs.              Option

#define AXIS5_LIMIT_MIN_RATE           10 //     10, n. Where n=1..1000 (um/s.) Minimum microns/second. In DC mode, min pwr.  Adjust
#define AXIS5_LIMIT_MIN                 0 //      0, n. Where n=0..500 (millimeters.) Minimum allowed position.               Adjust
#define AXIS5_LIMIT_MAX                50 //     50, n. Where n=0..500 (millimeters.) Maximum allowed position.               Adjust

// THAT'S IT FOR USER CONFIGURATION!

// -------------------------------------------------------------------------------------------------------------------------
#define FileVersionConfig 3

Virus-free. www.avg.com


On Fri, Oct 1, 2021 at 6:43 AM Dave Schwartz <Dave.Schwartz@...> wrote:
Is it moving approximately the distance expected in each axis, just the
wrong way? It may need one or more axes reversed.

There is no such thing as a DRV8729. There's a DRV8825 and an LV8729. Which?

Please post the Config.h file.

On 2021-10-01 4:58 a.m., savinalexandru@... wrote:
> Hi group,
>
> I m helping a friend and build him an onstep stm32 bluepill module
> with 4.24 version. He s having issues with go to that is not pointing
> correct. I'm suspecting that no of steps are not OK. Polar alignment
> is decent before go to, backlash minimum. Given data:
> Vixen SP, 144 tooth both ra and dec (Gr2 144)
> Belt driven, 16 tooth wheel on motor 40 tooth wheel on worm (gr1 2.5)
> Stepper 400 steps (0.9 degree) 1.7A
> Drv 8729 16microsteps, vref set at 0.85V
> Calculated and put in config.h
> 6400 steps
> 16000 steps per wormrot
>
> Anything you see wrong? What else to verify?
>
> Kind regards
> Alex
>

--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus







Martin Chapman
 

Did you set location, time and date first?
Take care and stay safe.
Mart.


On Fri, Oct 1, 2021 at 10:40 AM <savinalexandru@...> wrote:
Hi group, 

I m helping a friend and build him an onstep stm32 bluepill module with 4.24 version. He s having issues with go to that is not pointing correct. I'm suspecting that no of steps are not OK. Polar alignment is decent before go to, backlash minimum. Given data:
Vixen SP, 144 tooth both ra and dec (Gr2 144)
Belt driven, 16 tooth wheel on motor 40 tooth wheel on worm (gr1 2.5)
Stepper 400 steps (0.9 degree) 1.7A
Drv 8729 16microsteps, vref set at 0.85V
Calculated and put in config.h
6400 steps
16000 steps per wormrot

Anything you see wrong? What else to verify?

Kind regards
Alex


Alexandru Savin
 

Martin, yes, those are also set right. thanks, stay safe also :)

Virus-free. www.avg.com


On Fri, Oct 1, 2021 at 7:26 AM Martin Chapman <smartacus32@...> wrote:
Did you set location, time and date first?
Take care and stay safe.
Mart.


On Fri, Oct 1, 2021 at 10:40 AM <savinalexandru@...> wrote:
Hi group, 

I m helping a friend and build him an onstep stm32 bluepill module with 4.24 version. He s having issues with go to that is not pointing correct. I'm suspecting that no of steps are not OK. Polar alignment is decent before go to, backlash minimum. Given data:
Vixen SP, 144 tooth both ra and dec (Gr2 144)
Belt driven, 16 tooth wheel on motor 40 tooth wheel on worm (gr1 2.5)
Stepper 400 steps (0.9 degree) 1.7A
Drv 8729 16microsteps, vref set at 0.85V
Calculated and put in config.h
6400 steps
16000 steps per wormrot

Anything you see wrong? What else to verify?

Kind regards
Alex


Drew 🔭📷🚴‍♂️
 
Edited

Did you copy config.h from an earlier version? Specifically,

#define AXIS1_LIMIT_UNDER_POLE        180 //    180, n. Where n=150..180 (degrees.) Max HA hour angle + or - for Eq modes.    Adjust
#define AXIS1_LIMIT_MAXAZM            360 //    360, n. Where n=180..360 (degrees.) Max Azimuth + or - for AltAzm mode only.  Adjust

Should be:

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


Alexandru Savin
 

Thanks Drew, really good point, that's indeed from 3.16. I will write the new config from 4.24. But the rest is OK, meaning steps and wormrot?

Kind regards
ALEX

On Fri, Oct 1, 2021, 18:36 Drew 🔭📷🚴‍♂️ <drewbolce@...> wrote:
Did you copy config.h from an earlier version? Specifically,

#define AXIS1_LIMIT_UNDER_POLE        180 //    180, n. Where n=150..180 (degrees.) Max HA hour angle + or - for Eq modes.    Adjust
#define AXIS1_LIMIT_MAXAZM            360 //    360, n. Where n=180..360 (degrees.) Max Azimuth + or - for AltAzm mode only.  Adjust

Should be:

 


Drew 🔭📷🚴‍♂️
 

On Fri, Oct 1, 2021 at 11:46 AM, Alexandru Savin wrote:
But the rest is OK, meaning steps and wormrot?
6400 is OK.

I would set wormrot to 0. Unless you are using PEC this is the best setting. A bad setting will generate an error at runtime.


Khalid Baheyeldin
 

Savin,

You can start fresh using the parameters you have, and enter them into
the Online Configuration Generator (OCG).

A proper 4.x Config.h will be generated for you.
Even if it does not solve your issue directly, at least you are sure there are
no copy/paste remnants from 3.x.

Also check the 2nd question in the FAQ. There are more points there.


Mark Christensen
 

Alex,

Your CONFIG.H good looks with regard to the number of microsteps per degree  and the number per worm rev: 360/144 =2.5 deg per worm rev, 400*16*2.5 = 16000 microsteps per worm rev, gives 6400 microsteps per degree.
So unless the hardware isn't set up right I suggest the following to diagnose the problem:

1. Are you using the Android app or the browser (aka 'the website') interface? ASCOM? Make sure in the setup of those that the slew rate is what you want. In the CONFIG.H it is set to 1.25 deg/sec which is very slow so you shouldn't be missing pulses, but if one of the app/browser interface is changing the rate it is hard to be sure.
2. Change the microstepping mode to 1. You won't want to leave it that way but it will tell you if there is a loading issue or some other issue. Shouldn't be the case but until you test you can't be sure.
3. Turn off the RTC source. That is just something else that can cause problems.
4. Verify that the drive level (Vref) in the LVs is correct. Probably something you've done but...

Regards,

Mark Christensen


 

On Fri, Oct 1, 2021 at 09:26 AM, Martin Chapman wrote:
Did you set location, time and date first?
Take care and stay safe.
Mart.
Did you set the UTC offset to the correct value?
What about the jumper configuration that corresponds to your microstep value?


Alexandru Savin
 
Edited

thanks for all the messages, i've compiled a new 4.24 version of the config.h (indeed i was on the old one)
any last thought before i make the update on controller? 

// ---------------------------------------------------------------------------------------------------------------------------------
// Configuration for OnStep

/*
 *          For more information on setting OnStep up see http://www.stellarjourney.com/index.php?r=site/equipment_onstep
 *                      and join the OnStep Groups.io at https://groups.io/g/onstep
 *
 *           *** Read the compiler warnings and errors, they are there to help guard against invalid configurations ***
*/

// ---------------------------------------------------------------------------------------------------------------------------------
// ADJUST THE FOLLOWING TO CONFIGURE YOUR CONTROLLER FEATURES ----------------------------------------------------------------------
// <-Req'd = always must set, <-Often = usually must set, Option = optional, Adjust = adjust as req'd, Infreq = infrequently changed

// PINMAP ------------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration-Controller#PINMAP
//   *** See the matching Pins.xxx.h file for your setup (found by looking in src/pinmaps/Models.h) with detailed information ***
//   *** to be sure it matches your wiring.            *** USE AT YOUR OWN RISK ***                                           ***

//      Parameter Name              Value   Default  Notes                                                                      Hint
#define PINMAP                  STM32Blue //    OFF, Choose from: MksGenL2, MiniPCB2, MaxPCB2, MaxESP3, CNC3, STM32Blue,     <-Req'd
                                          //         MaxSTM3, FYSETC_S6_2, etc.  Other boards and more info. in Constants.h

// SERIAL PORT COMMAND CHANNELS --------------------------- see https://onstep.groups.io/g/main/wiki/Configuration-Controller#SERIAL
#define SERIAL_A_BAUD_DEFAULT        9600 //   9600, n. Where n=9600,19200,57600,115200 (common baud rates.)                  Infreq
#define SERIAL_B_BAUD_DEFAULT        9600 //   9600, n. See (src/HAL/) for your MCU Serial port # etc.                        Option
#define SERIAL_B_ESP_FLASHING         OFF //    OFF, ON Upload ESP8266 WiFi firmware through SERIAL_B with :ESPFLASH# cmd.    Option
#define SERIAL_C_BAUD_DEFAULT         OFF //    OFF, n, ON for ESP32 Bluetooth.                                               Option
#define SERIAL_C_BLUETOOTH_NAME  "OnStep" // "On..", Bluetooth device name for ESP32.                                         Option

// MOUNT TYPE ----------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration-Controller#MOUNT_TYPE
#define MOUNT_TYPE                    GEM //    GEM, GEM for German Equatorial, FORK for Equatorial Fork, or ALTAZM          <-Req'd
                                          //         Dobsonian etc. mounts. GEM Eq mounts perform meridian flips.

// USER FEEDBACK ----------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration-Controller#USER_FEEDBACK
#define LED_STATUS                     ON //     ON, Blinks w/sidereal tracking otherwise steady on indicates activity.       Option
#define LED_STATUS2                   OFF //    OFF, ON Blinks 1s interval w/PPS sync, steady for gotos, off if in standby.   Option
#define LED_RETICLE                   OFF //    OFF, n. Where n=0..255 (0..100%) activates feature sets default brightness.   Option
#define BUZZER                        OFF //    OFF, ON, n. Where n=100..6000 (Hz freq.) for piezo speaker. ON for buzzer.    Option
#define BUZZER_STATE_DEFAULT          OFF //    OFF, ON Start with piezo buzzer/speaker enabled.                              Option

// TIME AND LOCATION ----------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration-Controller#TLS
#define TIME_LOCATION_SOURCE       DS3231 //    OFF, DS3231 (I2c,) DS3234 (Spi,) TEENSY (T3.2 internal,) or GPS source.       Option
                                          //         Provides Date/Time, and if available, PPS & Lat/Long also.

// SENSORS ----------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration-Controller#SENSORS
// * = also supports ON_PULLUP or ON_PULLDOWN to activate MCU internal resistors if present.
#define WEATHER                       OFF //    OFF, BME280 (I2C 0x77,) BME280_0x76, BME280_SPI (see pinmap for CS.)          Option
                                          //         BMP280 (I2C 0x77,) BMP280_0x76, BMP280_SPI (see pinmap for CS.)
                                          //         BME280 or BMP280 for temperature, pressure.  BME280 for humidity also.
                                         
#define TELESCOPE_TEMPERATURE         OFF //    OFF, DS1820, n. Where n is the DS1820 s/n for focuser temperature.            Adjust

#define HOME_SENSE                    OFF //    OFF, ON*. Automatically detect and use home switches. For GEM mode only.      Option
#define HOME_SENSE_STATE_AXIS1       HIGH //   HIGH, State when clockwise of home position, as seen from front. Rev. w/LOW.   Adjust
#define HOME_SENSE_STATE_AXIS2       HIGH //   HIGH, State when clockwise of home position, as seen from above. Rev. w/LOW.   Adjust
                                          //         Signal state reverses when travel moves ccw past the home position.

#define LIMIT_SENSE                   OFF //    OFF, ON* limit sense switch close to Gnd stops gotos and/or tracking.         Option
#define LIMIT_SENSE_STATE             LOW //    LOW, For NO (normally open) switches, HIGH for NC (normally closed.)          Adjust

#define PEC_SENSE                     OFF //    OFF, ON*, n, sense digital OR n=0 to 1023 (0 to 3.3V or 5V) analog threshold. Option
#define PEC_SENSE_STATE              HIGH //   HIGH, Senses the PEC signal rising edge or use LOW for falling edge.           Adjust
                                          //         Ignored in ALTAZM mode.

#define PPS_SENSE                     OFF //    OFF, ON* enables PPS (pulse per second,) senses signal rising edge.           Option
                                          //         Better tracking accuracy especially for Mega2560's w/ceramic resonator.

// ST4 INTERFACE --------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration-Controller#ST4
// *** It is up to you to verify the interface meets the electrical specifications of any connected device, use at your own risk ***
#define ST4_INTERFACE                 OFF //    OFF, ON, ON_PULLUP enables interface. <= 1X guides unless hand control mode.  Option
                                          //         During goto btn press: aborts slew or continue meridian flip pause home
#define ST4_HAND_CONTROL              OFF //    OFF, ON for hand controller special features and SHC support.                 Option
                                          //         Hold [E]+[W] btns >2s: Guide rate   [E]-  [W]+  [N] trk on/off [S] sync
                                          //         Hold [N]+[S] btns >2s: Usr cat item [E]-  [W]+  [N] goto [S] snd on/off
#define ST4_HAND_CONTROL_FOCUSER      OFF //    OFF, ON alternate to above: Focuser move [E]f1 [W]f2 [N]-     [S]+            Option

// GUIDING BEHAVIOUR ------------------------------------------ see https://onstep.groups.io/g/main/wiki/Configuration-Mount#GUIDING
#define GUIDE_TIME_LIMIT                0 //      0, No guide time limit. Or n. Where n=1..120 second time limit guard.       Adjust
#define GUIDE_DISABLE_BACKLASH        OFF //    OFF, Disable backlash takeup during guiding at <= 1X                          Option

// TRACKING BEHAVIOUR ---------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration-Mount#TRACKING
#define TRACK_AUTOSTART               OFF //    OFF, ON Start with tracking enabled.                                          Option
#define TRACK_REFRACTION_RATE_DEFAULT  ON //    OFF, ON Start w/atmospheric refract. compensation (RA axis/Eq mounts only.)   Option
#define TRACK_BACKLASH_RATE            25 //     25, n. Where n=2..50 (x sidereal rate) during backlash takeup.               Option
                                          //         Too fast motors stall/gears slam or too slow and sluggish in backlash.

// SLEWING BEHAVIOUR ------------------------------------------ see https://onstep.groups.io/g/main/wiki/Configuration-Mount#SLEWING
#define SLEW_RATE_BASE_DESIRED        1.0 //    1.0, n. Desired slew rate in deg/sec. Adjustable at run-time from            <-Req'd
                                          //         1/2 to 2x this rate, and as MCU performace considerations require.
#define SLEW_RATE_MEMORY              OFF //    OFF, ON Remembers rates set across power cycles.                              Option
#define SLEW_ACCELERATION_DIST        5.0 //    5.0, n, (degrees.) Approx. distance for acceleration (and deceleration.)      Adjust
#define SLEW_RAPID_STOP_DIST          2.5 //    2.0, n, (degrees.) Approx. distance required to stop when a slew              Adjust
                                          //         is aborted or a limit is exceeded.

// PIER SIDE BEHAVIOUR -------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration---Mount#SYNCING
#define MFLIP_SKIP_HOME               OFF //    OFF, ON Goto directly to the destination without visiting home position.      Option
#define MFLIP_PAUSE_HOME_MEMORY       OFF //    OFF, ON Remember meridian flip pause at home setting across power cycles.     Option
#define MFLIP_AUTOMATIC_MEMORY        OFF //    OFF, ON Remember automatic meridian flip setting across power cycles.         Option

#define PIER_SIDE_SYNC_CHANGE_SIDES   OFF //    OFF, ON Allows sync to change pier side, for GEM mounts.                      Option
#define PIER_SIDE_PREFERRED_DEFAULT  BEST //   BEST, Stays on current side if possible. EAST or WEST switch if possible.      Option

// PARKING BEHAVIOUR ------------------------------------------ see https://onstep.groups.io/g/main/wiki/Configuration-Mount#PARKING
#define STRICT_PARKING                OFF //    OFF, ON Un-parking is only allowed if successfully parked.                    Option

// MOTION CONTROL ---------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration-Mount#MOTION
#define STEP_WAVE_FORM             SQUARE // SQUARE, PULSE Step signal wave form faster rates. SQUARE best signal integrity.  Adjust

// Stepper driver models (also see ~/OnStep/src/sd_drivers/Models.h for additional infrequently used models and more info.):
// A4988, DRV8825, LV8729, S109, SSS TMC2209*, TMC2130* **, and TMC5160* ***
// * = add _QUIET (stealthChop tracking) for example "TMC2130_QUIET"
// ** = SSS TMC2130 if you choose to set stepper driver current (in mA) set Vref pot. 2.5V instead of by motor current as usual.
// *** = SSS TMC5160 you must set stepper driver current (in mA) w/ #define AXISn_TMC_IRUN (IHOLD, etc.)

// Settings for driver Microsteps, IRUN, Reverse, Limit Min, and Limit Max are stored in NV (EEPROM.) These runtime settings
// can be changed (or reverted to the defaults below) from the SmartWebServer's Config webpage.  If runtime axis settings are
// enabled changes to these settings below may be ignored as runtime settings from NV (EEPROM) are used instead.

// AXIS1 RA/AZM
// see https://onstep.groups.io/g/main/wiki/Configuration-Mount#AXIS1
#define AXIS1_STEPS_PER_DEGREE     6400.0 //  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 //      0, n. Number steps per worm rotation (PEC Eq mode only, 0 disables PEC.)   <-Req'd
                                          //         n = (AXIS1_STEPS_PER_DEGREE*360)/reduction_final_stage

#define AXIS1_DRIVER_MODEL         LV8729 //    OFF, (See above.) Stepper driver model.                                      <-Often
#define AXIS1_DRIVER_MICROSTEPS        16 //    OFF, n. Microstep mode when tracking.                                        <-Often
#define AXIS1_DRIVER_MICROSTEPS_GOTO  OFF //    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             OFF //    OFF, n, (mA.) Current during tracking, appropriate for stepper/driver/etc.    Option
#define AXIS1_DRIVER_IGOTO            OFF //    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/Configuration-Mount#AXIS2
#define AXIS2_STEPS_PER_DEGREE     6400.0 //  12800, n. Number of steps per degree:                                          <-Req'd
                                          //         n = (stepper_steps * micro_steps * overall_gear_reduction)/360.0

#define AXIS2_DRIVER_MODEL         LV8729 //    OFF, (See above.) Stepper driver model.                                      <-Often
#define AXIS2_DRIVER_MICROSTEPS        16 //    OFF, n. Microstep mode when tracking.                                        <-Often
#define AXIS2_DRIVER_MICROSTEPS_GOTO  OFF //    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             OFF //    OFF, n, (mA.) Current during tracking, appropriate for stepper/driver/etc.    Option
#define AXIS2_DRIVER_IGOTO            OFF //    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

// AXIS3 ROTATOR
// see https://onstep.groups.io/g/main/wiki/Configuration-Rotator-and-Focusers#AXIS3
#define ROTATOR                       OFF //    OFF, ON to enable the rotator (or de-rotator for ALTAZM mounts.)              Option
#define AXIS3_STEPS_PER_DEGREE       64.0 //   64.0, n. Number of steps per degree for rotator/de-rotator.                    Adjust
                                          //         Alt/Az de-rotation: n = (num_circumference_pixels * 2)/360, minimum
#define AXIS3_SLEW_RATE_DESIRED       1.0 //    1.0, n, (degrees/second) Maximum speed depends on processor.                  Adjust

#define AXIS3_DRIVER_MODEL            OFF //    OFF, TMC2130, TMC5160. Leave OFF for all drivers models except these.         Option
#define AXIS3_DRIVER_MICROSTEPS       OFF //    OFF, n. Microstep mode when tracking.                   For TMC2130, TMC5160. Option
#define AXIS3_DRIVER_IHOLD            OFF //    OFF, n, (mA.) Current standstill. OFF uses IRUN/2.0.                  "       Option
#define AXIS3_DRIVER_IRUN             OFF //    OFF, n, (mA.) Current tracking, appropriate for stepper/driver/etc.   "       Option
#define AXIS3_DRIVER_POWER_DOWN       OFF //    OFF, ON Powers off the motor at stand-still.                                  Option
#define AXIS3_DRIVER_REVERSE          OFF //    OFF, ON Reverses movement direction, or reverse wiring instead to correct.    Option

#define AXIS3_LIMIT_MIN              -180 //   -180, n. Where n=-360..0 (degrees.) Minimum allowed rotator angle.             Infreq
#define AXIS3_LIMIT_MAX               180 //    180, n. Where n=0..360 (degrees.) Maximum allowed rotator angle.              Infreq

// AXIS4 FOCUSER 1
// see https://onstep.groups.io/g/main/wiki/Configuration-Rotator-and-Focusers#AXIS4
#define FOCUSER1                      OFF //    OFF, ON to enable this focuser.                                               Option
#define AXIS4_STEPS_PER_MICRON        0.5 //    0.5, n. Steps per micrometer. Figure this out by testing or other means.      Adjust
#define AXIS4_SLEW_RATE_DESIRED       500 //    500, n, Where n=200..5000 (um/s.) Max microns/second. In DC mode, max pwr %   Adjust

#define AXIS4_DRIVER_MODEL            OFF //    OFF, TMC2130, TMC5160. Leave OFF for all drivers models except these.         Option
#define AXIS4_DRIVER_MICROSTEPS       OFF //    OFF, n. Microstep mode when tracking.                   For TMC2130, TMC5160. Option
#define AXIS4_DRIVER_IHOLD            OFF //    OFF, n, (mA.) Current standstill. OFF uses IRUN/2.0.                  "       Option
#define AXIS4_DRIVER_IRUN             OFF //    OFF, n, (mA.) Current tracking, appropriate for stepper/driver/etc.   "       Option
#define AXIS4_DRIVER_POWER_DOWN       OFF //    OFF, ON Powers off the motor at stand-still.                                  Option
#define AXIS4_DRIVER_REVERSE          OFF //    OFF, ON Reverses movement direction, or reverse wiring instead to correct.    Option
#define AXIS4_DRIVER_DC_MODE          OFF //    OFF, ON for pwm dc motor control on stepper driver outputs.                   Option

#define AXIS4_LIMIT_MIN_RATE           50 //     50, n. Where n=1..1000 (um/s.) Minimum microns/second. In DC mode, min pwr.  Adjust
#define AXIS4_LIMIT_MIN                 0 //      0, n. Where n=0..500 (millimeters.) Minimum allowed position.               Adjust
#define AXIS4_LIMIT_MAX                50 //     50, n. Where n=0..500 (millimeters.) Maximum allowed position.               Adjust

// AXIS5 FOCUSER 2
// see https://onstep.groups.io/g/main/wiki/Configuration-Rotator-and-Focusers#AXIS5
#define FOCUSER2                      OFF //    OFF, ON to enable this focuser.                                               Option
#define AXIS5_STEPS_PER_MICRON        0.5 //    0.5, n. Steps per micrometer. Figure this out by testing or other means.      Adjust
#define AXIS5_SLEW_RATE_DESIRED       500 //    500, n, Where n=200..5000 (um/s.) Max microns/second. In DC mode, max pwr %   Adjust

#define AXIS5_DRIVER_MODEL            OFF //    OFF, TMC2130, TMC5160. Leave OFF for all drivers models except these.         Option
#define AXIS5_DRIVER_MICROSTEPS       OFF //    OFF, n. Microstep mode when tracking.                   For TMC2130, TMC5160. Option
#define AXIS5_DRIVER_IHOLD            OFF //    OFF, n, (mA.) Current standstill. OFF uses IRUN/2.0.                  "       Option
#define AXIS5_DRIVER_IRUN             OFF //    OFF, n, (mA.) Current tracking, appropriate for stepper/driver/etc.   "       Option
#define AXIS5_DRIVER_POWER_DOWN       OFF //    OFF, ON Powers off the motor at stand-still.                                  Option
#define AXIS5_DRIVER_REVERSE          OFF //    OFF, ON Reverses movement direction, or reverse wiring instead to correct.    Option
#define AXIS5_DRIVER_DC_MODE          OFF //    OFF, DRV8825 for pwm dc motor control on stepper driver outputs.              Option

#define AXIS5_LIMIT_MIN_RATE           50 //     50, n. Where n=1..1000 (um/s.) Minimum microns/second. In DC mode, min pwr.  Adjust
#define AXIS5_LIMIT_MIN                 0 //      0, n. Where n=0..500 (millimeters.) Minimum allowed position.               Adjust
#define AXIS5_LIMIT_MAX                50 //     50, n. Where n=0..500 (millimeters.) Maximum allowed position.               Adjust

// AUXILIARY FEATURE CONTROL ------------------------------ see https://onstep.groups.io/g/main/wiki/6-ConfigurationMaster#AUXILIARY
// For additional infrequently used _PURPOSE options see Constants.h "various auxillary features"
#define FEATURE_LIST_DS               OFF //    OFF, temporarily set ON to list ds18b20 and ds2413 device serial numbers.     Adjust
#define FEATURE1_NAME          "FEATURE1" // "FE..", Name of feature being controlled.                                        Adjust
#define FEATURE1_PURPOSE              OFF //    OFF, SWITCH, ANALOG_OUT, DEW_HEATER, etc.                                     Option
#define FEATURE1_TEMP                 OFF //    OFF, DS1820, n. Where n is the ds18b20 s/n for DEW_HEATER temperature.        Adjust
#define FEATURE1_PIN                  OFF //    OFF, AUX, DS2413, n. Where n is ds2413 s/n (gpio0) or n=0 to 255 (pin#.)      Adjust
#define FEATURE1_DEFAULT_VALUE        OFF //    OFF, ON, n. Where n=0..255 for ANALOG_OUT purpose.                            Adjust
#define FEATURE2_NAME          "FEATURE2" // "FE..", Name of feature being controlled.                                        Adjust
#define FEATURE2_PURPOSE              OFF //    OFF, SWITCH, ANALOG_OUT, DEW_HEATER, etc.                                     Option
#define FEATURE2_TEMP                 OFF //    OFF, DS1820, n. Where n is the ds18b20 s/n for DEW_HEATER temperature.        Adjust
#define FEATURE2_PIN                  OFF //    OFF, AUX, CHAIN (ds2413 gpio1,) n. Where n=0 to 255 (pin#.)                   Adjust
#define FEATURE2_DEFAULT_VALUE        OFF //    OFF, ON, n. Where n=0..255 for ANALOG_OUT purpose.                            Adjust
#define FEATURE3_NAME          "FEATURE3" // "FE..", Name of feature being controlled.                                        Adjust
#define FEATURE3_PURPOSE              OFF //    OFF, SWITCH, ANALOG_OUT, DEW_HEATER, etc.                                     Option
#define FEATURE3_TEMP                 OFF //    OFF, DS1820, n. Where n is the ds18b20 s/n for DEW_HEATER temperature.        Adjust
#define FEATURE3_PIN                  OFF //    OFF, AUX, DS2413, n. Where n is ds2413 s/n (gpio0) or n=0 to 255 (pin#.)      Adjust
#define FEATURE3_DEFAULT_VALUE        OFF //    OFF, ON, n. Where n=0..255 for ANALOG_OUT purpose.                            Adjust
#define FEATURE4_NAME          "FEATURE4" // "FE..", Name of feature being controlled.                                        Adjust
#define FEATURE4_PURPOSE              OFF //    OFF, SWITCH, ANALOG_OUT, DEW_HEATER, etc.                                     Option
#define FEATURE4_TEMP                 OFF //    OFF, DS1820, n. Where n is the ds18b20 s/n for DEW_HEATER temperature.        Adjust
#define FEATURE4_PIN                  OFF //    OFF, AUX, CHAIN (ds2413 gpio1,) n. Where n=0 to 255 (pin#.)                   Adjust
#define FEATURE4_DEFAULT_VALUE        OFF //    OFF, ON, n. Where n=0..255 for ANALOG_OUT purpose.                            Adjust
#define FEATURE5_NAME          "FEATURE5" // "FE..", Name of feature being controlled.                                        Adjust
#define FEATURE5_PURPOSE              OFF //    OFF, SWITCH, ANALOG_OUT, DEW_HEATER, etc.                                     Option
#define FEATURE5_TEMP                 OFF //    OFF, DS1820, n. Where n is the ds18b20 s/n for DEW_HEATER temperature.        Adjust
#define FEATURE5_PIN                  OFF //    OFF, AUX, DS2413, n. Where n is ds2413 s/n (gpio0) or n=0 to 255 (pin#.)      Adjust
#define FEATURE5_DEFAULT_VALUE        OFF //    OFF, ON, n. Where n=0..255 for ANALOG_OUT purpose.                            Adjust
#define FEATURE6_NAME          "FEATURE6" // "FE..", Name of feature being controlled.                                        Adjust
#define FEATURE6_PURPOSE              OFF //    OFF, SWITCH, ANALOG_OUT, DEW_HEATER, etc.                                     Option
#define FEATURE6_TEMP                 OFF //    OFF, DS1820, n. Where n is the ds18b20 s/n for DEW_HEATER temperature.        Adjust
#define FEATURE6_PIN                  OFF //    OFF, AUX, CHAIN (ds2413 gpio1,) n. Where n=0 to 255 (pin#.)                   Adjust
#define FEATURE6_DEFAULT_VALUE        OFF //    OFF, ON, n. Where n=0..255 for ANALOG_OUT purpose.                            Adjust
#define FEATURE7_NAME          "FEATURE7" // "FE..", Name of feature being controlled.                                        Adjust
#define FEATURE7_PURPOSE              OFF //    OFF, SWITCH, ANALOG_OUT, DEW_HEATER, etc.                                     Option
#define FEATURE7_TEMP                 OFF //    OFF, DS1820, n. Where n is the ds18b20 s/n for DEW_HEATER temperature.        Adjust
#define FEATURE7_PIN                  OFF //    OFF, AUX, DS2413, n. Where n is ds2413 s/n (gpio0) or n=0 to 255 (pin#.)      Adjust
#define FEATURE7_DEFAULT_VALUE        OFF //    OFF, ON, n. Where n=0..255 for ANALOG_OUT purpose.                            Adjust
#define FEATURE8_NAME          "FEATURE8" // "FE..", Name of feature being controlled.                                        Adjust
#define FEATURE8_PURPOSE              OFF //    OFF, SWITCH, ANALOG_OUT, DEW_HEATER, etc.                                     Option
#define FEATURE8_TEMP                 OFF //    OFF, DS1820, n. Where n is the ds18b20 s/n for DEW_HEATER temperature.        Adjust
#define FEATURE8_PIN                  OFF //    OFF, AUX, CHAIN (ds2413 gpio1,) n. Where n=0 to 255 (pin#.)                   Adjust
#define FEATURE8_DEFAULT_VALUE        OFF //    OFF, ON, n. Where n=0..255 for ANALOG_OUT purpose.                            Adjust

// THAT'S IT FOR USER CONFIGURATION!

// -------------------------------------------------------------------------------------------------------------------------
#define FileVersionConfig 4

Virus-free. www.avg.com

On Sat, Oct 2, 2021 at 7:57 AM Otto <olpar007@...> wrote:
On Fri, Oct 1, 2021 at 09:26 AM, Martin Chapman wrote:
Did you set location, time and date first?
Take care and stay safe.
Mart.
Did you set the UTC offset to the correct value?
What about the jumper configuration that corresponds to your microstep value?

 

 


Dave Schwartz
 

Although this configuration should work I do have multiple suggestions:

With the STM32 BP PCB and DS3231, PPS_SENSE can be ON because the PCB has the SQW pin from the DS3231 connected to the processor for just this reason.

You should be able to get a higher slew speed out of it. With My STM32 BP, LV8279 drivers and NEMA17 400-step 0.9A motors I have SLEW_RATE_BASE_DESIRED set to 2.0. However, I also have STEP_WAVEFORM set to PULSE and (for both axes) DRIVER_MICROSTEPS set to 64 and DRIVER_MICROSTEPS_GOTO set to 4. You'll have to recalculate STEPS_PER_DEGREE because my value won't work for you since I have GR1 = 3.0 instead of your 2.5. Otherwise you should get very similar performance since my mount is a generic EQ5 with 144 tooth worms very like your Vixen.

On 2021-10-05 4:14 a.m., Alexandru Savin wrote:
thanks for all the messages, i've compiled a new 4.24 version of the config.h (indeed i was on the old one)
any last thought before i make the update on controller?
// ---------------------------------------------------------------------------------------------------------------------------------
// Configuration for OnStep

/*
 *          For more information on setting OnStep up see http://www.stellarjourney.com/index.php?r=site/equipment_onstep
 *                      and join the OnStep Groups.io at https://groups.io/g/onstep
 *
 *           *** Read the compiler warnings and errors, they are there to help guard against invalid configurations ***
*/

// ---------------------------------------------------------------------------------------------------------------------------------
// ADJUST THE FOLLOWING TO CONFIGURE YOUR CONTROLLER FEATURES ----------------------------------------------------------------------
// <-Req'd = always must set, <-Often = usually must set, Option = optional, Adjust = adjust as req'd, Infreq = infrequently changed

// PINMAP ------------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration-Controller#PINMAP
//   *** See the matching Pins.xxx.h file for your setup (found by looking in src/pinmaps/Models.h) with detailed information ***
//   *** to be sure it matches your wiring.            *** USE AT YOUR OWN RISK *** ***

//      Parameter Name              Value   Default  Notes    Hint
#define PINMAP                        STM32Blue //    OFF, Choose from: MksGenL2, MiniPCB2, MaxPCB2, MaxESP3, CNC3, STM32Blue,     <-Req'd
                                          //         MaxSTM3, FYSETC_S6_2, etc.  Other boards and more info. in Constants.h

// SERIAL PORT COMMAND CHANNELS --------------------------- see https://onstep.groups.io/g/main/wiki/Configuration-Controller#SERIAL
#define SERIAL_A_BAUD_DEFAULT        9600 //   9600, n. Where n=9600,19200,57600,115200 (common baud rates.)  Infreq
#define SERIAL_B_BAUD_DEFAULT        9600 //   9600, n. See (src/HAL/) for your MCU Serial port # etc.    Option
#define SERIAL_B_ESP_FLASHING         OFF //    OFF, ON Upload ESP8266 WiFi firmware through SERIAL_B with :ESPFLASH# cmd.  Option
#define SERIAL_C_BAUD_DEFAULT         OFF //    OFF, n, ON for ESP32 Bluetooth. Option
#define SERIAL_C_BLUETOOTH_NAME  "OnStep" // "On..", Bluetooth device name for ESP32. Option

// MOUNT TYPE ----------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration-Controller#MOUNT_TYPE
#define MOUNT_TYPE                    GEM //    GEM, GEM for German Equatorial, FORK for Equatorial Fork, or ALTAZM  <-Req'd
                                          //         Dobsonian etc. mounts. GEM Eq mounts perform meridian flips.

// USER FEEDBACK ----------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration-Controller#USER_FEEDBACK
#define LED_STATUS                     ON //     ON, Blinks w/sidereal tracking otherwise steady on indicates activity.     Option
#define LED_STATUS2                   OFF //    OFF, ON Blinks 1s interval w/PPS sync, steady for gotos, off if in standby. Option
#define LED_RETICLE                   OFF //    OFF, n. Where n=0..255 (0..100%) activates feature sets default brightness.   Option
#define BUZZER                        OFF //    OFF, ON, n. Where n=100..6000 (Hz freq.) for piezo speaker. ON for buzzer.    Option
#define BUZZER_STATE_DEFAULT          OFF //    OFF, ON Start with piezo buzzer/speaker enabled.  Option

// TIME AND LOCATION ----------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration-Controller#TLS
#define TIME_LOCATION_SOURCE          DS3231 //    OFF, DS3231 (I2c,) DS3234 (Spi,) TEENSY (T3.2 internal,) or GPS source.     Option
                                          //         Provides Date/Time, and if available, PPS & Lat/Long also.

// SENSORS ----------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration-Controller#SENSORS
// * = also supports ON_PULLUP or ON_PULLDOWN to activate MCU internal resistors if present.
#define WEATHER                       OFF //    OFF, BME280 (I2C 0x77,) BME280_0x76, BME280_SPI (see pinmap for CS.)    Option
                                          //         BMP280 (I2C 0x77,) BMP280_0x76, BMP280_SPI (see pinmap for CS.)
                                          //         BME280 or BMP280 for temperature, pressure.  BME280 for humidity also.

#define TELESCOPE_TEMPERATURE         OFF //    OFF, DS1820, n. Where n is the DS1820 s/n for focuser temperature.    Adjust

#define HOME_SENSE                    OFF //    OFF, ON*. Automatically detect and use home switches. For GEM mode only.      Option
#define HOME_SENSE_STATE_AXIS1       HIGH //   HIGH, State when clockwise of home position, as seen from front. Rev. w/LOW.   Adjust
#define HOME_SENSE_STATE_AXIS2       HIGH //   HIGH, State when clockwise of home position, as seen from above. Rev. w/LOW.   Adjust
                                          //         Signal state reverses when travel moves ccw past the home position.

#define LIMIT_SENSE                   OFF //    OFF, ON* limit sense switch close to Gnd stops gotos and/or tracking. Option
#define LIMIT_SENSE_STATE             LOW //    LOW, For NO (normally open) switches, HIGH for NC (normally closed.)    Adjust

#define PEC_SENSE                     OFF //    OFF, ON*, n, sense digital OR n=0 to 1023 (0 to 3.3V or 5V) analog threshold. Option
#define PEC_SENSE_STATE              HIGH //   HIGH, Senses the PEC signal rising edge or use LOW for falling edge.     Adjust
                                          //         Ignored in ALTAZM mode.

#define PPS_SENSE                     OFF //    OFF, ON* enables PPS (pulse per second,) senses signal rising edge.       Option
                                          //         Better tracking accuracy especially for Mega2560's w/ceramic resonator.

// ST4 INTERFACE --------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration-Controller#ST4
// *** It is up to you to verify the interface meets the electrical specifications of any connected device, use at your own risk ***
#define ST4_INTERFACE                 OFF //    OFF, ON, ON_PULLUP enables interface. <= 1X guides unless hand control mode.  Option
                                          //         During goto btn press: aborts slew or continue meridian flip pause home
#define ST4_HAND_CONTROL              OFF //    OFF, ON for hand controller special features and SHC support.     Option
                                          //         Hold [E]+[W] btns
2s: Guide rate   [E]-  [W]+  [N] trk on/off [S] sync
                                          //         Hold [N]+[S] btns
2s: Usr cat item [E]-  [W]+  [N] goto [S] snd on/off
#define ST4_HAND_CONTROL_FOCUSER      OFF //    OFF, ON alternate to above: Focuser move [E]f1 [W]f2 [N]-     [S]+        Option

// GUIDING BEHAVIOUR ------------------------------------------ see https://onstep.groups.io/g/main/wiki/Configuration-Mount#GUIDING
#define GUIDE_TIME_LIMIT                0 //      0, No guide time limit. Or n. Where n=1..120 second time limit guard.   Adjust
#define GUIDE_DISABLE_BACKLASH        OFF //    OFF, Disable backlash takeup during guiding at <= 1X      Option

// TRACKING BEHAVIOUR ---------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration-Mount#TRACKING
#define TRACK_AUTOSTART               OFF //    OFF, ON Start with tracking enabled.  Option
#define TRACK_REFRACTION_RATE_DEFAULT ON //    OFF, ON Start w/atmospheric refract. compensation (RA axis/Eq mounts only.)   Option
#define TRACK_BACKLASH_RATE            25 //     25, n. Where n=2..50 (x sidereal rate) during backlash takeup.   Option
                                          //         Too fast motors stall/gears slam or too slow and sluggish in backlash.

// SLEWING BEHAVIOUR ------------------------------------------ see https://onstep.groups.io/g/main/wiki/Configuration-Mount#SLEWING
#define SLEW_RATE_BASE_DESIRED        1.0 //    1.0, n. Desired slew rate in deg/sec. Adjustable at run-time from        <-Req'd
                                          //         1/2 to 2x this rate, and as MCU performace considerations require.
#define SLEW_RATE_MEMORY              OFF //    OFF, ON Remembers rates set across power cycles.        Option
#define SLEW_ACCELERATION_DIST        5.0 //    5.0, n, (degrees.) Approx. distance for acceleration (and deceleration.)      Adjust
#define SLEW_RAPID_STOP_DIST          2.5 //    2.0, n, (degrees.) Approx. distance required to stop when a slew        Adjust
                                          //         is aborted or a limit is exceeded.

// PIER SIDE BEHAVIOUR -------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration---Mount#SYNCING
#define MFLIP_SKIP_HOME               OFF //    OFF, ON Goto directly to the destination without visiting home position.    Option
#define MFLIP_PAUSE_HOME_MEMORY       OFF //    OFF, ON Remember meridian flip pause at home setting across power cycles.     Option
#define MFLIP_AUTOMATIC_MEMORY        OFF //    OFF, ON Remember automatic meridian flip setting across power cycles.         Option

#define PIER_SIDE_SYNC_CHANGE_SIDES   OFF //    OFF, ON Allows sync to change pier side, for GEM mounts.  Option
#define PIER_SIDE_PREFERRED_DEFAULT  BEST //   BEST, Stays on current side if possible. EAST or WEST switch if possible.  Option

// PARKING BEHAVIOUR ------------------------------------------ see https://onstep.groups.io/g/main/wiki/Configuration-Mount#PARKING
#define STRICT_PARKING                OFF //    OFF, ON Un-parking is only allowed if successfully parked.        Option

// MOTION CONTROL ---------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration-Mount#MOTION
#define STEP_WAVE_FORM             SQUARE // SQUARE, PULSE Step signal wave form faster rates. SQUARE best signal integrity.  Adjust

// Stepper driver models (also see ~/OnStep/src/sd_drivers/Models.h for additional infrequently used models and more info.):
// A4988, DRV8825, LV8729, S109, SSS TMC2209*, TMC2130* **, and TMC5160* ***
// * = add _QUIET (stealthChop tracking) for example "TMC2130_QUIET"
// ** = SSS TMC2130 if you choose to set stepper driver current (in mA) set Vref pot. 2.5V instead of by motor current as usual.
// *** = SSS TMC5160 you must set stepper driver current (in mA) w/ #define AXISn_TMC_IRUN (IHOLD, etc.)

// Settings for driver Microsteps, IRUN, Reverse, Limit Min, and Limit Max are stored in NV (EEPROM.) These runtime settings
// can be changed (or reverted to the defaults below) from the SmartWebServer's Config webpage.  If runtime axis settings are
// enabled changes to these settings below may be ignored as runtime settings from NV (EEPROM) are used instead.

// AXIS1 RA/AZM
// see https://onstep.groups.io/g/main/wiki/Configuration-Mount#AXIS1
#define AXIS1_STEPS_PER_DEGREE    6400.0 //  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 //      0, n. Number steps per worm rotation (PEC Eq mode only, 0 disables PEC.) <-Req'd
                                          //         n = (AXIS1_STEPS_PER_DEGREE*360)/reduction_final_stage

#define AXIS1_DRIVER_MODEL            LV8729 //    OFF, (See above.) Stepper driver model.      <-Often
#define AXIS1_DRIVER_MICROSTEPS       16 //    OFF, n. Microstep mode when tracking.        <-Often
#define AXIS1_DRIVER_MICROSTEPS_GOTO  OFF //    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             OFF //    OFF, n, (mA.) Current during tracking, appropriate for stepper/driver/etc.  Option
#define AXIS1_DRIVER_IGOTO            OFF //    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/Configuration-Mount#AXIS2
#define AXIS2_STEPS_PER_DEGREE    6400.0 //  12800, n. Number of steps per degree:  <-Req'd
                                          //         n = (stepper_steps * micro_steps * overall_gear_reduction)/360.0

#define AXIS2_DRIVER_MODEL            LV8729 //    OFF, (See above.) Stepper driver model.      <-Often
#define AXIS2_DRIVER_MICROSTEPS       16 //    OFF, n. Microstep mode when tracking.        <-Often
#define AXIS2_DRIVER_MICROSTEPS_GOTO  OFF //    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             OFF //    OFF, n, (mA.) Current during tracking, appropriate for stepper/driver/etc.  Option
#define AXIS2_DRIVER_IGOTO            OFF //    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

// AXIS3 ROTATOR
// see https://onstep.groups.io/g/main/wiki/Configuration-Rotator-and-Focusers#AXIS3
#define ROTATOR                       OFF //    OFF, ON to enable the rotator (or de-rotator for ALTAZM mounts.)      Option
#define AXIS3_STEPS_PER_DEGREE       64.0 //   64.0, n. Number of steps per degree for rotator/de-rotator.  Adjust
                                          //         Alt/Az de-rotation: n = (num_circumference_pixels * 2)/360, minimum
#define AXIS3_SLEW_RATE_DESIRED       1.0 //    1.0, n, (degrees/second) Maximum speed depends on processor.        Adjust

#define AXIS3_DRIVER_MODEL            OFF //    OFF, TMC2130, TMC5160. Leave OFF for all drivers models except these.   Option
#define AXIS3_DRIVER_MICROSTEPS       OFF //    OFF, n. Microstep mode when tracking.                   For TMC2130, TMC5160. Option
#define AXIS3_DRIVER_IHOLD            OFF //    OFF, n, (mA.) Current standstill. OFF uses IRUN/2.0.                  "   Option
#define AXIS3_DRIVER_IRUN             OFF //    OFF, n, (mA.) Current tracking, appropriate for stepper/driver/etc.   "   Option
#define AXIS3_DRIVER_POWER_DOWN       OFF //    OFF, ON Powers off the motor at stand-still.  Option
#define AXIS3_DRIVER_REVERSE          OFF //    OFF, ON Reverses movement direction, or reverse wiring instead to correct.    Option

#define AXIS3_LIMIT_MIN              -180 //   -180, n. Where n=-360..0 (degrees.) Minimum allowed rotator angle.   Infreq
#define AXIS3_LIMIT_MAX               180 //    180, n. Where n=0..360 (degrees.) Maximum allowed rotator angle.  Infreq

// AXIS4 FOCUSER 1
// see https://onstep.groups.io/g/main/wiki/Configuration-Rotator-and-Focusers#AXIS4
#define FOCUSER1                      OFF //    OFF, ON to enable this focuser.     Option
#define AXIS4_STEPS_PER_MICRON        0.5 //    0.5, n. Steps per micrometer. Figure this out by testing or other means.  Adjust
#define AXIS4_SLEW_RATE_DESIRED       500 //    500, n, Where n=200..5000 (um/s.) Max microns/second. In DC mode, max pwr %   Adjust

#define AXIS4_DRIVER_MODEL            OFF //    OFF, TMC2130, TMC5160. Leave OFF for all drivers models except these.   Option
#define AXIS4_DRIVER_MICROSTEPS       OFF //    OFF, n. Microstep mode when tracking.                   For TMC2130, TMC5160. Option
#define AXIS4_DRIVER_IHOLD            OFF //    OFF, n, (mA.) Current standstill. OFF uses IRUN/2.0.                  "   Option
#define AXIS4_DRIVER_IRUN             OFF //    OFF, n, (mA.) Current tracking, appropriate for stepper/driver/etc.   "   Option
#define AXIS4_DRIVER_POWER_DOWN       OFF //    OFF, ON Powers off the motor at stand-still.  Option
#define AXIS4_DRIVER_REVERSE          OFF //    OFF, ON Reverses movement direction, or reverse wiring instead to correct.    Option
#define AXIS4_DRIVER_DC_MODE          OFF //    OFF, ON for pwm dc motor control on stepper driver outputs.     Option

#define AXIS4_LIMIT_MIN_RATE           50 //     50, n. Where n=1..1000 (um/s.) Minimum microns/second. In DC mode, min pwr.  Adjust
#define AXIS4_LIMIT_MIN                 0 //      0, n. Where n=0..500 (millimeters.) Minimum allowed position.   Adjust
#define AXIS4_LIMIT_MAX                50 //     50, n. Where n=0..500 (millimeters.) Maximum allowed position.   Adjust

// AXIS5 FOCUSER 2
// see https://onstep.groups.io/g/main/wiki/Configuration-Rotator-and-Focusers#AXIS5
#define FOCUSER2                      OFF //    OFF, ON to enable this focuser.     Option
#define AXIS5_STEPS_PER_MICRON        0.5 //    0.5, n. Steps per micrometer. Figure this out by testing or other means.  Adjust
#define AXIS5_SLEW_RATE_DESIRED       500 //    500, n, Where n=200..5000 (um/s.) Max microns/second. In DC mode, max pwr %   Adjust

#define AXIS5_DRIVER_MODEL            OFF //    OFF, TMC2130, TMC5160. Leave OFF for all drivers models except these.   Option
#define AXIS5_DRIVER_MICROSTEPS       OFF //    OFF, n. Microstep mode when tracking.                   For TMC2130, TMC5160. Option
#define AXIS5_DRIVER_IHOLD            OFF //    OFF, n, (mA.) Current standstill. OFF uses IRUN/2.0.                  "   Option
#define AXIS5_DRIVER_IRUN             OFF //    OFF, n, (mA.) Current tracking, appropriate for stepper/driver/etc.   "   Option
#define AXIS5_DRIVER_POWER_DOWN       OFF //    OFF, ON Powers off the motor at stand-still.  Option
#define AXIS5_DRIVER_REVERSE          OFF //    OFF, ON Reverses movement direction, or reverse wiring instead to correct.    Option
#define AXIS5_DRIVER_DC_MODE          OFF //    OFF, DRV8825 for pwm dc motor control on stepper driver outputs.    Option

#define AXIS5_LIMIT_MIN_RATE           50 //     50, n. Where n=1..1000 (um/s.) Minimum microns/second. In DC mode, min pwr.  Adjust
#define AXIS5_LIMIT_MIN                 0 //      0, n. Where n=0..500 (millimeters.) Minimum allowed position.   Adjust
#define AXIS5_LIMIT_MAX                50 //     50, n. Where n=0..500 (millimeters.) Maximum allowed position.   Adjust

// AUXILIARY FEATURE CONTROL ------------------------------ see https://onstep.groups.io/g/main/wiki/6-ConfigurationMaster#AUXILIARY
// For additional infrequently used _PURPOSE options see Constants.h "various auxillary features"
#define FEATURE_LIST_DS               OFF //    OFF, temporarily set ON to list ds18b20 and ds2413 device serial numbers.     Adjust
#define FEATURE1_NAME          "FEATURE1" // "FE..", Name of feature being controlled.    Adjust
#define FEATURE1_PURPOSE              OFF //    OFF, SWITCH, ANALOG_OUT, DEW_HEATER, etc.   Option
#define FEATURE1_TEMP                 OFF //    OFF, DS1820, n. Where n is the ds18b20 s/n for DEW_HEATER temperature.    Adjust
#define FEATURE1_PIN                  OFF //    OFF, AUX, DS2413, n. Where n is ds2413 s/n (gpio0) or n=0 to 255 (pin#.)      Adjust
#define FEATURE1_DEFAULT_VALUE        OFF //    OFF, ON, n. Where n=0..255 for ANALOG_OUT purpose.    Adjust
#define FEATURE2_NAME          "FEATURE2" // "FE..", Name of feature being controlled.    Adjust
#define FEATURE2_PURPOSE              OFF //    OFF, SWITCH, ANALOG_OUT, DEW_HEATER, etc.   Option
#define FEATURE2_TEMP                 OFF //    OFF, DS1820, n. Where n is the ds18b20 s/n for DEW_HEATER temperature.    Adjust
#define FEATURE2_PIN                  OFF //    OFF, AUX, CHAIN (ds2413 gpio1,) n. Where n=0 to 255 (pin#.)       Adjust
#define FEATURE2_DEFAULT_VALUE        OFF //    OFF, ON, n. Where n=0..255 for ANALOG_OUT purpose.    Adjust
#define FEATURE3_NAME          "FEATURE3" // "FE..", Name of feature being controlled.    Adjust
#define FEATURE3_PURPOSE              OFF //    OFF, SWITCH, ANALOG_OUT, DEW_HEATER, etc.   Option
#define FEATURE3_TEMP                 OFF //    OFF, DS1820, n. Where n is the ds18b20 s/n for DEW_HEATER temperature.    Adjust
#define FEATURE3_PIN                  OFF //    OFF, AUX, DS2413, n. Where n is ds2413 s/n (gpio0) or n=0 to 255 (pin#.)      Adjust
#define FEATURE3_DEFAULT_VALUE        OFF //    OFF, ON, n. Where n=0..255 for ANALOG_OUT purpose.    Adjust
#define FEATURE4_NAME          "FEATURE4" // "FE..", Name of feature being controlled.    Adjust
#define FEATURE4_PURPOSE              OFF //    OFF, SWITCH, ANALOG_OUT, DEW_HEATER, etc.   Option
#define FEATURE4_TEMP                 OFF //    OFF, DS1820, n. Where n is the ds18b20 s/n for DEW_HEATER temperature.    Adjust
#define FEATURE4_PIN                  OFF //    OFF, AUX, CHAIN (ds2413 gpio1,) n. Where n=0 to 255 (pin#.)       Adjust
#define FEATURE4_DEFAULT_VALUE        OFF //    OFF, ON, n. Where n=0..255 for ANALOG_OUT purpose.    Adjust
#define FEATURE5_NAME          "FEATURE5" // "FE..", Name of feature being controlled.    Adjust
#define FEATURE5_PURPOSE              OFF //    OFF, SWITCH, ANALOG_OUT, DEW_HEATER, etc.   Option
#define FEATURE5_TEMP                 OFF //    OFF, DS1820, n. Where n is the ds18b20 s/n for DEW_HEATER temperature.    Adjust
#define FEATURE5_PIN                  OFF //    OFF, AUX, DS2413, n. Where n is ds2413 s/n (gpio0) or n=0 to 255 (pin#.)      Adjust
#define FEATURE5_DEFAULT_VALUE        OFF //    OFF, ON, n. Where n=0..255 for ANALOG_OUT purpose.    Adjust
#define FEATURE6_NAME          "FEATURE6" // "FE..", Name of feature being controlled.    Adjust
#define FEATURE6_PURPOSE              OFF //    OFF, SWITCH, ANALOG_OUT, DEW_HEATER, etc.   Option
#define FEATURE6_TEMP                 OFF //    OFF, DS1820, n. Where n is the ds18b20 s/n for DEW_HEATER temperature.    Adjust
#define FEATURE6_PIN                  OFF //    OFF, AUX, CHAIN (ds2413 gpio1,) n. Where n=0 to 255 (pin#.)       Adjust
#define FEATURE6_DEFAULT_VALUE        OFF //    OFF, ON, n. Where n=0..255 for ANALOG_OUT purpose.    Adjust
#define FEATURE7_NAME          "FEATURE7" // "FE..", Name of feature being controlled.    Adjust
#define FEATURE7_PURPOSE              OFF //    OFF, SWITCH, ANALOG_OUT, DEW_HEATER, etc.   Option
#define FEATURE7_TEMP                 OFF //    OFF, DS1820, n. Where n is the ds18b20 s/n for DEW_HEATER temperature.    Adjust
#define FEATURE7_PIN                  OFF //    OFF, AUX, DS2413, n. Where n is ds2413 s/n (gpio0) or n=0 to 255 (pin#.)      Adjust
#define FEATURE7_DEFAULT_VALUE        OFF //    OFF, ON, n. Where n=0..255 for ANALOG_OUT purpose.    Adjust
#define FEATURE8_NAME          "FEATURE8" // "FE..", Name of feature being controlled.    Adjust
#define FEATURE8_PURPOSE              OFF //    OFF, SWITCH, ANALOG_OUT, DEW_HEATER, etc.  Option
#define FEATURE8_TEMP                 OFF //    OFF, DS1820, n. Where n is the ds18b20 s/n for DEW_HEATER temperature.    Adjust
#define FEATURE8_PIN                  OFF //    OFF, AUX, CHAIN (ds2413 gpio1,) n. Where n=0 to 255 (pin#.)       Adjust
#define FEATURE8_DEFAULT_VALUE        OFF //    OFF, ON, n. Where n=0..255 for ANALOG_OUT purpose.    Adjust

// THAT'S IT FOR USER CONFIGURATION!

// -------------------------------------------------------------------------------------------------------------------------
#define FileVersionConfig 4

<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avg.com <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>


On Sat, Oct 2, 2021 at 7:57 AM Otto <olpar007@...> wrote:

On Fri, Oct 1, 2021 at 09:26 AM, Martin Chapman wrote:

Did you set location, time and date first?
Take care and stay safe.
Mart.

Did you set the UTC offset to the correct value?
What about the jumper configuration that corresponds to your
microstep value?
--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


Alexandru Savin
 

Hello

Seems increasing to 18v the power supply did the trick!!! Also Dec is actually 90 degree not zero on the mount this is why pointed abnormal. I also adjusted the tensioning in the belt. Every thing run smooth now, I can start playing with advanced options as PEC.

 Ps: my friend tested with a LiFePo 12v battery and it works, seems a good power source is mandatory. 

Thanks all for your help
Kind regards
Alex

On Tue, Oct 5, 2021, 17:41 Dave Schwartz <Dave.Schwartz@...> wrote:
Although this configuration should work I do have multiple suggestions:

With the STM32 BP PCB and DS3231, PPS_SENSE can be ON because the PCB
has the SQW pin from the DS3231 connected to the processor for just this
reason.

You should be able to get a higher slew speed out of it. With My STM32
BP, LV8279 drivers and NEMA17 400-step 0.9A motors I have
SLEW_RATE_BASE_DESIRED set to 2.0. However, I also have STEP_WAVEFORM
set to PULSE and (for both axes) DRIVER_MICROSTEPS set to 64 and
DRIVER_MICROSTEPS_GOTO set to 4. You'll have to recalculate
STEPS_PER_DEGREE because my value won't work for you since I have GR1 =
3.0 instead of your 2.5. Otherwise you should get very similar
performance since my mount is a generic EQ5 with 144 tooth worms very
like your Vixen.

On 2021-10-05 4:14 a.m., Alexandru Savin wrote:
> thanks for all the messages, i've compiled a new 4.24 version of the
> config.h (indeed i was on the old one)
> any last thought before i make the update on controller?
> //
> ---------------------------------------------------------------------------------------------------------------------------------
> // Configuration for OnStep
>
> /*
>  *          For more information on setting OnStep up see
> http://www.stellarjourney.com/index.php?r=site/equipment_onstep
>  *                      and join the OnStep Groups.io at
> https://groups.io/g/onstep
>  *
>  *           *** Read the compiler warnings and errors, they are there
> to help guard against invalid configurations ***
> */
>
> //
> ---------------------------------------------------------------------------------------------------------------------------------
> // ADJUST THE FOLLOWING TO CONFIGURE YOUR CONTROLLER FEATURES
> ----------------------------------------------------------------------
> // <-Req'd = always must set, <-Often = usually must set, Option =
> optional, Adjust = adjust as req'd, Infreq = infrequently changed
>
> // PINMAP ------------------------------------------------- see
> https://onstep.groups.io/g/main/wiki/Configuration-Controller#PINMAP
> //   *** See the matching Pins.xxx.h file for your setup (found by
> looking in src/pinmaps/Models.h) with detailed information ***
> //   *** to be sure it matches your wiring.            *** USE AT YOUR
> OWN RISK *** ***
>
> //      Parameter Name              Value   Default  Notes    Hint
> #define PINMAP                        STM32Blue //    OFF, Choose
> from: MksGenL2, MiniPCB2, MaxPCB2, MaxESP3, CNC3, STM32Blue,     <-Req'd
>                                           //         MaxSTM3,
> FYSETC_S6_2, etc.  Other boards and more info. in Constants.h
>
> // SERIAL PORT COMMAND CHANNELS --------------------------- see
> https://onstep.groups.io/g/main/wiki/Configuration-Controller#SERIAL
> #define SERIAL_A_BAUD_DEFAULT        9600 //   9600, n. Where
> n=9600,19200,57600,115200 (common baud rates.)  Infreq
> #define SERIAL_B_BAUD_DEFAULT        9600 //   9600, n. See (src/HAL/)
> for your MCU Serial port # etc.    Option
> #define SERIAL_B_ESP_FLASHING         OFF //    OFF, ON Upload ESP8266
> WiFi firmware through SERIAL_B with :ESPFLASH# cmd.  Option
> #define SERIAL_C_BAUD_DEFAULT         OFF //    OFF, n, ON for ESP32
> Bluetooth. Option
> #define SERIAL_C_BLUETOOTH_NAME  "OnStep" // "On..", Bluetooth device
> name for ESP32. Option
>
> // MOUNT TYPE ----------------------------------------- see
> https://onstep.groups.io/g/main/wiki/Configuration-Controller#MOUNT_TYPE
> #define MOUNT_TYPE                    GEM //    GEM, GEM for German
> Equatorial, FORK for Equatorial Fork, or ALTAZM  <-Req'd
>                                           //         Dobsonian etc.
> mounts. GEM Eq mounts perform meridian flips.
>
> // USER FEEDBACK ----------------------------------- see
> https://onstep.groups.io/g/main/wiki/Configuration-Controller#USER_FEEDBACK
> #define LED_STATUS                     ON //     ON, Blinks w/sidereal
> tracking otherwise steady on indicates activity.     Option
> #define LED_STATUS2                   OFF //    OFF, ON Blinks 1s
> interval w/PPS sync, steady for gotos, off if in standby. Option
> #define LED_RETICLE                   OFF //    OFF, n. Where n=0..255
> (0..100%) activates feature sets default brightness.   Option
> #define BUZZER                        OFF //    OFF, ON, n. Where
> n=100..6000 (Hz freq.) for piezo speaker. ON for buzzer.    Option
> #define BUZZER_STATE_DEFAULT          OFF //    OFF, ON Start with
> piezo buzzer/speaker enabled.  Option
>
> // TIME AND LOCATION ----------------------------------------- see
> https://onstep.groups.io/g/main/wiki/Configuration-Controller#TLS
> #define TIME_LOCATION_SOURCE          DS3231 //    OFF, DS3231 (I2c,)
> DS3234 (Spi,) TEENSY (T3.2 internal,) or GPS source.     Option
>                                           //         Provides
> Date/Time, and if available, PPS & Lat/Long also.
>
> // SENSORS ----------------------------------------------- see
> https://onstep.groups.io/g/main/wiki/Configuration-Controller#SENSORS
> // * = also supports ON_PULLUP or ON_PULLDOWN to activate MCU internal
> resistors if present.
> #define WEATHER                       OFF //    OFF, BME280 (I2C
> 0x77,) BME280_0x76, BME280_SPI (see pinmap for CS.)    Option
>                                           //         BMP280 (I2C
> 0x77,) BMP280_0x76, BMP280_SPI (see pinmap for CS.)
>                                           //         BME280 or BMP280
> for temperature, pressure.  BME280 for humidity also.
>
> #define TELESCOPE_TEMPERATURE         OFF //    OFF, DS1820, n. Where
> n is the DS1820 s/n for focuser temperature.    Adjust
>
> #define HOME_SENSE                    OFF //    OFF, ON*.
> Automatically detect and use home switches. For GEM mode only.      Option
> #define HOME_SENSE_STATE_AXIS1       HIGH //   HIGH, State when
> clockwise of home position, as seen from front. Rev. w/LOW.   Adjust
> #define HOME_SENSE_STATE_AXIS2       HIGH //   HIGH, State when
> clockwise of home position, as seen from above. Rev. w/LOW.   Adjust
>                                           //         Signal state
> reverses when travel moves ccw past the home position.
>
> #define LIMIT_SENSE                   OFF //    OFF, ON* limit sense
> switch close to Gnd stops gotos and/or tracking. Option
> #define LIMIT_SENSE_STATE             LOW //    LOW, For NO (normally
> open) switches, HIGH for NC (normally closed.)    Adjust
>
> #define PEC_SENSE                     OFF //    OFF, ON*, n, sense
> digital OR n=0 to 1023 (0 to 3.3V or 5V) analog threshold. Option
> #define PEC_SENSE_STATE              HIGH //   HIGH, Senses the PEC
> signal rising edge or use LOW for falling edge.     Adjust
>                                           //         Ignored in ALTAZM
> mode.
>
> #define PPS_SENSE                     OFF //    OFF, ON* enables PPS
> (pulse per second,) senses signal rising edge.       Option
>                                           //         Better tracking
> accuracy especially for Mega2560's w/ceramic resonator.
>
> // ST4 INTERFACE --------------------------------------------- see
> https://onstep.groups.io/g/main/wiki/Configuration-Controller#ST4
> // *** It is up to you to verify the interface meets the electrical
> specifications of any connected device, use at your own risk ***
> #define ST4_INTERFACE                 OFF //    OFF, ON, ON_PULLUP
> enables interface. <= 1X guides unless hand control mode.  Option
>                                           //         During goto btn
> press: aborts slew or continue meridian flip pause home
> #define ST4_HAND_CONTROL              OFF //    OFF, ON for hand
> controller special features and SHC support.     Option
>                                           //         Hold [E]+[W] btns
> >2s: Guide rate   [E]-  [W]+  [N] trk on/off [S] sync
>                                           //         Hold [N]+[S] btns
> >2s: Usr cat item [E]-  [W]+  [N] goto [S] snd on/off
> #define ST4_HAND_CONTROL_FOCUSER      OFF //    OFF, ON alternate to
> above: Focuser move [E]f1 [W]f2 [N]-     [S]+        Option
>
> // GUIDING BEHAVIOUR ------------------------------------------ see
> https://onstep.groups.io/g/main/wiki/Configuration-Mount#GUIDING
> #define GUIDE_TIME_LIMIT                0 //      0, No guide time
> limit. Or n. Where n=1..120 second time limit guard.   Adjust
> #define GUIDE_DISABLE_BACKLASH        OFF //    OFF, Disable backlash
> takeup during guiding at <= 1X      Option
>
> // TRACKING BEHAVIOUR ---------------------------------------- see
> https://onstep.groups.io/g/main/wiki/Configuration-Mount#TRACKING
> #define TRACK_AUTOSTART               OFF //    OFF, ON Start with
> tracking enabled.  Option
> #define TRACK_REFRACTION_RATE_DEFAULT ON //    OFF, ON Start
> w/atmospheric refract. compensation (RA axis/Eq mounts only.)   Option
> #define TRACK_BACKLASH_RATE            25 //     25, n. Where n=2..50
> (x sidereal rate) during backlash takeup.   Option
>                                           //         Too fast motors
> stall/gears slam or too slow and sluggish in backlash.
>
> // SLEWING BEHAVIOUR ------------------------------------------ see
> https://onstep.groups.io/g/main/wiki/Configuration-Mount#SLEWING
> #define SLEW_RATE_BASE_DESIRED        1.0 //    1.0, n. Desired slew
> rate in deg/sec. Adjustable at run-time from        <-Req'd
>                                           //         1/2 to 2x this
> rate, and as MCU performace considerations require.
> #define SLEW_RATE_MEMORY              OFF //    OFF, ON Remembers
> rates set across power cycles.        Option
> #define SLEW_ACCELERATION_DIST        5.0 //    5.0, n, (degrees.)
> Approx. distance for acceleration (and deceleration.)      Adjust
> #define SLEW_RAPID_STOP_DIST          2.5 //    2.0, n, (degrees.)
> Approx. distance required to stop when a slew        Adjust
>                                           //         is aborted or a
> limit is exceeded.
>
> // PIER SIDE BEHAVIOUR -------------------------------------- see
> https://onstep.groups.io/g/main/wiki/Configuration---Mount#SYNCING
> #define MFLIP_SKIP_HOME               OFF //    OFF, ON Goto directly
> to the destination without visiting home position.    Option
> #define MFLIP_PAUSE_HOME_MEMORY       OFF //    OFF, ON Remember
> meridian flip pause at home setting across power cycles.     Option
> #define MFLIP_AUTOMATIC_MEMORY        OFF //    OFF, ON Remember
> automatic meridian flip setting across power cycles.         Option
>
> #define PIER_SIDE_SYNC_CHANGE_SIDES   OFF //    OFF, ON Allows sync to
> change pier side, for GEM mounts.  Option
> #define PIER_SIDE_PREFERRED_DEFAULT  BEST //   BEST, Stays on current
> side if possible. EAST or WEST switch if possible.  Option
>
> // PARKING BEHAVIOUR ------------------------------------------ see
> https://onstep.groups.io/g/main/wiki/Configuration-Mount#PARKING
> #define STRICT_PARKING                OFF //    OFF, ON Un-parking is
> only allowed if successfully parked.        Option
>
> // MOTION CONTROL ---------------------------------------------- see
> https://onstep.groups.io/g/main/wiki/Configuration-Mount#MOTION
> #define STEP_WAVE_FORM             SQUARE // SQUARE, PULSE Step signal
> wave form faster rates. SQUARE best signal integrity.  Adjust
>
> // Stepper driver models (also see ~/OnStep/src/sd_drivers/Models.h
> for additional infrequently used models and more info.):
> // A4988, DRV8825, LV8729, S109, SSS TMC2209*, TMC2130* **, and
> TMC5160* ***
> // * = add _QUIET (stealthChop tracking) for example "TMC2130_QUIET"
> // ** = SSS TMC2130 if you choose to set stepper driver current (in
> mA) set Vref pot. 2.5V instead of by motor current as usual.
> // *** = SSS TMC5160 you must set stepper driver current (in mA) w/
> #define AXISn_TMC_IRUN (IHOLD, etc.)
>
> // Settings for driver Microsteps, IRUN, Reverse, Limit Min, and Limit
> Max are stored in NV (EEPROM.) These runtime settings
> // can be changed (or reverted to the defaults below) from the
> SmartWebServer's Config webpage.  If runtime axis settings are
> // enabled changes to these settings below may be ignored as runtime
> settings from NV (EEPROM) are used instead.
>
> // AXIS1 RA/AZM
> // see https://onstep.groups.io/g/main/wiki/Configuration-Mount#AXIS1
> #define AXIS1_STEPS_PER_DEGREE    6400.0 //  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 //      0, n. Number steps
> per worm rotation (PEC Eq mode only, 0 disables PEC.) <-Req'd
>                                           //         n =
> (AXIS1_STEPS_PER_DEGREE*360)/reduction_final_stage
>
> #define AXIS1_DRIVER_MODEL            LV8729 //    OFF, (See above.)
> Stepper driver model.      <-Often
> #define AXIS1_DRIVER_MICROSTEPS       16 //    OFF, n. Microstep mode
> when tracking.        <-Often
> #define AXIS1_DRIVER_MICROSTEPS_GOTO  OFF //    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             OFF //    OFF, n, (mA.) Current
> during tracking, appropriate for stepper/driver/etc.  Option
> #define AXIS1_DRIVER_IGOTO            OFF //    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/Configuration-Mount#AXIS2
> #define AXIS2_STEPS_PER_DEGREE    6400.0 //  12800, n. Number of steps
> per degree:  <-Req'd
>                                           //         n =
> (stepper_steps * micro_steps * overall_gear_reduction)/360.0
>
> #define AXIS2_DRIVER_MODEL            LV8729 //    OFF, (See above.)
> Stepper driver model.      <-Often
> #define AXIS2_DRIVER_MICROSTEPS       16 //    OFF, n. Microstep mode
> when tracking.        <-Often
> #define AXIS2_DRIVER_MICROSTEPS_GOTO  OFF //    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             OFF //    OFF, n, (mA.) Current
> during tracking, appropriate for stepper/driver/etc.  Option
> #define AXIS2_DRIVER_IGOTO            OFF //    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
>
> // AXIS3 ROTATOR
> // see
> https://onstep.groups.io/g/main/wiki/Configuration-Rotator-and-Focusers#AXIS3
> #define ROTATOR                       OFF //    OFF, ON to enable the
> rotator (or de-rotator for ALTAZM mounts.)      Option
> #define AXIS3_STEPS_PER_DEGREE       64.0 //   64.0, n. Number of
> steps per degree for rotator/de-rotator.  Adjust
>                                           //         Alt/Az
> de-rotation: n = (num_circumference_pixels * 2)/360, minimum
> #define AXIS3_SLEW_RATE_DESIRED       1.0 //    1.0, n,
> (degrees/second) Maximum speed depends on processor.        Adjust
>
> #define AXIS3_DRIVER_MODEL            OFF //    OFF, TMC2130, TMC5160.
> Leave OFF for all drivers models except these.   Option
> #define AXIS3_DRIVER_MICROSTEPS       OFF //    OFF, n. Microstep mode
> when tracking.                   For TMC2130, TMC5160. Option
> #define AXIS3_DRIVER_IHOLD            OFF //    OFF, n, (mA.) Current
> standstill. OFF uses IRUN/2.0.                  "   Option
> #define AXIS3_DRIVER_IRUN             OFF //    OFF, n, (mA.) Current
> tracking, appropriate for stepper/driver/etc.   "   Option
> #define AXIS3_DRIVER_POWER_DOWN       OFF //    OFF, ON Powers off the
> motor at stand-still.  Option
> #define AXIS3_DRIVER_REVERSE          OFF //    OFF, ON Reverses
> movement direction, or reverse wiring instead to correct.    Option
>
> #define AXIS3_LIMIT_MIN              -180 //   -180, n. Where
> n=-360..0 (degrees.) Minimum allowed rotator angle.   Infreq
> #define AXIS3_LIMIT_MAX               180 //    180, n. Where n=0..360
> (degrees.) Maximum allowed rotator angle.  Infreq
>
> // AXIS4 FOCUSER 1
> // see
> https://onstep.groups.io/g/main/wiki/Configuration-Rotator-and-Focusers#AXIS4
> #define FOCUSER1                      OFF //    OFF, ON to enable this
> focuser.     Option
> #define AXIS4_STEPS_PER_MICRON        0.5 //    0.5, n. Steps per
> micrometer. Figure this out by testing or other means.  Adjust
> #define AXIS4_SLEW_RATE_DESIRED       500 //    500, n, Where
> n=200..5000 (um/s.) Max microns/second. In DC mode, max pwr %   Adjust
>
> #define AXIS4_DRIVER_MODEL            OFF //    OFF, TMC2130, TMC5160.
> Leave OFF for all drivers models except these.   Option
> #define AXIS4_DRIVER_MICROSTEPS       OFF //    OFF, n. Microstep mode
> when tracking.                   For TMC2130, TMC5160. Option
> #define AXIS4_DRIVER_IHOLD            OFF //    OFF, n, (mA.) Current
> standstill. OFF uses IRUN/2.0.                  "   Option
> #define AXIS4_DRIVER_IRUN             OFF //    OFF, n, (mA.) Current
> tracking, appropriate for stepper/driver/etc.   "   Option
> #define AXIS4_DRIVER_POWER_DOWN       OFF //    OFF, ON Powers off the
> motor at stand-still.  Option
> #define AXIS4_DRIVER_REVERSE          OFF //    OFF, ON Reverses
> movement direction, or reverse wiring instead to correct.    Option
> #define AXIS4_DRIVER_DC_MODE          OFF //    OFF, ON for pwm dc
> motor control on stepper driver outputs.     Option
>
> #define AXIS4_LIMIT_MIN_RATE           50 //     50, n. Where
> n=1..1000 (um/s.) Minimum microns/second. In DC mode, min pwr.  Adjust
> #define AXIS4_LIMIT_MIN                 0 //      0, n. Where n=0..500
> (millimeters.) Minimum allowed position.   Adjust
> #define AXIS4_LIMIT_MAX                50 //     50, n. Where n=0..500
> (millimeters.) Maximum allowed position.   Adjust
>
> // AXIS5 FOCUSER 2
> // see
> https://onstep.groups.io/g/main/wiki/Configuration-Rotator-and-Focusers#AXIS5
> #define FOCUSER2                      OFF //    OFF, ON to enable this
> focuser.     Option
> #define AXIS5_STEPS_PER_MICRON        0.5 //    0.5, n. Steps per
> micrometer. Figure this out by testing or other means.  Adjust
> #define AXIS5_SLEW_RATE_DESIRED       500 //    500, n, Where
> n=200..5000 (um/s.) Max microns/second. In DC mode, max pwr %   Adjust
>
> #define AXIS5_DRIVER_MODEL            OFF //    OFF, TMC2130, TMC5160.
> Leave OFF for all drivers models except these.   Option
> #define AXIS5_DRIVER_MICROSTEPS       OFF //    OFF, n. Microstep mode
> when tracking.                   For TMC2130, TMC5160. Option
> #define AXIS5_DRIVER_IHOLD            OFF //    OFF, n, (mA.) Current
> standstill. OFF uses IRUN/2.0.                  "   Option
> #define AXIS5_DRIVER_IRUN             OFF //    OFF, n, (mA.) Current
> tracking, appropriate for stepper/driver/etc.   "   Option
> #define AXIS5_DRIVER_POWER_DOWN       OFF //    OFF, ON Powers off the
> motor at stand-still.  Option
> #define AXIS5_DRIVER_REVERSE          OFF //    OFF, ON Reverses
> movement direction, or reverse wiring instead to correct.    Option
> #define AXIS5_DRIVER_DC_MODE          OFF //    OFF, DRV8825 for pwm
> dc motor control on stepper driver outputs.    Option
>
> #define AXIS5_LIMIT_MIN_RATE           50 //     50, n. Where
> n=1..1000 (um/s.) Minimum microns/second. In DC mode, min pwr.  Adjust
> #define AXIS5_LIMIT_MIN                 0 //      0, n. Where n=0..500
> (millimeters.) Minimum allowed position.   Adjust
> #define AXIS5_LIMIT_MAX                50 //     50, n. Where n=0..500
> (millimeters.) Maximum allowed position.   Adjust
>
> // AUXILIARY FEATURE CONTROL ------------------------------ see
> https://onstep.groups.io/g/main/wiki/6-ConfigurationMaster#AUXILIARY
> // For additional infrequently used _PURPOSE options see Constants.h
> "various auxillary features"
> #define FEATURE_LIST_DS               OFF //    OFF, temporarily set
> ON to list ds18b20 and ds2413 device serial numbers.     Adjust
> #define FEATURE1_NAME          "FEATURE1" // "FE..", Name of feature
> being controlled.    Adjust
> #define FEATURE1_PURPOSE              OFF //    OFF, SWITCH,
> ANALOG_OUT, DEW_HEATER, etc.   Option
> #define FEATURE1_TEMP                 OFF //    OFF, DS1820, n. Where
> n is the ds18b20 s/n for DEW_HEATER temperature.    Adjust
> #define FEATURE1_PIN                  OFF //    OFF, AUX, DS2413, n.
> Where n is ds2413 s/n (gpio0) or n=0 to 255 (pin#.)      Adjust
> #define FEATURE1_DEFAULT_VALUE        OFF //    OFF, ON, n. Where
> n=0..255 for ANALOG_OUT purpose.    Adjust
> #define FEATURE2_NAME          "FEATURE2" // "FE..", Name of feature
> being controlled.    Adjust
> #define FEATURE2_PURPOSE              OFF //    OFF, SWITCH,
> ANALOG_OUT, DEW_HEATER, etc.   Option
> #define FEATURE2_TEMP                 OFF //    OFF, DS1820, n. Where
> n is the ds18b20 s/n for DEW_HEATER temperature.    Adjust
> #define FEATURE2_PIN                  OFF //    OFF, AUX, CHAIN
> (ds2413 gpio1,) n. Where n=0 to 255 (pin#.)       Adjust
> #define FEATURE2_DEFAULT_VALUE        OFF //    OFF, ON, n. Where
> n=0..255 for ANALOG_OUT purpose.    Adjust
> #define FEATURE3_NAME          "FEATURE3" // "FE..", Name of feature
> being controlled.    Adjust
> #define FEATURE3_PURPOSE              OFF //    OFF, SWITCH,
> ANALOG_OUT, DEW_HEATER, etc.   Option
> #define FEATURE3_TEMP                 OFF //    OFF, DS1820, n. Where
> n is the ds18b20 s/n for DEW_HEATER temperature.    Adjust
> #define FEATURE3_PIN                  OFF //    OFF, AUX, DS2413, n.
> Where n is ds2413 s/n (gpio0) or n=0 to 255 (pin#.)      Adjust
> #define FEATURE3_DEFAULT_VALUE        OFF //    OFF, ON, n. Where
> n=0..255 for ANALOG_OUT purpose.    Adjust
> #define FEATURE4_NAME          "FEATURE4" // "FE..", Name of feature
> being controlled.    Adjust
> #define FEATURE4_PURPOSE              OFF //    OFF, SWITCH,
> ANALOG_OUT, DEW_HEATER, etc.   Option
> #define FEATURE4_TEMP                 OFF //    OFF, DS1820, n. Where
> n is the ds18b20 s/n for DEW_HEATER temperature.    Adjust
> #define FEATURE4_PIN                  OFF //    OFF, AUX, CHAIN
> (ds2413 gpio1,) n. Where n=0 to 255 (pin#.)       Adjust
> #define FEATURE4_DEFAULT_VALUE        OFF //    OFF, ON, n. Where
> n=0..255 for ANALOG_OUT purpose.    Adjust
> #define FEATURE5_NAME          "FEATURE5" // "FE..", Name of feature
> being controlled.    Adjust
> #define FEATURE5_PURPOSE              OFF //    OFF, SWITCH,
> ANALOG_OUT, DEW_HEATER, etc.   Option
> #define FEATURE5_TEMP                 OFF //    OFF, DS1820, n. Where
> n is the ds18b20 s/n for DEW_HEATER temperature.    Adjust
> #define FEATURE5_PIN                  OFF //    OFF, AUX, DS2413, n.
> Where n is ds2413 s/n (gpio0) or n=0 to 255 (pin#.)      Adjust
> #define FEATURE5_DEFAULT_VALUE        OFF //    OFF, ON, n. Where
> n=0..255 for ANALOG_OUT purpose.    Adjust
> #define FEATURE6_NAME          "FEATURE6" // "FE..", Name of feature
> being controlled.    Adjust
> #define FEATURE6_PURPOSE              OFF //    OFF, SWITCH,
> ANALOG_OUT, DEW_HEATER, etc.   Option
> #define FEATURE6_TEMP                 OFF //    OFF, DS1820, n. Where
> n is the ds18b20 s/n for DEW_HEATER temperature.    Adjust
> #define FEATURE6_PIN                  OFF //    OFF, AUX, CHAIN
> (ds2413 gpio1,) n. Where n=0 to 255 (pin#.)       Adjust
> #define FEATURE6_DEFAULT_VALUE        OFF //    OFF, ON, n. Where
> n=0..255 for ANALOG_OUT purpose.    Adjust
> #define FEATURE7_NAME          "FEATURE7" // "FE..", Name of feature
> being controlled.    Adjust
> #define FEATURE7_PURPOSE              OFF //    OFF, SWITCH,
> ANALOG_OUT, DEW_HEATER, etc.   Option
> #define FEATURE7_TEMP                 OFF //    OFF, DS1820, n. Where
> n is the ds18b20 s/n for DEW_HEATER temperature.    Adjust
> #define FEATURE7_PIN                  OFF //    OFF, AUX, DS2413, n.
> Where n is ds2413 s/n (gpio0) or n=0 to 255 (pin#.)      Adjust
> #define FEATURE7_DEFAULT_VALUE        OFF //    OFF, ON, n. Where
> n=0..255 for ANALOG_OUT purpose.    Adjust
> #define FEATURE8_NAME          "FEATURE8" // "FE..", Name of feature
> being controlled.    Adjust
> #define FEATURE8_PURPOSE              OFF //    OFF, SWITCH,
> ANALOG_OUT, DEW_HEATER, etc.  Option
> #define FEATURE8_TEMP                 OFF //    OFF, DS1820, n. Where
> n is the ds18b20 s/n for DEW_HEATER temperature.    Adjust
> #define FEATURE8_PIN                  OFF //    OFF, AUX, CHAIN
> (ds2413 gpio1,) n. Where n=0 to 255 (pin#.)       Adjust
> #define FEATURE8_DEFAULT_VALUE        OFF //    OFF, ON, n. Where
> n=0..255 for ANALOG_OUT purpose.    Adjust
>
> // THAT'S IT FOR USER CONFIGURATION!
>
> //
> -------------------------------------------------------------------------------------------------------------------------
> #define FileVersionConfig 4
>
> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>       Virus-free. www.avg.com
> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>
>
>
> On Sat, Oct 2, 2021 at 7:57 AM Otto <olpar007@...> wrote:
>
>     On Fri, Oct 1, 2021 at 09:26 AM, Martin Chapman wrote:
>
>         Did you set location, time and date first?
>         Take care and stay safe.
>         Mart.
>
>     Did you set the UTC offset to the correct value?
>     What about the jumper configuration that corresponds to your
>     microstep value?
>
>

--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus