Line Follow with fault tolerance

Post your NXJ projects, project ideas, etc here!

Moderators: roger, imaqine, 99jonathan

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

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:

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

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

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

Juan Antonio Breña Moral

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

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

Posts: 380
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.

Return to “NXJ Projects”

Who is online

Users browsing this forum: Jan-Jaap and 3 guests