In the HO world of 2 rail DC they use back EMF controllers to get what you want. For all I know the various proprietary boards sold by various train electronics companies may use a similar technique. I've always assumed those EOB circuits worked like that. At least that gives you a starting point, I hope its of some use.
Failing that though, perhaps some kind of detection device that automatically reduces track power when it detects a train on the descent?
You don't make it clear whether the "same grade" is also the same track. If the train is on separate tracks going up and down, your situation is very similar to the one in this recent topic:
http://www.trains.com/trccs/forums/951554/ShowPost.aspx
If there is only one track, you will indeed need something like relays to do the job. For example, you could have a relay or relay pair that is latched by a control rail in the middle of the mountain loop and released by a control rail somewhere on the loop at the bottom. There are a couple of ways to make such a latch:
Using two relays, connect one end of the coil of each relay to a supply, AC or DC and of the correct voltage for the relays that you use, returned to the outside rails. Connect the other end of each coil to one of the control rails. For the relay connected to the control rail at the top of the mountain, provide a normally-open contact from the control rail to ground, so that the relay will remain operated--latched--once the train operates it. Then connect a normally-closed contact on the other relay in series with the coil of the first relay, so that the second relay will release the first one.
Now arrange the other contacts of the first relay to adjust the voltage on the grade. For example, you could use two rheostats as in the other topic. One rheostat would be in series with the center rail of the loops at the top and bottom and adjusted for a reasonable speed on level track. The other rheostat would be in series with the center rail on the grade and adjusted to slow down a descending train. However, it would be shunted by a normally-closed contact on the first relay, to boost the voltage for climbing the grade.
Another way to do it, using a single relay, is to put a lamp in series with the first relay described above, with the lamp between the relay coil and the power supply. Instead of a second relay to release the first one, simply connect the point between the relay coil and the power supply to the lower control rail. When the train grounds that rail, it turns the lamp fully on and removes all voltage from the relay coil, which of course then releases. It may be a little tricky to get a suitable lamp coordinated with the relay coil's operating voltage and current and with the power supply; but it saves a relay.
Bob Nelson
Here's your answer with a diagram, its what Bob suggested
http://www.delaware-valley-hi-railers.com/tips/tips_trolley_hill.html
What Thor suggested is generally called a "latching relay". "Snap relay" is Atlas's trade name for a latching relay. It will do the job just as well as the conventional relays I proposed.
However, for the reasons given in the topic I directed you to, I recommend that you not use the 3-transformer method of altering the voltages. Connecting the transformers in phase as that description recommends will reduce but not eliminate the hazard (unless all three are set to the same voltage--which of course then makes the circuit useless).
For that scheme and for any other using control rails, it is not necessary that the relay supply voltage be in phase with the track voltage (although it is harmless if it is). In fact, one may be DC and the other AC if that is convenient.
I couldn't find specific information on how to use the "two-relay controller" for direction sensing, just the claim that it could do it, which is plausible. It looks like a bit of an overkill; and I wouldn't want to depend on a computer ("A small microprocessor is used...") to do something simple like that. But, if you don't mind, go for it.
Dale, that's a good idea to switch the voltage for the entire track while the train is on the grade; but it only really helps with multiple-transformer option, by eliminating the need to run between blocks set to different voltages. Using the diode option that you propose, he should be able to get away with the original two relays, since shunting diode pairs is no more dangerous than shunting rheostats.
(It doesn't really matter, but I'll say it again, that it's not necessary to have the relay-supply voltage in phase with the track voltage.)
I use a variable resistor tied into an insulated section for the downhill slowdown track.I use one made for a trailer brake on a car or truck.I wired in a switch to either use the circuit or not.That way I can run speed control engines or regular types.
Ed
Our community is FREE to join. To participate you must either login or register for an account.
Get the Classic Toy Trains newsletter delivered to your inbox twice a month