Code for art project

I am doing a project for art which requires the use of a Buzzer, Servo, and Stepper motor to work at the same time. I have been looking at the forums and other peoples codes to see what I am doing wrong. If you want to modify my current code please do.

Setup_Tab.ino (2.98 KB)

Is this your code?

If you have a problem with the sketch, explain what is not working.
delay() should be avoided as it stops execution of code for that amount of time.

JDover00:
I am doing a project for art which requires the use of a Buzzer, Servo, and Stepper motor to work at the same time.

You will need to use the AccelStepper library because the standard stepper library blocks the Arduino until it completes its steps. That means that the other tasks cannot run in parallel with it.

...R
Stepper Motor Basics
Simple Stepper Code

AccelStepper library

Thank you Robin2. I didn't even think about that.