Date   

MKS S_Gen L V2.0 32bit Board with TMC2209

 

I have an MKS S_Gen L V2.0 lying around along with TMC2209 stepper drivers.

In the onstep firmware, there is no native support for TMC2209 drivers, neither the S_Gen L V2.0

  • Will it be possible to run Onstep on this board? Can I use TMC2209 stepper drivers or only TMC2130 and TMC5160 are supported?
    (By using MKS GEN_L V1.0 as board name)
  • Can I use TMC2209 with Arduino Mega based Onstep?

Do I need to make major firmware changes for any of these? 

 

Thank You

 


Re: RA axis not returning home position (frst tests)

Nino Garcia
 

Forgot copy the thread
https://onstep.groups.io/g/main/topic/88471644#41474. I have no clue about what could be happening


Re: 4.24q will not run

Jamie Flinn
 

Additional info - Tried turning on DEBUG to view via serial monitor and found that there is not even a port being created - so the FW is actually not initializing? - is is possible there is a need for some new library in arduino for this version - this issue is extremely low level - please advise especially if you have an S6 board and are running 4.24q - did you need to update arduino or some other library perhaps in DFU or in STM32CubeProgrammer between 4.24K and 4.24q????


Re: RA axis not returning home position (frst tests)

Nino Garcia
 
Edited

Sorry, this is my Onstep system and config for more details

  • OnStep 4.24
  • Wemos D1 R32 CNC3 - 2xLV8729 (for DEC & RA)
  • Using Onstep Android app for testing
 
I think my problem is related to this thread, i can't figure out why RA is just moving but not returning to initial position (Return Home).

// ---------------------------------------------------------------------------------------------------------------------------------
// 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                        CNC3 //    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          ON //    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          OFF //    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 OFF //    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   18488.00 //  12800, n. Number of steps per degree:                                          <-Req'd
                                          //         n = (stepper_steps * micro_steps * overall_gear_reduction)/360.0
#define AXIS1_STEPS_PER_WORMROT     51200 //      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        64 //    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   18488.00 //  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        64 //    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              ON //    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!


Re: Rotator not moving on CNCv3

GuitsBoy
 

Found the answer just moments after posting this.

https://onstep.groups.io/g/main/wiki/19670

Mid way down the CNCv3 page, it explains that there are two shunts or jumpers required to enable the AMOT / AXIS4.

After adding these two jumpers, I now have motion on  the rotator and can continue tuning as normal.

Sorry to have washed anyone's time, but thank you just the same.

-Tony

On 5/16/2022 12:50 PM, GuitsBoy via groups.io wrote:
Hi All -

I'm having a bit of trouble attempting to add a rotator to my bench setup, before moving it out to my mount.   Currently, I'm getting the stepper motor to hold, but it is simply not moving. I get no indication of it even attempting to move, no buzzing or stalling or chatter.   I have swapped stepper drivers with the focuser driver which works well.  The stepper motor has also been tested on the focuser side, so that works.  But when the motor and driver are in the rotator axis, I get no movement.

I have a WeMos R32 / CNCv3 hardware, OnStep 4.24q and the current ASCOM driver.   I have tried both a4988 and DRV8825 drivers. I have others I can try as well if there's any value in it.  I do not have any microstepping configured (equatorial mount / framing only) and I have no jumpers on the CNCv3.

If it matters, I previously ran into this error on connecting the driver, regardless of the config.h settings:

"The driver requires axis3_limit_min set to 0 (config.h)"

This was likely because I had previously had a wifi ESP module configured, and had entered the Advanced Configuration.  I have since set the NV_Factory_Reset on and back off again, and was able to set the Axis 3 limits to 0 and 360 respectively in the config.h, since the driver refuses to connect with the defaults of -180 and 180.

Interestingly, the Focuser (Axis 4) is on the Z-Axis on the CNCv3 board.   Is it possible the A-Axis on the CNCv3 is mapped to AXIS5 and not AXIS3?   Focuser 2 / AXIS5 (which seems to share pins with Rotator / AXIS 3 in the pinmap) is currently set to OFF.


Any suggestions on what I might try to troubleshoot this further?







Re: MaxSTM(SMT) Overheating | Roman Hujer, Не могли бы вы помочь? Или поделиться своей электронной почтой?

Howard Dutton
 

On Mon, May 16, 2022 at 09:17 AM, Fleep wrote:
I can get it soldered professionally, can it fix the boards? 
Obviously I can't say for sure.


Rotator not moving on CNCv3

GuitsBoy
 

Hi All -

I'm having a bit of trouble attempting to add a rotator to my bench setup, before moving it out to my mount.   Currently, I'm getting the stepper motor to hold, but it is simply not moving. I get no indication of it even attempting to move, no buzzing or stalling or chatter.   I have swapped stepper drivers with the focuser driver which works well.  The stepper motor has also been tested on the focuser side, so that works.  But when the motor and driver are in the rotator axis, I get no movement.

I have a WeMos R32 / CNCv3 hardware, OnStep 4.24q and the current ASCOM driver.   I have tried both a4988 and DRV8825 drivers. I have others I can try as well if there's any value in it.  I do not have any microstepping configured (equatorial mount / framing only) and I have no jumpers on the CNCv3.

If it matters, I previously ran into this error on connecting the driver, regardless of the config.h settings:

"The driver requires axis3_limit_min set to 0 (config.h)"

This was likely because I had previously had a wifi ESP module configured, and had entered the Advanced Configuration.  I have since set the NV_Factory_Reset on and back off again, and was able to set the Axis 3 limits to 0 and 360 respectively in the config.h, since the driver refuses to connect with the defaults of -180 and 180.

Interestingly, the Focuser (Axis 4) is on the Z-Axis on the CNCv3 board.   Is it possible the A-Axis on the CNCv3 is mapped to AXIS5 and not AXIS3?   Focuser 2 / AXIS5 (which seems to share pins with Rotator / AXIS 3 in the pinmap) is currently set to OFF.


Any suggestions on what I might try to troubleshoot this further?


Re: MaxSTM(SMT) Overheating | Roman Hujer, Не могли бы вы помочь? Или поделиться своей электронной почтой?

 

Hand soldering a new MCU seems like a difficult task to me.

I can get it soldered professionally, can it fix the boards? 

:(


Trouble flashing ESP8266 ESP-01

andrea tasselli
 

Hello everyone,

I'm trying to flash the SWS onto a ESP8266 ESP-01 and I cannot get anything I try to work. The board is a D1 R32 + Hujer shield. I finally manage to put OnStep on the main board but any and all attempts of installing the SWS software failed (following the recommendations from the wiki for the same ESP8266 ESP-01). I cannot get a gateway to the ESP chip through the board and since the board isn't on wiki there isn't much I can do. The error I get is listed below:

An error occurred while uploading the sketch
warning: espcomm_sync failed
error: espcomm_open failed

And I thought this was going to be easy...

Any help greatly appreciated.

Andrea


Re: MaxSTM(SMT) Overheating | Roman Hujer, Не могли бы вы помочь? Или поделиться своей электронной почтой?

 

I powered on board 3/4 and the processor died instantly, I couldn't understand anything. (Status LED won't turn on as well). The first thing that'd overheat before each board's death would be the 3.3V voltage regulator.

So I took out board 4/4 and along with soldering headers, I removed removed the 3.3V regulator and soldered a new one which I bought locally(Both had 1A rating).

Now this board worked fine, I had my finger on the processor all the time. I connected stepper driver one and it was good. As soon as I connected the second driver, it started to overheat rapidly. I mean very rapidly!

So I pulled that driver out and it was back to normal temp. I tried to limit the current by reducing Vref on driver and connected it again, it overheated! I pulled the driver out maybe a second late but before I could do that board was damaged.

Damaged in a way that it works fine, only the processor maintains high temperature of 80-90 degrees.

(I had 4 boards in total. Board 2/4 died when I connected an Asus 19V 45W wall brick, even though 5V voltage regulator hadn't been connected yet, a flash ran through the Status and Power LEDs, they turned on for a second and it was dead.) 

To answer your questions precisely:

  1. I think bad stepper driver is to be blamed.
  2. The 3.3V regulator which I bought locally work fine. The one that came pre-soldered they died every time.
  3. The processor for board 3/4 died in an instant. The processor for board 4/4 heats up.

IRUN Current = 600

TMC2130 Vref = 1.15

Also when the processor was fine, onstep app would not allow alignment, it'd say "Hardware Fault." And the status tab would show "Motor/Driver" fault.


Re: MaxSTM(SMT) Overheating | Roman Hujer, Не могли бы вы помочь? Или поделиться своей электронной почтой?

Howard Dutton
 

On Mon, May 16, 2022 at 07:50 AM, Fleep wrote:
  • Can I order STM32 BlackPill (SMD) microcontroller online and resolder it to get the boards working?
Hand soldering a new MCU seems like a difficult task to me.

  • My motors are rated for 1.3A amperes. Can MaxSTM (SMT) support such motors? Should they work?
Yes.

Sorry things didn't go smoothly there.  I'd be sure to focus efforts on identifying the root cause of the failure to know what correction is really needed.

Is a bad stepper driver really to blame?
Does the 3.3V regulator still work?
Does the processor function at all?


MaxSTM(SMT) Overheating | Roman Hujer, Не могли бы вы помочь? Или поделиться своей электронной почтой?

 

Hi,

I wanted to build my own 3D printed equatorial mount, so I decided to use 100:1 gear reduction motors for my RA/DEC axis. The system was pretty much the same as built by Roman Hujer.

I had MaxSTM (SMT) boards but I believe I've burnt all of them (processor gets the correct volts). The problem was faulty stepper driver which was drawing extra current. As soon as I'd connect the stepper driver, 3.3V voltage regulator would heat up and its dead!

My questions are:

  1. Can I order STM32 BlackPill (SMD) microcontroller online and resolder it to get the boards working?
  2. My motors are rated for 1.3A amperes. Can MaxSTM (SMT) support such motors? Should they work?

Motors: 42byg Stepper Motor 40mm Body Length With 3.71:1~139:1 Ratio Nema17 Planetary Gear Stepping Motor With Gearbox - Dc Motor - AliExpress

STM32: Asourcing Buy Microcontrollers Ic Ufqfpn-48 Stm32f411ceu6 - Buy Buy Stm32f411ceu6,Electronic Components Ufqfpn-48 Stm32f411ceu6,Ic Stm32f411ceu6 Product on Alibaba.com


4.24q will not run

Jamie Flinn
 

Perplexed!  Trying to get latest running on my S6 – have been running 4.24k for long time no issue but 4.24q will not load properly (cannot see it via Bluetooth or USB connected to Astroberry) – I can revert to 4.24k and all is good.

 

Used windiff to see what has changed and find only a few areas  (ingnore the BIN files as these are exported binaries

 

 

Using the attached config but I am pretty sure that the  config is not the issue and most likely the esp32.h – can anyone outline  the major difference between k and q or have similar experience? – I really need the fix for the guiding – perhaps I can simply drop in the command and guide ino files into my 4.24k…

 

HELP please as this is odd  (btw all validate is OK and compile ok etc)

 

// ---------------------------------------------------------------------------------------------------------------------------------

// Configuration for OnStep

 

/*          iNSTALLED ON MKS GEN L V1.0 WITH TMC2209 - SET FOR 400 STEP 0.9 SPOOL3D MOTORS - AUG 10 2021 - JUMPER SET UNDER DRIVERS

*          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                        FYSETC_S6_2 //    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         9600 //    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          OFF //    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 OFF //    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        3.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               ON //    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  EAST //   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             PULSE // 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        25088.00 //25066.668800 //  12800, n. Number of steps per degree:                                          <-Req'd

                                          //         n = (stepper_steps * micro_steps * overall_gear_reduction)/360.0

#define AXIS1_STEPS_PER_WORMROT       50176 //      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            TMC5160_QUIET//    OFF, (See above.) Stepper driver model.                                      <-Often

#define AXIS1_DRIVER_MICROSTEPS       32//    OFF, n. Microstep mode when tracking.                                        <-Often

#define AXIS1_DRIVER_MICROSTEPS_GOTO  16 //    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             700 //    OFF, n, (mA.) Current during tracking, appropriate for stepper/driver/etc.    Option

#define AXIS1_DRIVER_IGOTO            900 //    OFF, n, (mA.) Current during slews. OFF uses same as IRUN.                    Option

#define AXIS1_DRIVER_REVERSE          ON //    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              -200 //   -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               200 //    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        25088.00 //25066.66880 //  12800, n. Number of steps per degree:                                          <-Req'd

                                          //         n = (stepper_steps * micro_steps * overall_gear_reduction)/360.0

 

#define AXIS2_DRIVER_MODEL            TMC5160_QUIET//    OFF, (See above.) Stepper driver model.                                      <-Often

#define AXIS2_DRIVER_MICROSTEPS       32 //    OFF, n. Microstep mode when tracking.                                        <-Often

#define AXIS2_DRIVER_MICROSTEPS_GOTO  16 //    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             700 //    OFF, n, (mA.) Current during tracking, appropriate for stepper/driver/etc.    Option

#define AXIS2_DRIVER_IGOTO            900 //    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 - confirned good

// see https://onstep.groups.io/g/main/wiki/Configuration-Rotator-and-Focusers#AXIS4

#define FOCUSER1                      ON //    OFF, ON to enable this focuser.                                               Option

//0.5 = using 1000 initial step in INDI on tincan

//10 is nice and fast - tested on bench with 5lb weight

// 1 confirmed good on 102ED

#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       1000 //    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       ON //    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           100 //100 //     50, n. Where n=1..1000 (um/s.) Minimum microns/second. In DC mode, min pwr.  Adjust //change this to 10

#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                      ON //    OFF, ON to enable this focuser.                                               Option

//0.5 is good for nema14 direct to 10:1 reduction

#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       ON //    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

 

 

Sent from Mail for Windows

 


Re: Guiding Problems with PHD2 and OnStep

the.cakemaker75@...
 

Managed to run the guiding assistant the other day. Don’t remember how, but it worked. Thats QHY i know that there is big backlash in dec. But i did not manage to solve that yet. It is a bit better now but not solved yet. I have some pictures here. 


Re: Help for wiring up CNCv3 - DRV8825 -R32 - D1 #esp32 #wemos #250p #arduino #d1

GaSt
 

Hi Fernando,

thanks for the link, unfortunately he uses the same link I tried myself for wiring but did not succeed :(


Re: My Dobson project

Mike
 

Hi Ken, this depends entirely on your respective diameters. As long as there is enough teeth.  meshing, it works fine. I used it to drive my dome this way. I don't think it's precise enough for telescope driving though.
The other mention here, about turning the belt inside out is the way I prefer to drive my smaller gears, using the 2-idler tensioner  scheme to wrap the teeth around the drive sprocket.
I'm not sure about relaxing the belt tension to allow slews by hand though.
Q:As long as there is an encoder somewhere, I'd just slew the scope with all drive leads grounded, but I'm forgetting backgearing friction... 
Rgds
Mike


Re: Guiding Problems with PHD2 and OnStep

Derek Regan
 

So if you're pulse guiding, then you should be calibrating on the equator, Dec 0/ meridian intersection, if you're northern hemisphere then point it south, click on the drift tool and get the Dec on 0( altitude) and the azimuth as close to 0 as you can but depends on what side of pier it is... X the drift tool out and then calibrate.. if you check the box in the settings you won't need to re calibrate everytime you setup or switch targets as you do with ST4...  
The instructions are in PhD, nothing to do with Onstep


Re: Flashing Help: Failed to Connect to ESP32: Timed Out Waiting for Packet Header #esp32

NeoMoses
 

Thanks to all for all the help. Pulling the shield from the D1 R32 was the key I needed to flash the board, and getting the pinmap right was the second main problem.  Once there, with the ability to flash, I found a few other problems with my config.h, such as being set up for GEM mode rather than Alt/Az.  Some other small stuff like that was tweaked and it seems to be working.  I think I have it fixed now, and have the ability to update and re-flash as needed. 

Now I need to adjust my drive ratio on my Az axis to at least double the speed. It's way too slow, and I have plenty of torque to go faster.  I also need to rebuild my Alt drive mount.  I'm getting too much flex in the plastic bracket.  I'm going to re-design it to be MUCH stiffer, and maybe make it out of wood or metal.  Plenty to do, and very little time before the weather really gets nice.  Thanks again, and I'll try to document this once I have it fully functioning!


RA axis not returning home position (frst tests)

Nino Garcia
 

Hello everybody,
 
I finally have the whole Onstep system implemented and I am doing the first tests to check if the axes move correctly. I'm a beginner and I'm going to try to make the first goto
 
From the home position I try to make an alignment to a star, at the moment I don't care about the precision, I just want to see if the axes are moving in the direction of the star.
 
The DEC axis seems to be moving in the right direction and when I click on return home the dec axis returns perfectly to the initial 90º position.
 
The RA axis I am not sure if it is moving in the correct position but when I click on return home the axis does not return to its initial position, I have tried with both options axis reverse direction OFF and ON and when I return to initial position the RA axis does not move.

Any help wil be much appreciated

Best regards


Re: Guiding Problems with PHD2 and OnStep

Chris Whitener
 

Phd2 has several tools to check the mount.
Usually movements that are too short or long are because the pulse runs into mechanical looseness.  A loose movement is called backlash by astronomy folks.  Imagine the following.  A declination that has slop in it.  The first movement may tumble it forward.  Or lose it if backward.   

Try the full phd2 test including the 2 minute backlash test.  It tells a lot.

4221 - 4240 of 47792