Arduino tutorial | How to control servo motor with joystick and arduino
HTML-код
- Опубликовано: 14 окт 2024
- hello!
In this video,you can learn how to use servo motor using joystick.
materials:-
Arduino uno
Servo motor
Joystick
breadboard
Jumper wires
arduino radar system=
• Arduino projects | ard...
Arduino Tutorials | How to measure distance with arduino using ultrasonic sensor=
• Arduino Tutorials | Ho...
code= bit.ly/2G4ERAm
Please subscribe for more videos
hi, it works, only do u know why my servo motor shakes when turning to the left and works normal when turning to the right?
edit: i found the solution, i prolonged the delay time to 150 and it works, not sure if this has other consequences doh?
If your servo motor is going left and right when youre turning it to the left side, make the delay to 1 at void loop
The Code:
#include
const int Y_pin = A0; // analog pin connected to Y output
Servo myservo;
int val;
void setup() {
myservo.attach(7);
}
void loop() {
val = analogRead(Y_pin);
val = map(val, 0, 1023, 0, 180);
myservo.write(val);
delay(15);
}
Thank you so muchhhhh
And if i want use 2 ou 3 more servo motor with another 2 or 3 joytick? how is the code? a little example please. Thks bro
Welcome done bro i is very easy for everyone this project is amazing
Hey im not a programmer but is there a way to make the servo motors hold the position even if the thumbstick goes to 0
which app did you use for the diagram
yeah wich one
Fritizing
what did you use to edit the arduino
What?
type arduino in google then click on the first site arduino.cc and then download it but donc forget to plug in your arduino with a usb cable
hi great explainatino have you done one where we could attach another motor on the x axis an get it to stay where it is when you take finger off.want tp controll webcam for 3d printer cheers
I can't find the code in the description
Is there a way you can do the same thing with the raspberry pi?
im probably too late but im pretty sure no.
It pauses for a few seconds when i hook it up to the battery andyone know how to fix this problem
Does this work with continuos rotation motors or no
probably not and probably late comment
The screen recorder cut off the first 3 digits of code at the final bit, and the link in the description does nothing. Help me.
bit.ly/2G4ERAm
Thanks
If the link in the description didn't help you how did this one because its the same link
Your guess is as good as mine, if not better
Nice video bro, i was doing a project where i could control a webcam with a servo and joystick and needed a video 2 do it b4 i put a webcam on it, thx bro!
You know what beats' the heck out of music. Actually talking about what your doing.
2 more questions( noob here) why does the arduino pause/restart every x seconds?
and why does it turn more to the right and less to the left?
it all works great until i plug in my batterie. any ideas?
it works but we have to do some augments
How can u get 360 movmebt
need to use 360 servo/continuous rotation servo
Yeah whenever I ran the code I was prompted with Failed to compile to arduino uno
thank u sir it works
what is the page where you configure the servos
i got it 2 work thank u
mine not work
code please
OMG thank You
is it really just copy and paste the code? Keep getting errors when trying to upload. Doing this for my son and im lost.
@@fritzlamourjr.8206 The code is in the description like a Link, it leaves You into a page and You can copy it.
@@fritzlamourjr.8206 i can help You if You want :D
@@fritzlamourjr.8206The code is in the description, inside a website :))
@@fritzlamourjr.8206i can help you
My code says there is an error
mine did too but then i reuploaded it and it worked. is it error exit 1 or something?
Is it just my thing saying too few arguments?
thanks bro
nice video
Tnx ❤
@@mr.arduino1397 tnx
1000 gracias
it did not work
Hi
Horrível a forma que vc mostra o passo a passo
#burst
Sadel ek no ka dimag khaou
Non funziona 🤬🤬🤬
තද
did not work
U need code