vbtrio.blogg.se

Raspberry pi rocrail
Raspberry pi rocrail











raspberry pi rocrail
  1. #RASPBERRY PI ROCRAIL HOW TO#
  2. #RASPBERRY PI ROCRAIL MANUAL#
  3. #RASPBERRY PI ROCRAIL SOFTWARE#
  4. #RASPBERRY PI ROCRAIL PC#
  5. #RASPBERRY PI ROCRAIL WINDOWS#

Here is a picture with the pin-out on my board for the S88 bus.Īnd here is the pin-out of a typical S88 Feedback Module: Before your trains can roll, you will need to adjust the right Address Rocrail is now configured to use your Pi as central The values for the UDP ports can stay at 0, then Rocrail will For our first testing purposes, we will use: "1": Version pick "2", and at Sensors enter the amount of S88 feedback modules, youĪre going to use. I will use CS2.Īt Hostname enter the IP address of your Raspberry PI. Select the newly created entry: "New - mcs2", andįor Interface ID you can choose any name you like. If you don't have already a controller configured, pleaseĬhoose as new controller type "mcs2", and click the "Add"-Button: It's important that you pick Version "2" as in above In above example, the CS2 is already configured, so click the Button: Properties,Īnd under Hostname enter the IP Address of your Raspberry Pi: So choose following menu: File -> Rocrail Properties: I have both, Rocrail Server and Client on my PC. To use with Rocrail, you just need to tell Rocrail the IP AddressĪs CS2. With Märklin Gleisbox and S88 Feedback modules, completly with Rocrail.

#RASPBERRY PI ROCRAIL PC#

Now you can control your model railroad usinga PC over Raspi

#RASPBERRY PI ROCRAIL SOFTWARE#

To control using Rocrail you'll need a program which I createdĪ step by step instruction of installing the software part onĪ Raspberry PI is now available right here. When the search has finished, your Lokos should be visibleĬlick on the Loko you want the address of, and click the Here, you can let CS2.exe search for lost/new MFX Lokos:

#RASPBERRY PI ROCRAIL WINDOWS#

The decimal value, so use the Windows calculator in programmers mode to convertīecause hex 7 is also a 7 in decimal, you can enter a 7Īs Address in Rocrail for this Loko, and use as Protocol: ServerDefined:Īfter you have installed the Software CS2.exe using my instructions Pay attention: The address 7 is a Hex-Value! But in Rocrail you have to enter MFX Addresses are using the area from 0x4000 to 0x7FFF, that's why the Loc-ID is: "Loc-ID" stands for "locale Address ID", not for Loko ID ! Is telling you that this Loko has the address: 7 ! Headlights for this Loko, you can see following output on the screen: You can find the address using the output of my program.įor example, if you press the key on your MS2 for the If this succeeds, and you are able to control the MFX Loko with the MS2, then Now press the "STOP" Button to put current on the track, and the MS2 will beįinding the new Loko, and give it a new address. "STOP" Button is lighting red, and place your "new" MFX Loko on the track. Now you can see all data communications of the CAN-Bus on your screen.Ĭonnect a MS2 if it is not already present, and make sure the Of course you'll have to adjust the IP and Broadcast address You can manually start my program on the Pi with following command: You can retrieve the address of a MFX Loko.Īfter you have completely setup your Pi using my instructions, Using a Märklin Mobile Station 2 and my program for the Pi: PiCanS88,

raspberry pi rocrail

Presenting two ways to find the right address. Getting the address of a MFX Loko can be tricky. The blue connections can only be wired using isolated wires.

raspberry pi rocrail

Its temperature, and if it gets hot, cut the power supply imediatly. So if youĬonnect this example for the first time, hold your finger on the chip to check Switched, the Chip MCP2551 gets very hot and can get destroyed. Module has to be connected to this example upside-down as you can see in belowĪttention: If the connections CAN High and CAN Low are Pins is opposite, because I couldn't get a real S88-connector. In above mounting instruction, the order of the S88 feedback Using above tams S88-N Adapters can be dangerous, because of reverseįor proper usage please read this part, and if you stillĪll following mounting instructions are based on circuit The S88 ports access must be freed manualy by rasping the case.

#RASPBERRY PI ROCRAIL MANUAL#

Note: Manual action is required to use thisĬase.

#RASPBERRY PI ROCRAIL HOW TO#

Is now also added which can be "jumpered" if needed.Ī guide how to solder the empty PCB with the new V2 circuit diagram can be found In addition I am using for the S88 feedback as voltageĭividers the new resistor values 1,8k and 3,3k, which are giving a betterĪn optional Terminating-Resistor for the CAN Bus with 120 Ohm This new version is using the new MCP2562 instead of the old MCP2551.Īdvantage is, this new chip can use 3.3V as reference, and doesn't need voltageĭividers, and it's said to be more stable. You can order these components at this German supplier:īus access including S88 Feedback channel Version 2:













Raspberry pi rocrail