Welcome to the forum members!
I want to ask for a Jis help. Gave an Arduino mega, 8 Nema 17 stepper motors (4Wire) and 8 L298N motor drives.
How could I write a program to have 6 motors rotate directly automatically so I can adjust its speed from a pc and 2 motors to scan automatically, adjusting its speed. Thanks in advance too. P
The l298 is a really ancient driver. Are you sure that your steppers fits to it? Many steppers can not be operated with the l298.
You should explain a bit more. How do you want to adjust the speed from the PC. Is there programm running and do you know which protocol it uses? What do you mean with 'scan automatically' and who adjusts its speed?
You could use my MobaTools to drive your steppers. There are examples where you can start with.
'Out of the box' MobaTools supports only 6 steppers. But if you don't use other functionality like servos or bulb simulation it can be easily extended to support 8 steppers.
Please don't post code as an image. Always post it as text within code tags ( the Button </> in the forum editor ).
Or in the IDE go to Edit->Copy for Forum and insert in your post.
The Stepper.h is not suitable to run several steppers at the same time.
@mihucz78, your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advise on) your project.