Welcome to the forum   
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Share
Options
View
Go to last post in this topic Go to first unread post in this topic
Offline Johnvr  
#1 Posted : 20 October 2024 09:08:42(UTC)
Johnvr

South Africa   
Joined: 03/10/2010(UTC)
Posts: 1,291
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 Layout

You 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.
thanks 13 users liked this useful post by Johnvr
Offline Paul59  
#2 Posted : 20 October 2024 15:19:09(UTC)
Paul59

United Kingdom   
Joined: 25/08/2012(UTC)
Posts: 250
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!
thanks 2 users liked this useful post by Paul59
Offline Michael4  
#3 Posted : 20 October 2024 16:56:09(UTC)
Michael4

United Kingdom   
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!
thanks 2 users liked this useful post by Michael4
Offline Johnvr  
#4 Posted : 20 October 2024 17:53:09(UTC)
Johnvr

South Africa   
Joined: 03/10/2010(UTC)
Posts: 1,291
Location: Cape Town, South Africa
Originally Posted by: Michael4 Go to Quoted Post
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.

RegardsBigGrin
John


Offline kiwiAlan  
#5 Posted : 20 October 2024 23:43:34(UTC)
kiwiAlan

United Kingdom   
Joined: 23/07/2014(UTC)
Posts: 8,456
Location: ENGLAND, Didcot
Originally Posted by: Michael4 Go to Quoted Post
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. Scared The reversing pulse it gives will destroy any decoder, even the earliest Marklin ones.

Offline Michael4  
#6 Posted : 21 October 2024 12:10:35(UTC)
Michael4

United Kingdom   
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!
Offline hxmiesa  
#7 Posted : 21 October 2024 13:38:36(UTC)
hxmiesa

Spain   
Joined: 15/12/2005(UTC)
Posts: 3,587
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...)
Best regards
Henrik Hoexbroe ("The Dane In Spain")
http://hoexbroe.tripod.com
thanks 1 user liked this useful post by hxmiesa
Users browsing this topic
Guest
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.

| Powered by YAF.NET | YAF.NET © 2003-2025, Yet Another Forum.NET
This page was generated in 0.475 seconds.