Menu

myFP2W 2.5.04 does not complete connection sequence

Dr_Ju_Ju
2023-06-09
2023-06-13
  • Dr_Ju_Ju

    Dr_Ju_Ju - 2023-06-09

    When trying to start up and connect, it appears to correctly recognises the "Firmware" info, i.e. "myFP2DRVHW203, 325, myFP2" and retrieves the last focuser settings etc. but then comes back with the error message "Not Connected".

    If I try connecting with myFP2Mini 2.4.0.6, all works as expected.

    I'm unable to supply any logs, as none are generated

     
  • brownrb

    brownrb - 2023-06-10

    Enable logging on the Windows app
    Connect to the controller
    When it stops, close the Windows app and post the log file
    And post the focuserconfog.h file please

     

    Last edit: brownrb 2023-06-10
  • Dr_Ju_Ju

    Dr_Ju_Ju - 2023-06-10

    I eventually managed to generate a log by un-installing/re-installing the app, and setting the log path there, as it would not let me do it from within the app !! also I used to use a folder under "AppData" but that no longer works either...

     
  • Dr_Ju_Ju

    Dr_Ju_Ju - 2023-06-11

    Thanks Robert, now works !!

    Just one question I have, is that, is it possible to set some of the initial default settings, as an example I want the Coil Power to be off, as currently it comes on, and setting reverse direction ??

    And for your information, I'm still unable to update the "Log File Path" from within the application.

    Regards Julian

     
  • brownrb

    brownrb - 2023-06-12

    see inside the main .ino file

    void setfocuserdefaults() {
      myfocuser.validdata = VALIDDATAFLAG;
      myfocuser.maxstep = DEFAULTMAXSTEP;
      maxSteps = DEFAULTMAXSTEP;
      myfocuser.fposition = DEFAULTPOSITION;
      // set to 1 or ON
      myfocuser.displayenabled = myfocuser.tcdirection = myfocuser.tempmode = myfocuser.stepmode = myfocuser.coilpower = 1;
      // set to 0 or OFF
      isMoving = myfocuser.backlash_out_enabled = myfocuser.backlash_in_enabled = myfocuser.backlashsteps_out = myfocuser.backlashsteps_in = myfocuser.delayaftermove = myfocuser.tempcoefficient = myfocuser.tempcompenabled = myfocuser.stepsizeenabled = myfocuser.reversedirection = 0;
    #if defined(UTFTDISPLAY)
      myfocuser.lcdpagetime = DISPLAYPAGETIMEMAX;
    #else
      myfocuser.lcdpagetime = DISPLAYPAGETIMEMIN;
    #endif
      myfocuser.stepsize = DEFAULTSTEPSIZE;  // default is celsius
      myfocuser.tempresolution = TEMPRESOLUTION;
      myfocuser.focuserdirection = MOVINGIN;
      myfocuser.motorspeed = FAST;
      myfocuser.pbsteps = 1;
      myfocuser.stepdelay = MSDELAY;
      resetdisplayoption();
      writeEEPROMNow();
    }
    

    so this is where it can go

    myfocuser.coilpower = 0;
    myfocuser.reversedirection = 1;
    

    and reprogram the controller
    then in the windows app you can use Settings-Set default settings, which will write the default settings into eeprom, then will reboot the controller.

    If you are using Reverse, then please be aware this is not recommended for
    - a home position switch
    - temperature compensation
    So if you plan to use either, then you need to change the motor so reverse is not needed
    That is done simply by changing one of the coils wiring
    eg for some stepper motor it might be
    coil 1 - black, green
    coil 2 - blue, red
    so changing coil 1 we get
    coil 1 = green, black
    coil 2 = blue, red
    and that should remove the need to run reverse On

    regards
    Robert

     
  • Dr_Ju_Ju

    Dr_Ju_Ju - 2023-06-13

    Thanks Robert for all the info, & I'll recheck all the motor connections, to all is as it should be, but I run multi scope setting that require me to 'reverse' the fitting of the motors, that's why I also update some of the other setting so that I can easily identify each of the controllers...

    Yours

    Julian

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.