« first day (1 day earlier)      last day (29 days later) » 

2:31 AM
Ah, my apologies. Perhaps I missed sending you the relevant chats. They are:
(1) https://chat.stackexchange.com/rooms/133950/discussion-between-tlfong01-and-kyrpav (started with tb6560)
(2) https://chat.stackexchange.com/rooms/133829/discussion-between-tlfong01-and-sandro (started with drv88091)
(3) https://chat.stackexchange.com/rooms/133206/discussion-between-john-and-tlfong01 (started with tmc2130)
(4) tmc5160 (can do both SPI and UART)
https://www.trinamic.com/products/integrated-circuits/details/tmc5160/
To summarize, tmc2130/60 can do spi, tmc2208/2209 can do uart, tmc5160 can do both.
(5) TMC5160 V1.2 SPI Stepper Motor Driver S5160 High Power Stepstick Mute Driver For 57 Stepper Motor F6 SKR V1.3 Board VS TMC2130
https://fr.aliexpress.com/item/33013410181.html?gatewayAdapt=glo2fra&gclid=CjwKCAiA6Y2QBhAtEiwAGHybPepp9n5OyT3JwzPis6E_VHUWNuT76zG-y75Q6G2Tlzi1af1lbkNfgxoCTUIQAvD_BwE

(6) TMC5160
https://www.aliexpress.com/w/wholesale-bigtreetech-tmc5160.html
(7) tmc5160
https://forums.raspberrypi.com/search.php?keywords=tmc5160&sid=75cb42d01ece22b26fcdac2839e30b53
Or I should not refer you the chats, but the real answers:
(8) Rpi Pico MicroPythpn Controlling TMC2208 / TMC2209 Stepper Motor Driver Problem - Asked 1 month ago, Viewed 466 times
https://raspberrypi.stackexchange.com/questions/135191/rpi-pico-micropythpn-controlling-tmc2208-tmc2209-stepper-motor-driver-problem/135194#135194

(9) tmc2209 driving stepper motor demo
https://www.youtube.com/watch?v=zh57BPjFztI
In Refs 8 and 9, I played with 2209, using pico to generate steps. I could send a number of steps, instead of non stop PWM signals, to move the motor for a specified distance. See ref 9 and relevant demo code for detials.
 
 
2 hours later…
5:03 AM
Now I have done the following:
1. Replaced the DMX542 driver module by tmc2160 module,
2. Replaced the mks osc stepper motor testing board by the XY-LPWM3 sig gen module. I don't like the mks tester because (a) it has three oscillators with overlapping ranges of signal frequencies, so it is awkward to switch frequency ranges (b) there is no display of the frequency, and and need to use the scope or a frequency counter. So the XY-LPWM sig gen is handy.
I reconfirmed that 5kHz is a generally good centre frequency to do experiments.
Note 1:
I tested the frequency range from 1kHz to 6kHz. 5kHz is still annoyingly noisy. Below 3k the motor trembles. So I need to do some fine tuning.
 
5:51 AM
So I have manually tested the tmc2160 stepping motor driver board using the following hardware: (1) 12VDC PSU, with current sensing resistor 0.5 Ohm, (2) tmc2160 stepping motor driver module, (3) NEMA17 stepping motor with speed encoder, (4) XY-PWM3 PWM sig gen (to generate the step pulses to input to tmc2160). So far so good.
Now I am coming back to your question, and suggesting an answer.
Let me summarize your question below. Please feel free to comment or make comments, clarification, suggestions to edit/update your question.
Question v0.1
How to use ESP32 to talk to the TB6560 stepping motor driver, to control a classic NEMA17 stepper motor, of 1.8 degrees per step, 200 steps per revolution, in microstepping mode of 1/8 resolution.
 
 
2 hours later…
7:36 AM
From what i see you deep in all these tmc chips
can we some summerize
From what i understood : TMC2209 -->1.2A, or 2A from what i saw
TMC2160--> 4.8A (though you where saing it is 10A but in any board you send i saw 4.8 or something close to 5)
TMC5xxx --> from what i remember is around 3A but it needs external mosfet (i did not get why is needed)
also the majority of these chips gives you possibility to go with spi if you remove the 0ohms resistor somewhere in the chip.
it seems the 2160 is the best choice. but which version and module can you send a link?
For the program there is no clear solution if i understand well if we go in same low or hight frequencies yes first you have resonance issue and then motor stops
so you can not go all the way down with frequencies until you stop the motor.
So what did you do on you robot to move with pid did you use same gate logic in order to stop frequency falling down from some limit?
which i suppose you found the limit with manual tests?
 
8:12 AM
@kyrpav Just a quick reply. TMC2160 datasheet says motor coil current is up to 20A (with external mosfets). I need to check if my module has any ext mosfet.
Just now I checked the product sheet which says only 4.33A: item.taobao.com/…
So I made a big careless mistake. My apologies.
 
8:29 AM
@tlfong01 since i am not so in to this if you can send me picture with this or with where and how to set the mosfet it would have been great. or if there is a module that already has this on.
 
 
2 hours later…
10:26 AM
No problem. I am a N-channel power MOSFET H-bridge ninja. But there are other alternatives of adding an external bridge. The first thing that come to my mind is using the BTN7971B, you might like to skim the datasheet to get a rough idea how large current it can take.
For my application of Lunar Java Tube Exploration MPV, there is no need to drive fast, so I am thinking of using a bigger 57BYJ stepper, with an additional big gear ratio box, so it can easily pull up any heavy thing accidentally fallen into the Java cave. Let me show you the look of the heavy duty 57BYG stepper with the 2GN3K gear head.
Ah, locking down supper time. See you later.
 
 
2 hours later…
12:40 PM
I would suggest you to read the following two posts to get a rough idea of the use of DC Motor Driver, and BTN7971B.
(1) How to use motor drivers with H-bridge and PWM input, to control direction and speed of DC motors? - Asked 2020jul16, Viewed 2k times
https://electronics.stackexchange.com/questions/510755/how-to-use-motor-drivers-with-h-bridge-and-pwm-input-to-control-direction-and-s


(2) Motor Driver Fryinbg DC Gear Motor Problem (Appendix D - BTN7971B)- Viewed 200 times
https://electronics.stackexchange.com/questions/564733/motor-driver-keeps-dying-frying-driving-a-worm-gear-motor/564771#564771
Now something important to clarify.
1. How A full H-bridge DC Motor Drive uses PWM frequency and duty cycle control the speed of a DC motor.
2. Does a step motor driver uses duty cycle (other than frequency) to control the speed of a step motor?
The answer to the second question is NO. Can you explain why?
 
 
6 hours later…
6:42 PM
i have worked again with dc motor and L298N i have build a pcb to use 2 dc motors , i know how to use them and with the pwm to control the voltage send to the motor and with this the speed. with the nema i had only worked with linuxcnc so i did not maid other solution
i will continue my tests and program with the tb6560 until the tmc2160 arrives and then i will switch
I want to ask you also do you have any experience with ILI9481 lcd? and touch screen with esp32.
i bought something for this project in order to show the set points of the tension and also to control the program from this but i cound not find the proper way to make it run at all.
i have opened an issue on espo community
but noone seems to know anything
 

« first day (1 day earlier)      last day (29 days later) »