To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 24446
24445  |  24447
Subject: 
Re: Light Sensors in parrallel
Newsgroups: 
lugnet.robotics
Date: 
Fri, 7 Oct 2005 20:49:42 GMT
Viewed: 
1426 times
  
On Fri, October 7, 2005 2:57 pm, ludo soete wrote:
We will have a train track with a metro on it, always running in the same
direction. We have 2 stations, one on the surface and the other one
'underground'.
I builded me a printed cirquit board with almost the same electronic as in the
train speed regulator, BUT, have the capability tho adjust the speed with a BCD
coded input (need to be tested!). This input is controlled by the 3 motor
outputs from a RCX. I would like to use 2 light sensors per station. When the
first one is activated, the train starts to slow down. When the second one is
activated, the train stops in the station. So this means that i need 4 inputs on
my RCX, But there are only 3 inputs. My idea is to place 2 light sensors in
parrallel, the one's that detect the train in the station.
Is this possible?
If not, any other idea to solve the problem?

I've seen people connect two light sensors to a single port, but it's difficult to
tell which sensor is triggered.  This may be even more of a problem when you can't
control the light in the area you're using it.

Another suggestion would be to use touch sensors, because those CAN be connected to
the same port.

For the Great Ball Contraption, we had a train that had a special thing mounted on
the side/bottom of each car that contacted a touch sensor when the train went by.
You can see the blue 2x2 cylinder on this page:
http://www.teamhassenplug.org/GBC/Train/

Given that the train is always running the same direction, you could put the two
"train-approaching-station" sensors on the same port, and the two "train-at-station"
sensors on the same port.  The RCX will not know which station the train is at, but
it doesn't need to know that.

Actually, if you really want to use light sensors, you could connect them the same
way as the touch sensors.  (both approaching-station sensors together)  *I* wouldn't
do it that way, because I don't think the RCX will power them correctly, but I doubt
you'll damage them.

Steve



Message has 1 Reply:
  Re: Light Sensors in parrallel
 
(...) If you use separate ones for the "outer markers" and double up the "inner markers" you might be able to use logic to trigger the right train to stop. The first train to trigger their outer marker should be the first train to be stopped when an (...) (19 years ago, 7-Oct-05, to lugnet.robotics)

Message is in Reply To:
  Light Sensors in parrallel
 
Hi, I do have a question for the upcomming LW2005 (Holland). We will have a train track with a metro on it, always running in the same direction. We have 2 stations, one on the surface and the other one 'underground'. I builded me a printed cirquit (...) (19 years ago, 7-Oct-05, to lugnet.robotics)

4 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR