Pages: [1]   Go Down
Author Topic: Line following Robot  (Read 2691 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, I was looking for an intermediate/beginner level project so I made a line following robot using a motor shield, Two DC motors and QTR-8A Reflectance Sensor Array. This is my first time using the Arduino uno or any other arduino. I just finished building the robot and now i need help  programming the robot, but the problem is I don't now how to, so does have I sample of code I could us as a guild line or any code I can use on my Robot that works so I can under stand it. ( I have installed the libraries needed for the sensors ( QTR-8A Reflectance Sensor) and the motors (AF motor)). I got All the wires hooked up for the sensor, and my DC motors are hooked up to the motor shield ( in pin M2 and M4). This project is a school project and it due within a week so any help will be appreciated  Thank you.     
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Hi, I was looking for an intermediate/beginner level project so I made a line following robot using a motor shield, Two DC motors and QTR-8A Reflectance Sensor Array. This is my first time using the Arduino uno or any other arduino. I just finished building the robot and now i need help  programming the robot, but the problem is I don't now how to, so does have I sample of code I could us as a guild line or any code I can use on my Robot that works so I can under stand it. ( I have installed the libraries needed for the sensors ( QTR-8A Reflectance Sensor) and the motors (AF motor)). I got All the wires hooked up for the sensor, and my DC motors are hooked up to the motor shield ( in pin M2 and M4). This project is a school project and it due within a week so any help will be appreciated  Thank you.
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 238
Posts: 24364
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I saw these two very similar posts, and to save anyone wasting their time, I merged them.

Try reading here
« Last Edit: May 26, 2012, 01:43:06 pm by AWOL » Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you for informing me about that, but is there any way you can help me with my project ?
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 238
Posts: 24364
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'd probably start with a simple sketch to read and print the values of the individual line sensors.
Ignore the motors to begin with.
Shield and shade different  sensors, and ensure that you see the results you expect.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Ontario, Ohio
Offline Offline
Full Member
***
Karma: 1
Posts: 205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

To finish this project in a week is pretty optimistic for someone with no Arduino experience. It might be time to ask your teacher/professor or a classmate for help. Do you have any experience with any other microcontroller/programming language? Maybe it's best to try it with something with which you have experience. Hopefully you do have some programming experience and you'll be able to google around to find some line follower example code. Certainly, there is enough around. You can mix, match, and adapt those examples to your project.
http://lmgtfy.com/?q=line+following+robot+arduino+code
You may not get all the help you think you need on forums when you say you're working on a school project due in a week. It implies that you have procrastinated and wish someone to write the code for you.

« Last Edit: May 28, 2012, 07:25:08 pm by TeslaIaint » Logged

Ontario, Ohio
Offline Offline
Full Member
***
Karma: 1
Posts: 205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This could be your best bet:
http://arduino.cc/forum/index.php?action=search2
Logged

Pages: [1]   Go Up
Jump to: