Hello Robert, Eric
I recently took the move to buy a LGTM board to test for a compact focsuer.
- I am wondering why the IR remote is not possible on the board, since the PICO D4 esp seems to have 4 timers.
- You made some work on the board to add the Temp pin, making a hole in the board to connect on the missing U3 chip pads, but the schematic on the lilygo github differs somewhat from the one you provided for the connection pins in the pdf (VOUT1 is IN_STEP, while on lilygo VOUT1 is called STEP in green and do not appears to be connected anywhere on the esp
- on lilygo schematic uart_rx and uart_tx are connected to io25 and 26 while on yours it is connected to io26 and io27. which one is correct ?
- you "connected" hpsw to pin26. did you managed to connect the diag pin to the esp, or is it just inactive anyway?
Regards
Joël
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
then you should be able to recompile. I do not have an LGTM board so I have no idea there, I have the esp32 dev module.
Within the IR code library, myfp2eIRremoteESP8266, which i hacked to reduce code.
file myfp2eIRrecv.h line 53-54 specifies using timer3
// Which of the ESP32 timers to use by default. (0-3)
const uint8_t kDefaultESP32Timer = 3;
- You made some work on the board to add the Temp pin
-Sorry not me, Eric would have to answer that
ilygo schematic uartrx and uarttx are connected to io25 and 26 while on yours it is connected to io26 and io27. which one is correct ?
-Sorry not me, Eric would have to answer that
- you "connected" hpsw to pin26. did you managed to connect the diag pin to the esp, or is it just inactive anyway?
Again I would that for Eric
I still have a ton of work left on next update 314. As I have gone through the updates, and testing as I go, I have found numerous things that are broken, cause reboots, affect other settings instead of the settings that are meant to change, and in others just do not work. This is why its going a bit slower.
thanks for the answer Robert,
i posted also for Éric , i hope he will have answers.😉
thanks for the big work on the firmware. once again i can help for debug if needed
Joël
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Dave
Not sure if the question was for me. If is was not, please ignore.
The two files I posted above was the fix for irremote in v312.
314 is not ready yet, and I cant post those files so what I did was apply the IRRemote fix to the v312 by posting the .ino and controller_config.h files.
Regards
Robert
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have and use ,4 focusers build with the LilyGo T-Motor board, All have Temp Sensor, 2 have a display.
As I use them remotly for astrophotograpy, I don't nead manual commands nor display or leds.
Some answers :
IR remote : it should works, nead to be tested.
Temp Pins Works : I draw my own schematics of the T-Motor boards. I don't think that they product different versions. I just received 2 new boards. I will check that.
Lilygo schematic : many errors
TMC Diag Pin : Lilygo connect the pin to a Led. Hard to wired it to the MCU.
Best regards from France
Eric
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Lilygo schematic : many errors : look at pin assignment of J4 connector (suposed to be the display connector) !!!!
I will send you my shematics (that match the production PCB) latter
Best regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
For Infra Red, we can use the same solution that for the Temp Sensor.
We nead +Vcc, Gnd and a signal pin. Ther a Pin still awilable on the missing TLP2168 ship pad.
STEP is used for Temp, we can use Dir for IR.
The TLP2168 is a photocoupler.
At the begining the T-Motor PCB was designed to drive an other external T-Motor.
One is the master that can emit signal for the slave that can receive it. That's why you can see STEP-IN / STEP-OUT. A board can be only Slave or Master (IN or OUT) not both.
But only one kind of board is available on the market
Step pad is linked to IN_STEP pin on the MCU and Dir pad is linked to the IN_DIR pin on the MCU .
This evening I will check the GPIO numbers.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the detailed answers!! I think i get it. There is indeed errors between their board photo and the schematic...(for SCL/SDA io, for uart rx/tx..)
For the temp sensor connection (and for the ir as well) i was thinking to solder a bridge (wrapping wire) between CAT1/VOUT1 and CAT2/VOUT2 (and maybe the power as well) to avoid drilling a hole, and to make the wiring of sensors easier afterwards (it looks simpler for me to solder "tiny wires" on "tiny pads" than "large wire" on tiny pad and to connect the sensors using the header after. Do you think it will work ?
I had an answer from them on MP that they will have a look on this issue...wait and see.
Anyway thanks for the schematic and work on this board.
Regards from Uriage
Joël
Last edit: Collet 2024-08-29
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
got my T-motor board today :D
did not have time before the week end to work on it, but nevertheless i have some questions
i used the calculation sheet for my motor (nema14, 400steps 400mA current, 25 ohms, looks the same as one of the motor in the documentation).
this result for a 0,11ohm Rsense in a CS value of 4 which is rather small and not fine for microstepping according to the claculation file and the datasheet as well
however if we use a VSENSE setting of 1, the CS is then 8 or 9, which is still too small but better than 4 anyway (. is it possible to set the vsense to 1 in the code (maybe create a new define constant in the TMCstepperdefine file ?). a test code with a call to set vsense to 1 compiles fine, but did not tested on the board)
What do you think about these option ?
Joël
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
All « low level » TMC2209 stteing are in the file driver_board.cpp and defines/tmcstepper_defines.h
This do most off the job :
void DRIVER_BOARD::init_tmc2209(void)
Current setting works fine for me with different motors.
As the motor runs very slowly, less than a round per second…
In the TMC2209 datasheet one can read that some functions does not work well at slow speed (like stall guard) .
To fine tune a TMC2209 and a specific motor it is better to use a very simple program using tmcstepper library.
TMC on their web site present a procedure to do it. But it requires some advanced equipments.
I’ve read somewhere in TMC documentation that the TMC2209 is able to auto calibrate itself.
As I say it works as it is, without impact on accuracy .
Having a look at other software (Klipper, OneStep, … ) there are not so much differences in the way they initialise TMC stepper drivers.
And no nead to tum the pot. on the card. Settings are done by the program, using the serial line.
The dip switch are used to set the address of the TMC2209 (b00 to b11)
We can discus about that in detail and try to find a way to tune it « better ».
Regards
Eric
Envoyé à partir de Courrier pour Windows
De : Collet
Envoyé le :mardi 10 septembre 2024 23:19
À : [myfocuserpro2-esp32:discussion]
Objet :[myfocuserpro2-esp32:discussion] Questions on LGTM board
Hello,
got my T-motor board today :D
did not have time before the week end to work on it, but nevertheless i have some questions
i used the calculation sheet for my motor (nema14, 400steps 400mA current, 25 ohms, looks the same as one of the motor in the documentation).
this result for a 0,11ohm Rsense in a CS value of 4 which is rather small and not fine for microstepping according to the claculation file and the datasheet as well
however if we use a VSENSE setting of 1, the CS is then 8 or 9, which is still too small but better than 4 anyway (. is it possible to set the vsense to 1 in the code (maybe create a new define constant in the TMCstepperdefine file ?). a test code with a call to set vsense to 1 compiles fine, but did not tested on the board)
What do you think about these option ?
Joël
i will try the settings as documented in the code and the myfp2 documentation (i think my motor is using the same settin as the one written in the document from Paul)
Regards
Joël
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
had finally time to mount the LGTM board and test it.
i kept the settings as described in the firmware doc. Works really fine. Noiseless, smooth as butter...sooo different than the drv8825. And the motor stay mid warm with coil always on, which is good!
All of this in a so small board that's really nice.
Not tested the display, nor the temp probes/ir remote. i have to do some modification on the board to allow this. I probed around the header with dir/step/en... i think that the temp probe and ir can be connected through this header with just making 4 bridges on the board (which will act as shunting drain and source on the mosfet)..will try to post pictures once done. But for the moment it is working nice ..will install soon on my refractor.
Regards
Joël
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
De : Collet
Envoyé le :lundi 16 septembre 2024 21:26
À : [myfocuserpro2-esp32:discussion]
Objet :[myfocuserpro2-esp32:discussion] Questions on LGTM board
Hi Eric, Robert,
had finally time to mount the LGTM board and test it.
i kept the settings as described in the firmware doc. Works really fine. Noiseless, smooth as butter...sooo different than the drv8825. And the motor stay mid warm with coil always on, which is good!
All of this in a so small board that's really nice.
Not tested the display, nor the temp probes/ir remote. i have to do some modification on the board to allow this. I probed around the header with dir/step/en... i think that the temp probe and ir can be connected through this header with just making 4 bridges on the board (which will act as shunting drain and source on the mosfet)..will try to post pictures once done. But for the moment it is working nice ..will install soon on my refractor.
Regards
Joël
Ir remote tested on the LGTM board and working (plugged on the STEP pin of the header4, with some modifications of the board. i will post photos) Works also using one of the SDA/SCL pin if the oled screen is not used, which is avoiding board's modifications :D.
-firmware 316 tested and working ok, coil power, irremote , etc.. . I like the new web page design :D
concerning the irremote on this firmware i will try to post some modifications of the code (e.g. it currently have hardcoded presets, lacks a reset zero position which has been replaced by homing and since there is few boutons avail, i think a toggle coil power bouton would be nice)
Regards
Joël
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
IRRemote is busted on Arduino ESP32 Core 3.x.x
It does work on core 2.0.16
But seems to be broken in firmware v312
The latest firmware 314-10 has a fix for IRRemote
The changes I just copied into the attached 312 .ino code
Replace controller_config.h
Replace myfp2esp32_311-02.ino
DELETE files
ir_remote.cpp
ir_remote.h
then you should be able to recompile. I do not have an LGTM board so I have no idea there, I have the esp32 dev module.
Within the IR code library, myfp2eIRremoteESP8266, which i hacked to reduce code.
file myfp2eIRrecv.h line 53-54 specifies using timer3
// Which of the ESP32 timers to use by default. (0-3)
const uint8_t kDefaultESP32Timer = 3;
- You made some work on the board to add the Temp pin
-Sorry not me, Eric would have to answer that
ilygo schematic uartrx and uarttx are connected to io25 and 26 while on yours it is connected to io26 and io27. which one is correct ?
-Sorry not me, Eric would have to answer that
- you "connected" hpsw to pin26. did you managed to connect the diag pin to the esp, or is it just inactive anyway?
Again I would that for Eric
I still have a ton of work left on next update 314. As I have gone through the updates, and testing as I go, I have found numerous things that are broken, cause reboots, affect other settings instead of the settings that are meant to change, and in others just do not work. This is why its going a bit slower.
regards
Robert
Last edit: brownrb 2024-08-27
thanks for the answer Robert,
i posted also for Éric , i hope he will have answers.😉
thanks for the big work on the firmware. once again i can help for debug if needed
Joël
did you mean to attach 312 Robert or will you post in the files section @brownrb
Hi Dave
Not sure if the question was for me. If is was not, please ignore.
The two files I posted above was the fix for irremote in v312.
314 is not ready yet, and I cant post those files so what I did was apply the IRRemote fix to the v312 by posting the .ino and controller_config.h files.
Regards
Robert
Hello Joël.
I have and use ,4 focusers build with the LilyGo T-Motor board, All have Temp Sensor, 2 have a display.
As I use them remotly for astrophotograpy, I don't nead manual commands nor display or leds.
Some answers :
IR remote : it should works, nead to be tested.
Temp Pins Works : I draw my own schematics of the T-Motor boards. I don't think that they product different versions. I just received 2 new boards. I will check that.
Lilygo schematic : many errors
TMC Diag Pin : Lilygo connect the pin to a Led. Hard to wired it to the MCU.
Best regards from France
Eric
Lilygo schematic : many errors : look at pin assignment of J4 connector (suposed to be the display connector) !!!!
I will send you my shematics (that match the production PCB) latter
Best regards
For Infra Red, we can use the same solution that for the Temp Sensor.
We nead +Vcc, Gnd and a signal pin. Ther a Pin still awilable on the missing TLP2168 ship pad.
STEP is used for Temp, we can use Dir for IR.
The TLP2168 is a photocoupler.
At the begining the T-Motor PCB was designed to drive an other external T-Motor.
One is the master that can emit signal for the slave that can receive it. That's why you can see STEP-IN / STEP-OUT. A board can be only Slave or Master (IN or OUT) not both.
But only one kind of board is available on the market
Step pad is linked to IN_STEP pin on the MCU and Dir pad is linked to the IN_DIR pin on the MCU .
This evening I will check the GPIO numbers.
In attachment the commented schematics (an older version than the one on github).
I saw your issue on github. Tell us if you get a answer.
STEP/DIR/ENA connection of the header1 are only outputs. That's why I conect the wire before the BSS123W MOSFET.
I confirm that UART_RX and UART_TX are on IO26 and IO27 as on the 2022/12/8 Schematics.
When I start this project I have no schematics so I had to draw it by hand using a multi-meter and a scope. ...
Bonjour Eric,
Thanks for the detailed answers!! I think i get it. There is indeed errors between their board photo and the schematic...(for SCL/SDA io, for uart rx/tx..)
I had an answer from them on MP that they will have a look on this issue...wait and see.
Anyway thanks for the schematic and work on this board.
Regards from Uriage
Joël
Last edit: Collet 2024-08-29
Hello,
got my T-motor board today :D
did not have time before the week end to work on it, but nevertheless i have some questions
i used the calculation sheet for my motor (nema14, 400steps 400mA current, 25 ohms, looks the same as one of the motor in the documentation).
this result for a 0,11ohm Rsense in a CS value of 4 which is rather small and not fine for microstepping according to the claculation file and the datasheet as well
however if we use a VSENSE setting of 1, the CS is then 8 or 9, which is still too small but better than 4 anyway (. is it possible to set the vsense to 1 in the code (maybe create a new define constant in the TMCstepperdefine file ?). a test code with a call to set vsense to 1 compiles fine, but did not tested on the board)
What do you think about these option ?
Joël
Hi Joël,
All « low level » TMC2209 stteing are in the file driver_board.cpp and defines/tmcstepper_defines.h
This do most off the job :
void DRIVER_BOARD::init_tmc2209(void)
Current setting works fine for me with different motors.
As the motor runs very slowly, less than a round per second…
In the TMC2209 datasheet one can read that some functions does not work well at slow speed (like stall guard) .
To fine tune a TMC2209 and a specific motor it is better to use a very simple program using tmcstepper library.
TMC on their web site present a procedure to do it. But it requires some advanced equipments.
I’ve read somewhere in TMC documentation that the TMC2209 is able to auto calibrate itself.
As I say it works as it is, without impact on accuracy .
Having a look at other software (Klipper, OneStep, … ) there are not so much differences in the way they initialise TMC stepper drivers.
And no nead to tum the pot. on the card. Settings are done by the program, using the serial line.
The dip switch are used to set the address of the TMC2209 (b00 to b11)
We can discus about that in detail and try to find a way to tune it « better ».
Regards
Eric
Envoyé à partir de Courrier pour Windows
De : Collet
Envoyé le :mardi 10 septembre 2024 23:19
À : [myfocuserpro2-esp32:discussion]
Objet :[myfocuserpro2-esp32:discussion] Questions on LGTM board
Hello,
got my T-motor board today :D
did not have time before the week end to work on it, but nevertheless i have some questions
i used the calculation sheet for my motor (nema14, 400steps 400mA current, 25 ohms, looks the same as one of the motor in the documentation).
this result for a 0,11ohm Rsense in a CS value of 4 which is rather small and not fine for microstepping according to the claculation file and the datasheet as well
however if we use a VSENSE setting of 1, the CS is then 8 or 9, which is still too small but better than 4 anyway (. is it possible to set the vsense to 1 in the code (maybe create a new define constant in the TMCstepperdefine file ?). a test code with a call to set vsense to 1 compiles fine, but did not tested on the board)
What do you think about these option ?
Joël
Questions on LGTM board
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
Hi Eric
Thank you for the information.
i will try the settings as documented in the code and the myfp2 documentation (i think my motor is using the same settin as the one written in the document from Paul)
Regards
Joël
Hi Eric, Robert,
had finally time to mount the LGTM board and test it.
i kept the settings as described in the firmware doc. Works really fine. Noiseless, smooth as butter...sooo different than the drv8825. And the motor stay mid warm with coil always on, which is good!
All of this in a so small board that's really nice.
Not tested the display, nor the temp probes/ir remote. i have to do some modification on the board to allow this. I probed around the header with dir/step/en... i think that the temp probe and ir can be connected through this header with just making 4 bridges on the board (which will act as shunting drain and source on the mosfet)..will try to post pictures once done. But for the moment it is working nice ..will install soon on my refractor.
Regards
Joël
Nice to ear that.
Best regards
Eric
Envoyé à partir de Courrier pour Windows
De : Collet
Envoyé le :lundi 16 septembre 2024 21:26
À : [myfocuserpro2-esp32:discussion]
Objet :[myfocuserpro2-esp32:discussion] Questions on LGTM board
Hi Eric, Robert,
had finally time to mount the LGTM board and test it.
i kept the settings as described in the firmware doc. Works really fine. Noiseless, smooth as butter...sooo different than the drv8825. And the motor stay mid warm with coil always on, which is good!
All of this in a so small board that's really nice.
Not tested the display, nor the temp probes/ir remote. i have to do some modification on the board to allow this. I probed around the header with dir/step/en... i think that the temp probe and ir can be connected through this header with just making 4 bridges on the board (which will act as shunting drain and source on the mosfet)..will try to post pictures once done. But for the moment it is working nice ..will install soon on my refractor.
Regards
Joël
Questions on LGTM board
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
Hello all
-firmware 316 tested and working ok, coil power, irremote , etc.. . I like the new web page design :D
Regards
Joël
Thanks, will look forward to seeing the changes-improvements
Robert