cancel
Showing results for 
Search instead for 
Did you mean: 

Stepper motor spi tandem driver

dungeonlords789
Senior III

I want to use two powerstep01 or L6470P drivers to make circle on my cnc. Can I do it using SPI not step/dir interface?

4 REPLIES 4
Peter BENSCH
ST Employee

Yes, you can control both the powerSTEP01 and the L6470 via SPI.

There are also STM32Cube libraries for both:

Does it answer your question?

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

I now that I can communicate with two drivers via spi. But I want communicate via SPI to draw circle. I plan to make cnc.

Well, that's partly a question of how the motor controlled by the drivers mechanically drives the drawing pen. Only you know your overall system and how the motor has to be controlled to get the movement you want.

However, your original question was: Can I do it using SPI?

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

I plan to build classical cartesian coordinate cnc. Example

Can I drive X motor and Y motor via SPI to draw circle?

I can to set constant max velocity, constant acceleration, constant deceleration. I know equation x^2+y^2=R^2 but... Do anyone understand which mathematics needs to use to drive 2 stepper motors to draw circle?