« first day    last day (30 days later) » 

4:24 AM
You might like to skim my old post on tmc2209 where I use a stepper motor with speed encoder: raspberrypi.stackexchange.com/questions/135191/….
The stepper motor tester with sig gen is handy to find the optimum frequency.
(1) Controlling a stepper motor through a signal generator 64,143 viewsMay 16, 2015
https://www.youtube.com/watch?v=Zg7HTXHpoFg

(2) https://abra-electronics.com/voltage-regulator-modules/dc-motor-speed-controllers/psm-mks-osc-stepper-motor-pulse-generator-board-with-manual-speed-control.html
 
5:00 AM
this chip is very very very interesting and with uart you can get all info? even with uart you can control the frequency?
i tried to read a few things in the datasheet
can it work with bigger motors cause i saw it is up to 2A
though i suppose you propose to use it to find the best frequency using the jig and reading from uart and the put the proper pwm. but what if i want a non static frequency
i mean there is now a limit on min freq i can use before motor goes to stop moving without a stop signal. this does not allow me if i do not do some software mapping function to give the value to a pid controller.
is this chip able to handle it cause from pinout i see the same setup like all others
 
5:28 AM
this module is yours? you are selling it? can i find it in europe?
 
 
1 hour later…
6:56 AM
@kyrpav Do you mean tmc2209 using uart interface, or tmc2160. max 10A using spi?
@kyrpav I forgot the max current for tmc2209. For 2160, it is 10A.
@kyrpav Well, my current test jig for MX540/TB6560/TB6600 is only for newbies. The MKS OSC stepper motor driver tester uses the stupid 555 timer is not flexible at all. In my other testers, I use XY-LPWM which is very precise, and UART controlled.
@kyrpav Well, the current test jig is manual, push button operation, is stupid, and only for CNC guys who does not know software at all. I am going to try 42VDC motor power, and I worry that I will fry more drivers, so it is sort of safe tester.
@kyrpav Yes, as you all drivers have the basic signals, enable, direction, steps. But for tmc2209/2160, all the driver config and diagonstics are done in software uart or spi.
@kyrpav Yes, all modules on photo are mine, some are lying in the junk bin, collecting dust for years. The tmc2209/2160 are designed by the German guys, manufactured in ShenZhun, not too far away from my city, just across the boarder.
Now let me show you my test results:
The above is the big picture of step pulse, motor encoder output, and current sense resistor output, not all in sync, therefore display messy. I have written Pico Micropython functions to do the signals separately, step pulse, speed function, and current measurement.
more pics:
 
 
2 hours later…
9:39 AM
I got my tmc2160 from TaoBao. Perhaps you can find it in Amazon/AliExpress UK/Europe.
Makerbase MKS TMC2160-OC Motor Driver for 3D Printer - ¥77
https://item.taobao.com/item.htm?spm=a1z09.2.0.0.67002e8dby8syO&id=661704209147&_u=93thdsb8580
 
9:53 AM
BigTreeTech also has a US$20 version with metal case for strong anti EMI.
TMC2160 Stepper Motor Driver for 3d Printer CNC Machine - BigTreeTech US$20
https://fr.aliexpress.com/item/4000561771767.html?gatewayAdapt=glo2fra&spm=a2g0o.search0304.0.0.394714d2XvRzki&algo_pvid=cf77e1e1-c9fb-4113-9627-2347b2b3d34a&algo_exp_id=cf77e1e1-c9fb-4113-9627-2347b2b3d34a-2
 
10:06 AM
I recommend the MKS tmc2160 version because it has the SPI and DIAG jumper for flexible config and diagnostics.
 
10:35 AM
you almost convinced me. so mks tmc2160 where the same question applies what do you propose to use in order to slow down the speed and not make the motor stall and get heated?
 
10:58 AM
and the diag is in order to put some manual control to the motor? i am not sure how that works i never used it. And that means that this version does not give you serial port isn't it?
do you know any that gives you. I am not sure what is easier for esp32 to use spi or uart since i am not using arduino interface i am using the esp-idf framework
 
 
2 hours later…
1:24 PM
Ah, mks2160 video again.
 
1:39 PM
@kyrpav Well, I am thinking of using both uart tmc2219 and spi tmc2160, for my future projects. I started with uart 2209 because I just learned how to use Pico uart and found it easy. But then Pcio has only two uarts, not enough to go around for my many more projects. So I thought perhaps I can then use spi tmc2216 at the same time. Pico can entertain many more spi devices. I found both devices have similar config registers.
So learning one device is actually two devices together, as long as you are comfortable playing with uart and spi.
Another reason for playing with both is that when I searched for tmc2160 and tmc2209, I found almost all question is SE forums are one tmc2130 and tmc2208 which is a bit out of date. As I am just learning, so no harm but actually wise to learn new things.
me either used the DIAG thing. I guess it is for diagnostic or warning over current which means motor should be over heated. About optimum frequency, I just found out that, when playing with the mks motor driver testing tool, that even for a working frequency range, there are unique frequencies that the motor starts to tremble.
I read that there are some thing called "resonant" frequencies that the motor would oscillate. So the mks testier is handy to scan for such trouble making frequencies.
Next step is to use the mks tester to locate the trouble making frequencies and use a scope to check out if there are oscillations in the frequency range. I also need to look at closely the relations between current, voltage, motor current, and frequencies and duty cycles etc. I am a newbie in using "chopping mode" driving, so I need to spend some time building up knowledge in this area.
Ah almost bed time. So see you tomorrow.
 
 
7 hours later…
8:57 PM
in the modules you send me there is not uart output from what i see, isn't it?
 

« first day    last day (30 days later) »