Hello to all! I am completely new to Arduino and the likes. Skip to the second paragraph if you want to get straight to my point. I am working on a cosplay project of Orisa from Overwatch. I have been having trouble with finding ways to make her Fusion Driver (primary weapon). I want it functional but shooting things out is not needed.
My specific problem -- as of now -- would be making a servo move one degree, pausing, then continuing again to move one more degree, etc. I've searched around, but I have not found anything. If you are an amazing, wonderful, helpful person who would like to continue to help me, I, of course, have other problems (continue reading).
How can I make a loop start when a button is pressed and stop after a period of time?
How can I combine three motors to one trigger and have them run at different times? (For example how 3 or more car cylinders move at different intervals). See Car Cylinders for reference.
I might have more questions later on but this is it for now 
Use Orisa Fusion Driver for reference on my project.
Thank you
making a servo move one degree, pausing, then continuing again to move one more degree, etc
I've searched around, but I have not found anything.
Have you looked at the Sweep example from the Servo library ?
UKHeliBob:
Have you looked at the Sweep example from the Servo library ?
I have, and I uploaded the code to my Arduino and everything but that just make the servo "sweep" back and forth rather than what I want.
Let me give you a scenario so I can be specific:
Let's say I want to move my servo to 30 degrees (rather rapidly), pause for 5 seconds, move to 60 degrees (again, rather rapidly), pause for 5 seconds, and so on and so forth.
My specific problem -- as of now -- would be making a servo move one degree, pausing, then continuing again to move one more degree
I sense a language problem but your later post explains better what you want
Let's say I want to move my servo to 30 degrees (rather rapidly), pause for 5 seconds, move to 60 degrees (again, rather rapidly), pause for 5 seconds, and so on and so forth.
theServo.write(30);
delay(5000);
theServo.write(60);
delay(5000);
//and so on
NOTE : this code is not valid for all circumstances because it stops the Arduino doing anything else whilst it runs. There are better methods available if, for instance, an input must be read during the waiting period
UKHeliBob:
theServo.write(30);
delay(5000);
theServo.write(60);
delay(5000);
//and so on
Is there an easier way? Like setting up a variable that adds to a specified degree? Can I make two variables, lets say servopos and i. Define servopos as 10 + i and define i as 0 then in the voidloop code servo.write (i =30); ? Or I am being incredibly optimistic and that is something I just made up?
Is there an easier way?
Yes. Look carefully at how the Sweep example moves the servo and do not dismiss it because it moves back and forward. It is the principle that you should be looking at and applying to your problem.
UKHeliBob:
Yes. Look carefully at how the Sweep example moves the servo and do not dismiss it because it moves back and forward. It is the principle that you should be looking at and applying to your problem.
Okay. I will tinker with it and see. Thank you for your help