Control a Positional Servo Motor with an Arduino (Lesson #10)

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 พ.ค. 2024
  • Science Buddies Electronics Kit for Arduino: www.homesciencetools.com/prod...
    Learn how to use the Arduino servo library to control a positional servo motor in this video.
    See our complete playlist of Arduino tutorials here: • How to Use an Arduino and the Science Buddies website for cool science projects you can do with an Arduino: www.sciencebuddies.org/search....
    0:00 intro
    0:34 wiring
    1:33 example code
    3:09 changing speed
    6:37 limitations
    7:30 mechanical connections
    Science Buddies also hosts a library of instructions for over 1,500 other hands-on science projects, lesson plans, and fun activities for K-12 parents, students, and teachers! Visit us at www.sciencebuddies.org to learn more.
    #STEM #sciencebuddies #arduino #electronics #programming
    *******************************
    Connect with Science Buddies:
    TWITTER: / sciencebuddies
    FACEBOOK: / sciencebuddies
    INSTAGRAM: / scibuddy
    PINTEREST: / sciencebuddies

ความคิดเห็น • 28

  • @mshalima1654
    @mshalima1654 ปีที่แล้ว +12

    Can you make a video about how to make a jet engine?

    • @Science.Buddies
      @Science.Buddies  ปีที่แล้ว +6

      That is a little too advanced for us!

    • @Uilyam719
      @Uilyam719 ปีที่แล้ว

      here is a video on someone making a good jet engine(rocket engine but we will call it a jet engine)
      th-cam.com/video/imRAnN4ylZs/w-d-xo.html
      sorry if you do not know Russian the video is in Russian.

  • @Malak-yj3or
    @Malak-yj3or 2 หลายเดือนก่อน +1

    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

  • @oggythepro
    @oggythepro หลายเดือนก่อน

    4:28 you can change the pos to an float and change the code

  • @Vexed-3
    @Vexed-3 2 หลายเดือนก่อน

    what hole is the orange wire in

  • @livarei
    @livarei 6 หลายเดือนก่อน

    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
      @Science.Buddies  6 หลายเดือนก่อน

      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: th-cam.com/video/0ZXYRU9KPG8/w-d-xo.htmlsi=rMzlhcxUV73bmPFT

  • @SYLVIAFUNGKAISUEN
    @SYLVIAFUNGKAISUEN หลายเดือนก่อน

    CAN U MAKE A SENSOR TO CHECK WE HAVE TAKE OUR KEY WHEN WE GO OUT?

  • @A.E.Robotics
    @A.E.Robotics 6 หลายเดือนก่อน

    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
      @Science.Buddies  5 หลายเดือนก่อน

      Hi - if you check out the rest of our Arduino tutorial playlist, we have videos on using buttons and other inputs.

    • @A.E.Robotics
      @A.E.Robotics 5 หลายเดือนก่อน

      @@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
      @Science.Buddies  5 หลายเดือนก่อน

      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.

  • @bernardomendes10
    @bernardomendes10 6 หลายเดือนก่อน

    Can i rule my servo rotation to a specific range, like a 60 degrees rotation counter clockwise and clockwise?

    • @Science.Buddies
      @Science.Buddies  6 หลายเดือนก่อน

      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
      @bernardomendes10 6 หลายเดือนก่อน

      @@Science.Buddies, thanks!

  • @TheQueenuvhearts
    @TheQueenuvhearts 7 หลายเดือนก่อน

    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
      @Science.Buddies  7 หลายเดือนก่อน

      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: th-cam.com/video/6WReFkfrUIk/w-d-xo.htmlsi=OfQ2Fr6RqSBoms2Y and watch at least the first three videos in our How to Use an Arduino series: th-cam.com/play/PLlBVuTSjOrclb0iCMSRpS_H1lSrlSVeEm.html&si=iZF8YZwDDhnUT5CZ. Hope that helps!

  • @udaykaranwal1662
    @udaykaranwal1662 5 หลายเดือนก่อน

    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
      @Science.Buddies  5 หลายเดือนก่อน

      We can't write the code for you in a TH-cam 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.

  • @shaun6831
    @shaun6831 2 หลายเดือนก่อน

    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.Buddies
      @Science.Buddies  2 หลายเดือนก่อน

      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.

  • @AlexNeir
    @AlexNeir 3 หลายเดือนก่อน +3

    Where is the code?

    • @piotrp409
      @piotrp409 3 หลายเดือนก่อน +1

      If you have the liblary downloaded then it is in example codes which u find under 'file' lable

    • @Studs_Studio
      @Studs_Studio 3 หลายเดือนก่อน

      @@piotrp409 where do you download it? also why didnt science budies give a link thats kinda weird

    • @marshallrobinson4073
      @marshallrobinson4073 หลายเดือนก่อน

      @@piotrp409 where do i go to download this liblary

  • @Nevaan3103
    @Nevaan3103 8 หลายเดือนก่อน

    Can you make a car and drone

    • @Science.Buddies
      @Science.Buddies  8 หลายเดือนก่อน

      If you search our website, www.sciencebuddies.org, you will find many projects about both cars and drones!