4:28 you can change the pos to an float and change the code
@shakejonesАй бұрын
Brilliant! Thank you for sharing mate 🙏🏻
@A.E.Robotics Жыл бұрын
Hey, would you explain to me if I would be able to switch a servo between 90 and 140 quickly? I also want to have it so when I press a button it opens to 140, and when I let go it goes back to 90. Any way? I think you would know.
@Science.Buddies Жыл бұрын
Hi - if you check out the rest of our Arduino tutorial playlist, we have videos on using buttons and other inputs.
@A.E.Robotics Жыл бұрын
@@Science.Buddies hello, I am very familiar with buttons and arduinos. But something that has been stumping me is getting the servo to go to a certain position for the duration of the button pressed. I looked into tutorials, and all what others seem to want is to make a servo move to a position and back every time a button is pressed. I want mine two positions, like an animatronic mouth. Open, and closed. Thanks!
@Science.Buddies Жыл бұрын
Hi - we can't provide help writing code for individual projects, but you might be able to find help in the official Arduino forums or other sites like Stackexchange.
@mshalima16542 жыл бұрын
Can you make a video about how to make a jet engine?
@Science.Buddies2 жыл бұрын
That is a little too advanced for us!
@Uilyam719 Жыл бұрын
here is a video on someone making a good jet engine(rocket engine but we will call it a jet engine) kzbin.info/www/bejne/n561cqGEad6fkNU sorry if you do not know Russian the video is in Russian.
@GabrielTcheunta7 ай бұрын
Bu i and my bro really wanted to make one 😢
@GabrielTcheunta7 ай бұрын
@@Science.Buddiesand from the look of things we're not the only ones
@N1ghtR1der66620 күн бұрын
You could also use the map function to control the speed as well, the below will give 1/3rd speed one way and normal back: // sweep the servo from 0 to 180 degrees in steps // of 1 degrees int devisionSpeed = 3; //the divisor of the max speed for (pos = 0; pos = 0; pos -= 1) { // tell servo to go to position in variable 'pos' servo_9.write(pos); // wait 15 ms for servo to reach the position delay(15); // Wait for 15 millisecond(s) }
@Nick-ef1ms5 ай бұрын
For anyone wondering where to connect the wires, the brown goes to ground, red to 5V, and orange to pin 9
@KnowledgeNuggets-n7x2 ай бұрын
It's also worth mentioning you can change the pin that the orange goes to but you have to change the line of code stating what pin the servos are on to whatever pin you change it to
@shaun683111 ай бұрын
How do I make my servo to move to a angle and delay for about 4 sec and go back to the same angle with a sensor right now I have a Arduino uno and an IR sensor I can't figure out how to do it I've watch many videos but all of them failed how can I code thisM
@Science.Buddies11 ай бұрын
Hi - if you need help with code you can try asking on the official Arduino forums, or if you are a student doing a school science project you can ask in the Ask an Expert forums on our website www.sciencebuddies.org.
@TheQueenuvhearts Жыл бұрын
I see the wires connected from the Arduino to the breadboard. Can you tell me what those are and how to set that up? I'm just a mom trying to get the motor to work for the Halloween pumpkin and I'm not very tech savvy. Any help would be very much appreciated.
@Science.Buddies Жыл бұрын
Hi - if your circuit literally just has a single servo motor, you do not actually need a breadboard. You can search Amazon for "Arduino male to male jumper wires" and just plug the three wires from your servo motor directly into your Arduino (as described in the video, color coding will depend on your motor). However, if this is the first video you're watching, it might help to back up a bit and start with our How to Use a Breadboard video: kzbin.info/www/bejne/bIi1lnmhm9eIf80si=OfQ2Fr6RqSBoms2Y and watch at least the first three videos in our How to Use an Arduino series: kzbin.info/aero/PLlBVuTSjOrclb0iCMSRpS_H1lSrlSVeEm&si=iZF8YZwDDhnUT5CZ. Hope that helps!
@Vexed-dev11 ай бұрын
what hole is the orange wire in
@KnowledgeNuggets-n7x2 ай бұрын
its a little late but pin 9
@murtazasyed33922 ай бұрын
do I need a capacitor or resistors I read u need them but I am confused.
@Science.Buddies2 ай бұрын
Small hobby servos like this can usually be directly connected to the Arduino with no additional parts, but you should read the data sheet or instructions that come with your servo.
@bernardomendes10 Жыл бұрын
Can i rule my servo rotation to a specific range, like a 60 degrees rotation counter clockwise and clockwise?
@Science.Buddies Жыл бұрын
Yes, you would just need to use a variable to keep track of the angle, then add or subtract 60 degrees from that angle depending on which way you want to rotate.
@bernardomendes10 Жыл бұрын
@@Science.Buddies, thanks!
@udaykaranwal1662 Жыл бұрын
How can I add a switch to this? like I want the servo to go clockwise when I turn the switch on and anticlockwise when I turn the swtich off
@Science.Buddies Жыл бұрын
We can't write the code for you in a KZbin comment, but please see the rest of our Arduino tutorial series (linked in the description) which includes various inputs like buttons, switches, and other sensors.
@AlexNeir11 ай бұрын
Where is the code?
@piotrp40911 ай бұрын
If you have the liblary downloaded then it is in example codes which u find under 'file' lable
@Studs_Studio11 ай бұрын
@@piotrp409 where do you download it? also why didnt science budies give a link thats kinda weird
@marshallrobinson40739 ай бұрын
@@piotrp409 where do i go to download this liblary
@SYLVIAFUNGKAISUEN9 ай бұрын
CAN U MAKE A SENSOR TO CHECK WE HAVE TAKE OUR KEY WHEN WE GO OUT?
@Saffron_SV4 ай бұрын
My Servo motor goes 0 to 90 to180 degree counter-clockwise is there anyway to make it clockwise, Like If I do `myservo.write(90);` ?? I want it to go 90 degree to the clockwise direction NOT counter-clockwise.
@livarei Жыл бұрын
Hi, can you make video about controlling a servo motor by a slider button assigned to a variable command such as = (if val == '(inserted variable)')... then the specific command to do so with a slider. Just working on a bluetooth car with a robotic arm that has 3 servo motors that require the usages of sliders. Thank you!
@Science.Buddies Жыл бұрын
Hi - we don't currently have plans to add a video that specific, but we do have a video about slide switches that you may find helpful: kzbin.info/www/bejne/Zou7ioWLbrCDfZosi=rMzlhcxUV73bmPFT
@Malak-yj3or10 ай бұрын
my problem is that my motor doesn’t move i have the right codes and the right wires placed but it just doesn’t move
@Nevaan3103 Жыл бұрын
Can you make a car and drone
@Science.Buddies Жыл бұрын
If you search our website, www.sciencebuddies.org, you will find many projects about both cars and drones!