Homing Stepper Motors

HI everyone

I'm struggelig currently…

I use A4899 Drivers to control 5 Steppers (use Stepperdriver Libary)
I wanna set a Home position with physical endstops.

I'm currently using the following code, which somehow works, but i would like to set the home positions in the setup

Any advise?

Thanks a lot

Ansteuerung.ino (3.03 KB)

Move these functions into setup() after Serial.begin().

Homing_R();
Homing_Arm1();
Homing_Arm2();
Homing_Arm3();
Homing_GR();

This is not Google. You are allowed to write paragraphs.

You have the equipment in front of you. We don't. Please explain the problem in more detail.

Homing needs to be in a while loop inside setup(). The while loop should terminate when all the
motors are at home position.

By A4899 I presume you actually mean A4988 ?