To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 1830
1829  |  1831
Subject: 
Re: Help me convert this train program to use events (NQC)
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Mon, 28 Nov 2005 12:48:11 GMT
Viewed: 
5720 times
  
In lugnet.robotics, Jordan Bradford wrote:
   For Christmas I’m setting up a LEGO train on top of a narrow wall, so it has to operate like a shuttle -- stop at each end and reverse motor direction. My first attempt had a train regulator attached to a polarity switch, with the switch being turned by a stepper motor I rigged up controlled by an RCX. When the train reached a “station” it would hit a touch sensor and the RCX would pulse the stepper motor, reversing the track polarity. This version works as a prototype, but I don’t have enough cords to reach the touch sensors I would have put at each “station” in the full layout.

So now I’m going to power the train motor directly from an RCX that rides along as one of the cars. I’ll use light sensors on each end of the train to look for white tiles placed between the track rails at each “station.”

If the rcx is on the train why not mount touch sensors on the underside looking down. You could then attach small ramps to the track which would trigger the sensor. If you put the sensors on a spring loaded mounting you shouldn’t have problems with the ramp potentially lifting the wagon as well as triggering the sensor.

Steve



Message has 1 Reply:
  Re: Help me convert this train program to use events (NQC)
 
(...) That was basically my plan if I couldn't get the light sensors to work reliably. Based on Brian's post I might go back to my original design, though. (19 years ago, 28-Nov-05, to lugnet.robotics.rcx.nqc, FTX)

Message is in Reply To:
  Help me convert this train program to use events (NQC)
 
For Christmas I'm setting up a LEGO train on top of a narrow wall, so it has to operate like a shuttle -- stop at each end and reverse motor direction. My first attempt had a train regulator attached to a polarity switch, with the switch being (...) (19 years ago, 28-Nov-05, to lugnet.robotics, lugnet.robotics.rcx, lugnet.robotics.rcx.nqc, lugnet.trains, FTX)

16 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