# How to Build an Auto-Reverse HO Trolley Circuit

Updated on February 6, 2018

## Introduction

I though it would be really cool to have a trolley go through the center of town in my HO scale train layout. I wanted the trolley to head through the center of town, and when it reaches either end of the line it would pause and reverse, but I didn't know how to accomplish this.

## The problem

How am I going to control the movement of the trolley so that it stops in the center of town for a period of time, then continues to the end of the line, pauses and goes back in the opposite direction? Also, how can I determine the position of the trolley on the track?

At first I thought about employing a circuit that uses a PIC Microcontroller to perform the logic needed, but then I settled for a simple transistor circuit to do the job.

## Determining the position of the trolley on the track

I came up with the idea of using reed switches and magnets to determine the location of the trolley on the track. The reed switch was attached to the rail at either end of the trolley line and one in the center. A magnet at the bottom of the trolley caused the reed switch to close when it was directly over the reed switch.

Here is a picture of the magnet on the bottom of the trolley that activates the reed switch. I removed the magnets from Playskool Alphabet letters, then glued them to the base of the trolley.

## Trolley auto-reverse circuit design

The circuit consists of two PNP transistors that make up a bistable circuit. The bistable circuit changes state when the reed switches attached to either end of the track are activated with the magnet on the trolley closing the circuit. One transistor of the bistable circuit is attached to a driver transistor. This activates a relay that changes the direction of the trolley by changing polarity of the voltage on the track.

There is also another circuit consisting of a 555 timer integrated circuit that pauses the trolley each time it changes direction and when it is in the center of town. The 555 timer integrated circuit connects to a second relay that disrupts power to the track and causes the trolley to stop. The 555 timer integrated circuit is activated when the bistable circuit changes state during an auto-reverse, or when the reed switch in the center portion of the trolley track is activated.

The auto-reverse trolley circuit is powered by the AC terminals on the model railroad power supply. A bridge rectifier circuit and capacitor rectify and filter the AC to a relatively steady DC current. Then a 7805 regulator regulates the voltage to a steady 5 volts. The DC terminals on the model railroad power supply provide power to the trolley through the track, and the polarity of the track voltage is switched by the relay of the auto-reverse circuit.

Here is a schematic of my trolley auto-reverse circuit. I used LEDs (Light Emitting Diodes) in this circuit to indicate the state of the bistable circuit. Caution: Build this circuit at your own risk! I am not responsible if you burn out your model train power pack, motor in your trolley, or damage to you or your track. You should have a basic knowledge of electronics and electricity before building the auto-reverse HO trolley circuit.

## Bread boarding the auto-reverse HO trolley circuit

I built the power supply for the auto-reverse HO trolley circuit on a separate solderable perfboard. No need to breadboard this part of the circuit as the design was straight forward. I bread boarded the rest of the auto-reverse HO trolley circuit so that I could make changes to the circuit on the fly if needed. I always recommend bread boarding an untested circuit design first before committing it to solderable perfboard.

## Testing the circuit

Next I setup up a test track next to my workbench so that I could test the auto-reverse HO trolley circuit. This made it easy for me to make changes on the fly without affecting my HO scale layout.

## Preparing the trolley track to be added to my HO scale layout

Testing is complete, my auto-reverse HO trolley circuit works like a charm. Now it is time to add it to my HO scale layout. The first thing I did was add the reed switches to both ends and to the center of the section of trolley track. I recommend that you install the reed switches to the track before installing it on your layout so you don't get hot glue and solder on your layout.

I then soldered the track sections together so they wouldn't work loose during operation.

Be careful that you do not get solder on the top or inside section of the rail as solder in these areas could derail your trolley.

I used several 2x4 pieces of wood to elevate to the trolley track to make it easier to assemble.

I routed the wires attached to the reed switches along the side of the rail. I used very thin black wire picked up at the hobby store to attach to the reed switches. I could use very thin wire for the reed switches because these wires will carry a very small electric current, less than 1 milliamp.

## Mounting the trolley track to my HO layout

I routed the trolley track right through the center of my layout with all of the wires exiting on the right hand side of the track.

I drilled holes through the plastic ballast section of the railroad tracks so that I could route the wiring through these holes leaving the ballast flush with the table. I need to keep my HO layout easy to disassemble in case I need to move it.

## Mounting the trolley auto-reverse electronics in the control console

The model train power supply, auto-reverse circuit and power supply perf boards are mounted in the control console of my HO layout. Make sure you mount the model train power supply so that you can easily adjust the speed of the trolley.

## Running the trolley

The trolley is now ready for operation! It will pause in the center of town then move to the end of the track and pause then return in the opposite direction, pause in the center of town again then travel to the end of track in the other direction pause again and reverse.

## Video of auto-reverse trolley in action!

Here is a video of my trolley in action on my HO layout.

## What if I want the trolley to make more than one stop?

Simply add more reed switches connected in parallel to reed switch SW2. Place the added reed switches at the desired location on trolley track.

## Conclusion

With some basic electronic knowledge and wiring skills, you too can have a working trolley system in your HO layout.

5

41

2

9

26

## Guestbook

0 of 8192 characters used
• Old Biker

3 weeks ago

Hello,

Can you please send me a larger, more legible circuit diagram for the "Auto Reverse" circuit.

rocketboy777@gmail.com

• buzzzzz

4 months ago

Great idea. Looking to build a trolley layout. Do you know if anyone did the same thing using an Arduino?

9 months ago

I'm in the same boat as steveg808. I too would like a readable copy of the circuit and parts list. My old eyes just can't clear up the fuzziness even with a magnifier. Thanks.

• steveg808@yahoo.com

9 months ago

Hello! does anyone have a good copy of this circuit and parts list!? just what im looking for! thanks in advance

• Jim S

19 months ago

I'm interested in putting a trolley on my layout. I like the circuit you designed. Could you send me a jpg or pdf copy of the circuit?

Thanks

jasvolunteer@yahoo.com

• k9ikx

3 years ago

I too could use a clear copy of the schematic. Thanks.

• graydon

4 years ago

i would like to build this circuit for my layout. could you send me a clear schematic. thanks.

• graydon

4 years ago

i really like your circuit. could you send me a schematic . my e-mail is graydon.hume@outlook.com. thanks.

• AUTHOR

jbdkz

6 years ago from Cleveland

• nearboston

6 years ago

This looks great and I'd really like to build one, but I can't read the schematic

• anonymous

7 years ago

Your circuit would be OK if it was 1975. Nobody would use all those discrete components today. Your first suggestion to use a PIC would be much easier and use the same ideas. Of course you would need a PIC programmer and a PC. I made a similar circuit for the train club I belong to using a PIC.

• AUTHOR

jbdkz

8 years ago from Cleveland

@Write4U LM: What I recommend is use the trolley tracks for power and to mount the reed sensor switches, then string black thread overhead between electrical towers as a fake overhead electrical system.

• Write4U LM

8 years ago

This is a great option for model trolleys. Do you know if this can be made to work with live overhead?

• anonymous

8 years ago

Can I have a copy of your original image of the parts list/schematic and bread board. Please email to trains@amassing.com

• anonymous

9 years ago

@jbdkz: could you email me the original parts list, too? sales at mic-net dot netThanks!Jesse

• AUTHOR

jbdkz

9 years ago from Cleveland

@tssfacts: It is fun! The trolley car is the crown jewel of my layout!

• tssfacts

9 years ago

This looks like a lot of fun.

• AUTHOR

jbdkz

9 years ago from Cleveland

@anonymous: I didn't document the breadboard layout,.......but I will see if I can find any close-up pictures of the breadboard layout and send them to you.

• anonymous

9 years ago

Any chance of more details of how you made a breadboard circuit from this schematic?I'm about halfway through assembling a breadboard circuit for a small bench top end to end HO layout Ive built and think your reversing trolley circuit would work well on it but I'm finding converting the schematic to breadboard a challenge...

• anonymous

9 years ago

@jbdkz: If not too much trouble can you send me a copy was well. Love what you've done here. Would like to do something similar. Thanks!Johnricheyjt@yahoo.com

• anonymous

9 years ago

Do you sell this? Are you able to put more stops in? allantheundertaker@yahoo.com

• AUTHOR

jbdkz

9 years ago from Cleveland

@anonymous: i can send the original image of the parts list/schematic if you provide me an e-mail address to send it to.

• anonymous

9 years ago

Hi. I'm really blown away by your auto reversing trolley circuit. I would love to build one, but can't read the list of component parts below the schematic. Could you possibly email a legible parts list so I can get started on this great project. This is for the spouse, so you understand my need here. :)

• AUTHOR

jbdkz

9 years ago from Cleveland

@anonymous: Possibly, you would need a more substantial transformer to provide the fixed AC and variable DC needed. You also need to make sure the relay contacts are rated high enough to accomidate the numbers of amps the loco motor pulls.

• anonymous

9 years ago

I have a "G" scale LG Christmas train set I'd like to use the same way as your Trolley. Is your circuit limited to HO or do you think it would work on mine/

• anonymous

9 years ago

Could I get a copy of the circuit diagram as well? A trolley would look great running in my front window. Thanks in advance,Jeffjeffrides@comcast.net

• anonymous

9 years ago

@jbdkz: jbdkz, I would also like a larger readable version of your schematic. Your circuit would come in very handy on my "future" train layout. Some auto-reverse circuits I've seen use optical (photo cell) sensors, versus your magnetic reed switches. Do you have an alternate circuit that uses optical sensors? Thanks for your very useful model train circuit. My e-mail address is DonUpmal@aol.com. Don

• AUTHOR

jbdkz

9 years ago from Cleveland

@shopjock: Please provide me you e-mail address and I will send a larger version of the schematic.

• shopjock

9 years ago

jbdkz1I just acquired a HO scale trolley for a diarama i'm working to contruct. I found your circuit to be something I would like to add to provide some animation. Would it be possible to obtain a legible copy of your circuit diagram? Thanksshopjock

• AuthorNormaBudden

10 years ago

The initials of your username resemble bdkz, except for the additional letter in front. Interesting, indeed!Congrats on the purple star! I would love for you to submit your purple star lenses at https://hubpages.com/community/purple-star-awards-

• marsha32

10 years ago

model trains are an awesome hobby and so much fun....congrats on your purple star!

• anonymous

10 years ago

very cool -- do you by any chance have a parts list?

• bdkz

10 years ago

Excellent lens!

working