Thank you so much! This helped me finish my circuit.
@imdead90053 жыл бұрын
How can you make it stop between positions and have it like intervals to move respectively
@alex32563 жыл бұрын
Is there a way to get it to move from 0 to 180 degrees in a specific time? Like, if I want it to move continuously from 0 to 180 degrees in 3 hours, so that it moves at the same speed from start to finish. Or like 1 degree per second. Is there a code for that, and if so, what is it?
@sbsonlineclasses59633 жыл бұрын
You can use delay for this.
@alex32563 жыл бұрын
@@sbsonlineclasses5963 Yeah, but I need it to rotate 180 degrees in 11h so it would be like 0,27 degrees per second. So I would have to have a million delays and that would take to much time. Or is there an easier way to have it rotate 0,27 degrees per second?
@maverickmusic98533 жыл бұрын
@@alex3256 you can put this for loop inside another for loop that has a delay of whatever time you want.
@VFX.Kalyug2 жыл бұрын
@@alex3256 the 0.27° per second one is better, and put the time a mil secs too
@jasjeetsinghmann45093 жыл бұрын
sir, what to do if we have to control the direction of the servo with laptop keys?
@sbsonlineclasses59633 жыл бұрын
Take user input and control according to that.
@WeekendVibes244 жыл бұрын
How to edit code after saving the file
@alexis36684 жыл бұрын
Hi, how can I make the servo rotate from 0 to 180 and when it comes back it stops?
@sbsonlineclasses59634 жыл бұрын
dont use loop
@alexis36684 жыл бұрын
@@sbsonlineclasses5963 oooh, thanks broh.
@maniratnaprasad60074 жыл бұрын
@@sbsonlineclasses5963 can u explain.. If i am not taking void loop it is throwing an error