Intelligent Obstacle Avoiding Robot || Step by Step Tutorial || Arduino Project

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ก.พ. 2023
  • Hello friends,
    In today's video I am going to show you how to make an intelligent obstacle avoiding robot. This is an Arduino project in which the obstacle avoiding robot detects the presence of obstacles using HC-SR04 ultrasonic sensor. The motors are driven by L298N driver board. The ultrasonic sensor is connected to an SG 90 servomotor to give the effect of an eye looking at both sides after detecting an obstacle, changing direction and then moving forward.
    After detecting the obstacle, the robot stops , moves backward and changes direction and then goes further forward.
    The links for purchasing the items are given below.
    1. Arduino UNO board : amzn.eu/d/iH03OHj
    2. L298N motor driver : amzn.eu/d/bzrLeMA
    3. HC-SR04 Ultrasonic Sensor : amzn.eu/d/i5OkXM7
    4. SG 90 Servo Motor : amzn.eu/d/9CQxkJa
    5. Motors with wheels : amzn.eu/d/gGczeza
    6. Battery pack : amzn.eu/d/j00LCqy
    7. Jumper wires : amzn.eu/d/hQ1P7Mi
    Link to download code: drive.google.com/file/d/11FJM...
    OR
    www.mediafire.com/file/l2p85r...
    Link to circuit Diagram:
    drive.google.com/file/d/1EpYa...
    Please do watch the video .Thank you...
    Please share the video if you like it.
    You can watch the obstacle avoiding robot with advanced algorithm in the following link. It scans both left & right and choses direction without obstacle.
    • How to make Obstacle ...
    ❤❤❤~~PLEASE SUBSCRIBE TO THE CHANNEL TO SEE MORE SUCH INTERESTING VIDEOS & MAKE LEARING SCIENCE FUN~~❤❤❤
    #arduinoproject #scienceproject #arduino
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 801

  • @Science_4U_
    @Science_4U_  ปีที่แล้ว +13

    Obstacle avoiding robot with advanced algorithm by scanning both left & right
    th-cam.com/video/k6W3FYxVS9E/w-d-xo.html
    Obstacle Avoiding Robot with Bluetooth Control
    th-cam.com/video/HbL9FB4Zogo/w-d-xo.html

    • @user-vq9md7xh3f
      @user-vq9md7xh3f หลายเดือนก่อน +1

      That's fake it dose not scan left and write the servo is a dummy peice I read the program

    • @user-vq9md7xh3f
      @user-vq9md7xh3f หลายเดือนก่อน +1

      Proof is that every time the robot senses something it turns only left

    • @user-vq9md7xh3f
      @user-vq9md7xh3f หลายเดือนก่อน +1

      Try explaining it bro, the pinned comment is a lie

    • @Science_4U_
      @Science_4U_  หลายเดือนก่อน +1

      Hey friend. I think you have misunderstood. There is no fake or lie here in my channel. There are 2 videos.
      1. Robot which doesnt scan left and right : th-cam.com/video/kPSBpfUpHt0/w-d-xo.htmlsi=909Kf0mK6tRViWnP .. In this project, the robot doesnt scan left and right. It just detects obstacle and always goes in the left direction only. Servo is obviously a dummy piece.
      2. The robot which scans both left and right is in this link : th-cam.com/video/k6W3FYxVS9E/w-d-xo.htmlsi=RMY3UKpk0egZfDg6 .. Here the robot scans both left and right and goest to whichever direction which doesnt have obstacle. This video is what I have given in the pinned comment as robot with advanced algorithm.

    • @Science_4U_
      @Science_4U_  หลายเดือนก่อน +1

      @user-vq9md7xh3f Please reply if you have further doubts. I will be happy to clarify.

  • @jerryrichard4994
    @jerryrichard4994 หลายเดือนก่อน +1

    I have finished uploading the code for the obstacle avoiding robot and finish all the wires, and everything works like it should no problem of any kind, I want to thank you so much , you are such an amazing teacher, my next project is the Bluetooth Control obstacle avoiding robot.

    • @Science_4U_
      @Science_4U_  หลายเดือนก่อน +1

      Thank you so much dear friend. Iam so happy that it worked for you..❤️🙂

  • @abduraheempk2542
    @abduraheempk2542 หลายเดือนก่อน +3

    Bro i subscribe and like from 4 phone because your video is very amazing and your sound also 👌 ❤❤🎉😊😊

    • @Science_4U_
      @Science_4U_  หลายเดือนก่อน +1

      Thanks a lot dear friend. Words cannot express my thanks to you. Thank you so so much!!!..😀😀😀🥰🥰😍

  • @naseemaharoon165
    @naseemaharoon165 หลายเดือนก่อน +2

    You are a super comment reader you reply all the comments 😅😅

    • @Science_4U_
      @Science_4U_  หลายเดือนก่อน +1

      Hehe..Thank you. I am very happy to read and reply to all the comments..🙂

  • @RONALDOSTATUS674
    @RONALDOSTATUS674 หลายเดือนก่อน +2

    Thanks a lot brother😊 It worked properly. Previously I saw another youtuber video of making a obstacle robbot but it was not working then I saw your video and it worked. Thank you so much
    6:40

    • @Science_4U_
      @Science_4U_  หลายเดือนก่อน +1

      Thank you so much dear friend for trying out this project by seeing my video. Glad that it worked for you..🙂

  • @user-mp6uc4lj9d
    @user-mp6uc4lj9d 6 หลายเดือนก่อน +4

    Thank you so much! We were able to create this as a project and its works well!

    • @Science_4U_
      @Science_4U_  6 หลายเดือนก่อน +1

      Ooh..great dear friend!!!.. So happy to hear that💓🙂

    • @unknownuser5468
      @unknownuser5468 5 หลายเดือนก่อน +1

      Hlo sir it is really working

    • @unknownuser5468
      @unknownuser5468 5 หลายเดือนก่อน +1

      I want to ask how was the code uploaded

    • @Science_4U_
      @Science_4U_  5 หลายเดือนก่อน +1

      Hi friend..The code can be uploaded by connecting to PC or laptop. Then open the code in IDE software and click on upload button. It will get uploaded to arduino..

  • @gamerbaba736
    @gamerbaba736 หลายเดือนก่อน +2

    Bro thank you very much i have made it , it is working and the code is also perfect, once again thank you very much and i will ask you to pls start a project on drone.

    • @Science_4U_
      @Science_4U_  หลายเดือนก่อน +1

      Hi friend. Thank you for the nice words. I will surely start making drones👍

  • @Ge7_Skills
    @Ge7_Skills 13 วันที่ผ่านมา +2

    Can i use a battery box that only lets 2 batteries in. Or i will need more power. or just use the one your using.

    • @Science_4U_
      @Science_4U_  13 วันที่ผ่านมา +1

      Hi friend. You need at least 4 batteries if your are using AA batteries. that gives you 4 x 1.5 V = 6V input voltage. So if you are using AA 1.5V batteries, you need a holder with 4 batteries. Another better option is to use 2 x 18650, 3.7V batteries. If you use 18650 batteries, you have to use a holder with 2 nos. of 18650 batteries and it gives 7.4V output voltage.

  • @samiredits001
    @samiredits001 ปีที่แล้ว +5

    After watching servel video we are finally able to run our car .
    Thank you soo much for your tutorial.
    Love from Nepal.🇳🇵

    • @Science_4U_
      @Science_4U_  ปีที่แล้ว +3

      Wow!!! Glad to know that. After seeing your comment, I was actually preparing the circuit diagram for uploading.

    • @Science_4U_
      @Science_4U_  ปีที่แล้ว +3

      I will upload the circuit diagram so that the viewers get better clarity and can easily assemble the circuit.

    • @Science_4U_
      @Science_4U_  ปีที่แล้ว +2

      Very happy to know that my video helped you to run the car. Please ask any questions and I will be happy to help.

    • @Science_4U_
      @Science_4U_  ปีที่แล้ว +3

      If you liked the video, please subscribe for watching my future videos. Also, please share this channel with your friends who will be interested. Thank you. ❤

    • @Science_4U_
      @Science_4U_  ปีที่แล้ว +2

      And love from India too..💞😍

  • @VinKrishSolutions
    @VinKrishSolutions ปีที่แล้ว +5

    Congrats for 2K subscribers 😍👌

    • @Science_4U_
      @Science_4U_  ปีที่แล้ว +2

      Thank you...🥰💓

    • @uchihakakashi4225
      @uchihakakashi4225 ปีที่แล้ว

      @@Science_4U_ i can't able to see Arduino code whose link you given in description so can you please send the code here

  • @CousinAAE
    @CousinAAE 7 วันที่ผ่านมา +1

    I successfully made this robot following your instructions, but one problem I have is the robot gets too close to the obstacles before realizing it has to redirect. I'll increase the distance number, will it still work? Wonderful instructions and I really appreciated the circuit diagram!

    • @Science_4U_
      @Science_4U_  7 วันที่ผ่านมา +1

      Hi dear friend.Thank you so much for the encouraging comment❤️🥰🙂. You can definitely increase the distance number to make the obstacle detection early.

    • @CousinAAE
      @CousinAAE 6 วันที่ผ่านมา +1

      @@Science_4U_ Thank you! I will try that tonight! 💙

    • @Science_4U_
      @Science_4U_  6 วันที่ผ่านมา +1

      Okay friend..🙂

  • @naseemaharoon165
    @naseemaharoon165 หลายเดือนก่อน +2

    Bro i like your video i maked it but it working thankyou so much bro you need to make so many things like yhis thankyou very much ❤❤❤😊😊

    • @Science_4U_
      @Science_4U_  หลายเดือนก่อน +1

      Thank you so much dear friend..🙂❤️

    • @rahseedap8268
      @rahseedap8268 หลายเดือนก่อน +1

      Thanks again and again ❤🎉🎉😊😊😊

    • @rahseedap8268
      @rahseedap8268 หลายเดือนก่อน +1

      I am subscribe your video and like

    • @rahseedap8268
      @rahseedap8268 หลายเดือนก่อน +1

      Iam doing comment in onether phone that phone is my mother's phone

    • @Science_4U_
      @Science_4U_  หลายเดือนก่อน +2

      @rahseedap8268 Thank you so much friend for liking and subscribing to my channel. If you like my channel, please share with your friends so that those who are interested can watch these videos. Thank you so much friend..❤️🙂

  • @abduraheempk2542
    @abduraheempk2542 หลายเดือนก่อน +1

    Wow qhat a auper peoject i like it super 👌 ❤❤❤😊😊😊🎉🎉

    • @Science_4U_
      @Science_4U_  หลายเดือนก่อน +1

      Thank you dear!!!🙂🙂❤️❤️❤️

  • @sagokage4253
    @sagokage4253 หลายเดือนก่อน +3

    Servo motor is working but car is not moving. How can check if my motor driver is faulty?

    • @Science_4U_
      @Science_4U_  หลายเดือนก่อน +2

      The motor driver needs to have 2 jumpers connected on ENA and ENB pins. The jumpers should be present for the working of the motor driver. Are the jumpers available?
      Also to check whether the motor driver is working, connect IN1 pin to +5V of arduino and IN2 pin to GND pin of arduino. Power on arduino and motor driver board. If the motor driver is working, the motors should rotate now.

  • @baluyaragani8279
    @baluyaragani8279 4 หลายเดือนก่อน +1

    Sir please make a project on night patrolling robot with path folloer and edge detection and abstacle detection

  • @Ge7_Skills
    @Ge7_Skills 10 วันที่ผ่านมา +2

    I finished everything but it only works when i plug it into the computer. It won't work by the battery, there's a light on both boards but the car won't work until i plug it in.

    • @Science_4U_
      @Science_4U_  10 วันที่ผ่านมา +1

      Hi friend. Most likely it is a battery problem. When you are connecting uno through usb, the arduino board, the servo and sensors are powered feom usb. The battery then powers only the motors and hence even if the battery is discharged ot works fine. Are you using the servo motor too?. Can you remove connections to servo and can you check whether it is working now?.Replacing with a powerful battery should solve the problem.

  • @abirojha2896
    @abirojha2896 8 หลายเดือนก่อน +2

    Sir can I take a cable and cut it and connect to motor driver and cable to adaptor will it work

    • @Science_4U_
      @Science_4U_  8 หลายเดือนก่อน +2

      Sorry friend, I did not understand the question. Which is the adaptor that you are talking about?.

  • @mahendradeshmukh-oi9xx
    @mahendradeshmukh-oi9xx 8 หลายเดือนก่อน +2

    I have an question what if we want two wheels more at the front what should we write in the code??

    • @Science_4U_
      @Science_4U_  8 หลายเดือนก่อน +1

      Hi friend..you need not do anything in the code. Just attach 2 more motors in the front. The wires coming from the front motors can also be connected to the motor driver board alongwith the wires coming from the bafk motors..I have done a similar project with 4 motors. You can eatch that video below for better understanding..
      th-cam.com/video/JK6zTM65Rh0/w-d-xo.html
      But only problem I have seen with 4 motors is thst it is a bit difficult to turn.

  • @BeatBox_Raps
    @BeatBox_Raps 11 วันที่ผ่านมา +1

    Can I use a regular arduino uno board or does it have to have that black bar thing on it?

    • @Science_4U_
      @Science_4U_  11 วันที่ผ่านมา +1

      Regular arduino will work friend.

  • @aryagodse8866
    @aryagodse8866 3 หลายเดือนก่อน +4

    My servo motor is working but the wheels are not working.......I have connected wires as shown in the circuit diagram. Please guide me

    • @Science_4U_
      @Science_4U_  3 หลายเดือนก่อน +3

      Hi friend. There could be many reasons why it is not starting. You have to check one by one to find out. The most common problem could be L298N motor driver board. Have you used it before or is it a new one? . It could be faulty.
      Also, in the motor drive board, there should be 2 jumpers in place connecting ENA and ENB and the pins above them. that is for enabling rotating of the motor. If the jumpers are not there also, the car wont start.
      Also, check whether the batteries have charge in them.

  • @Baxton-hh5nf
    @Baxton-hh5nf 12 วันที่ผ่านมา +2

    can I use 4x 18650 3.7V battery? will that be too much power? can I use the 5v pin in the L298n if it has too much power?

    • @Science_4U_
      @Science_4U_  12 วันที่ผ่านมา +1

      it is too much for the project friend. A total voltage upto 12V is fine. 2 x 18650 or maximum 3 x 18650 is okay. Beyond that, it will damage the board and motors.

    • @Baxton-hh5nf
      @Baxton-hh5nf 12 วันที่ผ่านมา +1

      @@Science_4U_ Thank you

  • @BeatBox_Raps
    @BeatBox_Raps 10 วันที่ผ่านมา +1

    I’m using a regular arduino board and there’s only 2 five volts and their taken so we’re does the motor connections go? I don’t get those

    • @BeatBox_Raps
      @BeatBox_Raps 10 วันที่ผ่านมา +1

      Where does the middle red wire of the servo motor go to?

  • @wreckedship
    @wreckedship 5 หลายเดือนก่อน +4

    I am using a single dc 9v battery but it is not functioning well so do you think I should just use the 4 AA battery? then will it work properly? the robot works when plugged into my pc but when unplugged the robot just stands still and the Arduino Uno light and all are working.

    • @Science_4U_
      @Science_4U_  5 หลายเดือนก่อน +2

      Hi friend.. It is definitely due to poor battery. When plugged into PC, the power to arduino board is taken from PC through USB. Hence the batteries are used to run the motors alone and it just rotates. But when PC is disconnected, the battery has to power both arduino and motor, which becomes difficult with bad batteries. Hence the motors dont rotate. If you start rotating the wheel, sometimes it will rotate..

    • @Science_4U_
      @Science_4U_  5 หลายเดือนก่อน +2

      So, the soluyion is to use new batteries. 9V small battery will work but will not last long. 4AA batteries will last longer. Best option is to use 2 x 18650 3.7V battery which are rechargeable also..

    • @wreckedship
      @wreckedship 5 หลายเดือนก่อน +2

      Ok thank you so much

  • @user-yz8ol3wr6u
    @user-yz8ol3wr6u 2 หลายเดือนก่อน +1

    i also made a 0b avoiding car after learn from you.

    • @Science_4U_
      @Science_4U_  2 หลายเดือนก่อน +1

      Okay friend. That is great..!!!🙂❤️

  • @prathameshendole4105
    @prathameshendole4105 3 หลายเดือนก่อน +2

    my servo motor is running as expected but wheels are not running. Why?

    • @Science_4U_
      @Science_4U_  3 หลายเดือนก่อน +1

      Hi friend. Most likely it is a problem with the l298n motor driver board. It may be faulty. Have you used it before or is it a new one?Also can you see 2 jumpers in place in the motordriver board, connecting ENA and ENB pins to the pins above that?. Those jumpers are required for enabling rotation of motors..

  • @AdityaPrakash-ic8lu
    @AdityaPrakash-ic8lu 3 วันที่ผ่านมา +1

    one question which glue are you using to stick things

    • @Science_4U_
      @Science_4U_  3 วันที่ผ่านมา +1

      Hi friend. It is called hot melt glue stick. I will give the link below.
      11MM TRANSPARENT HOT MELT GLUE STICKS FOR DIY AND CRAFT WORK (14 STICKS) amzn.in/d/8xtvnkT

  • @user-oo2ot8sb6f
    @user-oo2ot8sb6f 3 หลายเดือนก่อน +1

    Thanks Helpful

    • @Science_4U_
      @Science_4U_  3 หลายเดือนก่อน +1

      Thank you friend..❤️🙂

  • @pmm782003
    @pmm782003 8 หลายเดือนก่อน +2

    04:37 onwards the connections for Servo the motor is shown incorrectly in the video. Please follow the circuit diagram. I have encountered some problem initially because of not putting 2 jumpers in motor drive. After these two corrections it started working. I

    • @Science_4U_
      @Science_4U_  8 หลายเดือนก่อน +1

      Okay friend. I was telling about the colours that are generally given for servo motors..
      Yellow/orange for signal wire..
      Red for +5V
      Black/brown for gnd..
      In the servo motor that I used, the colour of signal wire was yellow but generally it comes with orange wire..also the servo motor that I used had brown ground wire.But some motors come with black ground wire..so that why I told black colour though the servo motor that I used had brown ground wire..

    • @pmm782003
      @pmm782003 8 หลายเดือนก่อน +1

      @@Science_4U_ Not about colors, Just check the connection to IOREF. The audio is telling not IOREF. May be its not audible clearly. I am talking about the Violet /Purple wire (middle one ) from the servo motor. Anyway it is working fine now. Your code is also working fine. Thanks

    • @Science_4U_
      @Science_4U_  8 หลายเดือนก่อน +1

      Ooh..okay friend.. anyway IOREF is a reference 5V that is to be given to input output devices. So IOREF is actually same as +5V..That is why I told +5V only. Also in SMD versions of arduino +5V only is written. There is no IOREF. So as a general term I told +5V. Thanks friend for pointing out..👍

    • @pmm782003
      @pmm782003 8 หลายเดือนก่อน +1

      @@Science_4U_ Thanks friend. My son had a knowledge fair in School today. He used your video to make the same Robot. He presented it successfully. Thanks a lot.

    • @Science_4U_
      @Science_4U_  8 หลายเดือนก่อน +2

      @@pmm782003 Thank you so much..Very happy to know that..🙂. Please do convey my regards to your son..💓

  • @VinKrishSolutions
    @VinKrishSolutions ปีที่แล้ว +3

    Superb😊👌👌

    • @Science_4U_
      @Science_4U_  ปีที่แล้ว +1

      Thank you...🥰☺️

  • @umairyounas793
    @umairyounas793 6 หลายเดือนก่อน +2

    Thanks for your video. May I ask whether how can I see the complete Arduino code you used in this project. Actually, you showed the code in this video but I paused video but the complete code was not displaying at the computer screen. How can I access the complete source code

    • @Science_4U_
      @Science_4U_  6 หลายเดือนก่อน +1

      Hello dear friend. For all the projects, the code can be downloaded from link given in the description box below the video..🙂

  • @jdrlizad571
    @jdrlizad571 6 หลายเดือนก่อน +1

    Hi,I connected 9V battery to motor driver l298n, motor driver's 5V pin to the Arduino's Vin pin and GNDs together.I connected ultrasonic sensor hc-sr04 to Arduino's 5V pin,GND to GND,trig and echo pins.Motor driver l298n and Arduino works properly,but ultrasonic sensor doesn't.What might be the problem?

    • @Science_4U_
      @Science_4U_  6 หลายเดือนก่อน +1

      Hello friend..From what you have told, the connections are done correctly. Most likely, the ultrasonic sensor may be a faulty one. Have you used this sensor without any problem before? If it is the first time that you are using this sensor now, then most likely it should be a faulty one. Replacing it should solve the problem..

    • @jdrlizad571
      @jdrlizad571 6 หลายเดือนก่อน +1

      @@Science_4U_ Thank you🙏

  • @dhanrajandavan
    @dhanrajandavan 5 หลายเดือนก่อน +1

    How it was working IR for turning automatic sensor have u used any code or it will be turn automatic

    • @Science_4U_
      @Science_4U_  5 หลายเดือนก่อน +1

      Hi friend. It is detecting obstacle using an ultrasonic sensor in front. When the obstacle is detected, it reverses changes direction and then moves forward, thus avoiding the obstacle. The algorithm for this is written in the code..

  • @yesdaddy7220
    @yesdaddy7220 6 หลายเดือนก่อน +1

    Sir my I've connected 4 aa batteries of 1.5v as shown in the video, my sensor and servo is working, but both the motor is not working, when connected only on battery. When I connect the usb and battery simultaneously, then only the right motor goes backward and servo works, but left motor is not working

    • @Science_4U_
      @Science_4U_  6 หลายเดือนก่อน +1

      Okay friend..The problem could be most probably due to bad batteries. Please use new batteries and problem should be solved. Also check whether the connection from batteries are correctly given to the motor driver board.👍

  • @abirojha2896
    @abirojha2896 8 หลายเดือนก่อน +2

    Can I use 9 volt 2a dc supply cable

    • @Science_4U_
      @Science_4U_  8 หลายเดือนก่อน +2

      Yes sure friend. It will work. 👍

  • @Deathlyi0
    @Deathlyi0 2 หลายเดือนก่อน +2

    very good very nice

    • @Science_4U_
      @Science_4U_  2 หลายเดือนก่อน +1

      Thank you so much dear friend..🙂❤️

  • @abhiramya7347
    @abhiramya7347 11 หลายเดือนก่อน +1

    We have done everything according to the video and the sensor too is working... But the problem is when we keep the robot on floor, it is sensing only once and not sensing the obstacle again. But when he hold it in air, its working and sensing normally... Pls help me with this

    • @Science_4U_
      @Science_4U_  11 หลายเดือนก่อน +1

      Hi friend,surely I will help. I think that is due to poor batteries. When we keep on the floor, the motor consumes more power from the batteries. So this drops the input voltage and hence it stops working again. Have you used fresh AA 1.5 V x 4 batteries? If possible can you change to 2x 18750 3.7V rechargeable batteries?. Those are the best for these kind of projects.

  • @norshuhada5456
    @norshuhada5456 11 หลายเดือนก่อน +2

    I did it. Thanks a lot. But i have question, how to change the code to adjust speed using pwm?

    • @Science_4U_
      @Science_4U_  11 หลายเดือนก่อน +2

      Hi friend. The Motor speed can be controlled using PWM by removing the 2 ENABLE jumpers at the motor control pins and giving a PWM signal in that pin. I will give below a link to a very detailed article on this. Please go through that and ask me if you have any further questions. I will be happy to help!!!

    • @Science_4U_
      @Science_4U_  11 หลายเดือนก่อน +1

      howtomechatronics.com/tutorials/arduino/arduino-dc-motor-control-tutorial-l298n-pwm-h-bridge/

  • @R3pust
    @R3pust 6 หลายเดือนก่อน +1

    i can't find de Motor Driver Arduino in tinkercad '-'

  • @babayaga8090
    @babayaga8090 ปีที่แล้ว +1

    Please help me, I have made the connections completely the same, my motor driver and Arduino turns on, even the servo rotates, but the wheels/motor are not working. I have used 3.7V x2 and also x3 batteries.

    • @Science_4U_
      @Science_4U_  ปีที่แล้ว +1

      It should have definitely worked with 3.7v x 2 batteries. Have you used the ardino board and motor driver board before? Or is it new one?. Sometimes the boards can be faulty even if the lights turn on.

    • @Science_4U_
      @Science_4U_  ปีที่แล้ว +1

      Also you can try interchanging the command pins from the arduino board to the motor driver board. The connections could have got interchanged. Also, if you have a multimeter, you can check whether the digital commands are going to the motor driver board by checking the voltage.

  • @ayatch4701
    @ayatch4701 26 วันที่ผ่านมา +1

    Can you tell the process of coding clearly step by step

  • @user-yz8ol3wr6u
    @user-yz8ol3wr6u 2 หลายเดือนก่อน +1

    it is also working. thank you.

    • @Science_4U_
      @Science_4U_  2 หลายเดือนก่อน +1

      Okay friend. Happy to know that it is working. ❤️🙂

  • @amrelnegamy1616
    @amrelnegamy1616 6 หลายเดือนก่อน +2

    Everthing is working fine but the servo is not rotating at all and the ultrasonic is not detecting obstacles what should i do ? Great video it was so helpful ❤️

    • @Science_4U_
      @Science_4U_  6 หลายเดือนก่อน +2

      Hi friend. Thank you so much for the nice comment..💓
      Most likely the ultrasonic sensor is not working. The servo motor is given just to give the feeling of looking to both left and right after detecting the obstacle. If the servo motor is not there also it will work. But ultrasonic sensor is very important for proper functioning. Just check the connections to ultrasonic sensor once again. If it is correct and still not working, then most likely this sensor is faulty. Changing it should solve the problem..

    • @amrelnegamy1616
      @amrelnegamy1616 6 หลายเดือนก่อน +1

      @@Science_4U_ I changed it it worked thank you.❤ but another problem occurred all lights are on but nothing is moving what should i do please answer its for my project?

    • @amrelnegamy1616
      @amrelnegamy1616 6 หลายเดือนก่อน +1

      I checked the motors alone and its working whats the problem?

    • @amrelnegamy1616
      @amrelnegamy1616 6 หลายเดือนก่อน +1

      It is moving in a circle in port 1 and 2 only

    • @Science_4U_
      @Science_4U_  6 หลายเดือนก่อน +1

      Hi friend. Can you explain the problem clearly?. Do you mean that both motors are rotating but in opposite directions?

  • @user-ir8xw5gz4n
    @user-ir8xw5gz4n 8 หลายเดือนก่อน +1

    Can I use one 9Volt battery to run these 2 motors and also the arduino? Thank you

    • @Science_4U_
      @Science_4U_  8 หลายเดือนก่อน +2

      Yes sure friend..you can do that..Arduino has an input voltage of 5 to 12Volts..9V will be perfect.. We get small 9Vbatteries for doing electronic projects. It can be used. But only thing is that, it gets diacharged very fast and are not rechargeable too. But the 18650, 3.7 V, Li Ion batteries last really long and are rechargeable also. So if you can get those batteries, it will be very good for these projects..

    • @user-ir8xw5gz4n
      @user-ir8xw5gz4n 8 หลายเดือนก่อน +1

      @@Science_4U_ Thanks for your reply. I can see you used only 4 AA batteries which is equal to 6 volt. so is it a issue to use 9 volt here or 6 volt? Also, can I later add IR sensor for line sensing? do you have any code by adding IR sensor? Thank you so much for your help

    • @Science_4U_
      @Science_4U_  8 หลายเดือนก่อน +2

      @@user-ir8xw5gz4n Hi friend..Definitely you can use 9V instead of the 6V that I have used..
      Also I have made a line following robot with IR sensor separately.You can watch the video below..
      th-cam.com/video/WR-VLwunauE/w-d-xo.html
      But I have not added IR sensor to this obstacle avoiding robot and made a line following + obstacle avoiding robot together..I will do that in future..👍

    • @user-ir8xw5gz4n
      @user-ir8xw5gz4n 8 หลายเดือนก่อน +1

      @@Science_4U_ actually I want to make a Sumobot which needs both of these, Sonar and IR. Do you have any suggestions on that?

    • @Science_4U_
      @Science_4U_  8 หลายเดือนก่อน +1

      @user-ir8xw5gz4n ooh..okay friend..that is super cool..You can watch other videos in youtube in which both sonar and IR sensors are used..
      I would suggest you use wheels with good grips so that you are not easily pushed out of the circle. Easiest solution may be to use multiple rubber wheels. If possible you can use rubber tracks like used in excavators which offer the strongest grip..Also use high torque motors which can really get that force to push the opponent outside. Make sure you add weight to your sumo bot also. All the above are not of any use if your bot doesn't have enough weight. You can make bot so that it either pushes your opponent outside or lift it with an arm and thows the opponent outside.

  • @antoniodias2776
    @antoniodias2776 11 หลายเดือนก่อน +2

    Excelente.

    • @Science_4U_
      @Science_4U_  11 หลายเดือนก่อน +1

      Thank you friend💓

  • @user-nx2oe5mw7y
    @user-nx2oe5mw7y 10 วันที่ผ่านมา +1

    Wow thats cool

    • @Science_4U_
      @Science_4U_  10 วันที่ผ่านมา +1

      Thank you dear friend..🙂❤️

  • @naseemaharoon165
    @naseemaharoon165 หลายเดือนก่อน +1

    Hi bro I didn't get a ply wood sheet I took a cardboard then the cardboard didn't hang it i put one more cardboard it is any broblem

    • @Science_4U_
      @Science_4U_  หลายเดือนก่อน +1

      No problem friend. Cardboard should be strong enough to support all components..

    • @naseemaharoon165
      @naseemaharoon165 หลายเดือนก่อน +1

      Ok❤

  • @shukurullomeliboyev2004
    @shukurullomeliboyev2004 5 หลายเดือนก่อน +1

    thanks bro it works

    • @Science_4U_
      @Science_4U_  5 หลายเดือนก่อน +1

      Okay friend..great to know that. 🙂❤️

  • @t.adriansyahh_
    @t.adriansyahh_ 10 หลายเดือนก่อน +2

    wow, itu sangat keren, terimakasih sudah memberikan tutorial itu🎉❤❤

    • @Science_4U_
      @Science_4U_  10 หลายเดือนก่อน +1

      Terima kasih teman💓🥰🙂

  • @user-ss1xv5cv3x
    @user-ss1xv5cv3x 2 วันที่ผ่านมา +1

    Bro does it enough the four AA BATTERIES??

    • @Science_4U_
      @Science_4U_  2 วันที่ผ่านมา +1

      Those are enough. But will not last long. 2nos. Of 18650 batteries are a better choice.

  • @randomizee1
    @randomizee1 7 หลายเดือนก่อน +1

    Hey i have a question will this code work on a model with 4 motors and 4 tires???

    • @Science_4U_
      @Science_4U_  6 หลายเดือนก่อน +2

      Hmm yes friend..Sure!!! Just attach 2 more motors + wheels in front and connect the wires from these motors also to the L298N motor driver board. The wires from both left motors to be connected to the left side terminals of the L298N motor driver board. And wires from right side motors to be connected to the right side terminals of L298N driver board.

  • @Ludus_Universe
    @Ludus_Universe 19 วันที่ผ่านมา +2

    My Arduino board is a bit different there's no IOref but rather another 5v

    • @Science_4U_
      @Science_4U_  19 วันที่ผ่านมา +1

      Both IOREF and 5V are one and the same. Both pins give 5V output. You can use 5V pin instead of IOREF pin.

  • @grantjohnalba8381
    @grantjohnalba8381 หลายเดือนก่อน +2

    mine's not working, what should I do?

    • @Science_4U_
      @Science_4U_  หลายเดือนก่อน +1

      What is the problem that you are facing friend?. Is it not moving at all?

  • @Suryazach
    @Suryazach 6 หลายเดือนก่อน +2

    Pls help me, my wheels aren’t moving

  • @skopeloscom
    @skopeloscom หลายเดือนก่อน +1

    Thanks!!!

  • @carloslazaro9060
    @carloslazaro9060 ปีที่แล้ว +1

    First. Nice video. I follow this video and viola its working. The problem is it will work on the 1st try. then have to turn it off a long time, and will work again? What is the problem? Its not consistent. im using 2 9V.

    • @Science_4U_
      @Science_4U_  ปีที่แล้ว +1

      Hi friend. Thank you so much. 🙂

    • @Science_4U_
      @Science_4U_  ปีที่แล้ว +1

      The problem most probably points to bad batteries. Which batteries are you using?.

    • @Science_4U_
      @Science_4U_  ปีที่แล้ว +1

      Did you mean that you are using 2 Nos. of 9V batteries?. Those batteries have very poor ampere ratings and gets drained very fast. They are meant for working in transistor radios where current drawn is very less. You can use 2 Nos. of 18650 3.7volt rechargeable batreries. Those are the best. Otherwise you can use 4 Nos. of AA 1.5V batteries. Those will also last longer that 9V batteries.

  • @BeatBox_Raps
    @BeatBox_Raps 10 วันที่ผ่านมา +2

    Mine isn’t working that properly it’s just going mainly backwards and won’t go forward and just does what it wants.

    • @Science_4U_
      @Science_4U_  10 วันที่ผ่านมา +2

      Hmm. Okay friend. If you bring hand near the ultrasonic sensor, is the rotation changing?.

    • @BeatBox_Raps
      @BeatBox_Raps 10 วันที่ผ่านมา +2

      Yes the sensor moves right and left when it detects something in front of it. But the car would only go backwards

    • @Science_4U_
      @Science_4U_  10 วันที่ผ่านมา +1

      @@BeatBox_Raps okay friend. It is very easy to correct that problem..Just interchange the wire connections of the motors at both sides of the motor driver board. Is it working correctly now?

    • @BeatBox_Raps
      @BeatBox_Raps 10 วันที่ผ่านมา +1

      @@Science_4U_ don’t get what to do

    • @Science_4U_
      @Science_4U_  10 วันที่ผ่านมา +1

      @BeatBox_Raps Don't worry friend. Czn you come in instagram?. I will chat and help you solve the problem. Following is my instagram id..
      instagram.com/_science4u_?igsh=MTM5aXFpdTM5aG5lNg==

  • @xyzabc7241
    @xyzabc7241 9 หลายเดือนก่อน +2

    Hello sir I have made exactly as per the video and used a 9V battery, I have one new ij spare so thats not a problem, when I uploaded the code I thought the robo was supposed to run but no movement is happening, the lights on the motor driver and arduino are blinking but the apparatus is just not moving at all can you please help with this? I have to submit tomorrow

    • @Science_4U_
      @Science_4U_  9 หลายเดือนก่อน +1

      Hi friend. I will surely help. My first doubt is the motor driver board. Is the motor driver board used before or is it a new one?. Sometimes the lights could be ON, but if the motor driver is faulty, the motors just wont run.

    • @Science_4U_
      @Science_4U_  9 หลายเดือนก่อน +1

      Have you used the servo motor also?. Atleast is the servo motor turning to left and right when you place your hand in front of the ultrasonic sensor?

    • @Science_4U_
      @Science_4U_  9 หลายเดือนก่อน +1

      Also, can you check whether the rotation enable jumpers are put in place in the motor driver board. There will be 2 jumpers kept on the ENA and ENB pins of the motor deiver board. If those jumpers are not there also, the motors wont turn.

    • @xyzabc7241
      @xyzabc7241 9 หลายเดือนก่อน +1

      @@Science_4U_ I checked my ultrasonic sensor is not working for now, the motor driver is new btw and is it because of ultrasonic sensor that nothing is working or there is also some other fault present in the circuit?

    • @Science_4U_
      @Science_4U_  9 หลายเดือนก่อน +2

      @@xyzabc7241 There is some other fault friend. Even if the ultrasonic sensor was not working also, the motors should have rotated continously. I have another doubt. Was the code uploaded properly?. If the code was not uploaded correctly, nothing will work.

  • @joannrosemalalis1374
    @joannrosemalalis1374 หลายเดือนก่อน +1

    i use ch340 arduino and it doesnt have a ioref do you know for its substitute?

    • @Science_4U_
      @Science_4U_  หลายเดือนก่อน +2

      Hi friend. Is your CH340 a regular sized Arduino board or a nano board?. Instead ot IOREF another pin should be there in its place labelled 5V. Is there a pin like that?

    • @joannrosemalalis1374
      @joannrosemalalis1374 หลายเดือนก่อน +1

      @@Science_4U_ I use also a 2pcs of 3.7 batt 183650 still should i put that at 5V?

    • @Science_4U_
      @Science_4U_  หลายเดือนก่อน +2

      @@joannrosemalalis1374 Yes friend. The sensors are powered from the 5V outputs from arduino board. So if you are able to find any 5V pin in arduino board, you can use that to power the sensor.

  • @GSC777
    @GSC777 หลายเดือนก่อน +1

    I have done everything wireing and code too but it doesn't work the audrino and motor driver lights are also on but no movement

    • @Science_4U_
      @Science_4U_  หลายเดือนก่อน +1

      Hmm..okay friend. There could be many reasons.
      1. The motor driver board could be faulty. Have you used it before or is it a new one?
      2. Are the batteries new?. If the batteries are discharged, then also it will not work.
      3. Check the connections once again.

    • @GSC777
      @GSC777 หลายเดือนก่อน +1

      Can I keep a picture to your number that you can see and everything are new I had also tested them

  • @baluyaragani8279
    @baluyaragani8279 4 หลายเดือนก่อน +1

    Sir make a project on night patrolling robot sir please

  • @ishaanarudra5480
    @ishaanarudra5480 6 หลายเดือนก่อน +1

    Hello, I have done the exact same set-up as you, but my servo doesn’t rotate..Other parts are ok.
    can you tell me how I could fix it?

    • @Science_4U_
      @Science_4U_  6 หลายเดือนก่อน +1

      Hi friend..please check the connections once again. If the connections are correct and servo is not working, then it could be a problem with the servo motor. Replacing the servo motor will solve the issue. Also see if the servo motor is working with arduino connected through USB. If it works, it means that the batteries are not good and not able to drive servo motor. When arduino is connected through USB, the USB supply powers it and hence it gets sufficient power to rotate. Please check these things..

  • @wasiqhussain7712
    @wasiqhussain7712 8 หลายเดือนก่อน +1

    Dear friend i am trying to make this thing work. but none of the components are functioning. especially the gear motor and the other ones too like sensor and servo. both of board's LEDs are glowing. initially i though i was power issue so i even gave another battery to power up arduino. still nothing moving a lil bit. Help!!!

    • @Science_4U_
      @Science_4U_  8 หลายเดือนก่อน +1

      Hi friend. Since none of the components are working correctly, i strongly suspect that there can be a problem with uploading the code correctly. Was the code uploaded properly to arduino??

    • @wasiqhussain7712
      @wasiqhussain7712 8 หลายเดือนก่อน +1

      @@Science_4U_ yes i have done that as well. the code was uploaded correctly

    • @Science_4U_
      @Science_4U_  8 หลายเดือนก่อน +1

      @@wasiqhussain7712 hmm..okay friend..then we have to see in detail..if possible can you share some photos of the connections in my instagram id..I will check and help you in solving the problem.

    • @wasiqhussain7712
      @wasiqhussain7712 8 หลายเดือนก่อน +1

      @@Science_4U_ before that i would like to ask u that is it possible that even the motor driver is blinking when provided voltage ,it can be a faulty piece of board?

    • @Science_4U_
      @Science_4U_  8 หลายเดือนก่อน +1

      @@wasiqhussain7712 Yes sure friend. It is possible.. I have seen many cases like that.

  • @mdnayon1871
    @mdnayon1871 3 หลายเดือนก่อน +1

    Hi sir . I am making this project now. but i have some problems with L298N driver board. I contacted all the jumpers correctly and i check it for more then 5 times . When I attaching my motors with L298N driver board it doesn't work and also my Servo Motor is not working. All the elements are not default.

    • @mdnayon1871
      @mdnayon1871 3 หลายเดือนก่อน +2

      plz help me . I have to submit it tomorrow.

    • @Science_4U_
      @Science_4U_  3 หลายเดือนก่อน +2

      Hi friend. There could be some problem with the l298n motor driver board. We have to check and see if the l298n motor driver is working or not. Can you see 2 jumpers in l298n motor driver that is connected to ENA and ENB pins?

  • @Ludus_Universe
    @Ludus_Universe 19 วันที่ผ่านมา +1

    My G I dont have a servo motor . Does it still work ? Is it works please tell me how can i make it so it would work without a servo motor

    • @Science_4U_
      @Science_4U_  19 วันที่ผ่านมา +2

      Hi friend. You don't need a servo motor for this to work. No need to change the code also. Just fix the ultrasonic sensor alone in front. The connections for the servo motor to arduino alone can be ignored.

    • @Ludus_Universe
      @Ludus_Universe 19 วันที่ผ่านมา

      Thank you very much 💀 I was really shocked by your quick answer . Thank you very much ​@@Science_4U_

  • @ajisthagiddalur5204
    @ajisthagiddalur5204 6 หลายเดือนก่อน +1

    Can we use any arduino uno r4 or only the one which is used in the video,pls help and my boy is not moving even if the code is uploaded

    • @Science_4U_
      @Science_4U_  6 หลายเดือนก่อน +1

      Hi friend..you can use any arduino uno R3 or R4 or arduino nano etc. for this project. The code remains the same..

    • @Science_4U_
      @Science_4U_  6 หลายเดือนก่อน +1

      If the toy is not moving, there could be something wrong with the L298 motor driver board. Have you checked whether the 2 jumpers connecting ENA and ENB pins are assembled on the motor driver board?. Without those jumpers in place, the motor driver won' t work.So please check that..

    • @prathameshendole4105
      @prathameshendole4105 3 หลายเดือนก่อน

      where to connect enA and enB?@@Science_4U_

  • @suthanthiradevi5419
    @suthanthiradevi5419 2 หลายเดือนก่อน +1

    Bro can we use 9v hw battery

    • @Science_4U_
      @Science_4U_  2 หลายเดือนก่อน +1

      Yes friend. Definitely you can use 9V HW battery. But it will not last long, since its capacity is less. That is the problem. You can connect 2 or 3 batteries in parallel and power the robot so that it will last longer..

  • @prathameshendole4105
    @prathameshendole4105 3 หลายเดือนก่อน +2

    which pins are responsible for motors to run?

    • @Science_4U_
      @Science_4U_  3 หลายเดือนก่อน +2

      Hi friend. In this code, the commands for running the motors go from pin numbers 4,5,6&7 of arduino to the motor driver board. So pin numbers 4,5,6&7 are responsible for the motors to run..

  • @mystery_1101
    @mystery_1101 9 หลายเดือนก่อน +1

    Hey dude, i used like u used 4 aa batteries but motor need more power. Using ur same motor

    • @Science_4U_
      @Science_4U_  9 หลายเดือนก่อน +1

      Yes..that is true friend. 4 x AA batteries wont last long..2x18650 rechargeable batteries is a much better option in my opinion..

    • @mystery_1101
      @mystery_1101 9 หลายเดือนก่อน +1

      @@Science_4U_ I mean I tried it and the motor is soo fast, how can I slow it down.

    • @Science_4U_
      @Science_4U_  9 หลายเดือนก่อน +1

      @@mystery_1101 Okay. The easiest way to reduce the motor speed is by reducing the battery voltage. There is another way to reduce the motor speed by using PWM control for the motor driver. A PWM signal has to be given to the ENA and ENB pins of the motor driver board. By reducing the width of the PWM signal, the motor speed can be reduced..

  • @vaishnavigangurde4713
    @vaishnavigangurde4713 7 หลายเดือนก่อน +1

    Sir what is the dimensions for board ...is that affects the working?

    • @Science_4U_
      @Science_4U_  7 หลายเดือนก่อน +1

      Hi friend. I have used board with a length of 25.5 centimetre and width of 13.5 centemetre. I have given small inclined cuts at both sides in the front also to give it a better look.

    • @vaishnavigangurde4713
      @vaishnavigangurde4713 7 หลายเดือนก่อน +1

      How can I add a switch in this project

    • @Science_4U_
      @Science_4U_  7 หลายเดือนก่อน +1

      @@vaishnavigangurde4713 Hi friend. You can surely add a switch. I used a battery pack which had a switch in itself. So that is why, i did not use a separate switch
      You can add a switch between the +ve terminal from battery to Vin pin of arduino or between -ve terminal from battery to gnd pin of arduino.

    • @vaishnavigangurde4713
      @vaishnavigangurde4713 7 หลายเดือนก่อน +1

      Can I use 12 Volt instead of 9 volt power supply

    • @Science_4U_
      @Science_4U_  7 หลายเดือนก่อน +1

      @@vaishnavigangurde4713 yes ofcourse..arduino can operate from +5 to +20 volts..so +12volt is very much okay..👍

  • @muhammadzaid8523
    @muhammadzaid8523 3 วันที่ผ่านมา +1

    Which battery cell you used

    • @Science_4U_
      @Science_4U_  3 วันที่ผ่านมา +1

      Hi friend. For this project, I used 4 Nos. Of 1.5V AA batteries. It will be better if you can use 2 Nos. of 3.7V 18650 batteries as they are rechargeable and last really long.

  • @user-dp1sl9ym2w
    @user-dp1sl9ym2w 11 หลายเดือนก่อน +2

    I have a problem. Im finished doing the wirings and already uploaded code. The led for motor driver turned on and also the led for arduino uno turned on. Use the same 4* 1.5 volts double a battery (eveready). The robot didn't move. The servo didn't rotate.

    • @Science_4U_
      @Science_4U_  11 หลายเดือนก่อน

      Okay. Was the "upload successful" message shown after you uploaded the code?. Was the code uploaded without any errors?.

    • @user-dp1sl9ym2w
      @user-dp1sl9ym2w 11 หลายเดือนก่อน +1

      yes the code was succesfully uploaded

    • @user-dp1sl9ym2w
      @user-dp1sl9ym2w 11 หลายเดือนก่อน +1

      no errors

    • @user-dp1sl9ym2w
      @user-dp1sl9ym2w 11 หลายเดือนก่อน +1

      the servo motor we use is second hand, its from a friend, she said it works fine because they tested it

    • @user-dp1sl9ym2w
      @user-dp1sl9ym2w 11 หลายเดือนก่อน +1

      we'll try to reset the arduino uno again, replace the ultrasonic sensor, replace the 4* double a batteries with 3.7 V rechargeable and replace the motor driver what other advices can you give?

  • @aryagodse8866
    @aryagodse8866 3 หลายเดือนก่อน +2

    My wheels are not working?

    • @Science_4U_
      @Science_4U_  3 หลายเดือนก่อน +1

      Hi friend. There could be many reasons why it is not starting. You have to check one by one to find out. The most common problem could be L298N motor driver board. Have you used it before or is it a new one? . It could be faulty.
      Also, in the motor drive board, there should be 2 jumpers in place connecting ENA and ENB and the pins above them. that is for enabling rotating of the motor. If the jumpers are not there also, the car wont start.
      Also, check whether the batteries have charge in them.

  • @naseemaharoon165
    @naseemaharoon165 หลายเดือนก่อน +1

    When iam disconnect the usb cable from laptop the motor didn't work when connect the usb cable to computer it's working what can I do😢

    • @Science_4U_
      @Science_4U_  หลายเดือนก่อน +1

      That is definitely because the batteries are discharged. When connected to laptop, the arduino, sensors and servo motor gets its power from laptop and the battery needs to run only the motor and so it works. So even if battery is slighly discharged, it will work.
      Changing to new battery will solve the problem friend.

    • @naseemaharoon165
      @naseemaharoon165 หลายเดือนก่อน +1

      Thank you bro❤😊😊

  • @elrey8947
    @elrey8947 7 หลายเดือนก่อน +1

    Hello for some reason only one wheel is turning and the other one does not? What seems to be the problem. I followed all yours steps and only wheel is working. I tested the L298N before hand to chkeck if its faulty but its not.

    • @Science_4U_
      @Science_4U_  7 หลายเดือนก่อน +2

      Hmm..Okay friend.. we have to check one by one. This can sometimes happen if the batteries are not powerful enough. Can you lift the robot in hand so that wheels ate not touching ground and see whether both wheels are rotating?. You can help rotating the non rotating motor with hand and see if it starts rotating. Is it rotating now? If yes, change the battery.
      Before trying another battery, you can interchange the connection to the motor and l298n board (swapping left and right motors) and see if the other motor is now working. If other motor is not working, it points to a problem with the motor. Try checking both the motor by connecting directly to battery and see if both motors are rotating.
      Also check both motors directly using battery to rule out motor problem.
      Also check for any connection problem between motor and l298n driver.
      Also check whether the jumpers are there on both ENA and ENB pins in motor driver board.

    • @elrey8947
      @elrey8947 7 หลายเดือนก่อน +1

      @@Science_4U_ I have tried both DC motors of the wheel and they are working before I even assemble them. I also tried to connect them into the l289n driver to check their own rotation. But once I assembled them together the other wheel (near the ENB) to be exact is not rotating.

    • @elrey8947
      @elrey8947 7 หลายเดือนก่อน +1

      All jumper pins are still on l298n board I havent remove them.

    • @Science_4U_
      @Science_4U_  7 หลายเดือนก่อน +1

      @@elrey8947 Hmm..okay friend. Is the jumper available connecting the ENB pin to the pin just above it?

    • @Science_4U_
      @Science_4U_  7 หลายเดือนก่อน +1

      @@elrey8947 hmm..okay. on the l298n board, can you interchange wires at IN1, IN2 to IN3,IN4 and wires already given at IN3,IN4 to IN1 & IN2. Now can you tell what happens?

  • @naseemaharoon165
    @naseemaharoon165 หลายเดือนก่อน +1

    I just only placed the servo and ultra and arduino moror driver thats only i am in my mothers home i cant build it but some days after i can build😢😢

    • @Science_4U_
      @Science_4U_  หลายเดือนก่อน +1

      Okay friend...

  • @SHIVKUMAREASWARB
    @SHIVKUMAREASWARB 29 วันที่ผ่านมา +1

    Sir, I have completed the model by seeing ur video.but only one motor is running and another one is not working and the car is rotating in a circular manner because of One wheel.what might be the problem? and how can I resolve it sir

    • @SHIVKUMAREASWARB
      @SHIVKUMAREASWARB 29 วันที่ผ่านมา +1

      i Have also changed the motor Driver too

    • @Science_4U_
      @Science_4U_  29 วันที่ผ่านมา +1

      Okay friend. I think the battery may not be powerful enough to rotate both thr motors together. Can you lift the robot in you hand and try rotating the wheel which is not rotating. Do you feel like it is starting to rotate or there is no rotation at all?. Also alongwith the battery, connect uno to usb also. Now are both wheels rotating?. Most likely i think it should be due to poor battery.

    • @SHIVKUMAREASWARB
      @SHIVKUMAREASWARB 28 วันที่ผ่านมา +1

      I have also lifted up sir but only one wheel is rotating but if I give direct connection to the battery then it is rotating

    • @Science_4U_
      @Science_4U_  28 วันที่ผ่านมา +1

      @@SHIVKUMAREASWARB okay friend. Can you do one thing?. In the motor driver board, remove wires from IN1 & IN2 and connect to IN3 and IN4. Also remove wires frim IN3 and IN4 and connect them to IN1 and IN2. Is the other motor now rotating?.

  • @mohammedbj9226
    @mohammedbj9226 5 หลายเดือนก่อน +1

    I do everything but the motor won't work except with computer usp port. I put every voltage i can use to turn without pc put motor wont's work

    • @Science_4U_
      @Science_4U_  5 หลายเดือนก่อน +1

      Hi friend. If the motor works when the arduino is plugged to computer USB port, the most likely it is a battery problem. The battery is discharged and not able to drive the motors. When it is connected to USB, it is getting additional power and thus the motor rotates. Changing the battery to a good one should solve the problem..

    • @mohammedbj9226
      @mohammedbj9226 5 หลายเดือนก่อน +1

      @@Science_4U_ hi . I use a New battery but the motor still doesn't work

    • @Science_4U_
      @Science_4U_  5 หลายเดือนก่อน +1

      @@mohammedbj9226 Hi friend. To my understanding it should be definitely due to the bad battery. When you are connecting to battery alone, are the lights in UNO and motor driver board turning ON? Also , when it is connected to batteries alone, can you just try starting rotation the motor with hand?. If it is rotating after you rotate with hand, it again shows that it is a bad battery. Can you please try this?

    • @mohammedbj9226
      @mohammedbj9226 5 หลายเดือนก่อน +1

      @@Science_4U_ yes the light turning for both the uno and motor driver board and i try mov it with my hand but won't move i started think it's an uno board proplem

  • @user-dw4qk3hi4p
    @user-dw4qk3hi4p 2 หลายเดือนก่อน +1

    Why is the code showing compilation error
    exit status 1 Compilation error: exit status 1

    • @Science_4U_
      @Science_4U_  2 หลายเดือนก่อน +1

      Hi friend. Make sure you have to select the correct board under the tools menu in IDE software. Also, in the tools menu, the correct port for uploading the code also has to be selected. Then try reuploading the code. If it again shows the same error, you can try redownloading the code and again upload. Some change in the code could have happened because of some mistake. Still if the same error is occcuring, you can try changing the USB port or try a different PC /laptop.

  • @Triggeredgaming133
    @Triggeredgaming133 11 วันที่ผ่านมา +1

    Bro my motors are stop working sometime while car is going ahead and battery is fully charged

    • @Science_4U_
      @Science_4U_  11 วันที่ผ่านมา +1

      It could be some loose connection or problem with the motor driver board. Is it detecting obstacle correctly?. Also if you remove ultrasonic sensor, is it continously going to front without stopping?. Can you check that?

  • @prokoloid869
    @prokoloid869 10 หลายเดือนก่อน +6

    Hello good day ! We are currently using 3 pieces of 18650 (vape) batteries which has 3.9V so around 12 V of battery. We are already done programming it with remote control and stuff. We are now trying to make it an autonomous driving with obstacle avoiding property. Do you think the code that you provided will do just fine? I can send the whole specifications of the parts the we used for better visualization. Thank you

    • @Science_4U_
      @Science_4U_  10 หลายเดือนก่อน +3

      Yes sure!!!.. I think this code can be used for the obstacle avoiding part. What is the remote control module you are using for your vehicle?

    • @prokoloid869
      @prokoloid869 10 หลายเดือนก่อน +2

      @@Science_4U_ Hello, Its just a random TV remote, we just used it since its the only available resource we have. Ill try to input the code soon. it's 2 AM here rn.Ill hit you up here when something interesting happened. I just subscribed to the channel thank you so much

    • @Science_4U_
      @Science_4U_  10 หลายเดือนก่อน +1

      @@prokoloid869 okay..sure friend!!!

    • @prokoloid869
      @prokoloid869 10 หลายเดือนก่อน +1

      @@Science_4U_ Hello its me again, I just got the robot back and tried to upload the code, I also put the correct pins according to the wirings of my robot, however, it cannot let me upload in IDE.
      *EDIT
      the uploading worked but it doesn't move, the motors are just making weird noises and it doesn't show any reaction aside from the weird noises, what do you think is the problem?
      *EDIT 2
      Servo is working fine, it moves when it detects an obstacle, the problem now is the motor, it doesn't make any weird noises now but it doesn't show any reactions let alone moving.

    • @prokoloid869
      @prokoloid869 10 หลายเดือนก่อน +1

      Hello, I tried to run the code again but its still the same. The servo and ultrasonic sensors work but the motors are still stuck and not working. When I input the code with remote the motors works just fine, so I dont think the Arduino itself has the problem. It would be cool if you let me know what should I do

  • @globeexplorers1069
    @globeexplorers1069 10 หลายเดือนก่อน +1

    Can a smd uno board be used to create this?

    • @Science_4U_
      @Science_4U_  10 หลายเดือนก่อน +1

      Yes friend.sure!!!..You can use an SMD version of the uno board also for this project ..Both have the same functions..SMD uses a soldered Surface mounted microcontroller chip. I am using a uno board in which the microcontroller chip is removable. But both versions have exactly same functions...

  • @adawymohamed
    @adawymohamed 6 วันที่ผ่านมา +1

    Hi sir
    Can i use 3 batteries each one is 3.7 volt?
    will it work ?
    Thank u

    • @Science_4U_
      @Science_4U_  6 วันที่ผ่านมา +1

      Yes friend. You can use 3 batteries. Only thing is that the motors will be rotating fast. You can use just 2 batteries if you want slower rotating speed.

    • @adawymohamed
      @adawymohamed 5 วันที่ผ่านมา +1

      @@Science_4U_the robot do not move only i feel a pulse in the motor

    • @Science_4U_
      @Science_4U_  5 วันที่ผ่านมา +1

      @adawymohamed okay friend. Can you do one thing?. Can you lift the car in your hand and try rotating the motor. Is the motor rotating once you help to start its rotation?

  • @mr_shravan2606
    @mr_shravan2606 หลายเดือนก่อน +1

    My servo motor is working but the ultra sonic sensor is not working what is the problem

    • @Science_4U_
      @Science_4U_  หลายเดือนก่อน +1

      Hi friend. Do you mean that it is not detecting obstacles?

  • @muhammadhafizuddinbinhusni8306
    @muhammadhafizuddinbinhusni8306 11 หลายเดือนก่อน +1

    Can i use esp32 cam instead of arduino uno? And also can i use L293D motor driver instead of L298N motor driver.

    • @Science_4U_
      @Science_4U_  11 หลายเดือนก่อน +1

      Hi. ESP 32 is a camera module which can be connected to arduino uno just like any other sensor. But, it cannot be used instead of arduino uno. Both have to be used together.

    • @Science_4U_
      @Science_4U_  11 หลายเดือนก่อน +1

      ESP32 CAM can be connected to arduino for different projects like face detection, QR code scanner, Motion detector and many more..

    • @Science_4U_
      @Science_4U_  11 หลายเดือนก่อน +1

      Yes sure, you can use L293D instead of the L298N motor driver. Both are used for driving motors..

    • @muhdhfzd
      @muhdhfzd 11 หลายเดือนก่อน +1

      I mean, can i use esp32 microcontroller instead of arudino uno to create this project?

    • @muhdhfzd
      @muhdhfzd 11 หลายเดือนก่อน +1

      What's the difference between L298N and L293D?

  • @ARXGAMINGBOI
    @ARXGAMINGBOI 2 หลายเดือนก่อน +1

    idk what board to connect it to??

    • @Science_4U_
      @Science_4U_  2 หลายเดือนก่อน +1

      Hi friend. There are 2 boards used in the video.
      1. The microcontroller board is called Arduino Uno, which uses signals from the ultrasonic sensor and gives control signals to the motor driver board for turning the robot.
      2. L298N Motor driver board. The motors are connected to the motor driver board and motors get power from the driver board.

  • @naseemaharoon165
    @naseemaharoon165 หลายเดือนก่อน +1

    Hi bro

  • @ahmedamr1377
    @ahmedamr1377 5 หลายเดือนก่อน +1

    Thank for vedio my servo motor is rotating 360 degree how can i change to 180

    • @Science_4U_
      @Science_4U_  5 หลายเดือนก่อน +1

      Hi friend. You have to change the servo type. You may be having a continous rotation servo. It doesnt have position control. It countinously rotates and speed only can be controlled. You have to change it to a standard rotation servo which has a total rotation angle of around 210 degrees only.

  • @TheJayasiri
    @TheJayasiri 7 หลายเดือนก่อน +2

    Sir ,my car does not go forward , it just spins and sensor also working ,tell me why pls..

    • @Science_4U_
      @Science_4U_  7 หลายเดือนก่อน +2

      Hi friend..While spinning whether both the motors are rotating but in opposite directions?. Or only one motor is rotating?.

    • @TheJayasiri
      @TheJayasiri 7 หลายเดือนก่อน +2

      First of all, after detecting an obstacle, it goes back and does not go forward again, it spins in a circle, at that time both the motors spin.

    • @TheJayasiri
      @TheJayasiri 7 หลายเดือนก่อน +1

      Please help me

    • @Science_4U_
      @Science_4U_  7 หลายเดือนก่อน +2

      @@TheJayasiri yes..can you tell..without the obstacle in front ..just after switching on ..are both the motors rotating in same dirrection or opposite directions..

    • @TheJayasiri
      @TheJayasiri 7 หลายเดือนก่อน +1

      It is done ,thank you for replying 😊

  • @jeffmulto7176
    @jeffmulto7176 7 หลายเดือนก่อน +1

    hi
    i cant use the code it always showing this one, how am i gonna fix this?
    thaks
    Sketch uses 4512 bytes (13%) of program storage space. Maximum is 32256 bytes.
    Global variables use 233 bytes (11%) of dynamic memory, leaving 1815 bytes for local variables. Maximum is 2048 bytes.

    • @Science_4U_
      @Science_4U_  7 หลายเดือนก่อน +1

      Hmm..sometimes there will be problem in uploading the code. You can unplug usb and plug in once again and see..also in the tools menu make sure the port is selected with a tick mark and again upload..

    • @Science_4U_
      @Science_4U_  7 หลายเดือนก่อน +1

      If nothing works, try with another PC or laptop..

    • @jeffmulto7176
      @jeffmulto7176 7 หลายเดือนก่อน +1

      @@Science_4U_ hi, i uploaded it but the car is only one wheel is working what do you think is the problem?

    • @Science_4U_
      @Science_4U_  7 หลายเดือนก่อน +1

      @@jeffmulto7176 Hi friend. Can you check whether a jumper pin is given at both ENA and ENB pins in L298N motor driven board? if either ENA or ENB doesn't have the jumper connected to it, that motor won't rotate.

  • @prathvishetty-gl5fj
    @prathvishetty-gl5fj 9 หลายเดือนก่อน +1

    Pls give the program

    • @Science_4U_
      @Science_4U_  9 หลายเดือนก่อน +1

      Hi friend, the code can be downloaded from the link given in the description. I am giving the links here also.
      drive.google.com/file/d/11FJMN_PGLD_yJdtuzxBiAzmhhfKUOvxV/view?usp=sharing
      OR
      www.mediafire.com/file/l2p85r8aoeaqsas/build_Obstacle_Avoider_Robot.ino/file

  • @maheshwarverma9806
    @maheshwarverma9806 ปีที่แล้ว +2

    Sir everything is ok now but the bot is rotating in circle
    Instead of going in a straight line.
    And the speed is also fast a little bit.
    How to control the speed using the code?

    • @Science_4U_
      @Science_4U_  ปีที่แล้ว +1

      Hi friend, the bot is supposed to go in straight line only. There is some change in the pin connection I think. Can you confirm that one motor is rotating in forward direction and one motor is rotating in backward direction?. Or is it that one motor is stationary and another motor is rotating in forward direction?

    • @Science_4U_
      @Science_4U_  ปีที่แล้ว +1

      Also since these are not servo motors, there is no way to change the speed using code. You can only reduce the power supply voltage, which will inturn reduce the motor speed.

    • @maheshwarverma9806
      @maheshwarverma9806 ปีที่แล้ว +1

      @@Science_4U_ one is rotating forward and other is backward

    • @Science_4U_
      @Science_4U_  ปีที่แล้ว +1

      @@maheshwarverma9806 okay.. understood. Then there should have been an interchange in the pin connections..

    • @Science_4U_
      @Science_4U_  ปีที่แล้ว +1

      @@maheshwarverma9806 Please intetchange 2 pins of the control pins of the motor driver board and see if the motor direction is changed to forward. If the other motor changes direction, then interchange the other 2 pins.

  • @beyondusee8740
    @beyondusee8740 6 หลายเดือนก่อน +1

    Hello brother I have used 12v motors, so how much voltage should be needed to run the project.

    • @Science_4U_
      @Science_4U_  6 หลายเดือนก่อน +2

      Hello friend..Though you have used motors rated for 12V, I think you can use any voltage between 9V to 12V to run the project. This voltage can be given to arduino also without any problem..

    • @beyondusee8740
      @beyondusee8740 6 หลายเดือนก่อน +1

      @@Science_4U_I have given 12v supply through adapter, the ultrasonic sensor is detecting the object and stops working, what is the reason??

    • @Science_4U_
      @Science_4U_  6 หลายเดือนก่อน +1

      @@beyondusee8740 it stops working means that the motors stop rotating? Can you little more explain the problem that you are facing?

    • @beyondusee8740
      @beyondusee8740 6 หลายเดือนก่อน +1

      @@Science_4U_ the ultrasonic sensor stops working when it detects the object, and the motors, servomotor also stops working.

    • @Science_4U_
      @Science_4U_  6 หลายเดือนก่อน +1

      @@beyondusee8740 Hmm..okay friend..looks like a battery problem. Please change to a good battery and see if the problem is solved. Also, please check the connections once again..

  • @srilatha.b7752
    @srilatha.b7752 ปีที่แล้ว +4

    Sir, ive checked all the circuit connections and code uploading too... I did very carefully and correctly... When im connecting it, only the uno board's light is blowing but not moving.... Pls help me with this problem, we have our science project coming soon

    • @Science_4U_
      @Science_4U_  ปีที่แล้ว +2

      Hi...Can you tell whether the led light in the L298N motor driver board is also turning on?

    • @srilatha.b7752
      @srilatha.b7752 ปีที่แล้ว +1

      ​@@Science_4U_no sir, the light in the motor board isn't turning on

    • @srilatha.b7752
      @srilatha.b7752 ปีที่แล้ว +1

      And sir, when I uploaded the code, only the servo motor just rotated backwards and didn't work

    • @Science_4U_
      @Science_4U_  ปีที่แล้ว +2

      @@srilatha.b7752 okay. The light in the motor driver board should have actually turned on. Can you check the power connection to the motor driver board?. Are the +ve wire from the battery connected to +12V terminal of the motor driver board & -ve wire from the battery connected to GND terminal of thr motor driver board? By just giving power to the motor driver board correctly, the red light in the motor driver board should have turned on.

    • @Science_4U_
      @Science_4U_  ปีที่แล้ว +2

      @@srilatha.b7752 Also can you tell whether you are using the same 4 x 1.5 V battery pack?. Are the batteries new ones?. If there is insufficient voltage, then also the motor driver board will not work.

  • @binitsapkota6753
    @binitsapkota6753 7 หลายเดือนก่อน +1

    Bro my ultrasonic sensor and and servi motor is working properly but gear moter is not moving please give me solution

    • @Science_4U_
      @Science_4U_  7 หลายเดือนก่อน +1

      Sure friend. I can help..It is definitely due to some problem with the L298N motor driver. My first question would be whether the motor driver has 2 jumpers connected to ENA and ENB and the pins just above it?. Can you check that. Without that, the motors will not rotate..

    • @binitsapkota6753
      @binitsapkota6753 7 หลายเดือนก่อน +1

      @@Science_4U_ yes jumper is connected

    • @Science_4U_
      @Science_4U_  7 หลายเดือนก่อน

      @@binitsapkota6753 Hmm..okay friend.Have you used the motor driver board before?. It can be faulty sometimes..

    • @binitsapkota6753
      @binitsapkota6753 7 หลายเดือนก่อน +1

      @@Science_4U_ no

    • @binitsapkota6753
      @binitsapkota6753 7 หลายเดือนก่อน +1

      I recently bought that

  • @Suryazach
    @Suryazach 6 หลายเดือนก่อน +1

    Can I use 9V battery? Those square ones

    • @Science_4U_
      @Science_4U_  6 หลายเดือนก่อน +1

      Yes ..sure friend..But they dont last long and they are not rechargeable too..

  • @user-jb1xc8sv9v
    @user-jb1xc8sv9v 6 หลายเดือนก่อน +2

    Motors are not moving all connections are ok servo and sonar are working fine

    • @Science_4U_
      @Science_4U_  6 หลายเดือนก่อน +1

      Okay friend..Can you check whether there are 2 jumpers connected on ENA and ENB pins in motor driver board?. They act as swiches for enabling the rotation of motors. Without these jumpers in place, the motors won't rotate. So first can you check that?

    • @user-jb1xc8sv9v
      @user-jb1xc8sv9v 6 หลายเดือนก่อน +1

      @@Science_4U_ thanks for your help bro I was using used motor driver in which those jumper were removed i connected ant it is working .thanks a lot

    • @Science_4U_
      @Science_4U_  6 หลายเดือนก่อน +1

      @@user-jb1xc8sv9v ooh..great to know that friend..Happy to know that it worked..🙂

  • @yukeshrajm3387
    @yukeshrajm3387 5 หลายเดือนก่อน +2

    Bro reduce the music song in the background

    • @Science_4U_
      @Science_4U_  5 หลายเดือนก่อน +1

      Okay friend. I will take care for reducing music in the future videos. Thanks for the suggestion..🙂

  • @MohamedMagdy-ur3os
    @MohamedMagdy-ur3os 4 หลายเดือนก่อน +1

    can you please help me the car not move the servo motor working but dc motor not

    • @Science_4U_
      @Science_4U_  4 หลายเดือนก่อน +1

      Okay friend. There could be several reasons why the DC motor is not rotating. Most probably it could be related to the motor driver board.Please check the following. Do you see light on the motor driver board? Are there jumpers connected to ENA and ENB pins in motor driver board?. Is it a new driver board or an old one which has already worked before?

  • @Sharifi_Matin
    @Sharifi_Matin 4 หลายเดือนก่อน +1

    Hello, please mention the battery model

    • @Science_4U_
      @Science_4U_  4 หลายเดือนก่อน +1

      Hi friend..I have used 4 Nos. of AA 1.5V batteries. You can use 2 Nos. of 3.7V 18650 batteries as well.

  • @Sharifi_Matin
    @Sharifi_Matin 4 หลายเดือนก่อน +1

    Hello bro, I still have a problem with the servo motor rotating in one direction, can you help me?

    • @Science_4U_
      @Science_4U_  4 หลายเดือนก่อน +1

      Yes sure friend. Can you just sent a video of the problem to my instagram ID. That will help me understand the problem..
      instagram.com/_science4u_?igsh=ZGNjOWZkYTE3MQ==

    • @Sharifi_Matin
      @Sharifi_Matin 4 หลายเดือนก่อน +1

      @@Science_4U_ I don't have Instagram, is it possible to send the video in another messenger?

    • @Science_4U_
      @Science_4U_  4 หลายเดือนก่อน +1

      @Sharifi_Matin Okay. Do you have facebook messenger?. Can you send the video to following ID?
      facebook.com/profile.php?id=100077588611302&mibextid=kFxxJD

    • @Sharifi_Matin
      @Sharifi_Matin 4 หลายเดือนก่อน +1

      @@Science_4U_ The problems are solved, thank you for your reply. The problem was that I was entering more voltage than necessary

    • @Science_4U_
      @Science_4U_  4 หลายเดือนก่อน +2

      @Sharifi_Matin okay friend. Glad to know that you could solve it..🙂