Speed Line Follower Robot V4 (On Track)

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024
  • 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.electronic...
    / 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:
    RUclips: cutt.ly/ZhPSGJ9
    Facebook: cutt.ly/ChPSJdC
    Instagram: cutt.ly/QhPSKoq
  • НаукаНаука

Комментарии • 64

  • @thabassumnaseer8454
    @thabassumnaseer8454 Год назад +1

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

  • @MakingRoboticsColombia
    @MakingRoboticsColombia 3 года назад +3

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

    • @DrakerDG
      @DrakerDG  3 года назад +1

      Muy agradecido, saludos desde Guatemala 🇬🇹 😀 ✌🏼

  • @rogerswilches3218
    @rogerswilches3218 8 месяцев назад +2

    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  8 месяцев назад +1

      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

  • @NaveenkumarTRNavee
    @NaveenkumarTRNavee 10 месяцев назад

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

  • @ahjummad8406
    @ahjummad8406 2 года назад +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

  • @ryd_robotics
    @ryd_robotics Год назад +1

    Nice

  • @akshathkumar4960
    @akshathkumar4960 Год назад +2

    Can use 5 channel IR sensor for this

    • @DrakerDG
      @DrakerDG  Год назад

      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.

  • @nghiale1786
    @nghiale1786 2 года назад +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
    @helptechandengineeringibms4378 2 года назад +1

    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  2 года назад

      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

  • @shankargouda2534
    @shankargouda2534 Год назад

    It is available for purchase

  • @shettyadithcreations1799
    @shettyadithcreations1799 Год назад +1

    Will it work with black background and white line

    • @DrakerDG
      @DrakerDG  Год назад

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

  • @steverogars1004
    @steverogars1004 2 года назад

    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

  • @shettyadithcreations1799
    @shettyadithcreations1799 Год назад +1

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

    • @DrakerDG
      @DrakerDG  Год назад

      Reading the sensor thru the analog inputs of Arduino Nano

  • @MikeMcRoberts
    @MikeMcRoberts 3 года назад +1

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

    • @DrakerDG
      @DrakerDG  3 года назад

      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.

  • @robototexnika_dasturlash_IT
    @robototexnika_dasturlash_IT Год назад

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

  • @durgeshnunna137
    @durgeshnunna137 2 года назад +1

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

    • @DrakerDG
      @DrakerDG  2 года назад

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

  • @azahub
    @azahub 2 года назад

    Please can you show us a code of this project?

  • @gauravlamsal5673
    @gauravlamsal5673 2 года назад +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  2 года назад +1

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

    • @gauravlamsal5673
      @gauravlamsal5673 2 года назад

      @@DrakerDG improved version ?

    • @DrakerDG
      @DrakerDG  2 года назад +1

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

    • @gauravlamsal5673
      @gauravlamsal5673 2 года назад

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

    • @DrakerDG
      @DrakerDG  2 года назад +1

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

  • @shettyadithcreations1799
    @shettyadithcreations1799 Год назад

    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  Год назад

      It is for black line and white background

  • @jayaprakash9657
    @jayaprakash9657 Год назад +1

    Length and width of the board?

  • @MikeMcRoberts
    @MikeMcRoberts 3 года назад

    What is the functional purpose of the blue LEDs?

    • @DrakerDG
      @DrakerDG  3 года назад +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

  • @mohamedmansour4266
    @mohamedmansour4266 3 года назад

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

    • @DrakerDG
      @DrakerDG  3 года назад +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 Год назад

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

    • @DrakerDG
      @DrakerDG  Год назад

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

  • @shettyadithcreations1799
    @shettyadithcreations1799 Год назад

    Sir what is the component connected to power pins

    • @DrakerDG
      @DrakerDG  Год назад

      It is a bridge connection

  • @shettyadithcreations1799
    @shettyadithcreations1799 Год назад

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

    • @DrakerDG
      @DrakerDG  Год назад

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

  • @pallabsarkar2002
    @pallabsarkar2002 2 года назад

    How long will the Calibration take ?

    • @DrakerDG
      @DrakerDG  2 года назад

      10 seconds, only

  • @theinvisiblecameraman1711
    @theinvisiblecameraman1711 9 месяцев назад

    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_ 5 месяцев назад

      arduino nano,

    • @rathighosh
      @rathighosh 4 месяца назад

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

  • @shettyadithcreations1799
    @shettyadithcreations1799 Год назад

    How is the track of yours made

    • @DrakerDG
      @DrakerDG  Год назад

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

  • @shardul8125
    @shardul8125 3 года назад

    How did you make your track?

    • @DrakerDG
      @DrakerDG  3 года назад

      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

  • @motazmsaddak5242
    @motazmsaddak5242 3 года назад +1

    How much the motor rpm?

    • @DrakerDG
      @DrakerDG  3 года назад +1

      Is a N20 Mini DC 6V Gear Motor 600 RPM

    • @motazmsaddak5242
      @motazmsaddak5242 3 года назад +1

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

    • @DrakerDG
      @DrakerDG  3 года назад

      Ok, 😁👍🏼

    • @nghiale1786
      @nghiale1786 2 года назад

      @@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?

  • @manhhoang4279
    @manhhoang4279 3 года назад

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

    • @DrakerDG
      @DrakerDG  3 года назад

      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.

  • @manmangy
    @manmangy 2 года назад

    What F Music