Date   
Re: A few questions on hardware

Khalid Baheyeldin
 

On Sat, Nov 9, 2019 at 06:40 PM, tomofreno2000 wrote:
I downloaded version 3.7c.3 firmware
You are better off upgrading to the latest 3.x (3.9c as of now), since there was a lot of fixes.

The 5160s are working well! 
Good to see the TMC5160 are being tested by more people, and that the experience is positive.

Oh, this is on a 22.4" Dobsonian with NEMA17 motors, about 860:1 overall reduction (visual use only).
I am looking forward to a Youtube video in daylight of this beast slewing, with details on how the reduction was done. Add specifics in the description on the Youtube video (parts list, specs, ...etc.)
It would prove useful for others and I will add it to the showcase page.

Re: A few questions on hardware

tomofreno2000
 

FYI,
I downloaded version 3.7c.3 firmware, installed version 1.3 5160 drivers (https://www.digikey.com/product-detail/en/trinamic-motion-control-gmbh/TMC5160-SILENTSTEPSTICK/1460-1385-ND/9990281) with fly back diode protector boards (https://shop.watterott.com/SilentStepStick-Protector-for-Stepper-Motor-Drivers) and heat sinks (https://www.digikey.com/product-detail/en/assmann-wsw-components/V2017B/AE10837-ND/3511410), and added pull down resistors per Howard's post #13880 in this topic. I attached the heat sinks to the driver chips with a bit of epoxy.  They hang upside down above the protector boards since the driver boards are installed with driver chip down.

Chose these settings for both axis 1 and 2 (except for DRIVER_REVERSE):

#define AXIS1_DRIVER_MODEL TMC5160_QUIET      
#define AXIS1_DRIVER_MICROSTEPS 16      
#define AXIS1_DRIVER_MICROSTEPS_GOTO 8  
#define AXIS1_DRIVER_IHOLD            500 //   
#define AXIS1_DRIVER_IRUN             1500 //   
#define AXIS1_DRIVER_IGOTO            OFF //   
#define AXIS1_DRIVER_REVERSE          OFF //   
#define AXIS1_DRIVER_STATUS           OFF //

I chose QUIET because I wanted to run spreadcycle for Gotos due to the higher torque at higher rpm with it (https://www.youtube.com/watch?v=GVs2d-TOims) and because Howard recommended it (post #12982 in "A few questions about hardware" topic).

I had 2208 drivers prior to this and was limited to about 2 deg/sec Goto speed. When I went much higher than that the motors would run rough and buzz very loudly regardless of Vref = 1.3 to 1.5.

The 5160s are working well!  Can slew faster now with no issues. Motors just make a low hum  and run smoothly. I've only gone up to 3 deg/sec (for Goto) because that seems fast enough to me. Really nice to not have to tweak a pot on the driver board to set current anymore.

It seems the motor directions are different than in version 2.22 I was previously running. In 2.22 I had to reverse the Az motor direction only for correct operation. In version 3 it is the opposite, I had to reverse only Alt motor direction.

Oh, this is on a 22.4" Dobsonian with NEMA17 motors, about 860:1 overall reduction (visual use only).

As always,
Thanks Howard!

Re: New member and new build

 
Edited

I did give this a though but considered that the stepper motors on the printer don't get above 50C, this  application should be OK.
If I f do see any problems, I can reprint in PETG which has a much higher glass temperature.
There is a design listed in the wiki that uses aluminium brackets and it I can get access to tools, I will build them.

I  saw this stepper mount on Thingiverse, also for an SP but mods for a GP shouls be easy. It will allow more air flow around the motor. I have a printer and lots of spare time so why not?

Re: Onstep doesn't do corrections in Kstars

Howard Dutton
 

Agree Khalid, I was thinking the same thing yesterday.

Re: Question for other G11 owners with Onstep and SHC

Howard Dutton
 

Same behaviour with the little nema11 motors on my mount I use for testing...  about half or a third rated power results in highest slew speeds.

Re: New member and new build

Dave Schwartz
 

Looks good. My only concern would be for the temperature of the motors and its effects on the PLA.

I use the Stepperonline 400 step, 0.9A motors driven by LV8729s. Initially, I had Vref set to .45 for full current but the steady-state temperature of the motors (indoors) was almost 60C (their rated maximum is 80 but I wouldn't want to go too near that). Could not keep a finger on them longer than a few seconds. I lowered Vref to .4 and it still works fine and the steady-state temperature is now around 50C. However, being fully enclosed like that I think they will get much hotter. No firsthand experience bit I've heard that PLA starts to soften well below the temperature you extrude at.

I don't intend to hijack your thread but here's a bit on what I did in case it gives an idea to someone else...

For my Chinese EQ5 clone, I did use the Vixen SP ones which were not to difficult to modify. I think I used two of the RA ones (the DEC did not fit the DEC at all). Printed in carbon-fiber-filed PLA so its really stiff. I made a custom filler insert to hug the curve on the top of the base tab and provide a level base for the RA bracket but with a slot for the dovetail tab. I had to trim the dovetail tab to fit the RA and drill holes for the bolts (I used T-nuts on the inside). A large washer is just the correct thickness for a shim to perfectly tension the belt and also serves to conduct heat to use the mount as an additional heat sink.

Pictures of the DEC assembly and the FreeCAD-rendered RA insert are attached. That yellow stuff is the vibration damping design (also from Thingiverse) printed in TPU and you can just see the washer/spacer between the motor and the worm block. The large pulley is 48 teeth... I don't think a 60T would have fit.

On 2019-11-09 1:56 a.m., Geoff via Groups.Io wrote:
Just posted my VIxen HP stepper motor mount bracket <https://www.thingiverse.com/thing:3964641> to Thingiverse. Fits well but haven't yet run the motors.

Build on both controller and SHC has finished, flashing the firmware tonight.
Then it's time to wire up the stepper and the RJ45 cables, not looking forward to that!

Re: Question for other G11 owners with Onstep and SHC

Howard Dutton
 

Motors are stalling.  I use vref 0.4, higher than that midband resonance causes motors to stall at lesser speeds.  Actually I use 0.85A for tracking stealthChop then drop to 0 4A and switch to spreadCycle (VQUIET) for slews.

Question for other G11 owners with Onstep and SHC

Redorbit
 

Hi John
I have a fornax51 with the same onstep setup. 
This behaviour may be caused by insufficient cooling of the TMC2130 drivers,so I suppose to measure the temperature of those drivers during gotos.
I added active cooling, since than no problem with stalling/knocking motors
I hope this helps



Regards
Peter


John Scherer <jrsphoto@...> ezt írta (időpont: 2019. nov. 9., Szo, 2:54):

I have some confusion about goto rates between Onstep and the SHC.  I'm sure its just my understanding of how things are working, and maybe other G11 owners with onstep can clear things up.

I've got an older Celestron G11 mount with:
  • Onstep MaxPCB2
  • TMC2130 drivers on RA/DEC with VRef = 0.85v
  • Firmware 2.22p
  • DesiredBaseSlewRate = 1
  • Teensy 3.2 Smart Hand Controller with Firmware 1.5f
  • Orential Motor PKP244MD08B on RA/DEC
  • My Config.MaxPCB.h

My understanding is that with DesiredBaseSlewRate = 1, my maximum slew speed could be anything from .5 deg/s to 2 deg/s, based on how I have the Maximum GOTO speed set in the SHC or the Maximum Slew speed on the MaxPCB2 Wifi Configuration page. Is this correct?

Also, on the SHC, the slew rates displayed in the upper left, based on presses of the Fn buttons:
                   1/4x, 1/2x, 1x, then 2x 1x, 4x 1x, 8x 1x, 20x 1x, 48x 1x, 1/2Mx 1x, Max 1x
These rates are somewhat confusing to me and I assumed these were the same as the Maximum Goto Speed (but more selective?) in the setup menu but I'm not sure.

I ask these questions because my results seem odd to me:

Using the SHC:  Goto Speed (in settings/configuration) set to "Default Speed", if I issue a goto from the SHC, the motors start spinning as expected, but then randomly lock up, only unlocking as the goto action gets closer to the end of the movement and the motor slows down.  Its not until I select a Max Goto Speed = "Slowest", that the motors won't lock up during a slewing action.

The results are somewhat different though if I do a manual slew using N/S/E/W controls.  With the Goto Speed in settings set to "Normal", I can slew manually up to the "1/2Mx 1X" rate, with no motor lockup.

So many options here the behavior is hard to describe but hopefully someone can help.  I'd love to here from others with G11 mounts to see what max goto rates your getting?  I thought I saw that others were seeing around 2 deg/s with similar mount/motors/drivers.

Cheers

John

Re: New member and new build

 
Edited

Just posted my VIxen GP stepper motor mount bracket to Thingiverse. Fits well but haven't yet run the motors.

Build on both controller and SHC has finished, flashing the firmware tonight.
Then it's time to wire up the stepper and the RJ45 cables, not looking forward to that!

Question for other G11 owners with Onstep and SHC

John Scherer
 

I have some confusion about goto rates between Onstep and the SHC.  I'm sure its just my understanding of how things are working, and maybe other G11 owners with onstep can clear things up.

I've got an older Celestron G11 mount with:
  • Onstep MaxPCB2
  • TMC2130 drivers on RA/DEC with VRef = 0.85v
  • Firmware 2.22p
  • DesiredBaseSlewRate = 1
  • Teensy 3.2 Smart Hand Controller with Firmware 1.5f
  • Orential Motor PKP244MD08B on RA/DEC
  • My Config.MaxPCB.h

My understanding is that with DesiredBaseSlewRate = 1, my maximum slew speed could be anything from .5 deg/s to 2 deg/s, based on how I have the Maximum GOTO speed set in the SHC or the Maximum Slew speed on the MaxPCB2 Wifi Configuration page. Is this correct?

Also, on the SHC, the slew rates displayed in the upper left, based on presses of the Fn buttons:
                   1/4x, 1/2x, 1x, then 2x 1x, 4x 1x, 8x 1x, 20x 1x, 48x 1x, 1/2Mx 1x, Max 1x
These rates are somewhat confusing to me and I assumed these were the same as the Maximum Goto Speed (but more selective?) in the setup menu but I'm not sure.

I ask these questions because my results seem odd to me:

Using the SHC:  Goto Speed (in settings/configuration) set to "Default Speed", if I issue a goto from the SHC, the motors start spinning as expected, but then randomly lock up, only unlocking as the goto action gets closer to the end of the movement and the motor slows down.  Its not until I select a Max Goto Speed = "Slowest", that the motors won't lock up during a slewing action.

The results are somewhat different though if I do a manual slew using N/S/E/W controls.  With the Goto Speed in settings set to "Normal", I can slew manually up to the "1/2Mx 1X" rate, with no motor lockup.

So many options here the behavior is hard to describe but hopefully someone can help.  I'd love to here from others with G11 mounts to see what max goto rates your getting?  I thought I saw that others were seeing around 2 deg/s with similar mount/motors/drivers.

Cheers

John

Re: #define AXIS2_DRIVER_MICROSTEPS line missing from Config.h #define

Khalid Baheyeldin
 

On Fri, Nov 8, 2019 at 07:21 PM, Pete wrote:
Also the PEC Buffer integer is no longer present.  Did you remove that Howard?
It is no longer needed, since the AXIS1_STEPS_PER_WORMROT parameter tells OnStep what the buffer size will be.

Re: #define AXIS2_DRIVER_MICROSTEPS line missing from Config.h #define

Khalid Baheyeldin
 

I see that line in the repo.

See line 134 of the Config.h file.

#define AXIS2_DRIVER_MICROSTEPS line missing from Config.h #define

Pete
 
Edited

The title says it.  It is just a copy/Paste and change a 1 to a 2 and it's fixed.

Also the PEC Buffer integer is no longer present.  Did you remove that Howard?

Re: STM32 103F power supply connections

Bojan
 

Enclosure is MultiComp G407,  panels (for SUB-15 and RJ43 & USB) are printed to accommodate connectors used.
Mini USB is  replaced with standard one (it is wired) now.
ST4 port is still not wired, will do it sometimes later.
It would be nice to have PCB specific for G407... but the wiring as it is now is good enough for small quantities ( I plan to make one more)
Wiring is simple: power (5V, from SUB15 connector) is applied to buffer (74HC04) first, then to STM board, from where other PCB's are powered.

And, as the final step, I will engrave OnStep logo on enclosure when I finish my laser engraver :-) (soon....)
















Re: Need help: OnStepMiniPCB Rev. 1.27x.; ESP-01 flash lost after flashing the Teensy board

Howard Dutton
 

Probably you didn't configure properly and the Serial connection between them was lost.

Re: Trouble with OnStep v2.22 and v3

Lothar Dorsch
 
Edited

            Are you saying the WiFi Addon isn't working?

With all due respect, no, not at all,
only for me the connection OnStep V 3 - App doesn't seem to work.

greeting
Lothar


// ---------------------------------------------------------------------------------------------------------------------------------
// 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 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                     MaxPCB //    OFF, Choose from: MiniPCB, MiniPCB2, MaxPCB, MaxPCB2, STM32Blue,             <-Req'd
                                          //         Ramps14, MaxESP2, MaxESP3.  Check Constants.h for more info.

// SERIAL PORTS --------------------------------------------------------------------------------------------------------------------
#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 --------------------------------------------------------------------------------------------------------------
#define MOUNT_TYPE                   FORK //    GEM, GEM for German Equatorial, FORK for Equatorial Fork, or ALTAZM          <-Req'd
                                          //         Dobsonian etc. mounts. GEM Eq mounts perform meridian flips.

// 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 --------------------------------------------------------------------------------------------------------------------
#define RTC                           OFF //    OFF, DS3231 (I2c,) DS3234S (SPI see pinmap for CS,) TEENSY (T3.2 internal.)   Option
                                          //         Provides Date/Time and pulse per second signal (if available.)

// SENSORS -----------------------------------------------------------------------------------------------------------------
// * = also supports ON_PULLUP or ON_PULLDOWN to activate MCU internal resistors if present.
#define WEATHER BME280_0x76               //    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.3 VDC) 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 -----------------------------------------------------------------------------------------------------------
// *** 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               ON //    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 -------------------------------------------------------------------------------------------------------
#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 ------------------------------------------------------------------------------------------------------
#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..100 (x sidereal rate) during backlash takeup.              Option
                                          //         Too fast motors stall/gears slam or too slow and sluggish in backlash.

// SYNCING BEHAVIOUR -------------------------------------------------------------------------------------------------------
#define SYNC_CURRENT_PIER_SIDE_ONLY    ON //     ON, Disables ability of sync to change pier side, for GEM mounts.            Option

// SLEWING BEHAVIOUR -------------------------------------------------------------------------------------------------------
#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               ON //    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.0 //    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        OFF //    OFF, ON Remember automatic meridian flip setting across power cycles.         Option

// PARKING BEHAVIOUR -------------------------------------------------------------------------------------------------------
#define STRICT_PARKING                OFF //    OFF, ON Un-parking is only allowed if successfully parked.                    Option

// MOTION CONTROL ----------------------------------------------------------------------------------------------------------
#define STEP_WAVE_FORM             SQUARE // SQUARE, PULSE Step signal wave form faster rates. SQUARE best signal integrity.  Adjust

// Stepper driver models are as follows: A4988, DRV8825, LV8729, RAPS128, S109, ST820, GENERIC, GENERIC2 (ENable HIGH,)
//                                       SERVO, SERVO2 (EN HIGH,) SSS TMC2100, TMC2208, 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 --------------------------
#define AXIS1_STEPS_PER_DEGREE    25600.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     38400 //  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 TMC2130_VQUIET //    OFF, (See above.) Stepper driver model.                                      <-Often
#define AXIS1_DRIVER_MICROSTEPS        32 //    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.    Infreq
#define AXIS1_LIMIT_MAXAZM            360 //    360, n. Where n=180..360 (degrees.) Max Azimuth + or - for AltAzm mode only.  Infreq

// AXIS2 DEC/ALT -------------------------
#define AXIS2_STEPS_PER_DEGREE    20480.0 //  12800, n. Number of steps per degree:                                          <-Req'd
                                          //         n = (stepper_steps * micro_steps * overall_gear_reduction)/360.0

#define AXIS2_DRIVER_MODEL TMC2130_VQUIET //    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           ON //    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_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 -------------------------
#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, (milli-sec.) 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 ----------------------
#define FOCUSER1                       ON //    OFF, ON to enable this focuser.                                               Option
#define AXIS4_STEPS_PER_MICRON        0.5 //    0.5, n. Steps per micro-meter. Figure this out by testing or other means.     Adjust
#define AXIS4_STEP_RATE_MAX           8.0 //    8.0, n, (milli-sec.) 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 ----------------------
#define FOCUSER2                      OFF //    OFF, ON to enable this focuser.                                               Option
#define AXIS5_STEPS_PER_MICRON        0.5 //    0.5, n. Steps per micro-meter. Figure this out by testing or other means.     Adjust
#define AXIS5_STEP_RATE_MAX           8.0 //    8.0, n, (milli-sec.) 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


upload baud rate 115200

// ---------------------------------------------------------------------------------------------------------------------------------
// Configuration for OnStep WiFi Add-on

/*
 *          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 ADD-ON'S FEATURES ------------------------------------------------------------------------
// <-Req'd = always must set, <-Often = usually must set, Option = optional, Adjust = adjust as req'd, Infreq = infrequently changed

// On first successful startup an AP will appear with an SSID of "ONSTEP", after connecting: the web-site is at "192.168.0.1" and
// the cmd channel is at "192.168.0.1:9999". If locked out selecting "Erase Flash: All Flash Contents" from the Arduino Tools menu
// before uploading/flashing again can help restore access to the ESP8266.

//      Parameter Name              Value   Default  Notes                                                                      Hint
// SERIAL PORTS --------------------------------------------------------------------------------------------------------------------
#define SERIAL_BAUD_DEFAULT          9600 //   9600, Common baud rates for these parameters are 9600,19200,57600,115200.      Infreq
#define SERIAL_BAUD                 57600 //  57600, Use 19200 if talking to a Mega2560 OnStep                               <-Req'd
                                          //         At startup this firmware will attempt to switch OnStep's baud rate to this
                                          //         faster speed (vs. SERIAL_BAUD_DEFAULT) and AFTER success, start WiFi, etc.
                                          //         If establishing a link to OnStep was ***unsuccessful*** the ESP8266 may
                                          //         retain prior settings perhaps an SSID from factory defaults, for example.

#define SERIAL_SWAP                   ON //    OFF, ON to swap ESP8266 Serial default location from GPIO 1(TX)/3(RX) to     <-Req'd
                                          //         15(TX2)/13(RX2.) These are labeled D8(TXD2)/D7(RXD2) on a WeMos D1 Mini.
                                          //         Use ON for MiniPCB2, MaxPCB2, MaxESP2.  OFF for STM32, MiniPCB (ESP-01.)

// USER FEEDBACK -------------------------------------------------------------------------------------------------------------------
#define LED_STATUS                    ON //    OFF, 2 for WeMos D1 Mini. Flashes LED when trying to connect to OnStep.       Option

// DISPLAY -------------------------------------------------------------------------------------------------------------------------
#define DISPLAY_WEATHER                ON //    OFF, ON Shows weather/ambient conditions (from OnStep) on status page.        Option
#define DISPLAY_INTERNAL_TEMPERATURE  OFF //    OFF, ON for internal MCU temperature display.                                 Option
#define DISPLAY_WIFI_SIGNAL_STRENGTH  OFF //    OFF, ON if wireless signal strength is to be reported via web interface       Option
#define DISPLAY_SPECIAL_CHARS          ON //     ON, For standard ASCII special symbols (compatibility.)                      Infreq
#define DISPLAY_ADVANCED_CHARS         ON //     ON, For standard "RA/Dec" instead of symbols.                                Infreq

// COMMAND CHANNELS ----------------------------------------------------------------------------------------------------------------
#define STANDARD_COMMAND_CHANNEL       ON //     ON, Enable standard cmd channel port 9999 use w/Android App & ASCOM driver.  Infreq
#define PERSISTENT_COMMAND_CHANNEL    OFF //    OFF, Enable persistent cmd channel port 9998 use w/INDI? & Stellarium Mobile. Infreq
                                          //         Experimental, possibly causes problems w/standard cmd channel if enabled.
#define MONITOR_GUIDE_COMMANDS        OFF //    OFF, Allow error reporting to also monitor guide commands.                    Infreq

// ENCODER SUPPORT -----------------------------------------------------------------------------------------------------------------
#define AXIS1_ENC                     OFF //    OFF, CWCCW, AB. RA/Azm Axis on Pin 5 (A or CW) and Pin 6 (B or CCW,)          Option
#define AXIS1_ENC_REVERSE             OFF //    OFF, ON to reverse the count direction.                                       Adjust
#define AXIS1_ENC_TICKS_DEG     555.55555 // 555.55, n, (ticks/degree.) Encoder ticks per degree.                             Adjust
#define AXIS1_ENC_DIFF_LIMIT          900 //    900, n, (arcsec.) Maximum difference between encoder and OnStep before sync.  Adjust

#define AXIS2_ENC                     OFF //    OFF, CWCCW, AB. Dec/Alt Axis on Pin 7 (A or CW) and Pin 8 (B or CCW)          Option
#define AXIS2_ENC_REVERSE             OFF //    OFF, ON to reverse the count direction.                                       Option
#define AXIS2_ENC_TICKS_DEG      13.33333 // 13.333, n, (ticks/degree.) Encoder ticks per degree.                             Adjust
#define AXIS2_ENC_DIFF_LIMIT          900 //    900, n, (arcsec.) Maximum difference between encoder and OnStep before sync.  Adjust
                                                    
#define ENCODERS_AUTO_SYNC_DEFAULT    OFF //    OFF, ON To start with auto sync of OnStep to encoder values enabled.          Adjust

// ENCODER RATE CONTROL
#define AXIS1_ENC_RATE_CONTROL        OFF //    OFF, ON Rate control for RA high resolution encoder. EQ mounts only.          Infreq
#define AXIS1_ENC_INTPOL_COS          OFF //    OFF, ON enables cosine compensation feature.                                  Infreq
#define AXIS1_ENC_RATE_AUTO           OFF //    OFF, n, (Worm period in seconds.) Adjusts avg encoder pulse rate to account   Option
                                          //         for skew in the average guide rate over the last worm period.            Option
#define AXIS1_ENC_BIN_AVG             OFF //    OFF, n, (Number of bins.)  Enables binned rolling average feature.            Option

// AUXILLARY SWITCH/FEATURE CONTROL ------------------------------------------------------------------------------------------------
// *** Warning: only OnStep Aux pins that are unused for other purposes should be assigned! ***
#define SW0_OFF                           //   _OFF, "Name" for Aux0 feature on Control webpage, provides On/Off control.     Adjust
#define SW1_OFF                           //   _OFF, "Name" for Aux1 feature on Control webpage, provides On/Off control.     Adjust
#define SW2_OFF                           //   _OFF, "Name" for Aux2 feature on Control webpage, provides On/Off control.     Adjust
#define SW3_OFF                           //   _OFF, "Name" for Aux3 feature on Control webpage, provides On/Off control.     Adjust
#define SW4_OFF                           //   _OFF, "Name" for Aux4 feature on Control webpage, provides On/Off control.     Adjust
#define SW5_OFF                           //   _OFF, "Name" for Aux5 feature on Control webpage, provides On/Off control.     Adjust
#define SW6_OFF                           //   _OFF, "Name" for Aux6 feature on Control webpage, provides On/Off control.     Adjust
#define SW7_OFF                           //   _OFF, "Name" for Aux7 feature on Control webpage, provides On/Off control.     Adjust
#define SW8_OFF                           //   _OFF, "Name" for Aux8 feature on Control webpage, provides On/Off control.     Adjust

// AUXILLARY ANALOG/FEATURE CONTROL ------------------------------------------------------------------------------------------------
// *** Warning: only OnStep Aux pins that are unused for other purposes should be assigned! ***
#define AN3_OFF                           //   _OFF, "Name" for Aux3 feature on Control webpage, provides 0..100% PWM.        Adjust
#define AN4_OFF                           //   _OFF, "Name" for Aux4 feature on Control webpage, provides 0..100% PWM.        Adjust
#define AN5_OFF                           //   _OFF, "Name" for Aux5 feature on Control webpage, provides 0..100% PWM.        Adjust
#define AN6_OFF                           //   _OFF, "Name" for Aux6 feature on Control webpage, provides 0..100% PWM.        Adjust
#define AN7_OFF                           //   _OFF, "Name" for Aux7 feature on Control webpage, provides 0..100% PWM.        Adjust
#define AN8_OFF                           //   _OFF, "Name" for Aux8 feature on Control webpage, provides 0..100% PWM.        Adjust

// THAT'S IT FOR USER CONFIGURATION!

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

// misc. options that are usually not changed
#define DEBUG_OFF  // Turn _ON to allow WiFi startup without OnStep attached (Serial port for debug at 115200 baud)
#define Ser Serial // Default=Serial, This is the hardware serial port where OnStep is attached

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

Am 08.11.2019 um 14:26 schrieb Howard Dutton:
Post configuration files for everything.

-- 
Lothar Dorsch
Siedlung 6
96164 Kemmern

Web:  www.astro-ld.bnv-bamberg.de
Mail: l-dorsch@...

Need help: OnStepMiniPCB Rev. 1.27x.; ESP-01 flash lost after flashing the Teensy board

Roman
 

Hello Group,

In my OnStepMiniPCB, Rev. 1.27x, after the flashing the teensy board, the flash in the ESP.01 board will be lost! What is the cause and what can I do about it?

Thank you very much for help!

Kind regards
Roman

Re: Affordable Tripod Mounts for Onstep Steps

George Cushing
 

Really not enough specificity in your inquiry to form an answer. Affordability is in the eyes and ability of the beholder.

It is my impression that the great majority of OnStep implementations are on mounts already owned by their users. These mounts are being adapted to OnStep to replace dead control systems or add goto functionally. I am starting to see want ads for used mounts that have dead electronics. I suspect folks want to bring them back to life with OnStep.

I have been buying dead mounts for years mainly to break them up for parts that are otherwise unobtainable. Not a lot of money in it but I like to help folks in the hobby keep there old mounts working. You'd be surprised how many colleges and universities still use equipment from the '80s & 90s. I just sent a Super C8 drive motor to the Rutgers Dept. of Physics & Astronomy for $10. However, I wouldn't bother to implement Onstep on the majority of the mounts I've broken up. It's not that it couldn't be done. It's simply the time and effort are not worth it to ME. If I was some kid in Brazil and did have the choices I have, it may be worth the effort. Particularly when he's looking a 65% tariff on any imported mount. I'm building a STM32 now for such a person who machined most of his mount.



So the short answer to your question is anything from a pile of parts, metal plate and grit to a pre goto AP 1200 and $3500..


Re: A new focuser motor on my 1-1/4" JMI RCF

Corey Mooney
 

Hi Howard,

You've inspired me to make some progress toward motorizing my focuser ( 8" EAA rig on an OnStep mount).
Thanks for the tip on the little geared stepper motors. I ended up ordering a couple of these 10mm 1:275 steppers
Your results are promising. 

Could be fun to try and make a mini 3D printed alt-az mount using these itty-bitty motors to drive little baby worms or GT2 pullies. 

-Corey


On Fri, Nov 8, 2019 at 8:47 AM Howard Dutton <hjd1964@...> wrote:
I just finished off these two focusers.  They now both have RJ22 jacks inside the housing and so a detachable cable can plug them in.

I discovered two things during my final setup/testing:

1. The actual current I was sending to the tiny stepper motor was less than I thought, I didn't have the drivers set properly at Vref = 2.5V.  This is a good thing, the motors are not being overpowered and don't need to be run out of spec.  I now use the full rated current, peak = 276mA when moving and drop back to 80mA at standstill.

2. I spent about 3 hours figuring out that a socket header for the CS signal (spi bus) to focuser2 wasn't making contact.  It was a bad socket header LOL, was loosing my mind trying to figure that one out...  Tested good for continuity even since I was pressing on the pin with the meter lead.  Let the pressure go and it would loose contact.

Re: Trouble with OnStep v2.22 and v3

Howard Dutton
 

On Fri, Nov 8, 2019 at 05:25 AM, Howard Dutton wrote:
On Fri, Nov 8, 2019 at 05:11 AM, Howard Dutton wrote:
With OnStep V 3 I can't connect to the App, WebPage or SkySafari 5 plus, via Sky Planetarium this version runs fine.
Are you saying the WiFi Addon isn't working?
I would still like to know if the WiFi Addon had an issue w/OnStep version 3...

I have lingering doubts about the baud rate switch (and port swap) handshake for the WiFi Addon in version 3 since I made changes to it for this new version.

If this were an issue test with all three baud rates at 115200 to resolve it.  OnStep SERIAL_B_BAUD_DEFAULT and both WiFi Addon settings too.

That way there is no baud rate switching or swapping port locations.