Using RCX light sensor with NXT

Discussion specific to the intelligent brick, sensors, motors, and more.
dsjove
Posts: 56
Joined: 22 Jan 2011, 23:22

Re: Using RCX light sensor with NXT

Post by dsjove »

I'll spend the time tonight to do a more thorough investigation.
The environment has inconsistent lighting. The light sensor is used to detect a passing train. What code and/or bricks do you recommend when using an RCX light sensor in such an open environment?
h-g-t
Posts: 552
Joined: 07 Jan 2011, 08:59
Location: Albania

Re: Using RCX light sensor with NXT

Post by h-g-t »

Have you seen this device using fibre optic cables to take the light output from the led and shine it back towards the detector?

http://www.philohome.com/lightbarrier/lightbarrier.htm

I suppose you could use two cables, one to duct the light from the led and the other to funnel it back to the detector.

Or even this one which I just found :-

http://www.ben.com/LEGO/rcx/train-sensor.html
A sophistical rhetorician, inebriated with the exuberance of his own verbosity, and gifted with an egotistical imagination that can at all times command an interminable and inconsistent series of arguments to malign an opponent and to glorify himself.
dsjove
Posts: 56
Joined: 22 Jan 2011, 23:22

Re: Using RCX light sensor with NXT

Post by dsjove »

It is a low-light problem. As soon as I turn off most ambient lights, the sensor doesn't read well. Thoughts?
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: Using RCX light sensor with NXT

Post by mightor »

dsjove wrote:It is a low-light problem. As soon as I turn off most ambient lights, the sensor doesn't read well. Thoughts?
I have one! Don't turn off the ambient lights.

"Doctor, it hurts when I press here."
"Well, stop pressing on it then."

If this is a sensor without a light of its own then you need the ambient light to make it work. If the little light isn't strong enough to bounce off the object you wish to detect (or not close enough), move it closer. If you can't, then you're out of luck or use another sensor.

- Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
dsjove
Posts: 56
Joined: 22 Jan 2011, 23:22

Re: Using RCX light sensor with NXT

Post by dsjove »

mightor wrote:I have one! Don't turn off the ambient lights.
I saw that one coming :D

I have two. They are studded, small, and have easily extended cables. I'll leave the ambient lights on. And in the mean time, I'll move it closer to the track.

Thank you.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest