How To Make Arduino Obstacle avoiding Robot | L298N Motor Driver | 4 Wheel Chassis Kit | Sinhala
Ғылым және технология
🔰Hi Friends,
⭕Today, I'm excited to share with you how to build an obstacle avoidance robot. The central component in this project is the Arduino board. This robot features four wheels and utilizes components such as the HC-SR04 sensor, L298N H-bridge motor driver, and SG90 Servo motor for its operation.
💢Obstacle Avoiding Robot CKT Diagram, newping library and Arduino code :-
robotlk.com/how-to-make-ardui...
⭕Below are the links to purchase the required accessories
🔰AliExpress Links,
1) Arduino Uno - s.click.aliexpress.com/e/_DdM...
2)L298N motor drive - s.click.aliexpress.com/e/_Dcf...
3) 4 Wheel Robot Smart Car Chassis Kit - s.click.aliexpress.com/e/_Dlm...
4) Servo Motor - s.click.aliexpress.com/e/_DFf...
5) Ultrasonic Sensor - s.click.aliexpress.com/e/_Dmr...
6) 18650 Li-on Battery (2x) -s.click.aliexpress.com/e/_DCv...
7) 18650 Battery Holder - s.click.aliexpress.com/e/_DBS...
8) Male and Female Jumper wire - s.click.aliexpress.com/e/_DCl...
9) DC Power Switch - s.click.aliexpress.com/e/_Dcw...
🔰Amozon Links,
1) Arduino Uno - amzn.to/4baGxp7
2)L298N motor drive - amzn.to/3Ohl5Vu
3) 4 Wheel Robot Smart Car Chassis Kit -amzn.to/42ikGbu
4) Servo Motor - amzn.to/3HBSWoq
5) Ultrasonic Sensor - amzn.to/3u5YuEL
6) 18650 Li-on Battery (2x) - amzn.to/3OiC8Xo
7) 18650 Battery Holder - amzn.to/3vRYZ5X
8) Male and Female Jumper wire - amzn.to/42fjEwI
9) DC Power Switch - amzn.to/4ba77Ph
💢My facebook page :- / robot-lk-101113971569889
-
🔰If you find my creations valuable, interesting, and informative, please consider subscribing to my channel, liking and commenting on my videos, and sharing them with your friends.
🔰Thank You Very Much Guys, Good Luck!
🔸How To Make Bluetooth RC Car(Two Motor drives) - • How To Make Bluetooth ...
🔸How To Make Bluetooth RC Car(One Motor drive) - • How To Make Bluetooth ...
🔸How to make a Gesture Control Car - • How to make a Gesture ...
🔸Arduino Mecanum Wheels Robot Car - • Arduino Mecanum Wheels...
🔸Arduino FPV RC Car | FPV System - • Arduino FPV RC Car | F...
------------------------------
Track: Playa - Mauro Somm [Audio Library Release]
Music provided by Audio Library Plus
Watch: • Playa - Mauro Somm | F...
Free Download / Stream: alplus.io/playa
------------------------------
#ObstacleAvoidingRobot #sinhala #arduino #robotlk
Пікірлер: 921
thank you so much man!, mine worked so well! :D
@RobotLk
3 жыл бұрын
You're welcome!
@ghaliaga9120
3 жыл бұрын
ج
@nagadevi15
3 жыл бұрын
Me too
@creativecraftingbhaumik2296
2 жыл бұрын
Mine didn't worked XD :(
@harshinijones5916
2 жыл бұрын
Man for programming what did you do for Sonar(trig_pin...)?
Thank you, sir, my obstacle avoiding robot work. Thank you for giving me the code, circuit diagram and the newping library. Thank you,sir,🙂🙂🙂🙂
@coolaccount7990
2 жыл бұрын
How many hours it tooked for the project?
You are awesome... Step by step... very nice.. No chance to beat u. I saw somany videos, but this is very clear explanation. Thanks for your hard working efforts.
@RobotLk
3 жыл бұрын
Thank you so much 🙂
Thanks bro tommorow is my science exhibition tq
Superbe explication du montage et du code. Félicitation.
Thank you youtube....finally something good reccomend...this is perfect....thanks
@RobotLk
3 жыл бұрын
Thanks
I have personally built one following your video and its totally fine.
Thank you dude! goes well and having fun tweeky it.
වැඩෙ නම් මරු... 💪💪💪💪💪
great job! i really love this project! if i want to make a random rotation, wich delay i have to change?
Thank you for that amazing video
Well done it,s superb
@RobotLk
3 жыл бұрын
Thanks
Hello , i'm testing the code, however when i added the readPing function and recalled it again back above, it is showing me that the function is not declared in this scope , what could the problem be ?
@RobotLk
Жыл бұрын
Add the newping library
How much amps do i need out of my 6v battery to make this work? and what is the maximum voltage that I can use?
@RobotLk
3 жыл бұрын
3A is sufficient. Can be used up to 12v
Good job bro... well done. ..
@RobotLk
4 жыл бұрын
Thanks bro
thank you so much. mine worked really well.
@RobotLk
3 жыл бұрын
You're welcome!
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
@RobotLk
3 жыл бұрын
I used it for a blutooth car
@RobotLk
3 жыл бұрын
Thanks for the advice.👍
@kamelbarred741
3 жыл бұрын
@@RobotLk thanks for your reply, when you try with the robot avoiding the obstacles please give me a sign, probably it will not work.
@RobotLk
3 жыл бұрын
What happens is that only the sensor and the servo motor work
@kamelbarred741
3 жыл бұрын
yes that's it, moreover if it was a 2-wheeled car for example, there will be only one which will turn, with annoying parasites which will be generated by the Arduino board
Can someone please tell me how can I edit the code provided so that I can make the robot turn wider after it stops in front of an object?
@RobotLk
3 жыл бұрын
12:09 Increase the distance value shown at the location
@IAMTENTOESDOWN
3 жыл бұрын
@@RobotLk alright thank you very much!
වැඩෙ නම් මරු... 💪💪💪💪
It is warking 👍👍👍thanks for the code😊❤❤
I using this robot in my course. We are having trouble getting the motors to react, they don't rotate. The servo reacts correctly when we pass our hand in front of the ultrasonic but the motors do not rotate. We have triple checked the circuit and are fairly confident that is correct. Have measured the battery and we have 8.4 V at full charge.
@RobotLk
3 жыл бұрын
Are the ENA, 5V and ENB of the motor driver connected by a 5V microjumper?
@laylakerdaoui2384
3 жыл бұрын
@@RobotLk the ena and the enb not conected ...i connect the en1 1n2 en3 en4 to the arduino and connect vin arduino to the +12v
@laylakerdaoui2384
3 жыл бұрын
je relier maintnant au 5v aussi mais seullement le roud reight ce travail
@laylakerdaoui2384
3 жыл бұрын
merci je trouve le defaut dans l'ampirage
@suyashshriharisable8454
Жыл бұрын
Same condition occurred
Thankyou so much for the code
It has very speed nice
Pattai bro
Adooo ekanan supiriyak e ela ela pattama bro
@RobotLk
4 жыл бұрын
thanks
best aiya arduino walata patta asawak awa me video eken
@RobotLk
3 жыл бұрын
හදල බලන්න,ප්රශ්නයක් අවොත් කියන්න,අනිව උදව්කරන්නම්🙏
nice video bro it help me thank you
@RobotLk
3 жыл бұрын
Happy to help
Eka ptta bro😍
@RobotLk
4 жыл бұрын
Thanks bro
සුපිරි ❤❤😊😊
Eka niyamai.
Thank you so much
@RobotLk
Жыл бұрын
You are welcome
It's super😎
Hihihihihihi we love that review , bla bla production
Help mine does not work reverse all four wheel my reverse only is working right side working ihave l298n but when forward all wheels are working
Excelente.
Thnx for the assemble video! I have a few problems. The car gets power by connecting it to my pc. Once it is connected, the servo moves once if i manually changed the position beforehand. Then the car starts driving straight and does not stop. The servo and sensor do nothing. Any ideas?
@RobotLk
Жыл бұрын
There may be a problem with the ultrasonic sensor module.Check the wire going to that module again.
Thanks 🙏
@RobotLk
2 жыл бұрын
🙏
great job
Sir I have use 9v battery instead of 18650 battery
Thank you ayye
@RobotLk
Жыл бұрын
Any time malli
hii im facing a problem the car is not turning towards left except that its functioning , any sugestions plz
Good job..
@RobotLk
2 жыл бұрын
🙂
Nice PROJECT
@RobotLk
3 жыл бұрын
Thanks
Sir what is the green and orenge lights.its normol
@RobotLk
3 жыл бұрын
yes
nice work brother 😘😘
@RobotLk
3 жыл бұрын
Thanks 🙂
@neranjalarajapaksha7305
3 жыл бұрын
@@RobotLk I have a problem
@neranjalarajapaksha7305
3 жыл бұрын
@@RobotLk please give me your whatsapp num. please.......
@neranjalarajapaksha7305
3 жыл бұрын
please give me your whatsapp number.......please........
@RobotLk
3 жыл бұрын
0771489786
thanks
@RobotLk
3 жыл бұрын
You're welcome!
Thank you for the video. I have two questions. 1st one is can we use a 9v battery. 2nd one is do we need to take 2 9v battery.
@RobotLk
2 жыл бұрын
9v battery is not successful.Use two 18650 3.7 v batteries
@RobotLk
2 жыл бұрын
0771489786.mekata whatssapp massage ekak danna prashnayak awoth
Bro i did same as the link you gave and watched the video 8 times and made same project. sensors are working but motors are not working please help me
It doesn't require any code for its operation right??
Sir i do all the step but i have little problem he don't move forward everything work so will
Hello i have done everything as per the video but my motors are not moving ?
What should I do if i don't have servo moter i can replace with toy moter
@RobotLk
21 күн бұрын
A servo motor is also required. It can be made without servo motors. Later connect the servo motor
hi i make it but robot 🤖 🤖 rotate right and servo motor only check right
Good example...Sir ...tnx for this video....
@RobotLk
3 жыл бұрын
🙏
@Firojkhan-ci8io
3 жыл бұрын
Sir thodi problem a rahi hai mujhe . Can you help me ?
@RobotLk
3 жыл бұрын
Yes , I can
@Firojkhan-ci8io
3 жыл бұрын
@@RobotLk sir program upload krne me . Newping .h: no such file or directory Error show kr raha hai
@RobotLk
3 жыл бұрын
niwping library not added
any method to use this same configuration of obstacle avoidance and also have it be controlled by Bluetooth?
@RobotLk
3 жыл бұрын
I will explain how to build an all in one arduino car in a future video
@praveenkulendran9325
3 жыл бұрын
@@RobotLk if possible also add a depth avoidance sensor input as well using a IR sensor so it doesn't fall off of the edges
Hi! Thank you so much for the code. The car runs well, but when I tried to add a IR receiver or a sound sensor, it kept giving me "readPing was not declare in this scope". I made sure I have a newping libary installed. Do you have a phone number I can each you out? Thank you for the help!
Good
Hello, Can I use the same logic of car to design an robot who detects crack on railway track? If IR sensor senses obstacle then crack is not there and if Sensor does not finds obstacle then crack is there. Will it work, what modifications I need to do in code and circuit as well??
@RobotLk
11 ай бұрын
You have to use pixy cam or esp32 camera to make it from open cv. It is very complicated
@_ATHARVAPATHAK
11 ай бұрын
@@RobotLk Thank you for your inputs, Can this be done without using camera ?. Can we use infrared sensor to detect crack on surface of railway track?
Hey, in many videos I saw people using a Sensor Shield V5 on the Arduino, but you didn't. Does that mean I don't need it? Thanks for any answer
@RobotLk
3 жыл бұрын
The sensor shield is easy to use, but only the l298n motor drive, servo motor, and ultrasonic sensor are used here.Applying a sensor shield costs a lot of money. I didn't use it because it could be used for something else.
Can I use a 9V alkaline battery as the power source for this project ?
@RobotLk
3 жыл бұрын
The 9V battery cannot be used because it does not have enough amperage
I did everything but the car doesn't move when I plug the cord. The lights come on but nothing else happenes. Pls help
Plz make a gesture control car..
@RobotLk
3 жыл бұрын
🙄Now that video is being made, I can't imagine, you know it.👍
Super
@arduinotc1792
3 жыл бұрын
Please give your phone number
@RobotLk
3 жыл бұрын
Thanks
@RobotLk
3 жыл бұрын
0771489786 whatsapp
cool
I have an error that "readPing was not declare in this scope" while compiling sketch. How can I fix it? Please reply
@RobotLk
3 жыл бұрын
Did you add the newping library?
ardiuno board ekak pichchunama eke ic eka maru karalath vada karanne naththam monawada karanna one.
@RobotLk
3 жыл бұрын
Arduino bord eka pichchenne,output walata high valtage ekak awothwitharai.ic eka pichchilanam eka witharak nemei thawa dewal pichila athi,power eka wadiyen dunnanam regulatere gihilla athi,hariyata kiyanna mokadda wela thiyenne kiyala,ic marukarata wadakke.ewath pichchenawa
Even after the installation of NewPing library I'm getting a compilation error. Can someone explain why
@RobotLk
Ай бұрын
Have you uploaded the code to arduino before? What is the error? Maybe ch340 usb driver is missing
My Arduino uno in L LED light is no dark why pls reply
Can i use aurdino uno smd place of aurdino uno r3...?
@RobotLk
10 ай бұрын
Any type of arduino board used.New update video- kzread.info/dash/bejne/YoyTtZl7nK7LXbA.htmlsi=DzikP_qaFduYaopR
successful but some issues with ultrasonic sensor not detecting sometime
@RobotLk
Жыл бұрын
void loop(){ int distanceRight = 0; int distanceLeft = 0; delay(50); if (distance
Hello will 4xaa battery enough?
@RobotLk
Жыл бұрын
4 AA batteries are not enough
Thank you very much sir.Sir,Can i Power Supply arduino and L293D motor Shild at Same Time?
@RobotLk
3 жыл бұрын
Yes
@ramilan2005
3 жыл бұрын
@@RobotLk Sir,How sir ?Before powering the l293d motor shild ,i remove any things is motor Shild?(yellow colour part (near the power supply pins)?
@RobotLk
3 жыл бұрын
I just did not understand
@RobotLk
3 жыл бұрын
I use the l298n motor drive for this
@ramilan2005
3 жыл бұрын
@@RobotLk sir if i connect l293d and arduino then i can normaly power supply both? or do some things in l293 d (Remove Yellow pin on l293d?
sir can you please help me with my project sumo bot I'm using arduino uno and L293D driver shield with ultra sonic Infrared IR sensor please
@RobotLk
3 жыл бұрын
I will help,
sir how to find its transfer function?
Hi you project is good.can I use two 18650 battery and arduino Uno board for this project.
@RobotLk
Жыл бұрын
Yes .Two 18650 li ion batteries are required
What should I do if don't have servo moter
@RobotLk
21 күн бұрын
A servo motor is also required. It can be made without servo motors. Later connect the servo motor
how can i reduce the speed of the motor? what should i change in the source code?
@RobotLk
Жыл бұрын
The speed cannot be changed by changing the code. I did not use the ENA pin and ENB pin of the L298n motor drive. If it is used, the speed can be changed by the code.But the speed can be reduced by changing the supplied voltage.The speed can be controlled by using a Dc to Dc step down module Or use two 18650 li ion batteries
my Motor Driver(L293D) is not working , what i do now ,plzz reply
@RobotLk
2 жыл бұрын
The l293d module cannot be used for this. Only the L298n motor driver can be used for this.
Mamath haduwa. Thawa vedio danna
Sir which rpm gear motor do u use sir and which mah of battery do u use sir
@RobotLk
3 жыл бұрын
Two Li-ion 18650 batteries and four tt gear motors
@smartunboxer7310
3 жыл бұрын
@@RobotLk no sir iam asking how much rpm is ur motor and what is the mah of ur 18650 battery I hope u will give a solution
can I use three 3.7battery
@RobotLk
2 жыл бұрын
Three batteries can be used. Then it gets faster
I have problem only motors in left sid are moving and I did every thing like u
@RobotLk
2 жыл бұрын
See also wire loos for motor drive and arduino board
wow
Apita baida ekama arduno bord ekakin rc car ekatai redar ekatai ekatai dekatama denna
@RobotLk
2 жыл бұрын
Mata තේරුණේ නෑ. Rc car ekatayi kiyanne
arduino uno r3 board eken meka mevidihata karoth weda karanawada
@RobotLk
2 жыл бұрын
Wada,ona arduino board ekak puluwan .code ekama ekamai.
How can I power up the L298N Motor Controller with a 9V battery with a 9V battery cap ( Without cutting the battery cap)
@RobotLk
2 жыл бұрын
9V battery does not work properly when used.The mAh of the 9V battery is not enough..So do not use 9v batteries.
I cannot understand why the car can turn around? What is the principle? The 4 TT Gear Motor wasn't only allowed forward or backward?
@RobotLk
3 жыл бұрын
When there is no obstacle in front, the car does not move forward
ayye mage car eke sensor eka witharak karakenawa motors tika wada karanne nane mage motor tika pichchilath na mama wayaruth hariyata connect kala
@RobotLk
8 ай бұрын
Battery wala awulak ,9v battery da damme 0771489786 whatssapp message ekak danna
When I was uploading code it displaying I am getting less of 3% bites can u help me
@RobotLk
3 жыл бұрын
I also do not know exactly why the code will not be uploaded.Can't upload code?
I also do this alr at 2023
Which version of arduino uno did you use and does it matter which version of arduino uno I use
@RobotLk
3 жыл бұрын
Arduino uno, mega, nano, Lilypad, nodemcu can be used on any board
I upload the same code but its not moving ;sometimes the wheel moves but not all but servo motor is working
@RobotLk
Жыл бұрын
Voltage is a problem. Use two 18650 li ion batteries
Hello I made this as it you have said it's just I used a 4 cells battery pack and connected it accordingly to LM298 drive module as shown in circuit diagram. I also connected one 6V battery in Driver module using 5V supply and grnd supply. The car is operating at a very low speed and the sensor is not rotating I am not able to find a solution I have tried it ample of times
@RobotLk
Жыл бұрын
The voltage and amperage of 4 AA batteries are insufficient.use two 18650 li ion batteries. 9v battery also cannot be used
@sarthak3560
Жыл бұрын
@RobotLk ok I will try that out and let you know If I faced the problem again
@RobotLk
Жыл бұрын
6v battery should be connected to 12v in and gnd
@RobotLk
Жыл бұрын
Not 5v and gnd
but , in diagram only 2 moters only showen why, can we use 4 moters
@RobotLk
2 жыл бұрын
Can be made with both motors. Then two front wheels cannot be used
Ayiyaa ❤️❤️❤️😎😎😎 maru ඇ වැඩ්ඩෙක් තමයි ඉතිම් මගෙ චැනල් එකටත් ගිහිම් බලනො
@RobotLk
2 жыл бұрын
Math gihilla balannam
@RobotLk
2 жыл бұрын
Eka patta talent eka.dikatama karan yanna.music walata lokuthanak thiyenawa youtube eke.youtube gena monawahari danaganna onnam massage ekakdanna.math godak dewal danna.dannade kiyadennam 0771489786 whatsapp
well come
my servo motor works in starting for a second and then it does not work, also the wheels are not moving, please help...!!!!!
@RobotLk
3 жыл бұрын
Insufficient input voltage or amperage
will this work for magic bit other than arudino uno
@RobotLk
2 жыл бұрын
I'll find out
How did you connect bith servo motor and the sensor to Arduino 5V ? There is only one 5V pin in arduino.
@RobotLk
Жыл бұрын
Connect two jumper wires together
@RobotLk
Жыл бұрын
Or connect it to the 5v out of the motor drive
Bro are the schematics correct or the video bcz both of them r diff the scheme in vid is diff than in Google drive
@RobotLk
3 жыл бұрын
It doesn't matter, it works both ways, connect it as per the circuit diagram .It's more convenient.