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 Solar007  
#1 Posted : 27 September 2024 11:22:36(UTC)
Solar007

Thailand   
Joined: 23/06/2024(UTC)
Posts: 11
Location: Krung Thep Maha Nakhon, Bangkok
Hello,
My train system is all Marklin AC, DCC, 3rail system. I use RocRail and Markling CS3+ to control the automatic system. My next plan is to make the loco shed's door automatically open/close when a train comes. or...I use RocRail to control the motor for theme park scenary (ferris wheel, etc) I searched from google. It seems like I need a servo decoder like ESU servo decoder, Digikeijs DR-4024-4 or even Raspberrypi Pico P 2024. I don't see any suggestion that one can use Marklin to control servo (m83, m84 or else).
There is a lot of train modeler expert here. Could you suggest me?
1) Do we really need other brands' servo decoder? or Marklin can do that? Confused
2) What can Marklin equipment serve that purpose? (control the servo, motor)
3) If I really need some LED panel (for train schedule at the platform), it seems like I need to do it via Raspberry Pico P. Is that right?

Thank you very much. BigGrin

Marklin HO, AC, DCC, 3rail, RocRail, automation train system.
thanks 1 user liked this useful post by Solar007
Offline marklinist5999  
#2 Posted : 27 September 2024 14:22:25(UTC)
marklinist5999

United States   
Joined: 10/02/2021(UTC)
Posts: 3,865
Location: Michigan, Troy
Jean B. ???
Offline Solar007  
#3 Posted : 27 September 2024 14:51:37(UTC)
Solar007

Thailand   
Joined: 23/06/2024(UTC)
Posts: 11
Location: Krung Thep Maha Nakhon, Bangkok
Originally Posted by: marklinist5999 Go to Quoted Post
Jean B. ???


who is Jean B.?
Marklin HO, AC, DCC, 3rail, RocRail, automation train system.
thanks 1 user liked this useful post by Solar007
Offline marklinist5999  
#4 Posted : 27 September 2024 15:00:23(UTC)
marklinist5999

United States   
Joined: 10/02/2021(UTC)
Posts: 3,865
Location: Michigan, Troy
Jonjean B. is from France, and knows a lot about Rocrail. It sounds like you need a decoder set for steady or longer than momentary contact.
thanks 1 user liked this useful post by marklinist5999
Offline Solar007  
#5 Posted : 27 September 2024 15:27:31(UTC)
Solar007

Thailand   
Joined: 23/06/2024(UTC)
Posts: 11
Location: Krung Thep Maha Nakhon, Bangkok
Originally Posted by: marklinist5999 Go to Quoted Post
Jonjean B. is from France, and knows a lot about Rocrail. It sounds like you need a decoder set for steady or longer than momentary contact.


ahh..thank you very much.

Marklin HO, AC, DCC, 3rail, RocRail, automation train system.
thanks 1 user liked this useful post by Solar007
Offline Kiko  
#6 Posted : 27 September 2024 17:46:16(UTC)
Kiko

Canada   
Joined: 13/02/2017(UTC)
Posts: 159
Location: Ottawa, ON
Originally Posted by: Solar007 Go to Quoted Post
Hello,
My train system is all Marklin AC, DCC, 3rail system. I use RocRail and Markling CS3+ to control the automatic system. My next plan is to make the loco shed's door automatically open/close when a train comes. or...I use RocRail to control the motor for theme park scenary (ferris wheel, etc) I searched from google. It seems like I need a servo decoder like ESU servo decoder, Digikeijs DR-4024-4 or even Raspberrypi Pico P 2024. I don't see any suggestion that one can use Marklin to control servo (m83, m84 or else).
There is a lot of train modeler expert here. Could you suggest me?

Hello,

I have a similar setup to yours (Marklin 3-rail, a mix of MFX and DCC LokSound), except that I use an ECoS and TrainController. All my turnouts, semaphores, gates, lights, etc. are controlled by Arduinos via DCC.

I have implemented automated loco shed doors via Arduino Nanos and Stepper Motors (inexpensive 28BYJ-48; 5 Volt). It really does not matter what digital control system nor which train software you use. All that's required is to be able to activate control via a digital address.

I use a dedicated Nano to control the stepper motor to open/close the shed doors (see attached schematic drawing). My Arduino Unos are used to decode DCC addresses and turn ON/OFF various accessories. In your case, you could use your m83 to decode addresses and send a pulse to the shed door control circuit (Nano).

The nice thing with this approach is that you can use your train control software with feedback sensors to automatically start opening doors when a loco approaches the shed, and then automatically close the door once the loco is inside.

I also use stepper motors and the same approach to activate railroad gates (see short video: Level Crossing) and other things around the layout. It's easy to adjust the speed at which the stepper motor turns, which makes this a very versatile solution for many animations on your layout.

If you have any questions or need more info, please let me know. You can also PM me if you like.

Cheers and good luck,
Andry

Schematic - Stepper Motors (Arduino Controlled).pdf (559kb) downloaded 13 time(s).

Loco Shed 1 (Stepper Motor).jpg

Loco Shed 2.jpg

Loco Shed 3.jpg

Level Crossing.jpg

Andry
// Marklin HO K track; ECoS; TrainController Gold; Marklin & ESU decoders; Arduino controlled Switches, Semaphores & Accessories (DCC); Win 11 //
thanks 3 users liked this useful post by Kiko
Offline JohnjeanB  
#7 Posted : 27 September 2024 21:21:57(UTC)
JohnjeanB

France   
Joined: 04/02/2011(UTC)
Posts: 3,550
Location: Paris, France
Originally Posted by: Solar007 Go to Quoted Post
Hello,
My train system is all Marklin AC, DCC, 3rail system. I use RocRail and Markling CS3+ to control the automatic system. My next plan is to make the loco shed's door automatically open/close when a train comes. or...I use RocRail to control the motor for theme park scenary (ferris wheel, etc) I searched from google. It seems like I need a servo decoder like ESU servo decoder, Digikeijs DR-4024-4 or even Raspberrypi Pico P 2024. I don't see any suggestion that one can use Marklin to control servo (m83, m84 or else).
There is a lot of train modeler expert here. Could you suggest me?
1) Do we really need other brands' servo decoder? or Marklin can do that? Confused
2) What can Marklin equipment serve that purpose? (control the servo, motor)
3) If I really need some LED panel (for train schedule at the platform), it seems like I need to do it via Raspberry Pico P. Is that right?

Thank you very much. BigGrin


Hi Kiko
One of the best solutions to control servos is to use ESU's Switchpilot 3 servo 51832.
Basically, it is controlled like a switch by the CS3 directly or controlled by Rocrail.
Where it differs from a switch decoder (like Märklin's 60832) is:
- each servo output is adjusted regarding the rest position, the work position and the speed to go from on position to the other.
- the unit (ESU 51832) can control 8 servos and offers a way to programm locally its parameters (switches and a LCD display for feedback
- using CVs you can reach the same results (3 parameters for each servo, edited using the CS3
- Rocrail control is EXACTLY as for turnouts

I think no Märklin decoder can control servos (thats why I use ESU (another very good brand.
I use servos to control stops and turnouts on my Faller car system, the Faller elevator for ashes

Both the local udjustment of parameters or through CVs work very well

Here is the elevator for ashes using a sevo motor controlled by Rocrail


Note: I have a roundhouse with 9 stalls and instead of having 18 servo motors to control them I wrote a small XML program - specific to each loco going into the shed- so the Block of the shed invokes the appropriate xml program. What it does is to start the loco at slow speed to move inside the shed for a given time and then reverse the loco. The result is a slow closing of shed doors at no extra cost and difficulties
Question#3 I haven't an answer for this as with Rocrail, one of the modes is schedule (in absolute or relative time) where you describe the departure time, the minimum waiting time (at station, etc) so IMO no need for an external LCD panel / rasberry.
Here is a simple example of a schedule (fest train extracted from its storage track, going through a schedule including various stops and then returning to its storage track

Cheers
Jean

Below is an example of such a program
<?xml version="1.0" encoding="UTF-8"?>
<xmlscript>
<vr id="vr_Schuppen" value="0"/>

<while condition="#vr_Schuppen < 33" max="100">
<lc id="241_A_002_EST" V="27"/>
<vr id="vr_Schuppen" value="#vr_Schuppen + 1"/>
<sleep time="100"/>
</while>
<lc id="241_A_002_EST" V="0"/>
<lc id="241_A_002_EST" cmd="swap"/>
</xmlscript>
thanks 2 users liked this useful post by JohnjeanB
Offline Kiko  
#8 Posted : 27 September 2024 21:45:21(UTC)
Kiko

Canada   
Joined: 13/02/2017(UTC)
Posts: 159
Location: Ottawa, ON
Originally Posted by: JohnjeanB Go to Quoted Post
I have a roundhouse with 9 stalls and instead of having 18 servo motors to control them I wrote a small XML program - specific to each loco going into the shed- so the Block of the shed invokes the appropriate xml program. What it does is to start the loco at slow speed to move inside the shed for a given time and then reverse the loco. The result is a slow closing of shed doors at no extra cost and difficulties

Hello Jean,

There are probably as many ways of doing what the OP has in mind as there are railroad modellers. BigGrin I just presented one option, which works very well for me. Being presented with many options is good for someone starting out as he can select whichever one will work best for his given scenario.

I personally don't use servos but use stepper motors. I find that the steppers are much more reliable and much less prone to interference. Again, this depends on one's operating environment and preference.

Regarding how doors are opened/closed in a loco shed, it's all a matter of evaluating options, cost, skills, etc. My layout has two roundhouses (3-stall and 4-stall), one electric loco garage (4-stall), as well as two diesel loco garages (2-stall and 1-stall). I personally like to idea of having shed doors open or close independently from the presence of any loco -- it's just more realistic for me. Also, I prefer not having the doors always open in the absence of a loco, and only closed by locos pushing on a lever. Again, that's just my preference.

I hope that all the various options will be useful for the OP in "plowing" forward with his projects. It's always great to be able to "pick-and-choose" -- that's what's fun about this hobby.

Cheers,
Andry
// Marklin HO K track; ECoS; TrainController Gold; Marklin & ESU decoders; Arduino controlled Switches, Semaphores & Accessories (DCC); Win 11 //
thanks 2 users liked this useful post by Kiko
Offline Solar007  
#9 Posted : 28 September 2024 13:17:55(UTC)
Solar007

Thailand   
Joined: 23/06/2024(UTC)
Posts: 11
Location: Krung Thep Maha Nakhon, Bangkok
I have implemented automated loco shed doors via Arduino Nanos and Stepper Motors (inexpensive 28BYJ-48; 5 Volt). It really does not matter what digital control system nor which train software you use. All that's required is to be able to activate control via a digital address.

I use a dedicated Nano to control the stepper motor to open/close the shed doors (see attached schematic drawing). My Arduino Unos are used to decode DCC addresses and turn ON/OFF various accessories. In your case, you could use your m83 to decode addresses and send a pulse to the shed door control circuit (Nano).

The nice thing with this approach is that you can use your train control software with feedback sensors to automatically start opening doors when a loco approaches the shed, and then automatically close the door once the loco is inside.

I also use stepper motors and the same approach to activate railroad gates (see short video: Level Crossing) and other things around the layout. It's easy to adjust the speed at which the stepper motor turns, which makes this a very versatile solution for many animations on your layout.

If you have any questions or need more info, please let me know. You can also PM me if you like.

Cheers and good luck,
Andry


******************************************
Hello, Andry!!
Thank you very much for your detail information. I totally agree with you that we need some dedicated equipment to control the servo/motor. Arduino is my first idea too, but RocRail supports only these equipment.
(refer to https://wiki.rocrail.net...hp?id=wio:firststeps-en)

1) the microcontrollers from Espressif ESP8266, ESP32
2) the RP2040(Pico W) from the Raspberry Pi Foundation.

So...I choose Pico W RP2040.
Marklin has its own ecosystem. I am not sure if I miss something with m83, m84 or else.

You are very kind and explain with wiring diagram, photo. I'm really appreciated.
I have the same idea on how the shed's door opens/closes independently. I have 5 doors for 5 sheds. The step motor is good recommendation.

Thank you very much. If I have any question, I would PM you for sure.
BigGrin BigGrin BigGrin





Marklin HO, AC, DCC, 3rail, RocRail, automation train system.
thanks 1 user liked this useful post by Solar007
Offline Solar007  
#10 Posted : 28 September 2024 13:35:18(UTC)
Solar007

Thailand   
Joined: 23/06/2024(UTC)
Posts: 11
Location: Krung Thep Maha Nakhon, Bangkok

One of the best solutions to control servos is to use ESU's Switchpilot 3 servo 51832.
Basically, it is controlled like a switch by the CS3 directly or controlled by Rocrail.
Where it differs from a switch decoder (like Märklin's 60832) is:
- each servo output is adjusted regarding the rest position, the work position and the speed to go from on position to the other.
- the unit (ESU 51832) can control 8 servos and offers a way to programm locally its parameters (switches and a LCD display for feedback
- using CVs you can reach the same results (3 parameters for each servo, edited using the CS3
- Rocrail control is EXACTLY as for turnouts

I think no Märklin decoder can control servos (thats why I use ESU (another very good brand.
I use servos to control stops and turnouts on my Faller car system, the Faller elevator for ashes

Both the local adjustment of parameters or through CVs work very well

Question#3 I haven't an answer for this as with Rocrail, one of the modes is schedule (in absolute or relative time) where you describe the departure time, the minimum waiting time (at station, etc) so IMO no need for an external LCD panel / rasberry.
Here is a simple example of a schedule (fest train extracted from its storage track, going through a schedule including various stops and then returning to its storage track

Cheers
Jean
***************************************
Hello Jean!!
Thank you very much. Wow! you are the one who I follow in the youtube channel. Your loco shed/turntable is very very deliciated and beautiful.
I agree with you that ESU 51832 could configure more setting than Marklin/m83. Your experience could save me more time/money than m83 solution.
I'm quite new RocRail here, but I've found that it could help me do a lot of things here. XML is what I'll study on the next thing. Your XML code could help me start it. Laugh
The 3rd question, I mean, if I go with the microcontroller solution (Raspberry Pico), I think that it could help me do some more function like LCD panel (showing train schedule on the train station), or some other physical motion.
Anyway, I think I'll plan and estimate all solution here. It is gonna be fun.

I'm really appreciated your suggestion, very much. BigGrin BigGrin BigGrin
Marklin HO, AC, DCC, 3rail, RocRail, automation train system.
thanks 1 user liked this useful post by Solar007
Online rhfil  
#11 Posted : 28 September 2024 19:04:17(UTC)
rhfil

United States   
Joined: 05/09/2014(UTC)
Posts: 674
Location: NEW HAMPSHIRE, Somersworth
You indicated an interest in led signs. Dale Schulz has created those for his Marklin layout. He is a great guy and eager to share. His led sign site is at: https://remotesign.mixmox.com/. But find a way to contact him and share your knowledge. I would love to listen in but would probably be lost after "Hello."
thanks 2 users liked this useful post by rhfil
Offline Solar007  
#12 Posted : 28 September 2024 23:16:34(UTC)
Solar007

Thailand   
Joined: 23/06/2024(UTC)
Posts: 11
Location: Krung Thep Maha Nakhon, Bangkok
Originally Posted by: rhfil Go to Quoted Post
You indicated an interest in led signs. Dale Schulz has created those for his Marklin layout. He is a great guy and eager to share. His led sign site is at: https://remotesign.mixmox.com/. But find a way to contact him and share your knowledge. I would love to listen in but would probably be lost after "Hello."


*********
Thank you very much. This is what I am lookong for too.
Wow!! that is creative. Love
Marklin HO, AC, DCC, 3rail, RocRail, automation train system.
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.682 seconds.