Control Servo motor with a Push Button: Move Servo Keep push button pressed SPB-3

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 พ.ค. 2024
  • Step by step learn how to control servo by pressing a push button (keep it pressed) to move it in ONE direction either from 0° to 180° or from 180° to 0° or any other angle you chose.
    The best thank you for me is to not to skip ads and Subscribe 🔔 to my channel, like 👍 the video It is greatly appreciated. 🔔 😊.
    I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe and enable the bell 🔔.😊
    ** Buy Servo Motor from **
    Amazon USA: amzn.to/3m6Cmkr
    Amazon Canada: amzn.to/2JdM5GK
    All Europe Amazon: amzn.to/36YDSzn
    AliExpress (single servo): s.click.aliexpress.com/e/_ApIWoQ
    AliExpress (4/5/20pcs metal gear): s.click.aliexpress.com/e/_AFMrG
    Jump to different section of video by clicking on the time:
    00:00 Start
    01:00 Introduction
    02:27 Servo motor explained
    04:07 Wiring Explained
    05:17 Arduino code explained
    10:29 Demonstration
    Download code for this video: robojax.com/L/?id=104
    SPB-1 Servo With Push button Video 1 : • Control Servo motor wi...
    SPB-2 Servo With Push button Video 2 : • Control Servo motor wi...
    Why we need resistor with push button: • Why use Resistors with...
    ** Buy Servo Motor from **
    Amazon USA: amzn.to/3m6Cmkr
    Amazon Canada: amzn.to/2JdM5GK
    All Europe Amazon: amzn.to/36YDSzn
    ** Purchase item **
    Amazon USA
    - Arduino UNO(authentic): amzn.to/3glHgYp
    -Arduino Mega(authentic): amzn.to/33P5sO1
    -Arduino Nano (authentic): amzn.to/3onbH3s
    - Arduino UNO(compatible): amzn.to/3ghPnp9
    -Arduino Mega(compatible): amzn.to/3lXizTG
    -Arduino Nano (compatible): amzn.to/3n3s5FO
    Amazon Canada
    - Arduino UNO(authentic): amzn.to/3qtwzrw
    -Arduino Mega(authentic): amzn.to/36NwOpI
    -Arduino Nano (authentic): amzn.to/39NPveJ
    - Arduino UNO(compatible): amzn.to/36QA5ok
    -Arduino Mega(compatible): amzn.to/36QA5ok
    -Arduino Nano (compatible): amzn.to/36NwOpI
    Learn Arduino in 30 Minutes (video): robojax.com/L/?id=135
    Tutorial by Ahmad Shamshiri form Canada
    ****************************
    Arduino Step by Step Course (over 100 lectures) Starts here • Lesson 00 What is Ardu...
    ****************************
    If you found this tutorial helpful, please support me so I can continue creating contents like this. Here is PayPal link paypal.me/robojaxTV
    Follow me on Facebook robojaxTV
    Follow me on Twitter: / robojaxtv
    Follow me on Instagram: / robojax
    Tutorial by Robojax.com
    Get other projects code and learn Arduino
    robojax.com/learn/arduino
    *** AFFILIATE PROGRAM ***
    We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites.
    #robojax #robojaxServo
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @J5AM
    @J5AM 3 ปีที่แล้ว

    hello ! Thank a lot for your video ! I have a question about this ... if i use external power for the servomotor(MG995R) ..what is the schematic to make that please ? :)

    • @robojax
      @robojax  3 ปีที่แล้ว

      Hello, you are welcome. Yes it will work with servo you mentioned. Wiring diagram is available as part of my Arduino course at Udemy.com Purchase Arduino Course at Udemy.com : robojax.com/L/?id=153

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

    8:35
    you changed from if-loop to while-loop?

  • @noorrahmanaziz2894
    @noorrahmanaziz2894 4 ปีที่แล้ว

    تشکر محترم

    • @robojax
      @robojax  4 ปีที่แล้ว

      سلامت باشید.

    • @shivaattaripour7485
      @shivaattaripour7485 4 ปีที่แล้ว +1

      Persian talk ey? I hope you get to know english fluidly. You won't really survive in TH-cam without knowing english fluidly.

    • @robojax
      @robojax  4 ปีที่แล้ว

      LOL. I try to have positive impact on peoples life as much as I can. Because my first language is Persian I won't have enough audience. So English is my best shot.

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

      سلام علیکم. مجرا (کانال) فارسی علم و فن را راه اندازی کردم: لطفا به دوستان تان خبردهید و حمایتم کنید.
      www.youtube.com/@ilmofan

  • @sohelchakma9879
    @sohelchakma9879 4 ปีที่แล้ว

    World number 1 arduino master

    • @robojax
      @robojax  4 ปีที่แล้ว

      You are so kind. I am doing my best. Thanks.

    • @shivaattaripour7485
      @shivaattaripour7485 4 ปีที่แล้ว

      If we do it as a city perspective. My english is much more fluid than him.

  • @hoonam814
    @hoonam814 4 ปีที่แล้ว

    Kheili bahale!

    • @robojax
      @robojax  4 ปีที่แล้ว

      mamnoon.

  • @bagenius5970
    @bagenius5970 3 ปีที่แล้ว

    How would I be able to do this and have it move to a certain position when the button is pressed and return to a home position when the button is not being pressed?

    • @robojax
      @robojax  3 ปีที่แล้ว

      adding home push button would need another switch. I have added it on my "to do" list.

  • @LC-ue6mp
    @LC-ue6mp 4 ปีที่แล้ว

    Your last name is COOL !!!

    • @robojax
      @robojax  4 ปีที่แล้ว

      LOL ❤️

  • @MrRockinneil
    @MrRockinneil 2 ปีที่แล้ว

    Hello , I would like to have a circuit that if I press and hold the button it will turn 90 degrees cw and when I let go of the button it will turn back 90 degrees ccw. Thanks.

    • @robojax
      @robojax  2 ปีที่แล้ว

      I she explained them fully and makes so many videos for servo. So please watch a few video and you should learn and modify them for your application. If you don’t want to learn then pay someone to do it for you.

  • @shivaattaripour7485
    @shivaattaripour7485 4 ปีที่แล้ว

    This is such an easy project. You just do a constant variable that checks the button state and put an if to check if it's HIGH (1) or LOW (0) Then if it is HIGH (1) Then add to servo angle variable and put a constant write code to constantly check the angle then write it in to the servo. I am 11 mother bakas.

    • @robojax
      @robojax  4 ปีที่แล้ว

      you are good

  • @shivaattaripour7485
    @shivaattaripour7485 4 ปีที่แล้ว +1

    Oh so a persian arduino guy ey? I hoped i would never encounter one here. Except from electroBOOOM.

    • @robojax
      @robojax  4 ปีที่แล้ว

      How can I help you @"TheGolen Microphone"?