I need help with my connections

I'm building a star tracker and the hardest part turned out to be to get the motor to work (I'm a total noob in arduino). I'm using an arduino nano and a tmc2209 v3.0 driver with a nema 17 0.9 stepper motor. I've been using the code from this post TMCstepper - Arduino - TMC2209 - Projects / General Guidance - Arduino Forum but nothing seems to work. Here is my schematic:

Also it would be useful to mention that when I turn on the 12v power my arduino nano starts overheating where the voltage regulator is located

Thank you for your help

You can't drive steppers from a board, you need two power supplies, one for the NANO and one for the motors. The grounds all need to be connected though.

but my motor power supply (vmot and gnd) is connected to a 12v battery, not to a nano

OOPS, I didn't look closely enough.
In that case, try the samples from the library you are using. Make sure the wiring also follows the sample.

1 Like

thank you, I'll try using some other example codes

I'm no expert on the servo driver you are using but I noticed the TX and RX are wired to D6 and D7. They are not serial pins on the Nano.

Was the original example on a different Arduino?

CODE, never codes!

They are ok for software serial.

1 Like

I started researching that as I began to doubt myself. Thank you for the correction... and the information.

Clone Nanos and 12V are a bad combo, can you power the Nano with 5V to the 5V pin?

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.