Joined: 03/10/2010(UTC) Posts: 1,295 Location: Cape Town, South Africa
|
My Story on Electronic Device for creating loops About 15 years ago, I wanted to build a layout where the trains went about the layout in some sort of a random fashion. I wanted a device which would make the turnouts switch between 'green' or 'red' based on some pattern which was not controlled by human hand, and make the train continue onto a track which was effectively chosen by random choice. And so I built myself an analog electronic looping system. I did some research using 555 timers and capacitors and resistors, and built a switching electronic device for looping through 6 relays on an electronics board. In practice, a relay would be by way of example in the open position for about 30 seconds, and then closed for about 30 seconds, then open again for 30 seconds, then closed again, etc., in a continuous loop. Next, I connected a Marklin 5146/5147 Circuit Track through the relay to activate either the 'green' or the 'red' of a turnout, depending on whether the relay was open or closed. I placed these circuit tracks just in front of the turnouts on the layout. So, a train approaching a turnout would first trigger the circuit track, and then this would activate either the 'green' turnout position or the 'red' turnout position for the turnout, depending on whether the relay was open or closed. This was fun, and worked very well, so I designed and built a Marklin M-track layout with signals and turnouts to enable the random process to work. Johns Random Marklin LayoutYou can watch the video, and watch how the trains trigger the circuit tracks and switch the turnouts ahead in a seemingly random fashion. I used to watch this layout for hours and hours, watching to see whether patterns repeated themselves, and whether artificial randomness on the layout had been achieved. In the foreground of the video, you can see the electronic board with the 6 relays switching away based on the 555 timer and the capacitors/resistors.
|
 13 users liked this useful post by Johnvr
|
jerdenberg, Bigdaddynz, marklinist5999, Purellum, mrmarklin, Eurobahnfan, Jimmy Thompson, revmox, Martti Mäntylä, dickinsonj, TrainIride, Carim, hxmiesa
|
|
Joined: 25/08/2012(UTC) Posts: 254 Location: South East
|
What an excellent layout John. Running really nicely in a way that only analogue can. Your automation seemed to be working well and the whole thing looks like a lot of fun.
Paul |
Marklin HO using M track. Now reverted to analogue as I find it has more character and is more fun...... and I understand it! |
 2 users liked this useful post by Paul59
|
|
|
Joined: 02/02/2017(UTC) Posts: 694 Location: England, South Coast
|
Excellent! I need to understand the world of 'random control' better!
At the moment I'm putting in a 6600 controller which will give me analogue shuttling, pausing, controlled acceleration and braking (with a bit of effort) but it is a long way from being random!
|
 2 users liked this useful post by Michael4
|
|
|
Joined: 03/10/2010(UTC) Posts: 1,295 Location: Cape Town, South Africa
|
Originally Posted by: Michael4  Excellent! I need to understand the world of 'random control' better!
Hello Michael, If you are interested in the automation of a layout, particularly an analog layout, you may consider getting yourself an 'Arduino'. An 'Arduino' is a programmable micro chip board on which you can program events to occur. I would have done this project using an 'Arduino' if I knew about it then. With the 'Arduino', you plug a USB cable into your computer with the other connection going to the 'Arduino'. Then you can program looping events such as on/off/on/off using simple Arduino language, activated by some trigger mechanism. You can connect these to relay boards to interact with solenoid accessories like signals, turnouts, and lights, etc The 'Arduino' program can also use time delays in order to achieve more realistic operations. You can also do things like flashing lights at a railway crossing, a nice fire engine project, a house lighting project, etc You can use the random functions too to create sequences. It's not expensive at all (probably less than US$50) for as much as you will need. And it is a great learning project. Ask me if you are interested for more detail. Regards John
|
|
|
|
Joined: 23/07/2014(UTC) Posts: 8,480 Location: ENGLAND, Didcot
|
Originally Posted by: Michael4  Excellent! I need to understand the world of 'random control' better!
At the moment I'm putting in a 6600 controller which will give me analogue shuttling, pausing, controlled acceleration and braking (with a bit of effort) but it is a long way from being random! Only use locos that do not have decoders when using a 6600.  The reversing pulse it gives will destroy any decoder, even the earliest Marklin ones.
|
|
|
|
Joined: 02/02/2017(UTC) Posts: 694 Location: England, South Coast
|
John, Many thanks for the offer. I will give it some thought and see if it fits in with what I want to do.
Best
Michael
Regarding 6600 I have no decoders to fry though I did fry a 6600 once!
|
|
|
|
Joined: 15/12/2005(UTC) Posts: 3,594 Location: Spain
|
Nice! I use the same kind of "fishbowl" apporach in my control. Instead of homemade electronics, I use a couple of industrial PLCs, and the "magic" is in the software. It is indeed SO interessting to watch it working, that I spend hours running the trains and tweaking the system, instead of building the landscape decoration...
(The random numbers I use is a copy of the BIOS code of the pseudo random number generator of an ancient ZX Spectrum, but when you factor in the time, I believe you can get a truly random number. I also use detections for sorting out the trains; slow, fast, long, short, passenger, freight, etc, in order for the PLC to random decide how to treat the trains, and where to send them, so that it makes sense, according to their type...) |
|
 1 user liked this useful post by hxmiesa
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.