How to Make Arduino Obstacle Avoiding Robot with L298N H-Bridge Motor Driver
Vložit
- čas přidán 2. 03. 2017
- In this Arduino project tutorial we will learn how to make obstacle avoiding robot using L298N h-bridge motor driver. Also we will use for this project HC SR04 ultrasonic distance sensor and we will use NewPing library in the arduino code.
Required Hardware:
Arduino Uno R3
goo.gl/Rqc5w2
amzn.to/2LZr6t4
L298N H-bridge
goo.gl/Ucvx6J
amzn.to/3diatT1
HC SR04 Sensor
goo.gl/F0m7hN
amzn.to/3avwe1N
SG90 Servo
goo.gl/iywd5p
amzn.to/3avwe1N
DC Motor Wheel
goo.gl/iDy7ep
amzn.to/3djj9Zp
Chassis
goo.gl/Y8Ch7A
amzn.to/3u7BOyk
HC SR04 Bracket
goo.gl/dknful
amzn.to/3rxpeXm
Front Wheel
goo.gl/HLLKpc
amzn.to/3sAKInF
Breadboard
goo.gl/08nnr1
amzn.to/3qxLxwm
F to F Jumper
goo.gl/TdGrkk
amzn.to/3dhwVM5
M to M Jumper
goo.gl/VRzUN4
amzn.to/3dhwVM5
9V Battery
goo.gl/3EIJcf
amzn.to/2O4h5vK
Battery Clip
goo.gl/iAEgPl
amzn.to/2QHL3qi
Power Cable
goo.gl/aBKusM
Recommended Items:
Use Your Muscles in Project - amzn.to/3wdL45C
37 Sensor & Module Packages - amzn.to/3m66WeQ
Try this Robot Arm - amzn.to/3fq8DCl
Best Resin 3D Printer - amzn.to/39tY8KB
Arduino Compatible Kits - bit.ly/2J2AFF7
Banggood Spring Sale - bit.ly/3slMbOn
NewPing Library - goo.gl/Qe6XU6
Download Source Code: create.arduino.cc/editor/mert...
Social Media:
/ mertarduino
/ mertarduino - Věda a technologie
Source Code: create.arduino.cc/editor/mertarduinotech/4aeaf653-2755-4d8b-96ca-c65e9eff8927/preview
Recommended Items:
Use Your Muscles in Project - amzn.to/3wdL45C
37 Sensor & Module Packages - amzn.to/3m66WeQ
Try this Robot Arm - amzn.to/3fq8DCl
Best Resin 3D Printer - amzn.to/39tY8KB
Arduino Compatible Kits - bit.ly/2J2AFF7
Banggood Spring Sale - bit.ly/3slMbOn
how about L298P motor., did you try., i try but it's not work., please help me
Awsome!!!
bro there is a problem i did every thing same as you but its no working please help me i wasted 2 arduino on this but it is not working please help me
I tired this and it worked on God's level
Hands off
Love from🇮🇳🇮🇳🇮🇳🇮🇳🇮🇳🇮🇳🇮🇳🇮🇳
Thank you very much for sharing. I've been following you for a while and really helped me getting into the Arduino world. You certainly love your glue gun :-)
thanks bro.. it really helped me a lot.. i made it.. love from INDIA
Awesome! It works perfectly!!! If you have problems with the sensor, you must switch the two cables that are connected from the sensor to the Arduino board. Thank you very much Mert! You are the best.
Hello sir i have downloaded the new ping library but it does not contain any thing
U got output Anonymous replay fast
@@deepakgupta6856 when downloading it above the place where you download should be open with unrar and rar click it then put the file you have downloaded then you get the code
thanks for making video every week.
Thank you for the video and script! A good start for building this robot.
The basic script can be improved, because the variable lookRight is never used. So at this moment the robot will only check the left side for distance.
Maybe it's a small bug, easy to solve: change line 64 into:
if (distanceRight >= distanceLeft){
And it's possible to run the complete robot with 1 set of 4 AA batteries (the 4 AA battery holder is provided in some of the robot kits).
Thx for making this vedio my project is working perfectly
It's wonderful!!This video helped me to make it.If I want anything Arduino , you are the best creator!!
Thank you very much it works just fine! For my expectations at least cause i'm kinda new in robotics. Thanks man
awesome project I tried it It works perfectly thanks Mert Arduino and Tech
shashank how can we open the program in arduino after saving in library
kamal kar diya boss...thanks for indirectly helping in my iot project
bro ,I like your videos because they are very interesting .Congratulations********
Hi... Your projects are very good
And it is very easy to make
Hi! I'm tryning to understand why did you use the boolean variable "goesForward" and the "if" bucle inside readping () function, which initialize distance=250? I hope you can help me. Thanks for the video!
Exactly what I was looking for! Thanks!
Thanks it works. U deserve a medal
AWESOME PROJECT BRO...
IF YOU HAVE PROBLEM WITH SENSOR ULTRASONIC, YOU MUST CHANGE CABEL TRIG AND ECHO TO ARDUINO A1 AND A2
bro you are awesome...
i really like your tutorials ... thanks
Thanks bro you helped me First it was not working but then i put it to Com port 3 then it started to work
Dude I am getting error how did u finished the project
thank you for making this video it helped me a lot
Thank you so much for that nice projects , could you please do a wireless charger using arduino ?
This is great and thanks for the code. Small typo in line 61: change 'distance' to 'distanceRight.'
Bro i cannot find the code... Can u help me? Please?
in the code, the if statement states that "if(distance
Nice work, thank you very much for sharing. Why not use the speed function offered by the L298 bridge to reduce the speed of the robot? my greetings
can i use a motor shield l293d
Congrats for the channel. I love it ! :)
Please tell me, is it possible to combine the remote control with the HC SR04 Sensor? i have already tried but with no success. couldn't resolve the conflict with the timers... :/
Any help will be appreciated .
Keep going with the awesome work !
Superb Thank you for a Great video ;)
Thanks for your step by step show.
a
well done, especially the last part how you planned to put what+where, one question:
why did you connect the HC SR04 to analog and not digital pins???
Thanks you bro very very very very very very much to giving me newpin lab. No other youtuber give lablari
sir please tell me that i can use L293D moter driver
super.thank you so much .awesome project bro
Thank You sooooo much worked perfectly I had a big problem with the code, this video helped me solve, again a very big thank you
Hey bro can you help me
great work....waiting for the quad
Can we use L293d moter module instead of L298N module .will it be the same program
Need an reply sir
OK bro my question is the connection of the mini bred board in the first tutorial means on the computer screen and connection of your on making it is not same it is d/t in the ultrasonic connection so can I go with computer tutorial or your making right on the robot?
Thankyou very much working well
Nice project !!! Congratulation !!!
Great project. Is there a picture somewhere of the circuit diagram? or is it just in the video?
obrigado por fazer vídeo a cada semana.❤️❤️
its been 30 days since i order an arduino starter kit from aliexpress and it isnt arrive yet , i cant wait any more, god.
why do you manage the ultrasouds sensor with analog ports?
Great content as always! The project is creative and your guidance was incredibly helpful. I learned a lot and enjoyed the process. Looking forward to more!”
muy bueno amigo
we tried the same as you have shown in the video but inspite of everything correct the dc motors are not rotating as per the command sent by the sensor
we have used normal 9v battery and not duracell so is that he issue
It would have been much easier if you had just sent the link for connections as well. Just writing down the list of things I need to buy for this project hope I do it just like you did. Fingers crossed 🤞
How while I know which wire from the motor should be connected to the l298n? pls help asap
love you! Thanks for the code !!!
thank you for this great projekt !!!
Is It possible to chang the motor speed on the left / right motor ? due the motors have some speed different
Thank You
MABA
I am done almost making my first autonomous car but will it work if I give it one Lipo 3S battery instead of two 9V batteries ?
Which material you use for chassis
Great work.I have a problem with the direction of the program circuit of Fritzing, I am not to see it.I have downloaded Fritzing.Thanks
A good video once again. Pease make something innovative project with Arduino. This is project is great but its a bit traditional of obstacle avoiding robot. Or you can start a new video series for advanced viewers. Thanks a lot.
bro can u join the line follwer and this project. please make video of it.
Can u please tell me which libraries to include and how?
where did you bought the ultrasonic sensor stand ?
Great project! I built it but only the left side of my wheel works. I have been trouble shooting it for days. The connections were done right but the right wheel won't move.
same problem for me too... what is the reason.
Same problem bro
Do u know the reason
@@steameducationbykiranbhatt6836 i have the same problem did you fixed it?
@@groupescolairealmanbae4695 did you?İ have same problem
Amazing ❤️❤️😍😍😍😍😍😍😍😍😍😍😍😍 goood work
and plzz tell wat software you used in this prlject to make circuit diagrams
If I useArduino Pro or Nano should I use the same pins?
u are the best
nice work broo..................................................
like my comment
Please help
How to dowaload the source code please help,😫😫😭
Can I connect a 4 volt battery to l298 module?
Because i have a 3 volt dc motor that can't run on 9v battery.
do I need to add a servo library?
what program did you use to make the schematics?
what simulator is that your using to plan out your arduino projects?Thank you
i have made this but only servo is running when obstacle comes in front of the ultrasonic sensor i have used 9v battery for motor driver. plz give some suggestion in my motor driver at vcc terminal how much voltage supply can i give.
Hello please tell me which battery should I buy
Which software you use for give connection process?
спасибо заработало сразу. указал все библиотеки. только пришлось контакты на моторы переставлять.
could you please try using l293d module please using servo
kindly tell about the web or software u used for showing connections?
hi merit what is the roll of news ping library
make a video of obstacle running robot with the use of arduino genuino uno and motar module L293D and including the use of seervo motar SG90 for head movement
On which software did you make the circuit diagram?
Is it possible to use an elegoo card instead but use the same program?
thanks you
and what is arduino simulator used in the video?
@mert arduino can i use a different motor driver?
Really nice 👌
Yoy xan connect the motors to any terminal?
Puedo usar el puente h de Arduino para hacer este proyecto
How can we change the pins if the motor is moving in different directions
Se puede reducir la velocidad de los motores en esta programación ??
very good man
PLEASE HELP! So i followed the instructions, download the code and did everything right according to the video, but when i tested it the Micro Servo just wouldn't turn. After several trials, i managed to make the servo turn but the turn was to small that you could barely even see it. And great video by the way!
hi!
in program as u given boolean expression is not necessary. Isn't it.
which software you use to design this
great work
thank you
Can I use Arduino UNO R3 SMD Atmega328P Board - Clone Compatible Model
I connected as per your circuit but while working the servo and sensor are working but the motors are not rotating can u help me please
Can you do a more advanced video project like a 3d printer, robotic spider, drone, battle bot, ect. Like one of the ones I listed would be fine.
Thanks bro!!!!!!!!!!!!!!!!!!
That red board a breadbord right?
Thanks for making us winner ...
In which app did u design the circuit.....plz say
i have question , for make a wiring diagram use application, what is you application to make a wiring diagram on your video?
Aynı projeyi aynı malzemeler ile yaptım. Servo ve ultrasonic çalışıyor ama tekerlekler dönmüyor sizce ne olabilir?