Components and supplies
Arduino UNO
DC Motor, 12 V
Dual H-Bridge motor drivers L298
Battery Holder, 18650 x 2
Tools and machines
Soldering iron (generic)
Plier, Cutting
Mastech MS8217 Autorange Digital Multimeter
Multitool, Screwdriver
Drill / Driver, Cordless
Project description
Code
Arduino Sketch
arduino
Arduino Sketch
arduino
Downloadable files
Schematic
Schematic
Comments
Only logged in users can leave comments
edwinjbg
10 months ago
could be it configured to use different line colors?
mie_lle
a year ago
Hi, just want to ask how to code for hard left and right using if conditionals in line tracing
Anonymous user
2 years ago
thanks bro its working
jaxondlee
2 years ago
It doesn't need two sensors. You could accomplish the same functionality with only 1.
lightthedreams
2 years ago
hmm... i don't know about this. thanks for your information. will search later
Anonymous user
2 years ago
What if i use 9 V battery ?
lightthedreams
2 years ago
it is possible but must double-check on the dc motor used. because in this project I just use small power dc motor. to just make sure there will no overvoltage and causing burning parts.
Anonymous user
2 years ago
Hi there, thanks for the tutorial. I have a question: What do these lines do? Thanks. I understand the rest of the code, just not these lines. int svr=0; int svl=0; int enr=3; int enl=5;
lightthedreams
2 years ago
int svr=0; // right sensor value int svl=0; // left sensor value int enr=3; // enable right motor (must connected to the PWM pin of the Arduino) int enl=5; // enable left motor (must connected to the PWM pin of the Arduino)
Anonymous user
2 years ago
Hi, I'm Eddie... I followed your steps and circuit but it still doesn't work... It's showing sign of detecting the line it's suppose to follow but it doesn't follow it, it just keeps spinning...
Anonymous user
2 years ago
Hi, I am trying to create the same project. I am using same parts, but my robot doesn't go straight even when the line is straight. It sometimes drift to right sometimes to the left and sometimes no drift at all. Any idea why is this happening?
Anonymous user
2 years ago
What’s about if we use 8 sensor set? The coding needs to change or not.
Anonymous user
2 years ago
its genius! if you wanted to you can make it so it at a certain time it will come to you and give you whatever if you build a holder
Anonymous user
3 years ago
Hi, I am trying to create the same project. I am using same parts, but my robot doesn't go straight even when the line is straight. It sometimes drift to right sometimes to the left and sometimes no drift at all. Any idea why is this happening?
thipriest
3 years ago
Hi, I'm Eddie... I followed your steps and circuit but it still doesn't work... It's showing sign of detecting the line it's suppose to follow but it doesn't follow it, it just keeps spinning...
Anonymous user
4 years ago
thanks bro its working
Anonymous user
4 years ago
What’s about if we use 8 sensor set? The coding needs to change or not.
Anonymous user
4 years ago
What if i use 9 V battery ?
lightthedreams
2 years ago
it is possible but must double-check on the dc motor used. because in this project I just use small power dc motor. to just make sure there will no overvoltage and causing burning parts.
Anonymous user
4 years ago
its genius! if you wanted to you can make it so it at a certain time it will come to you and give you whatever if you build a holder
Anonymous user
4 years ago
You could have used some IR sensors. void loop() { drive(); } void drive(void){ bool sensor_right = digitalRead(SENSOR_R_D0); bool sensor_left = digitalRead(SENSOR_L_D0); if (!sensor_right && !sensor_left) goForward(); else if (sensor_right) goRight(); else goLeft(); }
lightthedreams
2 years ago
Thank you
Anonymous user
4 years ago
Hi there, thanks for the tutorial. I have a question: What do these lines do? Thanks. I understand the rest of the code, just not these lines. int svr=0; int svl=0; int enr=3; int enl=5;
lightthedreams
2 years ago
int svr=0; // right sensor value int svl=0; // left sensor value int enr=3; // enable right motor (must connected to the PWM pin of the Arduino) int enl=5; // enable left motor (must connected to the PWM pin of the Arduino)
jaxondlee
4 years ago
It doesn't need two sensors. You could accomplish the same functionality with only 1.
lightthedreams
2 years ago
hmm... i don't know about this. thanks for your information. will search later
Line Following Robot | Arduino Project Hub
bob-easyeda
a month ago
Hi, your project is incredible! We’re offering up to $5000 in coupons for fabrication costs via OSHWLab Stars: https://oshwlab.com/activities/spark2023. Plus, we have cool programs to win PCB coupons, like Campus Ambassadors, Video Creators, and Collaboration Sponsorships. Interested in joining? Let’s chat!