How to prepare Railuino

Preparation to assemble

You need below hardwares to run Desktop Station.

You need below softwares to run Desktop Station. You can get these softwares free of charge.

Assemble Arduino board and CAN-BUS Shield.

Assemble Arduino board and CAN-BUS Shield physically.


Box images.


Open a box.


Assembled Arduino UNO and CAN-BUS Shield.

Check the wiring of Railuino and marklin hardwares.

Please check the wiring of Railuino and marklin hardwares. Power of Arduino board and CAN-BUS Shield is provided via USB cable, it's a bus. power. Not use DC jack on the arduino board.


Example before wiring.


Wiring example between 60113 and CAN-BUS Shield.*

*NOTE
Please note that CAN cable's D-Sub or RJ45 connector is used instead of CAN connector in this case. Typically, D-Sub 9 Pin uses as serial port. Also RJ45 uses as Ethernet. Do not misunderstand.


Wired example.

Assemble CAN cable

CAN cable is not in sale. You need to take parts of CAN cable and assemble it like below example. This example describes how to assemble CAN cable forSparkfun's. If you had watterott's shield, please check watterott's description. The difference of watterott's is the connector beside of CAN-BUS Shield. This page describes the connector as D-Sub 9pin.


To make CAN cable, you need these components.
miniDIN 10-pins socket and D-SUB 9-pins socket. Also need 4-pin conductor cable.

Table: Parts list example for a cable between 60113 and CAN-BUS Shield.
Parts namePriceNotes
miniDIN 10-pin (MP371/10)JPY330Hirose-technical B1F in Akihabara
D-Sub 9-pin female socketJPY50Akiduki-denshi in Akihabara
D-Sub 9-pin shellJPY50Akiduki-denshi in Akihabara
4-core conductor cable1m / JPY105Kyu-syu denki in Akihabara



Table: Assignment table of miniDIN pin and D-Sub pin.
miniDIN 10pinD-Sub 9PinRJ45
CAN_H431
CAN_L852
VCC198
GND227
Notebeside 60113Seeedstudio,
Sparkfun
watterott


Solder mini-DIN connector and conductor cable. If possible, you have to use a glue gun to connect strongly.


Attention! Do not forget to insert mini-DIN's shell at conductor cable. VERY-IMPORTANT!


Solder D-Sub 9-pin connector and conductor cable. Also assemble socket and shell.


Assemble metal shell and pins. Metal shell which you bought in Japan has to be cut like the above picture.
*Note: Japanese MP371-10 (mini DIN male connector) has opposite direction of pin assignment. If you live in out of Japan, you can get normal connector. Then you don't need to cut metal shell like this. Please check a mini DIN connector that you have.





Finish!

Procedure to prepare softwares

  1. Download the latest Desktop Station, Serial_RS4.ino.
    Also download Railuino.
  2. Download Arduino IDE 1.0.x. Unzip them to your computer.
  3. Plug USB connector of your Arduino board to USB port on your computer
  4. If you plug Arduino board first time, install serial driver software. Serial driver software is included Arduino IDE files. See also arduino.cc
  5. Unzip Railuino archive file and copy Railuino folder to Arduino IDE's library path.

  6. Copy "src" folder in Railuino folder file to Arudino IDE's library folder.
    Rename copied "src" folder to "Railuino".

  7. Install Desktop Station to your computer. Unzip a Desktop Station ZIP files.
  8. Compile and Write the Serial Gateway "Serial_RSx.ino" to Arduino board using Arduino IDE. SERIAL GATEWAY sketch named "Serial_RSx.ino" is included Serial_RS4 archive zip file. Desktop Station works with this sketch. See also how to upload.

  9. Arduino IDE. Open Serial_RSx.ino and compile it.

  10. Upload compiled Serial_RSx.ino to your arduino.
  11. Connect 60113 and CAN-BUS shield and your PC.

Go to top.