Speed Line Follower Robot V4 (On Track)

Sdílet
Vložit
  • čas přidán 15. 10. 2020
  • Finally and with a lot of effort I already have the fully built prototype, I show below how to load the code (Code Load Mode), how you can test the sensors and of course the tests on the track. Very happy with the operation, the test code manages to control the code very well. I have used a PID (Full) algorithm to smooth the corrections and regain the course of the line. Since everything can be improved, I will continue to play with the code to achieve a more efficient version.
    $2 for 10pcs PCBs & $5 for a SMT Stencil at jlcpcb.com
    Parts Sponsor: Electrónica DIY
    www.electronicadiy.com
    / electronicadiygt
    Paperbotz: cutt.ly/7E9yxJa
    Project Hub: cutt.ly/LgcChMb
    Hackster.io: cutt.ly/CgcCUBv
    GitHub: cutt.ly/zE9tz61
    • Gerber cutt.ly/GE9ytYt
    • Code: cutt.ly/2ghrBlf
    Play List: cutt.ly/Sghthwb
    Follow me:
    CZcams: cutt.ly/ZhPSGJ9
    Facebook: cutt.ly/ChPSJdC
    Instagram: cutt.ly/QhPSKoq
  • Věda a technologie

Komentáře • 64

  • @thabassumnaseer8454
    @thabassumnaseer8454 Před rokem +1

    Hi great project probably the best one I've seen after scrolling a lot

  • @ryd_robotics
    @ryd_robotics Před rokem +1

    Nice

  • @steverogars1004
    @steverogars1004 Před 2 lety

    Hello! What is KS (Sensor Factor) and OL (Over lap factor) how to measure them? I have a 5 array IR SENSOR. Can I run with that? Please help

  • @MakingRoboticsColombia
    @MakingRoboticsColombia Před 3 lety +3

    Muy bonito el robot, se ve que le dedicaste un buen tiempo para construirlo, saludos desde Colombia. 👍

    • @DrakerDG
      @DrakerDG  Před 3 lety +1

      Muy agradecido, saludos desde Guatemala 🇬🇹 😀 ✌🏼

  • @ahjummad8406
    @ahjummad8406 Před 2 lety +1

    Hi, how do I build this from scratch? I want to make a project with my 10 years old child. It will be exciting. Thank you

  • @nghiale1786
    @nghiale1786 Před rokem +1

    Hi sir!, Your project is very cool. And I'm learning from you to make a bot. But I only have 5 sensors, and my motor is 3000rpm. Do you have any advice to fix the program for me, if you can help, that would be great. Sorry for the disturbance

  • @helptechandengineeringibms4378

    Sir, can you clear me the functionlity of key1 and sw1. and for J1 the 2,3 pin is connected in pcb board? and we manually connected 1,2 with clip So we can short 1,2,3 pin of J1? and what about J2, J3 . Sorry for the disturbance.

    • @DrakerDG
      @DrakerDG  Před 2 lety

      KEY1: This is a push button (pin 13), I did used it to change the mode of the robot, calibration mode and line follower mode.
      SW1: This is a DIP switch (pin 9 and 12), at today I don't use it, but in the future maybe I will use it to change behabior, like line follower or maze solver, etc.
      J1: If you set in 2 and 3 pins (jumper), the robot is ON, 1 and 2 pins (jumper), the robot is OFF.
      J2 & J3: Setting the 1 and 2 pins (jumper), the robot is programing mode and block the voltage regulator, setting the 2 and 3 pins (jumper), the robot is line follower mode and using the energy from the voltage regulator (battery mode).
      Schematic: github.com/DrakerDG/Speed-Line-Follower-Robot/raw/master/Schematic_Speed%20Line%20Follower%20Robot%20V1_2020-09-08_19-00-47.pdf

  • @user-ei8jn7gs8d
    @user-ei8jn7gs8d Před 7 měsíci

    Its just amazing i have ever seen
    Great
    can we buy this plzzz

  • @gauravlamsal5673
    @gauravlamsal5673 Před 2 lety +1

    Hello sir, I've few questions
    How many IR sensors have you used ?
    Have you used PID in coding or not?
    What is the motor speed ?

    • @DrakerDG
      @DrakerDG  Před 2 lety +1

      Hi! I used 8 sensors. I used PID but I work in an improved version. The motor speed is 600 RPM

    • @gauravlamsal5673
      @gauravlamsal5673 Před 2 lety

      @@DrakerDG improved version ?

    • @DrakerDG
      @DrakerDG  Před 2 lety +1

      Improved version of code, using millis() to calculate timestep and use it to calculate I and D error correctly

    • @gauravlamsal5673
      @gauravlamsal5673 Před 2 lety

      What do you think is most important for your bot to be this fast and accurate?

    • @DrakerDG
      @DrakerDG  Před 2 lety +1

      @@gauravlamsal5673 for me, It is to obtain the balance of both to obtain maximum efficiency of the robot

  • @shankargouda2534
    @shankargouda2534 Před rokem

    It is available for purchase

  • @shettyadithcreations1799
    @shettyadithcreations1799 Před 11 měsíci

    Sir version 5 code is for which background? Looks like it is for black background and white line.please respond sir i have already done the project.

    • @DrakerDG
      @DrakerDG  Před 10 měsíci

      It is for black line and white background

  • @shettyadithcreations1799
    @shettyadithcreations1799 Před 11 měsíci

    How did you get the values of CNY70 sensor on terminal board?

    • @DrakerDG
      @DrakerDG  Před 10 měsíci

      Reading the sensor thru the analog inputs of Arduino Nano

  • @robototexnika_dasturlash_IT

    Hello can you help me with 5 line sensor line treccer code Thanks in advance

  • @akshathkumar4960
    @akshathkumar4960 Před rokem +2

    Can use 5 channel IR sensor for this

    • @DrakerDG
      @DrakerDG  Před rokem

      If you reduce the number of sensors, it is advisable that the reduction be in even numbers.
      The idea is to have 2 sensors detecting the line simultaneously.

  • @theinvisiblecameraman1711
    @theinvisiblecameraman1711 Před 6 měsíci

    Hello, i know I'm late in this video but may i ask what board you are using? I don't know if an arduino board will work, I'm new to coding so i don't know much

    • @MumetBoy_
      @MumetBoy_ Před 2 měsíci

      arduino nano,

    • @rathighosh
      @rathighosh Před měsícem

      ​@@MumetBoy_why you don't use uno r3?

  • @azahub
    @azahub Před rokem

    Please can you show us a code of this project?

  • @MikeMcRoberts
    @MikeMcRoberts Před 3 lety

    What is the functional purpose of the blue LEDs?

    • @DrakerDG
      @DrakerDG  Před 3 lety +1

      The two front blue LEDs are for decoration only. The two blue LEDs on the rear indicate the reading side of the sensor line, either left or right. When it detects the line to the center it turns on the green LED

  • @rogerswilches3218
    @rogerswilches3218 Před 5 měsíci +1

    hola, genial proyecto felicidades, mi pregunta es los conectores E-B y E- A que funcion cumplen, por que sus pines 1 van conectados al arduino, pero leo el codigo y no encuentro que hacen me gustaria saber y hallar mi solucion
    gracias

    • @DrakerDG
      @DrakerDG  Před 5 měsíci

      Son conexiones que se pueden utilizar como expansión para conectar algún dispositivo a futuro. En el código de ejemplo no están en uso. E-A y E-B conectan al pin digital 2 y 3 del Arduino Nano respectivamente

  • @mohamedmansour4266
    @mohamedmansour4266 Před 2 lety

    What is the difference between it and the ir sensor ..which is better in the line follower

    • @DrakerDG
      @DrakerDG  Před 2 lety +1

      Hello, I never have use an IT sensor in a line follower robot, only I have use an IR sensor, like a CNY70, this is cheaper and have daylight blocking filter, it is easier to use, but exist a lot of better like a arrays IR sensors, males to line followers robots

  • @sandeepsuthar1768
    @sandeepsuthar1768 Před rokem

    Can u give me the details of components that u had used in this one

    • @DrakerDG
      @DrakerDG  Před rokem

      Hello! In the video description, you can find some links about of that you need.

  • @shettyadithcreations1799
    @shettyadithcreations1799 Před 11 měsíci

    Sir what is the component connected to power pins

    • @DrakerDG
      @DrakerDG  Před 10 měsíci

      It is a bridge connection

  • @pallabsarkar2002
    @pallabsarkar2002 Před 2 lety

    How long will the Calibration take ?

  • @shettyadithcreations1799
    @shettyadithcreations1799 Před 11 měsíci

    Also in your version 5 code my car is not callibrating any solution sir?

    • @DrakerDG
      @DrakerDG  Před 10 měsíci

      To calibrate the sensor, you need move the robot thru the line and background when the LEDs are blinking

  • @shardul8125
    @shardul8125 Před 3 lety

    How did you make your track?

    • @DrakerDG
      @DrakerDG  Před 3 lety

      It's pretty simple, I just joined half circles and lines. Then I scaled them so that the width of the line was about 2 centimeters. Due to the size of the track, it was printed on several sheets and then I glued them all. I designed this track for a previous robot, in the following link to find the images of the template of this track: www.hackster.io/drakerdg/line-follower-robot-v4-4f1170

  • @shettyadithcreations1799
    @shettyadithcreations1799 Před 11 měsíci

    Will it work with black background and white line

    • @DrakerDG
      @DrakerDG  Před 11 měsíci

      Yes it is possible that it works with a white line on a black background, but it is necessary to modify the code

  • @MikeMcRoberts
    @MikeMcRoberts Před 3 lety +1

    Shame your code has ZERO comments. It is incredibly difficult to decipher.

    • @DrakerDG
      @DrakerDG  Před 3 lety

      The code is divided into functions that are called from void setup, CalSnX () reads the sensors and records their birth and minimum value to calibrate their reading. This improves measurement performance during line travel.
      In void loop, EstSnX () reads the sensors and processes the information to calculate the position of the line, in CalPID () the PID is calculated to correct the position and finally MoCTRL (OnRun), uses the PID value to estimate the speed and corresponding PWM value of each motor.
      The PosLED () function is only to indicate with the LEDs on the back, from which side or center it detects the line.

  • @shettyadithcreations1799
    @shettyadithcreations1799 Před 11 měsíci

    How is the track of yours made

    • @DrakerDG
      @DrakerDG  Před 10 měsíci

      It's a kind of letter H, but I recommend one in the shape of infinity

  • @jayaprakash9657
    @jayaprakash9657 Před rokem +1

    Length and width of the board?

  • @manhhoang4279
    @manhhoang4279 Před 3 lety

    Please help me explain the code in the MoCTRL function !!! Thank you very much !!

    • @DrakerDG
      @DrakerDG  Před 3 lety

      Reference: Hello, in this part of code the robot controlling the speed and direction of motors in two scenarios: if detect the line or not. In other words, if the sensors are detecting the line or not. If detLe is true, it detect the line.

  • @durgeshnunna137
    @durgeshnunna137 Před 2 lety +1

    One doubt can we try and persue a career with knowledge of webots and ROS.
    Are u presently persuing robotics anywhere?

    • @DrakerDG
      @DrakerDG  Před 2 lety

      For me it is a hobby, but I like the robotics a lot

  • @motazmsaddak5242
    @motazmsaddak5242 Před 3 lety +1

    How much the motor rpm?

    • @DrakerDG
      @DrakerDG  Před 3 lety +1

      Is a N20 Mini DC 6V Gear Motor 600 RPM

    • @motazmsaddak5242
      @motazmsaddak5242 Před 3 lety +1

      @@DrakerDG now try to use 3300rpm n20 motor and change the code you'll see more difference of speed. Good Luck

    • @DrakerDG
      @DrakerDG  Před 3 lety

      Ok, 😁👍🏼

    • @nghiale1786
      @nghiale1786 Před rokem

      @@motazmsaddak5242Hi sir! I saw you comment on replacing the 3300 rpm motor on. I replaced it in the bot and used only 5 sensors?. Can you show me how to re-program it?

  • @manmangy
    @manmangy Před rokem

    What F Music