Arduino Obstacle Avoiding Robot Car | DIY
HTML-код
- Опубликовано: 4 мар 2021
- In this video we are going to learn how to make obstacle avoiding robot car using Arduino Uno.
We will use Ultrasonic sensor to read the distance from object and Servo motor to control the direction of ultrasonic sensor.
We will control dc gear motors speed and direction using cheap L298N motor motor driver module.
I have explained in details each step along with code.
Its real fun to watch car making adjustment on its own !!!
👉Please subscribe: www.youtube.co...
👉Components list:
✅ Arduino Uno amzn.to/3tjKRMR
✅ HC-SR04 ultrasonic sensor amzn.to/3rewdEQ
✅ Servo motor amzn.to/3btX2hY
✅ 4WD car kit (It has DC gear motors with wheels) amzn.to/3dyWB8J
✅ L298N motor driver amzn.to/3bpTz40
✅ Battery DC 7-12V (In our case its lipo 3s 11.1 V)
✅ Jumper wires
✅ Glue gun
👉 Shorts Channel :
/ ujwalnandanwar
👉Code and diagram:
github.com/un0...
👉How to use ultrasonic Sensor HC-SR04
• How to use Ultrasonic ...
👉How to control servo motor
• How to control servo m...
👉Follow us on Instagram:
/ hashincludeelectronics
#obstacleavoidingcar #DIY #smartrobot #hashincludeelectronics #arduino Наука
Can I use Arduino UNO R3 SMD Atmega328P Board - Clone Compatible Model ,plz reply
Yup you can use it . Pins are similar I just checked . Give it a try .
Love from Indonesian 👍
Thank you 🙏
the ultrasonic if i put any object it will go forowerd and the servo motor dont move
can some one help me
Please check the video slowly and carefully for any missing step 👍🏻👏🏻
Love from Bangladesh 😘❤️😘🤝
Thank you very much .
Very useful .
Very nice
Thanks a lot
Amazing Friend...
Good luck..
Thank you 👍🏻
Thank you sir for giving me the circuit diagram and the code for the robot.
You are welcome
is there a way to make the schematic a bit ore easier to understand? like separate the wires more?
I tried my best to make the circuit diagram easy to understand . 👌🏻👍🏻
sir it used for two wheels
You can use 2 wheels as well . But you will have to adjust speed and delay in code if needed 👍🏻👏🏻
@@hashincludeelectronics please can you give me sir ❤❤
@@gauravganesh2007 try 2 wheels first with same code and circuit and let me know how it works 👍🏻👏🏻
Bro my servo and ultrasonic is working but motors are not working what's the issue
Please use rechargeable battery 👍🏻👏🏻
@@hashincludeelectronics I am using li-ion battery
how many 3.7 volt battery should i use ???
please reply fast
Use 2 or 3 👍🏻👏🏻
we can use micro servo 9g for this sir
Yes we can use that as well 👍🏻👏🏻
This is really awesome ...
Gracias 🙏
this is terrific, thanks for sharing this. I've gone through the wiring several times, but can't get the car to move. the servo turns, and the hyopersonic sensor works, but the motors move a bit forward, and a bit backward. It seems as if the hypersonic sensor makes it react to move a bit. Is there something that we should change in the code or just upload it straight forward? thanks in advance, fine ser!
Just upload it straight forward . And make sure you use only rechargeable battery to avoid any issue 👍🏻 . don’t worry it will work as it worked for me 👏🏻
@@hashincludeelectronics thanks, that might be it I'm using a deck of 4 aa batteries, could you please specify what type of battery i should by? thanks again :)
@@user-nn4tm1kd6q you can use lipo or lion batteries 👍🏻
@@hashincludeelectronics thanks!
Brother L298N to arduino connection are you 2 given 1 in video table and other is circuit diagram
Both are same . You can refer anyone 👏🏻
But it's working different
Sir u r really awesome ❤️
Thank you 🙏
Very well explained
Keep watching
very nice
Thanks
Bro when I complie the program rotatemotor line not declared,so please tell the solution
Copy the code properly and compile 👍🏻
my Motor Driver(L293D) is not working , what i do now ,plzz reply
Thanks for checking out video 👍🏻. I have never used L293D driver. So can’t comment what problem you facing with this driver. This project uses L298N driver so I can help you with any issue with this module .
I tried using L293D before too. The servo did not work but other components could work properly. It’s because of the supplied voltage is not enough for servo. You probably need to supplied the additional voltage on servo. That should work.
Can i combine this to line following robot?
Yea you can combine.
Bro gr8.....keep it up
Thank you so much 😀
I need circuit diagram and code
Please help me.
When i try to download from your description it was not downloading.
It should download . What issue are you facing ? Try downloading again properly 👍🏻👏🏻
what is the name of the battery that you used
It is LiPo battery . Its little costly . You can use other rechargeable battery like LiOn cells . 👍🏻👏🏻
Nice
Thanks
bunu bluetooth ile kontrol eden halini de yapar mısınız?
Will try it in future 👍🏻
Fantastic really liked it
Thank you! Cheers!
The car's wheels wont turn unless pushed first! do you have any solution for that?
Use good rechargeable battery 👍🏻👏🏻
same problem with me
hey bro i found the solution, just increase the motors speed in the code and it will work without pushing
HOW CAN I FIX Compilation error: NewPing.h: No such file or directory?
Please install NewPing library 👍🏻
Superb idea and very well implemented too👍🏻
Thanks a lot 😊
for servo motor , we need to use the 180 deg or 360 deg
180 degrees 👏🏻
I will use L293D Motor drive or not please tell me 😢
Unfortunately this project does not support it .
Thank you for tell me , You are great I see many video on RUclips and only your code is successful work 😁🤗😇
@@astroearth_connect thank you very much 👍🏻👏🏻
Super cool!!! it will be one of my next projects. Congratulations!
Thats really nice 👌🏻👍🏻
Super ..👏👌🏻
Thank you! Cheers!
I face problems like rotateMotor is not declared in the code
Please copy the code properly from the link and then upload . See if error is resolved . 👍🏻
Sir i have made the robot but when it is time to upload the code it shows the error "Compilation error: NewPing.h: No such file or directory" pls tell what to do
You need to install NewPing library from Arduino IDE library manager . 👍🏻👏🏻
@@hashincludeelectronics I m done with it, but it still not works, the code works, but my robot doesn't work. It don't just move and detect nothing.
When i uplode the code it show error (return code is not 0)why it show
Please copy and upload the code as shown in video . Also check the video slowly and carefully for any missing step 👏🏻👍🏻
bro pls make a tutorial on how to solder wires to dc motor
It’s very easy and don’t think it needs a complete tutorial on it . Just solder 2 wires to motors as regular soldering. Give it a try 👍🏻
Awesome
Thank you 🙂👍🏻
Bro can u make an keypad lock using arduino r3
Sure I can try that 👍🏻👏🏻
@@hashincludeelectronics thnx
@@hashincludeelectronics i was trying it but I was having some issues it will be great if u will solve it
@@hashincludeelectronics till when can u make the vid as I have my science project submission
@@Ayoitzme123 it will not be soon as I am busy with some work. You can use other projects in my channel if possible 👍🏻👏🏻
Sir how to get code can you tell
The code and diagram link is provided in the description of the video 👍🏻👏🏻
Bro while uploading codes it is showing error there ies written
Sketch_jun12a:2:10 fatal error: new ping .h: no such file or directory
#include
^~~~~~~~~~~
Compilation terminated .
Exit status i
Plz help what should I do for this
Thanks for checking out the video 👍🏻👏🏻. You need to install NewPing library from Arduino library manager in Arduino IDE 👍🏻👏🏻
Thanks now my car is working 👍
@@FARAZKHAN-tf8be good job 👍🏻👏🏻
Sir coding nehi kar pa raha Hun
Code and diagram link is provided in the description of the video 👍🏻👏🏻
Bro where is bettery
Battery is connected to car. Please check the video 👍🏻👏🏻
I'm getting a error of 'mySensor not declared in this scope'
Plzz help me to fix this 🙏🙏🙏
You need to install NewPing library
@@hashincludeelectronics I have installed,still it is showing the same error 😢
Are you on Instagram ?
I want to show you the pic of that error ....can you give me your insta id ?
@@republicofgamers8056 send me the screenshot of error on Instagram hashincludeelectronics
@@hashincludeelectronics I've send that ...plzz check it out
This is awesome,great work
Thank you! Cheers!
Can this robot car used to solve maze
This robot is very basic robot so can’t handle solving maze .
Can i get code
The code and diagram link is provided in the description of the video 👍🏻👏🏻
pura project chahiye muje
That’s awesome 👌🏻. Yes you can easily make it . All details are in video 👍🏻
Coding are wrong
What issue are you facing in coding ? You can easily upload the code as it is 👏🏻👍🏻
How much RPM the motor have?
Thanks for checking out the video 👍 This is 1:48 gear ratio motor and has speed about 150-200 rpm.
@@hashincludeelectronics bro if I use 500rpm motor? They have any problem?
@@thelastonechannel612 there should not be any problem . However if robot runs faster then you will have to adjust the speed in code little bit .
@@hashincludeelectronics bro I made a drone but when I landing it will be difficult it vibrate
@@hashincludeelectronics what I do
Code have errors
Thanks for checking out the video 👍🏻 what error do you get ? Can you send me ?
👌👌
🙂👍🏻
Nhi kam kra
What issues are you facing ?
les étapes
build_Obstacle_Avoider_Robot:3:10: fatal error: NewPing.h: No such file or directory
#include
^~~~~~~~~~~
compilation terminated.
exit status 1
NewPing.h: No such file or directory
ANY SOLUTION
You need to install NewPing library from Arduino library manager.
i have a project coming up .. could you please help me with the electronics ? could you give me a way to contact you ? like instagram or whatsapp?
Please send me an email on un0038998@gmail.com
sure thanks i will contact you soon @@hashincludeelectronics