Arduino Tutorial 30- Control DC Motor Speed and Direction using a Joystick

  Рет қаралды 34,571

Enjoy Mechatronics

Enjoy Mechatronics

2 жыл бұрын

Let's use the PS2 Joystick to control a DC motor. So, this lesson helps you to create projects like robot cars, drones ...
● L298N Motor Driver: • Arduino Tutorial 29- C...
● Arduino Joystick: • Arduino Tutorial 16- H...
● Playlist Link: bit.ly/2VT2ZAN
Best Arduino Starter Kit 👇
✅ amzn.to/3TUro3o
--------------------------------------------------------------------
► Get Your First Arduino Starter Kit 👇:
✅ amzn.to/3VfGNM1
👉 amzn.to/3L7gPpw
♥ Don't Click This! : bit.ly/3jvI8g6
--------------------------------------------------------------------
FOLLOW ME:
● Facebook: / enjoymechatronics
● Github: github.com/Enjoy-Mechatronics
--------------------------------------------------------------------
► All content by Enjoy Mechatronics is 100% free. I believe that education should be freely available to everyone.

Пікірлер: 29
@soopengmingsoopengming146
@soopengmingsoopengming146 2 жыл бұрын
Crystal clear explaining for beginners. Thanks
@deadlymedley3306
@deadlymedley3306 Жыл бұрын
Best tutorial for controlling dc motor with joystick! I tried your code and it worked perfectly and it helped me understand the code a little better
@EnjoyMechatronics
@EnjoyMechatronics Жыл бұрын
Thanks, I appreciate it
@armelchiza3771
@armelchiza3771 Жыл бұрын
The only video that worked for me tbh, thank you
@EnjoyMechatronics
@EnjoyMechatronics Жыл бұрын
No problem 😊
@MrKYT-gb8gs
@MrKYT-gb8gs Жыл бұрын
Brilliannt, thanks for the map function!
@EnjoyMechatronics
@EnjoyMechatronics Жыл бұрын
No worries!
@m_som
@m_som 10 ай бұрын
Thank you man, that was excellent 💓
@EnjoyMechatronics
@EnjoyMechatronics 10 ай бұрын
My pleasure!
@mingosutu
@mingosutu 7 ай бұрын
Good job. I was thinking if you could use the Infrared in this project.
@The1Creston
@The1Creston 7 ай бұрын
Thank you for the clarity
@EnjoyMechatronics
@EnjoyMechatronics 7 ай бұрын
Any time!
@HashbrownDestroyer
@HashbrownDestroyer Жыл бұрын
I have the same motor controller but mine came in a kit and it has click connectors instead of separate pins. WIll it still work for this project?
@malikthetalentmaker6001
@malikthetalentmaker6001 2 жыл бұрын
Hey I wanted a help in unity 3d endless runner I made multiple jump animations Can I make unity play them randomly? And how?
@malikthetalentmaker6001
@malikthetalentmaker6001 2 жыл бұрын
Geeeeeniuuuus
@myidahohomestead.7123
@myidahohomestead.7123 2 жыл бұрын
I need this but with a roboclaw motor driver not the L298N
@AutoneticsProjectGalaxy
@AutoneticsProjectGalaxy 2 ай бұрын
thanks
@EnjoyMechatronics
@EnjoyMechatronics 2 ай бұрын
No problem
@Chickennugget-vq6lw
@Chickennugget-vq6lw Жыл бұрын
hi what value would I use if i wantef to use the y instead of the x
@EnjoyMechatronics
@EnjoyMechatronics Жыл бұрын
Just use the Ypin of the joystick 🕹
@linalin2799
@linalin2799 Жыл бұрын
What kind of wire did you use to connect the motor to the l298n
@EnjoyMechatronics
@EnjoyMechatronics Жыл бұрын
Simple Jumper wires! But it doesn't matter if you have different ones.
@infinitylike5522
@infinitylike5522 Жыл бұрын
Ajoyib
@stevanardilaacero4785
@stevanardilaacero4785 Ай бұрын
No me funciono la programación
@Mr.P539
@Mr.P539 Жыл бұрын
Hi, thank you for sharing, can you share the code please...Thank you
@mo135_cod2
@mo135_cod2 2 жыл бұрын
code ????
@fats1227
@fats1227 Ай бұрын
I relate to this
@ace.5162
@ace.5162 3 ай бұрын
Bro pls share the code man
@AldoHernandez-ou5mw
@AldoHernandez-ou5mw Ай бұрын
int speedPin = 3; int dirPin1 = 4; int dirPin2 = 5; int readPin = A0; int readValue; void setup () { // put setup code here pinMode (speedPin, OUTPUT); pinMode (dirPin1, OUTPUT); pinMode (dirPin2, OUTPUT); pinMode(readPin, INPUT); analogWrite(speedPin, 60); digitalWrite(dirPin1, HIGH); digitalWrite(dirPin2, LOW); } void loop () { // put main code here readValue = analogRead(readPin); if(readValue < 400) { analogWrite(speedPin, map(readValue, 0, 400, 255, 60)); //map(readValue, 0, 400, 255, 60); digitalWrite(dirPin1, HIGH); digitalWrite(dirPin2, LOW); }else if(readValue
Arduino Tutorial 31- How to Use the Infrared (IR) Remote
8:45
Enjoy Mechatronics
Рет қаралды 109 М.
Arduino DC Motor Control Tutorial - L298N | H-Bridge | PWM | Robot Car
9:59
How To Mechatronics
Рет қаралды 1,2 МЛН
Clown takes blame for missing candy 🍬🤣 #shorts
00:49
Yoeslan
Рет қаралды 40 МЛН
Sigma Kid Hair #funny #sigma #comedy
00:33
CRAZY GREAPA
Рет қаралды 34 МЛН
🤔Какой Орган самый длинный ? #shorts
00:42
Controlling DC Motors with the L298N H Bridge and Arduino
36:41
DroneBot Workshop
Рет қаралды 1,3 МЛН
How to control a DC motor with an encoder
9:30
Curio Res
Рет қаралды 427 М.
The coolest robot I've ever built!
19:40
Thomas Burns
Рет қаралды 4,5 МЛН
How to control a DC motor with L298N driver and Arduino Uno
9:50
How to Control a 12V Motor with Arduino: Easy Wiring & Code Examples
44:13
Run L298 Motor Driver with Flysky Receiver without Arduino
3:53
Control a DC Motor with Arduino (Lesson #16)
14:01
Science Buddies
Рет қаралды 191 М.
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
ROCKET that LITERALLY BURNS WATER as FUEL
19:00
Integza
Рет қаралды 1,6 МЛН
Опасность фирменной зарядки Apple
0:57
SuperCrastan
Рет қаралды 7 МЛН
Kumanda İle Bilgisayarı Yönetmek #shorts
0:29
Osman Kabadayı
Рет қаралды 1,8 МЛН
iPhone, Galaxy или Pixel? 😎
0:16
serg1us
Рет қаралды 1,3 МЛН
Как правильно выключать звук на телефоне?
0:17
Люди.Идеи, общественная организация
Рет қаралды 1,9 МЛН