Diy Emulator Of Z21 Command Station, Based On Arduino For $20

BR95009

Registered
4 Sep 2014
122
13
Moscow
Best answers
0
Hi, folks,

Who interesting of topic?
 

Dtsteam

G Scale, Travel, Steam Boats, Mechanical Music
24 Oct 2009
5,401
15
Preston
Best answers
0
Country flag
Me too.

Gruss Gott Ian, when did you emigrate to the States !
 
Me too.

Gruss Gott Ian, when did you emigrate to the States !

Dunno whats going on there - and can't seem to find where to change it
Given that I am dealing with this "IT Stuff" all day at work - I can't be arsed to fix this - Bit like the "mechanics car" - He drives round in the beat up, smokin', clanging old banger - whilst his customers are driving round in their pristine vehicles :D
 

BR95009

Registered
4 Sep 2014
122
13
Moscow
Best answers
0
Arthur, thanks for a lot of links. If you can do the z21 emulator with them - welcome. :)

My approach way simpe stupid.%)

Here we go.

Components:
1) Arduino Mega 2560 - http://www.banggood.com/Mega2560-R3...Board-With-USB-Cable-For-Arduino-p-73020.html
26a22f3396cf4708b9f1626f1e7a610d.image.538x354.jpg


2) Ethernet Shield W5100 - http://www.banggood.com/Ethernet-Sh...-Card-Slot-For-Arduino-UNO-MEGA-p-908461.html
ethernet_shield_w5100.png



3) Protoshield to solder RS485 interface bord on - http://www.banggood.com/Arduino-Compatible-328-ProtoShield-Prototype-Expansion-Board-p-926451.html
UNO-Proto-Shield-prototype-expansion-board-with-SYB-170-mini-breadboard-based-For-ARDUINO-UNO-ProtoShield-600x600.jpg




4) RS485 interface board WaveShare (http://www.chipdip.ru/product/rs485-board-5v/ ) to realize RS485 interface to connect to S-Bus slave of Roco command station.
02598665.jpg

And:
sku_142221_1.jpg
 

BR95009

Registered
4 Sep 2014
122
13
Moscow
Best answers
0
Next.

Connections of all mentioned above:
z21 Arduino RS485  connections.jpg

Solder pins on RS485 as on hte picture:
solder.JPG
 
Last edited:

BR95009

Registered
4 Sep 2014
122
13
Moscow
Best answers
0
Assemble it by following manner:

Plug W5100 to Mega 2560
Plug Protoshield to W5100 on top
Plug RS485 board to breadboard on to of protoshield as shown on picture above
Connect pins of RS485 board with pins of Mega as shown on picture above

Or, you can solder RS485 board to protoshield.

After soldering it could looks like:
z21.jpg z212.jpg
 
Last edited:

BR95009

Registered
4 Sep 2014
122
13
Moscow
Best answers
0
Next.

General connections:

1) Ethernet socket => to ehternet socket of WIFI router.

2) RS485 socket => XpressNet Slave socket on any command station. Sketch made for Roco command station 10764 and Roco multiMOUSE.

3) USB of Arduino Mega => USB of your computer where Arduino IDE installed to.
 
Last edited:

BR95009

Registered
4 Sep 2014
122
13
Moscow
Best answers
0

Attachments

  • Z21-multiMouse-Slave.zip
    7.4 KB · Views: 258

BR95009

Registered
4 Sep 2014
122
13
Moscow
Best answers
0
Next.

Adjust Mac Address and IP adress of your emulator as mentioned inside the sketch.

Upload sketch to Arduino mega.

Open Serial terminal window in Arduino IDE to see debug log.

TADA! Now you have your z21 running.

Grab Ipad,
install z21 app,
connect to WIFI router which z21 emulater connected to,
adjust IP adress in settings of App according to Serial Terminal log in settings.
Press Reconnect in App.

Enjoy!
 
  • Like
Reactions: 1 user

BR95009

Registered
4 Sep 2014
122
13
Moscow
Best answers
0
Interesting project. Looking cool. But what's the use for a Z21 emulator?

Z21 emulator you can use INSTEAD of real Z21.

To control your layout you can use z21 apps for Android and iOS (they are for free).

To make automatization you can use RocRail on PC, connected to emulator via WiFi like to real Z21 command station.
 

Leonard

Registered
12 Jul 2016
1
0
73
Holland
Best answers
0
Wthout much knowledge I have built the z21-emulator for our modular layout and finally got it working today.
It will be used as a means to provide more wireless connections than the just 7 or 8 of the z21.
Thanks for your post!
 

Marcelo

Registered
18 Feb 2018
1
0
54
Valdivia, Chile
Best answers
0
Dear

I emulator z21, and work well, but a few week ago, the app close for problem, i reinstall app, but it doesn`t work.
Do you know about that?

Thank