Control Servo motor with a Push Button: Move Servo and Return SPB-1

preview_player
Показать описание
This video shows how to control a servo motor using push button and Arduino such that when push button is pressed and released, the servo moves either from 0° to 180° or from 180° to 0° or set your own values.

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 ***

*** Purchase Arduino Start Kit ***

****** Purchase Authentic Arduino Uno from ****

Jump to different section of video by clicking on the time:
00:00 Start
00:48 Introduction
02:19 Servo motor explained
04:00 Wiring explained
05:11 Code Explained
12:18 Demonstration

*** Buy Servo Motor from ***

*** Purchase item ***
Amazon USA

Amazon Canada
Tutorial by Ahmad Shamshiri form Canada
****************************
****************************

Get other projects code and learn Arduino

**** AFFILIATE PROGRAM ****
#robojax #robojaxServo
Рекомендации по теме
Комментарии
Автор

THIS IS SOOO HELPFUL FOR MY PROJECT AND STUDYING
I WATCH ALL VIDEOS FROM TODAY

cubeextrainers
Автор

This is fantastic I've been struggling with a two button set up

jamesfraser
Автор

mr ahmad !!
thanks for respond as always! just i ordered the relay as you said and im waiting to have it!
so just we need to modified the code as you told me and thank you so much for helping my on this little project!!👍👍👍

behroozmazlom
Автор

THANK YOU. I HAVE SUCCESSFULLY MADE MY DAD"S B-DAY GIFT

prakh
Автор

Thanks for your video! Super helpful for the wiring. I am wondering how the coding would be different if I was trying to use a continuous servo motor instead of a positional servo motor. Is there another video for this? I am trying to have my motor rotate for a specific amount of time then stop until the button is pressed again, running the same command

BenjaminMoore-bvzs
Автор

How would i go about coding a servo to move to a certain angle when a button is pushed and back to its original angle when button is pushed again ? Say i wanted the servo to start at 90 but when i push button, servo moves to 180, when button pushed again it goes back to 90

desmondclyde
Автор

Great information, thank you very much

mohmmedaluqily
Автор

thank you thank you thank you thank you thank you thank

danielolivera
Автор

is it possible to make servo move in loop from 0 to 180 and when i click button the servo stops at its current position? or not possible without position feedback? thank you

jomfawad
Автор

I want to make a servo controlled by serial monitor only 2 movements taking 90 degree as base position
for eg for serial command 135 servo will move from 90 to 180 clockwise
and for serial command suppose 235 servo will move 90 to 180 degrees anticlockwise
plzz help if you know

adeddy
Автор

Thank you so much!!! I really need it for my project😭😭😭😭

TrangNguyen-rvbk
Автор

hi thank you for this tutorial. i have a question though is there a way to make the servo go to 180 then stay there until i press the button again?

Dropoff
Автор

Hi,
This video help me a lot. I have a project where i'm trying with one relay or button give angle to motor and when second time push button or signal from relay i need to give different angle to motor. I have 15 diferent angle, how to continue every time with same relay or button and after that motor start to zero point? If you can help me please.

zarkotrajkovic
Автор

Your videos are helpful thank you. I have a project where i'm trying to make a push button servo work along with a 7 segment display. Using a button for movement in the positive direction and a button for movement in the negative direction.

What I would like the servo to do is. At the press of each button I would like the display to count up and the servo move a certain angle. Press the button again the counter counts up by one and the servo moves up an increment again. Same for down. If I press the down button the servo moves back the same distance. Would you have any idea of how to structure the code to make this happen?

MercXLR
Автор

sir we stop my servo motor is if press push button 45 degree sir what can u do in code change ples tell me sir .poblem is come back same position

lasyapothina
Автор

please how to do it so when i press the button it comes to the angle and stays there ? and when i press it again it will go to the starting angle?? pls help

moonmatthew
Автор

may i ask for the code of servo motor moving only one direction when push button is pressed. your help will be highly appreciated.

dorjidrugyel
Автор

Hey is it possible to control two servo motors like this with separate buttons in one arduino board?

amziayson
Автор

Your videos are very good
You put in lot of efforts
Thank you for giving us this all ready to implement .
One question please
If I want to operate two servo motors
with one push button say servo1 will move from 0 to 180 delay for 2 sec and return to 0 then servo2 should move from 0 to 180 delay for 2 sec and return to 0
How to code

Surajborate
Автор

Hello mr ahmad i really appreciate your work and knowledge and inspire with your circuits, actually i create a circuit for my project with help of your video tutorials, but when i press the button servo go 0 to 180 then return to its position and continously rotating in that direction i dont understand whats wrong, any help is appreciated thank you

abhishekjain