Line Follower Robot using Arduino🔥

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 พ.ค. 2024
  • In this video we are going to make simple Line follower robot using Arduino.
    The idea behind this robot is to detect black line using 2 IR sensors and move robot accordingly using L298N motor driver module.
    I have explained in details each step along with code.
    👉Please subscribe: th-cam.com/users/hashinclude...
    👉Components list:
    ✅ Arduino Uno (Canada amzn.to/3JpiGE5) (India amzn.to/3E0VefL)
    ✅ 2 IR Sensors (Canada amzn.to/3q16ama) (India amzn.to/3fE1tgs)
    ✅ 2WD car kit (It has DC gear motors with wheels) (Canada amzn.to/34F7HqJ) (India amzn.to/3U8BVqK)
    ✅ L298N motor driver (Canada amzn.to/3J98zTJ) (India amzn.to/3hfLIwJ)
    ✅ Battery DC 7-12V (We will use lipo 2S battery) amzn.to/3q4SjLN
    ✅ Jumper wires (Canada amzn.to/3I8fZVG) (India amzn.to/3heE3Pa)
    ✅ Glue gun
    ✅ Double sided tape
    ✅ Black Electrical Tape
    👉 Shorts Channel :
    / ujwalnandanwar
    👉Code and diagram:
    github.com/un0038998/LineFoll...
    👉 Hand Gesture controlled car
    • Hand Gesture Controlle...
    👉 Elevating Car
    • Elevating WiFi Car usi...
    👉 Camera Car
    • Surveillance Car using...
    👉Bluetooth Car
    • How to make Bluetooth ...
    👉Wi-Fi Car
    • Smartphone controlled ...
    👉Obstacle avoiding car
    • Arduino Obstacle Avoid...
    👉Arduino RC car using nrf24l01+ module
    • Arduino RC car using N...
    👉Watch more videos:
    / hashincludeelectronics
    👉Follow us on Instagram:
    / hashincludeelectronics
    ⏱Chapters
    00:00 Intro
    00:33 Components
    01:10 Assembly of car
    02:30 Connections
    03:37 Code explanation
    05:22 Sensor calibration
    05:49 Demo
    #linefollowerrobot #arduinoprojects #hashincludeelectronics
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    Thank You !! It Was Very Helpful. You're Amazing !!🖤🖤

  • @tinkeringlabplus2516
    @tinkeringlabplus2516 ปีที่แล้ว +6

    Harsh I find it highly professional channel. It is well organized. Please do videos on micro mouse and AI. All the best!

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

    Thank you for such a great explanation

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

    Thank you so much for this video. It's really helped me a lot to practice with Arduino UNO.

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

    you saved me alot of hard work bhai. love it!!!!!

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

    Woah thats so coool , i guess i know what to do now thank you sir

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

    Fantastic explanation 🎉❤

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

    Awesome bro , this is helpful ..

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

    I have a question with the wiring, I see you Combine a bunch a wires into one when doing the sensors how do we also make that?

    • @hashincludeelectronics
      @hashincludeelectronics  2 ปีที่แล้ว

      It’s quite simple . Just join one end of multiple wires together and then attach single wire to this joint . I used this so that I can provide 5v and gnd to all components from l298n drive .

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

    Thanks for you're great video!
    We're doing a quite similar arduino project and we were wondering if it's possible to let the robot make a 180 degree turn, so that it can make it through the parkour in both directions.

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

      You can make a code change to rotate robot . Adding proper delay will rotate the robot through certain degree . Not exactly but roughly . Give it a try 👍🏻

    • @calastrecarlosmeguel8956
      @calastrecarlosmeguel8956 6 หลายเดือนก่อน

      @@hashincludeelectronics How can I make it do a 180-degree turn?

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

    Hi, i have a problem that the wheels doesn't move even on a white surface. I followed the video up until the part with the power source. I used 4 AA batteries as the set i used included that kind of battery compartment. What could be the problem?

    • @hashincludeelectronics
      @hashincludeelectronics  2 ปีที่แล้ว

      Thanks for checking out video 👍🏻. You can easily adjust the speed in code by changing the value of (MOTOR_SPEED 180) . Try increasing it till 255 max value based on your current speed

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

    Thanks for the great video.
    I was watching your project and in which one sensor is working properly but light lights are red. The other sensor has 1 green light glowing and it is not working at all. What should I do?

    • @hashincludeelectronics
      @hashincludeelectronics  8 หลายเดือนก่อน

      You need to caliber both the sensors as shown in video 👍🏻👏🏻

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

    Does a 4 AA battery works for this...if not,suggest any alternative battery for this other than the one you have used in this video....we have tried using 2 HW connected in series....but the motor stops after running for some time.....

  • @FasaluRahman09
    @FasaluRahman09 2 ปีที่แล้ว

    nice presentation bro. keep it up

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

    Very simple explanation thank you.

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

    hello there,
    thanks for you video you are already carring us through our university projekt. But in our project we need to go the track backwards. Do you belive its better going backwards or let the linefollow robot turn 180 degrees at the end of the track and then drive back. In our track the end of the line is build with a big black point. So that both sensors see black and stop.
    We would really appreciate an answer.
    Greetings from Germany

    • @hashincludeelectronics
      @hashincludeelectronics  2 ปีที่แล้ว

      I would suggest make a 180 turn . Right now this robot stops after seeing black big spot . Rather than stopping it , let it turn 180 degrees . You need to adjust delay for this 180 degree rotation . I don’t have robot assembled to test it . So you need to do it on your robot and see if it works . 👍🏻

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

    Thanks for you're great video!
    We're doing a quite similar arduino project and we were wondering if it's possible to use 11.1v 3s battery lippo

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

    Sir, I wonder what controls the movement of this robot, is it the code saved in arduino uno?

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

      Yes it’s the code which controls the robot 👍🏻👏🏻

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

    Hello thanks for your video , i would like to know for this kind of robot if it’s better in terms of stability and maneuverability to do 4 wheels (2 in the back 2 in front ) or only 2 wheels or 2 wheels in the back and one wheel in the front like you did ?

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

      Anything will do . But you will have to make changes accordingly in your code for speed .

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

    I have the same kit, what do you recommended me to do for additional speed?

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

    Super bro..thnq for sharing

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

    Hello, mine seems like the right motor is not spinning, for the battery I'm using 2x 3.7v 18560 batteries

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

      Please check the connections 👍🏻👏🏻

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

      still the same, sometimes it works but most of the time it does not@@hashincludeelectronics

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

    Guys I am observing that people are facing issue only because they are using 9v non rechargeable battery . Please don’t use that 9v non rechargeable battery because it does not provide enough power . Use some good rechargeable battery like LiPo or LiON batteries👍🏻

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

    Thanks for the great video!
    I have a question regarding the power. If I power up the arduino straight from battery, then I connect VIN & GND from arduino to 12V and GND of L298, then I take 5V & GND from arduino to the IR sensors, will it work? I tried doing that but my arduino just makes a continuous beep sound. Thank you!

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

      Please check the video for connections 👏🏻👍🏻

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

      Hello, can you resolve the problem? . In my case, i have the same problem than you

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

      @@robertmanuelgonzalez2332 i rewatched the video and turns out my connections were wrong, try to check your connections!

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

    I think I have a different type of arduino
    In my arduino there is no black rectangle in between just the left and right side
    nothing in between like it has just right to the connection
    will it work or i need the same on

    • @hashincludeelectronics
      @hashincludeelectronics  6 หลายเดือนก่อน

      Please check the pins and make connections accordingly 👍🏻👏🏻

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

    Thnx sooo much for the video it really helped me!!!!!!!

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

    hey i am just a fresher planning to do this project i just want to know while uploading the code on Arduino the Arduino should be connected to the laptop right? but after dumping code on Arduino can we remove it, and still does it work? sorry if it's too basic cos I'm just a fresher but very interested to do Arduino related projects

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

      Yes, It will work. Upon uploading the code to Arduino, it executes every time power is supplied to the board.

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

      Thanks Parvez for explaining this . 👏🏻👏🏻 nice cooperation 👍🏻

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

      @@parvezkhan5198 thank you i also wanted to know if there's any arduino code to control the speed of the robot

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

    Hi. Can you share what RPM motor you are using. I am using 100 rpm geared motors and it takes about 3 cms to stop and that is causing the sensor to cross the black line.

    • @hashincludeelectronics
      @hashincludeelectronics  6 หลายเดือนก่อน

      Try 1:48 ratio motor which will have 200 rpm . 👏🏻👍🏻

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

    Can we use a case of 4 batteries with 3.7 v each instead of this lippo battery mentioned in your video ??

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

    Very helpful 🙂👌

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

    Nice work man. Just a question, is there a way to adjust the speed of the car? We have a racing competition. Hope you can help. Thank you.

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

      Yes you can adjust the MAX MOTOR SPEED in code . However not sure if this will be suitable for racing competition you are participating. This is very basic line follower robot. It does not have any latest technique like PID control or more sensors etc .

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

      @@hashincludeelectronics thank you for your response. Can I achieve fast bot using l293d and 3 ir sensor?

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

    Can it still run on broken lines and intersections?

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

      Unfortunately I have not tried it . Please give it a try and see if it works and let us know 👍🏻👏🏻

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

    Thanks for you explanation.
    I was wondering that can your robot rotate 90 degrees?
    Because I built a project which is black line follower robot that I needed for my college and I did everything correct except that my robot cannot recognize the 90 degrees so no rotation at that angle, so can help me out of what to do?

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

      Thanks for checking out the video . Please note that this is very simple line following robot. If you need more angular and accurate turns , we will need to use more IR sensors and its a different project. You can check online for more information on such complex design.👍

    • @alexyouou7560
      @alexyouou7560 2 ปีที่แล้ว

      @@hashincludeelectronics Alright, thank you

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

    what kind of double wires are u using to connect arduino and sensors?

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

    Sir, which analog pin of the positive and negative pin of the 5v buzzer. Sir, can I have to write the code of the 5v buzzer in the line follower, will the line follower robot work or not?
    Sir, I put the buzzer pins and the led in the Arduino Uno, but the Arduino line follower robot s buzzer and led are not working when I turn on the line follower, the line follower robot works but the 5v buzzer and led are not working. Give me the circuit diagram of the Arduino line follower robot s buzzer and led visual indication.

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

      Please check the buzzer specification for pins . Also first check only buzzer working with Arduino and then integrate with line follower code . Go step by step , have patience 😜 and it will work 👍🏻

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

    hey thx for the detailed video.i made the robot but i dont understand how did u calibrate the sensors like
    should they beep when they detect the line or wht
    also the motor wont move and the code is all the same as u provided
    the ir sensors continuosly make a beep sound
    can u pls reply and tell me the solution as i want to make this robot
    also i had to ask if the whole project will work on a 9v battery(non rechargeble)

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

      Please use only rechargeable battery 👏🏻👍🏻. Also check the video for calibration 👌🏻

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

    Hey I was following your video to make a Line Following Robot of my own, and I have everything set up as you do in the video, but the light on both of the IR Sensors labeled POWER is constantly lit red, not green like they are in your video. Also, the robot itself is not driving (the motors aren't spinning whatsoever). I was just wondering if you knew why this was the case and if you knew a fix for this issue. Thanks!

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

      Thanks for checking out the video 👍🏻. May be your IR sensor power LED is red . You should calibrate the sensors by placing them on black and white surface and adjusting the knob on sensors . Check the video properly . Also make sure you provide only rechargeable battery power .

    • @saladbar__
      @saladbar__ ปีที่แล้ว +4

      @@hashincludeelectronics Yes my Power LED on the IR Sensor is red, I was wondering if you knew why.
      I'll have code that I used to test if the robot could even drive attached below, and I believe something may be wrong with that as well so if you see anything wrong with it let me know.
      I calibrated the sensors just as you did in the video, so I do not believe that is an issue. The robot is detecting a change when I move it over the black tape, so again i do not believe that to be the issue.
      I checked the rest of the video twice, and everything seemed correct according to the video.
      And the battery I am using is a 6v battery pack, but I tried to power the robot by using a 9v battery and by plugging it into my laptop and running the code, but neither of those work.
      If you have any idea as to what could be wrong, let me know. Until then, thank you for the very detailed video!
      Attached code:
      // defining the pins
      void setup() {
      pinMode(10,OUTPUT);
      pinMode(9,OUTPUT);
      pinMode(8,OUTPUT);
      pinMode(7,OUTPUT);
      }
      // defining variables
      void forward(){
      digitalWrite(10,HIGH);
      digitalWrite(9,LOW);
      digitalWrite(8,HIGH);
      digitalWrite(7,LOW);
      }
      void pause(){
      digitalWrite(10,NULL);
      digitalWrite(9,NULL);
      digitalWrite(8,NULL);
      digitalWrite(7,NULL);
      }
      void loop() {
      // code to make the robot drive
      pause();
      delay(1000);
      forward();
      delay(3000);
      pause();
      delay(1/0);
      }
      And then the in a separate file I have your code that I copied from GitHub, but that too does not work.

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

      @@saladbar__ in your code you did not add enables pins . You need to provide analogWrite to those ena and enb pins . Check the code again .

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

    I have doubt on the connection from motor to sensor
    how did u connected i ground from motor to both the sensors and uno
    similarly 5 v one
    I see a jumper wire with one male and 3 female
    whats that

    • @hashincludeelectronics
      @hashincludeelectronics  6 หลายเดือนก่อน

      It’s like join 3 wires together and then connect single wire to this joint . So it’s like 1->3 connections . 👍🏻👏🏻

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

      ok got it boss
      thanks
      @@hashincludeelectronics

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

    Can I use tcrt5000 sensors instead of those you're using on the video?

    • @hashincludeelectronics
      @hashincludeelectronics  5 หลายเดือนก่อน

      If those sensors can act like IR sensors then yes you can use . It should provide you digital output 👍🏻👏🏻

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

    Hello admin actually we made so before connecting wires it spins but its not working can you please help?

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

    About the car chassis. May I ask that is it 2WD Car Chassis will be ok? Because the car chassis in your video is unavailable to deliver to my place.

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

    Thanks for this video!
    I built the robot but, the wheels aren't rotating even when the arduino uno board is attached to my laptop.
    Also the 'L' labelled LED is not glowing on the arduino Uno board.
    What should I do?

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

      Please check the video slowly and carefully. You might have missed some step 👍🏻👏🏻

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

    hey nice project i have a queston my motors make this screeching noise and doesent move and the ir sensor dont controle i am using a 5v from arduino and gnd and then 9v from battery what power souurce should i use

    • @hashincludeelectronics
      @hashincludeelectronics  2 ปีที่แล้ว

      Please use rechargeable battery only 👍🏻

    • @danteanderlich706
      @danteanderlich706 2 ปีที่แล้ว

      @@hashincludeelectronics hey thanks i have a new problem the ir sensors work and light up but only 1 ir sensor controles 1 motor how dpo i get the other one to controle the other motor i think the left is only woking and so is the left motor

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

    I'm very excited with your idea. But when I tried em with 9v battery it won't start. Do I have problem with power supply?

    • @hashincludeelectronics
      @hashincludeelectronics  2 ปีที่แล้ว

      Thanks for checking out video 👍🏻. You can easily adjust the speed in code by changing the value of (MOTOR_SPEED 180) . Try increasing it till 255 max value based on your current speed

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

    Hi, your video is amazing, can you tell me How long should the chassis of the car be? Please. I need the measurements of almost everything that should be used . Thank you and I really hope you can help me 😢

    • @hashincludeelectronics
      @hashincludeelectronics  10 หลายเดือนก่อน

      You can buy this robot chassis online . It’s easily available 👍🏻

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

    Hi!! If i want to move robot backward.. Is it necessary to use IR sensor on the rear?

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

      That's a good point . I don't think we need IR sensors on the rear of car. You can still move the car backwards (In the same way we are moving in forward direction) and keep checking if these IR sensors touch the black line and move the car accordingly in left/right backward direction.
      You can add 2 modes of operation in code , 1. Forward mode 2.Backward Mode.
      Give it a try and let us know how it goes.

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

    thank you!

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

    hi
    I watched your video and I do not have many male to female wires needed. can I tape the male to male wires instead

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

    Hey bro, my connecting got burnde when i used 11.4v Li batteries..
    Should i change that or????

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

      11.4 should be good . Why it got burnt ? Please check the connections again properly . Check the video again 👍🏻

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

    Hello sir, can we use Bo motors for this !?

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

    BEST SOLUTION for basic line follower robot , thanks you !!

    • @hashincludeelectronics
      @hashincludeelectronics  8 หลายเดือนก่อน

      Thank you very much for checking out the video and comment 👍🏻👏🏻

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

    Hello hash I have a important question do the wires that you soldered come with the chassis like the switch and motor wires

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

      It comes with Motor wires . However I would suggest to buy set of jumper wires for this project . It will be useful 👏🏻👍🏻

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

      Ok and what are all the kinds of batteries that I can use

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

      Can you solder jumper wires

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

      @@samir8943 yes you can 👍🏻

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

      And the batteries

  • @Aimusical7826
    @Aimusical7826 8 หลายเดือนก่อน

    Can we build it for pulling 4 kg load ?

    • @hashincludeelectronics
      @hashincludeelectronics  8 หลายเดือนก่อน

      No . It can not handle that much load 👍🏻👏🏻

  • @user-px3gh9fr8w
    @user-px3gh9fr8w ปีที่แล้ว +1

    Hi.
    I watched the video and made the robot. The problem is when the robot walks, we notice that one of the sensors is close to the edge of the black line, while the other sensor is farther away at the black line, although the distance between the sensors is equal to the width of the line. How to make the right and left sensor on the two edges of the line

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

    How many jumper wires will be required and which male to female or male to male connecters?

    • @hashincludeelectronics
      @hashincludeelectronics  6 หลายเดือนก่อน

      You can buy set of mixed jumper wires . Those will be used in future as well . Keep it with you 👍🏻👏🏻

  • @g02anzanoakiraf.80
    @g02anzanoakiraf.80 หลายเดือนก่อน +2

    Good day!
    We are working on this for a school project and we followed the steps with utmost care and yet the wheels won't move
    The IR sensor can sense but it still doesn't work we even tried highering the speed to no avail. Also, we use 4AA lithium-ion batteries.
    What are some possible solutions to our problem?

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

    Great video. Your tutorial actually works perfectly. Can you send me one more instruction, I'm trying to connect an ultrasonic sensor and I want to stop rotating both motors when the distance is less than 30 cm.

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

      Thanks for checking out the video 👍🏻👌🏻. You can check my video on human following robot for use of ultrasonic sensor .

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

      @@hashincludeelectronics It isn't working as I do it by myself. Can send me some instructions to do what I want.

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

      simply i mean how to make a line following robot which stops at an obstacle

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

    Nice video bro

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

    What is the name of the wire that connects the switch with the battery and the l298n motor driver?

    • @hashincludeelectronics
      @hashincludeelectronics  4 หลายเดือนก่อน

      That is JST connector . However you can use simple any wire 👍🏻👏🏻

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

    Sir,
    Front and back rotation of wheels is not happening!only forward taking place.No difference in rotation whether kept on line or not!
    Is the problem is in code or any connection which I made??This problem occurs due to code or connection?

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

      It should rotate in reverse direction as well . Check connections of motor . Reverse the wires of motors

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

    Great video the circuits work but im just curious why my robot is resetting while it detects a line? sometimes when it detects it stops and reset the the led is blinking after the restart

    • @hashincludeelectronics
      @hashincludeelectronics  6 หลายเดือนก่อน

      I think issue is with your power supply . Please check that 👍🏻👏🏻

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

    i have any question, if I Use Battery 9 Volt in Schematic . can it work?

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

    May I ask if we use a frame model that has four wheels (2 at the front, 2 at the back) whether we can still use the coding that has been shared using a frame model like that.
    and can explain how to connect the cable from the sensor to the driver and to the Arduino
    If coding is successful but not successful and the sensor is green, can you explain what to do? please explain min

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

      Yes we can use that 4WD model as well . Give it a try . There is parameter in code called MAX_MOTOR_SPEED which you change to increase the speed if needed . 👍🏻👏🏻

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

      the car is starting and the wheels are turning but it won't move on the track, can you help me how to solve it?

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

    hi there. I am confused in one thing. how do you provide one ground connection to both the sensors??
    I see you have joined the wires. Can you explain how to do that?

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

      It’s just connecting single wire to multiple wires the at one end.

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

      @@hashincludeelectronics yes but how to do it practically.
      Please explain

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

      @@manualidadesde5minutos865 ok . Take single jumper wire . Cut it at one end . Then take 2 jumper wires . Join these 2 wires together at one end and then connect this end to single jumper wire . Like Y shape .

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

    Thank you so much for the video it was really good, I'm doing the same project but I'm adding a PID controller to smooth the movement so could you please help me by guiding me what to add to the code. Thanks in advance bro

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

      Thank you very much and I wish all the best for your project . Adding PID to such robot is quite challenging. You will need to use multiple sensors and then tune PID . I would suggest you to check some other videos where they used PID . Good luck 👍🏻

    • @ToMate1
      @ToMate1 2 ปีที่แล้ว

      Dude, I'm doing the same project to control the motor.

    • @ToMate1
      @ToMate1 2 ปีที่แล้ว

      I'm using an encodere to try it.

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

    It helped me a lot!

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

      Thank you very much for checking out the video and I am glad that it helped you 👏🏻👍🏻

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

    Where to connect the switch and battery? Because it differs from the circuit diagram you gave in description

    • @hashincludeelectronics
      @hashincludeelectronics  18 วันที่ผ่านมา

      The circuit diagram is correct . Please follow it and also video step 👍🏻👏🏻

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

    If we supply power to Arduino via USB cable but not the L298N, will it still work..?

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

      Yea it will work . However you need to make sure the gnd of l298n is connected to Arduino .

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

      @@hashincludeelectronics Thanks for the quick reply, but unfortunately my robot isn't working 🥺. The IR Sensors are also calibrated, their LED glows when they are in front of white color, and don't when the white color isn't there.

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

    Will this work if i use a black sellotape to make the line on a gray colored floor?

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

      It might work but you will have to calibrate the sensor accordingly. For better response please use white floor only 👍🏻

  • @alexxxzx
    @alexxxzx 9 วันที่ผ่านมา +1

    hi good day, thank you for this wonderful video tutorial!!
    We did everything you did in this video but our robot is not following line, it just keep on spinning around, maybe because one of the wheels is not working properly (but we already changed it but still nothing) also im using 9v battery, maybe this battery voltage is not enough.
    can u help me?

    • @alexxxzx
      @alexxxzx 9 วันที่ผ่านมา +1

      everything is working if i move the wheel forward but i was only temporary

    • @hashincludeelectronics
      @hashincludeelectronics  9 วันที่ผ่านมา

      Please use rechargeable battery only . Don’t use that 9v non rechargeable battery 👍🏻👏🏻

    • @DaX.2858
      @DaX.2858 5 วันที่ผ่านมา

      hey mate is it working now? iam also making this project but it is not working i don't know why.. can you help..

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

    Hi, I have a issue is one of my wheel moving forward and another one is moving backward, if on the blackline, the both wheels seems to be change the direction too😢😢

    • @hashincludeelectronics
      @hashincludeelectronics  8 หลายเดือนก่อน

      Interchange the polarity of wires of one motor connected to L298N driver which is rotating in wrong direction 👍🏻👏🏻

    • @wongsiewyun8292
      @wongsiewyun8292 8 หลายเดือนก่อน

      do you mean change to another wire?
      @@hashincludeelectronics

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

    You have make a great stuff. Can i slow down the motor from 180? if can i will compose message for you.

    • @hashincludeelectronics
      @hashincludeelectronics  2 ปีที่แล้ว

      Thanks you 👍🏻. Yes you can slow down the speed if needed .

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

    is it ok if I use LiPo Rechargeable Battery 7.4V 2800mAh 25C?

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

    Thankyou so much.

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

    Hi if we use power bank instead of battery will the robot move

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

      It needs 7-12 V battery supply . Is your power bank able to provide this voltage ? Then yes you can use it 👍🏻👏🏻

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

    What is the power of the motor ?

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

      It’s simple dc tt gear motors and does not have much power . What’s the application ?

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

    My query is can this robot travel in an unclosed loop (i.e. a curvy line ) and stops at end point

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

    Our robot stops when it reaches the black line instead of following it. How do we make it follow the line?

  • @uwu-iv8zi
    @uwu-iv8zi ปีที่แล้ว +1

    muchas gracias bro... me re sirvio

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

    can we convert the code you have provided for a robot that uses esp32 microcontroller ? if so what changes should we make in the code ?

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

      It will be different project . You will have to change pins . And also code will change a lot to use esp32 analog write 👏🏻👍🏻.

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

      @@hashincludeelectronics could you give us some resources if you have any for how to use esp32 analog write in the code ?

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

      @@sharanyaanil1512 there are many of my videos related to RC cars using esp32 . You can check any of those videos for reference 👍🏻👏🏻

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

    can l293d driver will work in the setup

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

    may i ask the background must be white?? Because I only have wooden table. If yes, which line of the code have to change?? Thanks😁😁

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

      Yes you need white floor for this project 👍🏻👏🏻

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

    Do we need male-to-male jumper wires or?

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

    Please,could you tell what major to study for doing this kind of projects.please,tell me, I am about to my major in university.

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

    Hey. What is the enableRightmotor and enableLeftmotor?
    Why are they necessary?

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

      Those are to control the speed of the motors . Check for L298N driver for more details . There is a video as well on my channel 👍🏻

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

      @@hashincludeelectronics so to move the right motor forward, what pin do we give power to?

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

    Hey there i am using 2 18650 3.7v batteries and the speed it is moving with is just very fast and i m unable to control it what do i do?

    • @hashincludeelectronics
      @hashincludeelectronics  6 หลายเดือนก่อน

      You can change motor speed in the code 👍🏻👏🏻

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

    Sir, when I turn on the switch my motors are always running in forward direction even when I bring one sensor on black path at low speed

    • @OCBROW_
      @OCBROW_ 21 วันที่ผ่านมา

      I thought I'm the only one

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

    hi, in what program you made arduino scheme? thank you

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

    Thanks for you're great video!
    it was very clear. i followed all steps and everything worked except motor? how can i fix it?

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

      Please make sure you use only rechargeable battery . This solves lot of issues 👍🏻

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

    Can we simply use 3.7 *2 batteries
    Like used in rc car
    I am trying to make a train using this

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

    hello sir, thanks for sharing your project
    i would like to ask if this works with arduino uno r3

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

      Thanks for checking out the video 👍🏻 yes I used the same module

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

      @@hashincludeelectronics thank you!!!

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

    hey can you suggest a frequency for 11.8v lipo battery pls

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

      Is it running too fast ? Then please slow down the speed in the code . Check MAX_MOTOR_SPEED . 👍🏻👏🏻

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

      @@hashincludeelectronics thanks

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

      @@MrBizarre6000 no problem 👍🏻👏🏻

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

    Bro, how did you say that when the two IR sensors read low the black line is not detected. Notice that the IR sensor reads 0 when it detects blackline because black absorbs the ray from the transmitter, and it reads 1 when the black line is not detected because the infrared ray from the transmitter is reflected on the receiver. So, can you kindly explain to me why did you that if it reads low then the black line is not detected? because I am confused with that and I do not know if I am wrong or not. Thanks in advance.

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

      Sure . The sensors digital output is LOW when it does not detect black line . Sensors digital output is HIGH when it detects black line. Hope it’s clear now. About the light or ray absorption you are right . But I am talking about digital output from sensor which goes LOW or HIGH.

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

    The Indian link for Arduino uno is not available rn, Can u please provide the link which is compatible with this model?

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

    In my project...wheels are not taking left or reoght turn...its just going in forward direction

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

      Please check video again for any missing step . Also use only rechargeable battery 👍🏻👏🏻

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

    Please help me out I can understand which jumper wires are required. Can you tell there name.please

  • @Leesamba
    @Leesamba 24 วันที่ผ่านมา +1

    Thank you Sir

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

    heyy which board we want to select??

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

    excellent video, you know if it would work the same if I put a 9v battery directly to the power plug

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

    Amazing video dear and good explanation. I followed each and every step as you explained and also used rechargeable battery motors are not working sensors are ok. Please guide

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

      Please check for any loose connection. Also calibrate the IR sensor 👍🏻👏🏻