Lesson 88: Controlling a servo motor using two push button switches

  Рет қаралды 19,102

Robojax

Robojax

Күн бұрын

Пікірлер: 30
@hafidfadillah4848
@hafidfadillah4848 Жыл бұрын
Thank you so much Robojax , your video so helpfull.
@robojax
@robojax Жыл бұрын
Glad it helped!
@gofishlures3168
@gofishlures3168 Жыл бұрын
Great video by the way. Works prefect when I set it up as you have it.
@mkhatri007
@mkhatri007 2 жыл бұрын
@3:50 when right button is pressed it would go high then how come while(digitalRead(RIGHT) == LOW){ is executed?
@jimunsigned
@jimunsigned Жыл бұрын
Hi Robojax, thanks for sharing this. Ive been looking for something similar instead of two buttons would like to use a SPDT toggle switch, so that in one position the servo is in one position and when the toggle switch is in the other position the servo will move to the other position. Can you suggest how to change your script and electronics ? Thanks.
@joescopo8933
@joescopo8933 Жыл бұрын
Great video as always. What changes would I make to the code in order to drive the servo left to right while only hitting the button once without having to hold it down? Also the same to move the servo right to left using the other button. Thank you!
@robojax
@robojax Жыл бұрын
Hi, I belive I have convered every possible move that I thought would be usefuol. But still there should be 100s of more possiblities. Just serachg my channel for the key word "servo" and I am sure you will find solution as I don't remember which which is doing specific move.
@joescopo8933
@joescopo8933 Жыл бұрын
@Robojax , yes, I've seen I think all your videos on servo-pushbutton. The only video with 2 push buttons is where you have to hold down the button. I'll try your code on using 1 button to make the server go in one direction, and just add the same code with a few tweaks with a second push button. Thank you, sir, and keep the great videos coming.
@gofishlures3168
@gofishlures3168 Жыл бұрын
I want to add a RF receiver 315mhz with a 2 button fob to also control left and Right movement of the servo to this can you help me?
@모든유해조수퇴치기조
@모든유해조수퇴치기조 Жыл бұрын
감사합니다
@Electronics-n2w
@Electronics-n2w 6 ай бұрын
Nice project sir
@regenerate3d481
@regenerate3d481 Жыл бұрын
Ah I'v just found this after your single switch tutorial. i need the code to go to a set and for each button to then return to 0 once button released. Button 1 45 Degrees and then Button 2 65 Degrees. and then for Servo to return to 0 and stay at zero until either button pressed?
@robojax
@robojax Жыл бұрын
Ode below the description
@ulfaxelsson5956
@ulfaxelsson5956 Жыл бұрын
Hi Robojax. Where can I buy a preprogramed Arduino (working as you showing in the Video) Please help me to get one - Thanks in advance
@robojax
@robojax Жыл бұрын
Hi, if you can't do it, you can hire me. if you are in the US and Canada it would be easity. Purcahse Arduino from Amazon and ship it to me. Contact me via robojax.com contact page.
@gelatinskeleton8745
@gelatinskeleton8745 2 жыл бұрын
Can I replace the buttons for mirco limit switches? I need a DC motor to move an object then stop when it hits a limit switch and return home where another limit switch stops it.
@robojax
@robojax 2 жыл бұрын
Yea you can.
@gelatinskeleton8745
@gelatinskeleton8745 2 жыл бұрын
@@robojax can I watch a video on this? I’ve not found one yet. Can I request one?
@robojax
@robojax 2 жыл бұрын
Here is how to find a video in a channel kzbin.info/www/bejne/hZnOhpabd7yWftU
@peetywondr3256
@peetywondr3256 2 жыл бұрын
Will this work with IR sensor switches instead of push buttons? I need an IR detector to move a servo to its 180° position and another IR switch To return it to 0°, all without keeping voltage to the servo applied once it reaches its limit. Any help would be appreciated. I'm considering using the IR to trigger a 555 timer which will supply a 1.5 second pulse to the servo.
@robojax
@robojax 2 жыл бұрын
Search my channel for infrared
@robojax
@robojax 2 жыл бұрын
kzbin.info/www/bejne/gofHapKfYqeEmck here it is
@robojax
@robojax 2 жыл бұрын
You didn’t reply?
@peetywondr3256
@peetywondr3256 2 жыл бұрын
@@robojax I checked it out and that will fix my issue - thank you
@JK-lq4ru
@JK-lq4ru 2 жыл бұрын
Hi, i have wired my circuit the exact same and used the same code you have mentioned, however my switches do not operate, and instead, the servo turns automatically from 85 degrees down to 0 degrees once the arduino is plugged in. I am unable to identify the issue, please could you provide guidance? Thank you
@robojax
@robojax 2 жыл бұрын
Hi, you gotta test the push buttons using the code in this video kzbin.info/www/bejne/aIjalpd5h9ygnaM . define on push button and use pin 13 which has LED so push ON, Push OFF. then test 2nd push button. I believe it is the push button wiring.
@johnsmith-fz3qk
@johnsmith-fz3qk 2 жыл бұрын
I believe the mistake is in his code or how it is wired. You can either change the number in #define LEFT 12 // pin 12 is connected to left button to "3" or connect the wire to pin 12 instead of 3 as shown in the wiring diagram. Hope this helps 👍
@Drxxx
@Drxxx 3 жыл бұрын
Great
@johannesraty8606
@johannesraty8606 2 жыл бұрын
not working correctly. when servo reach 180 or 0 degrees it still continue running.
@robojax
@robojax 2 жыл бұрын
You must have change the code or did something wrong. If you came direct to this video without the introduction videos that could be another reason. This lesson is coming after other videos.
🎈🎈🎈😲 #tiktok #shorts
0:28
Byungari 병아리언니
Рет қаралды 4,5 МЛН
Хаги Ваги говорит разными голосами
0:22
Фани Хани
Рет қаралды 2,2 МЛН
Arduino Basics - Lesson 12 - Using buttons to control a Servo motor
12:04
How to Use Servo Motors with NO Programming! - Hotwire Servo Tutorial
12:56
Controlling DC Motors with the L298N H Bridge and Arduino
36:41
DroneBot Workshop
Рет қаралды 1,3 МЛН
🎈🎈🎈😲 #tiktok #shorts
0:28
Byungari 병아리언니
Рет қаралды 4,5 МЛН