Menu

lilygo T-motor issues

2024-02-21
2024-03-30
1 2 > >> (Page 1 of 2)
  • stephen webster

    stephen webster - 2024-02-21

    im trying to build the lilygo focuser but i cant seem to find the "PRO2ESP32TMC2209LGTM" option in controller config.h. im not using the xiao board (bought the wrong version) but have managed to upload to the lilygo with panics and constant reboots. i have uploaded data after the flash but no fix. do i have to use the xiao?
    thanks for any help you can give

     
    • Eric Harant

      Eric Harant - 2024-02-22

      Hi Stephen.

      Are you using a Lilygo T-Motor Board or a XIAO and witch Xiao (C3 , S3 ...)?

      Lilygo T-Motor Board is an ESP32 Pico D4

      PRO2ESP32TMC2209LGTM is the right choice.

      If not present in controller_config.h it is a mater of release.

      I can check that this evening.

      Regards

      Eric

      Le 21/02/2024 à 20:37, stephen webster a écrit :

      im trying to build the lilygo focuser but i cant seem to find the
      "PRO2ESP32TMC2209LGTM" option in controller config.h. im not using the
      xiao board (bought the wrong version) but have managed to upload to
      the lilygo with panics and constant reboots. i have uploaded data
      after the flash but no fix. do i have to use the xiao?
      thanks for any help you can give


      lilygo T-motor issues
      https://sourceforge.net/p/myfocuserpro2-esp32/discussion/general/thread/978b859de3/?limit=25#1680


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/myfocuserpro2-esp32/discussion/general/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      --
      Cet e-mail a été vérifié par le logiciel antivirus d'Avast.
      www.avast.com

       
      • stephen webster

        stephen webster - 2024-02-22

        im using the t motor board but bought the xiao s3 instead of the c3 (that wouldnt speak to the board) so i used another board but uploads would just panic the board and boot loop. the LGTM option is not available in controller config.h with only the xiao being selectable but in other parts of the sketch LGTM is mentioned so im super confused as to what i should select

         
  • stephen webster

    stephen webster - 2024-02-22

    thank you so much for your reply, i noticed the lilygo is quite a newer board for myfp but it is so convenient. i will give the amendments a try tonight

     
  • stephen webster

    stephen webster - 2024-02-22

    sorry to ask, but where exactly should i place the amendment? just so i know im not messing things up lol

     
    • Eric Harant

      Eric Harant - 2024-02-22

      You have to place it in controller_config.h.

      Now you have at the begining of the file :

      // ----------------------------------------------------------------------
      // BOARD DEFINES [do not change names]
      // ----------------------------------------------------------------------
      // Uncomment only your board - ONLY ONE BOARD SHOULD BE UNCOMMENTED

      // ESP32 Boards

      define DRVBRD     PRO2ESP32DRV8825

      //#define DRVBRD     PRO2ESP32ULN2003
      //#define DRVBRD     PRO2ESP32L298N
      //#define DRVBRD     PRO2ESP32L293DMINI
      //#define DRVBRD     PRO2ESP32L9110S
      //#define DRVBRD    PRO2ESP32R3WEMOS        // fixed step mode
      //#define DRVBRD    PRO2ESP32TMC2225
      //#define DRVBRD    PRO2ESP32TMC2209
      //#define DRVBRD    PRO2ESP32TMC2209P       // for Paul using TMC2209 -
      58.jsn
      //#define DRVBRD    PRO2ESP32ST6128         // for CLOSED LOOP ST6128
      driver. fixed step mode
      //#define DRVBRD    PRO2ESP32LOLINS2MINI    // for Higany, target is
      LOLIN S2 Mini - 60.jsn
      //#define DRVBRD    PRO2ESP32TMC2209XIAOC3  // Eric Harant,
      Lilygo-T-Motor board
      //#define DRVBRD     CUSTOMBRD

      You have to get this :

      // ----------------------------------------------------------------------
      // BOARD DEFINES [do not change names]
      // ----------------------------------------------------------------------
      // Uncomment only your board - ONLY ONE BOARD SHOULD BE UNCOMMENTED

      // ESP32 Boards
      //#define DRVBRD     PRO2ESP32DRV8825
      //#define DRVBRD     PRO2ESP32ULN2003
      //#define DRVBRD     PRO2ESP32L298N
      //#define DRVBRD     PRO2ESP32L293DMINI
      //#define DRVBRD     PRO2ESP32L9110S
      //#define DRVBRD    PRO2ESP32R3WEMOS        // fixed step mode
      //#define DRVBRD    PRO2ESP32TMC2225
      //#define DRVBRD    PRO2ESP32TMC2209
      //#define DRVBRD    PRO2ESP32TMC2209P       // for Paul using TMC2209 -
      58.jsn
      //#define DRVBRD    PRO2ESP32ST6128         // for CLOSED LOOP ST6128
      driver. fixed step mode
      //#define DRVBRD    PRO2ESP32LOLINS2MINI    // for Higany, target is
      LOLIN S2 Mini - 60.jsn

      define DRVBRD    PRO2ESP32TMC2209LGTM    // Eric Harant, Lilygo-T-Motor

      board - 61.jsn , set target to ESP32 PICO-D4
      //#define DRVBRD    PRO2ESP32TMC2209XIAOC3  // Eric Harant, Xiao C3 dev
      board -62.jsn, set target to ESP32 C3
      //#define DRVBRD     CUSTOMBRD

      Hope this is clear enought

      Best regards

      Eric

      Le 22/02/2024 à 14:07, stephen webster a écrit :

      sorry to ask, but where exactly should i place the amendment? just so
      i know im not messing things up lol


      lilygo T-motor issues
      https://sourceforge.net/p/myfocuserpro2-esp32/discussion/general/thread/978b859de3/?limit=25#f999


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/myfocuserpro2-esp32/discussion/general/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      --
      Cet e-mail a été vérifié par le logiciel antivirus d'Avast.
      www.avast.com

       
  • stephen webster

    stephen webster - 2024-02-22

    uploaded the changes but all im getting is this in serial monitor :(

     
  • Eric Harant

    Eric Harant - 2024-02-22

    Stephen.
    Try to compile and load a simple exemple like "hello world"
    it should run without problem
    Then upload the spifs partition
    and at last upload the new firmware.

     
    👍
    1
  • Eric Harant

    Eric Harant - 2024-02-22

    I just rebuild myfp2esp32_311-02 , with the changes I tell you,
    I have to change also line 375 in driver_board.cpp (missing parenthesis)
    } else if ((_boardnum == PRO2ESP32TMC2209LGTM) || (_boardnum == PRO2ESP32TMC2209XIAOC3)) {

    I load the data before and then compile and load the bin
    and evething works

    I think that a previous attemp corrupted one the SPIFS files

    I usualy always clean the SPIFS before testing a new version.

     
  • Eric Harant

    Eric Harant - 2024-02-22

    Screen shot of managment server

     
  • brownrb

    brownrb - 2024-02-23

    Hi
    Just confirm that the esp32 section within boarddefs.h looks like

    #define PRO2ESP32DRV8825 44   // DRV8825
    #define PRO2ESP32ULN2003 45   // ULN2003
    #define PRO2ESP32L298N 46     // L298N
    #define PRO2ESP32L293DMINI 47 // L293DMini uses PCB layout for ULN2003
    #define PRO2ESP32L9110S 48    // L9110S uses PCB layout for ULN2003
    #define PRO2ESP32R3WEMOS 49   // 
    #define WEMOSDRV8825H 50      // Wemos + DRV8825 this is for Holger
    #define PRO2ESP32TMC2225 56   // TMC2225 Board for BigTree TMC2225
    #define PRO2ESP32TMC2209 57   // TMV2209 Board for BigTree TMC2209
    #define PRO2ESP32TMC2209P 58  // This is board for Paul using TMC2209 for testing
    #define PRO2ESP32ST6128 59    // ST6128 board
    // set target as LOLIN S2 Mini
    #define PRO2ESP32LOLINS2MINI 60   // This is board for LOLIN ESP32S2 MINI
    #define PRO2ESP32TMC2209LGTM 61   // This is a board created for testing LilyGo
    // set target to ESP32 PICO-D4
    #define PRO2ESP32TMC2209XIAOC3 62 // This is board for LiliGo-T-Motor
    

    and in Boards part of controller_config.h looks lke

    //#define DRVBRD    PRO2ESP32ULN2003
    //#define DRVBRD    PRO2ESP32L298N
    //#define DRVBRD    PRO2ESP32L293DMINI
    //#define DRVBRD    PRO2ESP32L9110S
    //#define DRVBRD    PRO2ESP32R3WEMOS // fixed step mode
    //#define DRVBRD    PRO2ESP32TMC2225
    //#define DRVBRD    PRO2ESP32TMC2209
    //#define DRVBRD    PRO2ESP32TMC2209P // for Paul using TMC2209 - 58.jsn
    //#define DRVBRD    PRO2ESP32ST6128 // for CLOSED LOOP ST6128 driver. fixed step mode
    //#define DRVBRD    PRO2ESP32LOLINS2MINI // for Higany, target is LOLIN S2 Mini - 60.jsn
    //#define DRVBRD    PRO2ESP32TMC2209LGTM // This is a board created for testing LilyGo - 61.jsn
    //#define DRVBRD    PRO2ESP32TMC2209XIAOC3 // Eric Harant, Lilygo-T-Motor board
    //#define DRVBRD    CUSTOMBRD
    

    and you have these in the data/boards folder

    60.jsn
    61.jsn
    62.jsn
    

    and the fix that Eric listed above, line 375 in driver_board.cpp (missing parenthesis)

    } else if ((_boardnum == PRO2ESP32TMC2209LGTM) || (_boardnum == PRO2ESP32TMC2209XIAOC3)) {
    

    Eric is the Authoritative source on the LilyGo-T-Motor, I do not have one, so Eric is the goto guy on this - and thanks Eric for helping out, most appreciated

    regards
    Robert

     
    👍
    1
  • stephen webster

    stephen webster - 2024-02-23

    thank you both for your help. i had noticed the parenthesis and changed it so im glad i got that right lol. ill give it another go tonight when i get in. ill probably just delete everything and start over with a fresh install of all libraries etc. thank you

     
  • stephen webster

    stephen webster - 2024-03-22

    hmm, well i am still getting the boot loop problem even after all the amendments and even using a different board. board doesnt light up, screen isnt coming on and im just getting frustrated lol. i have used other boards and they have worked with no issues, i just cant seem to get these lilygo boards running :(

     
    • Eric Harant

      Eric Harant - 2024-03-22

      I will try to help you

      Can you read some messages on the serial console ?

      Le 22/03/2024 à 12:25, stephen webster a écrit :

      hmm, well i am still getting the boot loop problem even after all the
      amendments and even using a different board. board doesnt light up,
      screen isnt coming on and im just getting frustrated lol. i have used
      other boards and they have worked with no issues, i just cant seem to
      get these lilygo boards running :(


      lilygo T-motor issues
      https://sourceforge.net/p/myfocuserpro2-esp32/discussion/general/thread/978b859de3/?limit=25#bf46


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/myfocuserpro2-esp32/discussion/general/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      --
      Cet e-mail a été vérifié par le logiciel antivirus d'Avast.
      www.avast.com

       
      • stephen webster

        stephen webster - 2024-03-22

        hi Eric. ill send some screenshots tonight when i get in from work and a picture of the way i have i wired etc. thank you

         
        • Eric Harant

          Eric Harant - 2024-03-22

          If you want you can send me your source and config files in a Zip
          archive so I can check them on my LillyGo-T

          Best regards

          Le 22/03/2024 à 14:30, stephen webster a écrit :

          hi Eric. ill send some screenshots tonight when i get in from work and
          a picture of the way i have i wired etc. thank you


          lilygo T-motor issues
          https://sourceforge.net/p/myfocuserpro2-esp32/discussion/general/thread/978b859de3/?limit=25#bf46/9b9c/67eb


          Sent from sourceforge.net because you indicated interest in
          https://sourceforge.net/p/myfocuserpro2-esp32/discussion/general/

          To unsubscribe from further messages, please visit
          https://sourceforge.net/auth/subscriptions/

          --
          Cet e-mail a été vérifié par le logiciel antivirus d'Avast.
          www.avast.com

           
          • stephen webster

            stephen webster - 2024-03-22

            i think what you need is all there, please let me know if you need anything else :)

             
            • stephen webster

              stephen webster - 2024-03-22

              the serial monitor screenshot is after i have just tried again and no bootloop this time, but putting the 12v into the board does nothing, no screen power and no led on the board either

               
              • Eric Harant

                Eric Harant - 2024-03-25

                Hi Stephen.

                I make it run but not the display for the moment.

                I Believe that you have a issue with wifi connexion.

                You can create a wificonfig.jsn text file in the data folder with this format :

                {"mySSID":"myssid","myPASSWORD":"mypasswd","mySSID_1":"myssid_EXT","myPASSWORD_1":"mypasswdi"}

                Replace ssid and password with you setting.
                ESP Wifi only works with 2.4 GHz Wifi not 5GHz

                You will « see » the focuser connected on your netwoork and start to play with it
                I will try to found a small usable I2C display in my stock to check it.

                Best regards
                Eric

                Envoyé à partir de Courrier pour Windows

                De : stephen webster
                Envoyé le :vendredi 22 mars 2024 20:09
                À : [myfocuserpro2-esp32:discussion]
                Objet :[myfocuserpro2-esp32:discussion] Re: lilygo T-motor issues

                the serial monitor screenshot is after i have just tried again and no bootloop this time, but putting the 12v into the board does nothing, no screen power and no led on the board either

                lilygo T-motor issues

                Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/myfocuserpro2-esp32/discussion/general/
                To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

                --
                Cet e-mail a été vérifié par le logiciel antivirus d'Avast.
                www.avast.com

                 
    • brownrb

      brownrb - 2024-03-25

      well i am still getting the boot loop problem

      The boot loop issue is common and there are two things that cause it.
      1. The data sketch files are not uploaded
      2. network connectivity issue, wrong ssid credentials etc

      the best way is to enable the bootup logging. Outputs messages to serial port when booting up (speed 115200)

      Disable debug server
      In file controller_defines.h, towards line 25 of the file, change
      //#define BOOT_PRINT 1
      to
      #define BOOT_PRINT 1
      and reprogram the controller.

      You will be able to see if the chip is connecting correctly based on the log messages
      If spiffs fails to start you will see that -
      If you are using WifiConfig you will also see that
      If you get to the stage of starting the web server/management server and then fails, the files for that are not on the esp32 in spiffs.

      It is always best to upload firmware, upload data sketch files. Since u seem to be having a lot of issues, I would suggest upload of firmware and sketch files are done using Serial port and NOT via OTA.

      Also, dont use IDE version 2,x,x as it has an option to clear Spiffs when uploading new firmware. Which is why its always a good idea of loading the sketch data files immediately after a firmware upload.

      Regards

       

      Last edit: brownrb 2024-03-25
      • stephen webster

        stephen webster - 2024-03-25

        im using 1.8.19 at the moment. ill give these suggestions a go shortly, thank you both so much for your help as i was getting really frustrated with something as simple as this lol

         
      • stephen webster

        stephen webster - 2024-03-25

        my internet credentials are correct, ive tried uploading spiffs before and after firmware upload, ive tried 2 different lillygo boards and get the same result. im about ready to give up and go back to the arduino solderless version :(

         
        • Eric Harant

          Eric Harant - 2024-03-25

          May compiler setup
          This is what I use :

          Envoyé à partir de Courrier pour Windows

          De : stephen webster
          Envoyé le :lundi 25 mars 2024 16:00
          À : [myfocuserpro2-esp32:discussion]
          Objet :[myfocuserpro2-esp32:discussion] Re: lilygo T-motor issues

          my internet credentials are correct, ive tried uploading spiffs before and after firmware upload, ive tried 2 different lillygo boards and get the same result. im about ready to give up and go back to the arduino solderless version :(
          Attachments:
          • loop.PNG (40.5 kB; image/png)

          lilygo T-motor issues

          Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/myfocuserpro2-esp32/discussion/general/
          To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

          --
          Cet e-mail a été vérifié par le logiciel antivirus d'Avast.
          www.avast.com

           
1 2 > >> (Page 1 of 2)

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.