Line Follow with fault tolerance

Post your NXJ projects, project ideas, etc here!

Moderators: roger, imaqine, 99jonathan

douglas_sm
Novice
Posts: 29
Joined: Fri Aug 22, 2008 7:45 pm
Contact:

Line Follow with fault tolerance

Postby douglas_sm » Mon Apr 27, 2009 7:11 pm

First, sorry for the bad english.


I'm doing a project for graduation.
A Line Follow robot with fault tolerance.

For that I am using two physical LightSensors inside a class named "VirtualLightSensor".
The program only communicates with the virtual sensor.
The virtual sensor is responsible for identify and address the faults.
If both sensors are operating, then returned is the average reading of two.

Look here:

http://www.youtube.com/watch?v=m99oKAnIVAs

User avatar
esmetaman
Advanced Member
Posts: 311
Joined: Wed Sep 13, 2006 12:16 am
Location: Madrid, Spain
Contact:

Postby esmetaman » Wed Apr 29, 2009 9:28 pm

Nice idea to use 2 light sensors to improve the logic.

Cheers
Juan Antonio Breña Moral
http://www.juanantonio.info/lejos-ebook/
https://github.com/jabrena/livingrobots
http://www.iloveneutrinos.com/

douglas_sm
Novice
Posts: 29
Joined: Fri Aug 22, 2008 7:45 pm
Contact:

Postby douglas_sm » Sun Jun 07, 2009 7:48 pm


roger
Moderator
Posts: 372
Joined: Fri Jun 01, 2007 4:31 am
Location: Berkeley, CA

Postby roger » Mon Jun 22, 2009 6:26 pm

Hi Douglas,
With 2 light sensors, have you considered mounting them side by side.? Then you could use the two sensor readings to calculate an estimated distance from the center of the line and use this as input to the pilot.steer() for proportional control. It might give smoother tracking.
Roger


Return to “NXJ Projects”

Who is online

Users browsing this forum: No registered users and 0 guests