I Need help with Steppenmotor and switch

Dear Arduino experts,

My name is Devin de Groot and I really need you're help.

We are working on a project on school. The idea is to make a kind of The Voice chair. Pushing the button and the chair will turn around and when pushing it again then it will turn back.

I have no freaking experience with Arduino, but we ended up with this nice programming board. I found some codes on the internet and got it working even with a amount of steps I want it to make.

Now the next step is to get it triggered by a button. I do not have a button right now, so I was thinking that I can connect 3V with digital 13 and 12. So 12 is turning 180 clockwise and 13 is turning counter clockwise.

I will attach my code with this message. Hopefully you guys can help me :slight_smile: THANKS!

arduino_TvoH_Stoel.ino (3.16 KB)

so I was thinking that I can connect 3V with digital 13 and 12.

Which board are you using? Why 3V? Do you (plan to) have pulldown resistors connected to those pins, too?

I will attach my code with this message.

Your code was small enough to not need attaching. Your code does something. You expect it to do something. What those two somethings are is a mystery. What IS your problem?