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 - Наука
Hi great project probably the best one I've seen after scrolling a lot
Muy bonito el robot, se ve que le dedicaste un buen tiempo para construirlo, saludos desde Colombia. 👍
Muy agradecido, saludos desde Guatemala 🇬🇹 😀 ✌🏼
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
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
Its just amazing i have ever seen
Great
can we buy this plzzz
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
Nice
Can use 5 channel IR sensor for this
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.
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
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.
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
It is available for purchase
Will it work with black background and white line
Yes it is possible that it works with a white line on a black background, but it is necessary to modify the code
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
How did you get the values of CNY70 sensor on terminal board?
Reading the sensor thru the analog inputs of Arduino Nano
Shame your code has ZERO comments. It is incredibly difficult to decipher.
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.
Hello can you help me with 5 line sensor line treccer code Thanks in advance
One doubt can we try and persue a career with knowledge of webots and ROS.
Are u presently persuing robotics anywhere?
For me it is a hobby, but I like the robotics a lot
Please can you show us a code of this project?
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 ?
Hi! I used 8 sensors. I used PID but I work in an improved version. The motor speed is 600 RPM
@@DrakerDG improved version ?
Improved version of code, using millis() to calculate timestep and use it to calculate I and D error correctly
What do you think is most important for your bot to be this fast and accurate?
@@gauravlamsal5673 for me, It is to obtain the balance of both to obtain maximum efficiency of the robot
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.
It is for black line and white background
Length and width of the board?
Hi! 160 x 100 mm
@@DrakerDG thanks brother...
What is the functional purpose of the blue LEDs?
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
What is the difference between it and the ir sensor ..which is better in the line follower
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
Can u give me the details of components that u had used in this one
Hello! In the video description, you can find some links about of that you need.
Sir what is the component connected to power pins
It is a bridge connection
Also in your version 5 code my car is not callibrating any solution sir?
To calibrate the sensor, you need move the robot thru the line and background when the LEDs are blinking
How long will the Calibration take ?
10 seconds, only
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
arduino nano,
@@MumetBoy_why you don't use uno r3?
How is the track of yours made
It's a kind of letter H, but I recommend one in the shape of infinity
How did you make your track?
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
How much the motor rpm?
Is a N20 Mini DC 6V Gear Motor 600 RPM
@@DrakerDG now try to use 3300rpm n20 motor and change the code you'll see more difference of speed. Good Luck
Ok, 😁👍🏼
@@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?
Please help me explain the code in the MoCTRL function !!! Thank you very much !!
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.
What F Music