Using TMC2209 single chip to create my pcb

I want to make a custom pcb to control four stepers with an Esp32. I've been looking at the chip datasheet and I'm not sure if I'm doing it right. My idea is to use the motors in Dir/Step mode, I don't need to use uart.

Is this diagram correct?

Another question I have is with the use of the Vref pin, I have seen that there are potentiometers of different values, which one would be correct?

And if it's not too much trouble, can someone tell me how to connect the potentiometer? In the datasheet I have not seen how it is done.

Thank you.

Then it is much to soon to make a custom PCB. You only do that when your prototype has been working well for some time and you don't have any other changes to make.

1 Like

Before going for a PCB, always run it as a prototype using breadboard, protoboard etc. No dry reading drawings is safe.

1 Like

Well, but that's what forums are for, right? If someone has already done something similar and can confirm that it is correct, I don't need to make a prototype. In any case, thank you.

Does anyone know what the consumption in mA of the logic part (5v) of the tmc2209 is?

I generally prototype unknown circuits first to be sure I understand them. Many times I just make a PCB without a prototype but I have had lots of design experience and know the circuits in building. Be prepared to remake the board a few times. Yes I even have to do that once in a while.

Make a prototype, and measure it. Or, study the DC and Timing Characteristics section of the data sheet.

It would be an excellent idea to carefully study the example application circuit in the datasheet, as you seem to be skimping on very important components.

The problem is that I do not have tools to solder and test SMD components, in addition to not having much experience in this field, that is why I ask for help in the forums and thus order the pcb with the soldered components.

I did it, but I got a value that was too low to be real 4,83 mA

I also looked at the data sheet, but I don't really understand what it says there. My English is very limited in addition to not having much knowledge of electronics. I want to skimp on components because I want to make a pcb as small as possible. Right now in the scheme that I have designed, I use a 1A 12v to 5v regulator for each driver and another for the esp32 module with its corresponding capacitors, but if I can use a single regulator I save a lot of wiring on the pcb. That's why I also wanted to use just the tmc2209 chip, but it seems like that's out of my reach.

Then this is far too early in your hobby adventure to consider designing your own circuit boards. They will fail.

Leave that to the professionals, especially for motor drivers.

1 Like

That is like giving a surgeon a pocket knife and asking him to remove 1/2 of your appendix.

I tried, but I couldn't find anyone in Spain willing to do it. Then I will have to do it like this, with the modules purchased and mounted on sockets:

Although I wanted to do it with everything integrated on the same PCB. This is a test I did, it would be like this but with 4 tmc2209 in total.

A much more sensible approach.