Login
Register
Forum
Help
JNSwiki
May 24, 2012, 01:00:15 am
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search
Entire Site
Entire Forum
This board
This topic
Members
Search for
Japanese Modelling & Japan Rail Enthusiasts Forum
>
Forum
>
Platform 4 - (The Dark Side of) Modeling
>
DCC and Electrical
> Topic:
Computer controlled DCC from scratch.
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Computer controlled DCC from scratch. (Read 2255 times)
0 Members and 1 Guest are viewing this topic.
stevenh
Tetsudo Staff
Offline
Gender:
Computer controlled DCC from scratch.
«
on:
July 15, 2008, 05:23:09 am »
Gosh... I need to get a blog up... I also can't believe I only just found this forum...
Anyway, my name is Steven and I'm a Japan railways (not just JR :P) nut living down under.
Over the last week I built the circuit seen
here
and hooked it up to my serial port. After a lot of trial and error I found that the server software
here
and the client RailyPlan v2.0 (
Download
) work great!.
Now I've converted an old german loco as a test and am in the process of wiring my 5-car Micro-Ace Odoriko (bought 2nd-hand off eBay)... it's been a lot of fun trying to work it all out.
I'll take some pics and detail the entire setup process if anyone is interested.
I'm using
Hornby R8215 decoders
(motor, headlights (2 funcs) + 1 extra func)... they're nice and tiny and cheap also. they also conform to all the NMRA DCC standards that I need for using the software.
When I get the time I also intend on writing a new client that'll be, for starters, a collection of throttles rather than a full layout-management system.
Anyway... I've found this forum now, expect a flood of information as I find the time to whip up decoderised japanese locos :)
Logged
Steven Hoefel.
Model Railroading/DCC Blog/Japanese trains
alpineaustralia
Global Moderator
Offline
Gender:
Re: Computer controlled DCC from scratch.
«
Reply #1 on:
July 15, 2008, 06:32:35 am »
Where are you in Oz?
Mark Newton and myself are from suburbs of Sydney.
BTW, what scale are you running? N scale?
How does your computer actually communicate with the tracks/locos?
Logged
Alpineaustralia
stevenh
Tetsudo Staff
Offline
Gender:
Re: Computer controlled DCC from scratch.
«
Reply #2 on:
July 15, 2008, 07:08:32 am »
Quote from: alpineaustralia on July 15, 2008, 06:32:35 am
Where are you in Oz?
The good old bush capital :)
Quote from: alpineaustralia on July 15, 2008, 06:32:35 am
BTW, what scale are you running? N scale?
Yeah, nearly 100% Japan N Scale.
Quote from: alpineaustralia on July 15, 2008, 06:32:35 am
How does your computer actually communicate with the tracks/locos?
Serial cable from COM1 on my machine to the port shown in the left of the
first diagram
. Then the server software is used to pump data out the port (idle packets, etc...) and a client app connects to the server and starts pushing out real data packets.
I've just installed blog software in my webspace and will get a quick and dirty up on it tonight... depending on how my headlights go into the Odoriko :)
edit:
see blog here
http://modelrail.otenko.com/
«
Last Edit: December 17, 2010, 12:16:17 am by stevenh
»
Logged
Steven Hoefel.
Model Railroading/DCC Blog/Japanese trains
alpineaustralia
Global Moderator
Offline
Gender:
Re: Computer controlled DCC from scratch.
«
Reply #3 on:
July 15, 2008, 02:10:08 pm »
Matey - you're going to need to dumb it right down for me (possibly, the rest of us). I for one am not computer literate.
Did you design the board yourself?
Logged
Alpineaustralia
Bernard
Administrator
Offline
Gender:
Re: Computer controlled DCC from scratch.
«
Reply #4 on:
July 15, 2008, 03:13:40 pm »
Hi Stevenh - Welcome to the forum and that is why were are here to share information, so go ahead and post and enjoy yourself.
Logged
stevenh
Tetsudo Staff
Offline
Gender:
Re: Computer controlled DCC from scratch.
«
Reply #5 on:
July 15, 2008, 11:43:21 pm »
Quote from: alpineaustralia on July 15, 2008, 02:10:08 pm
Did you design the board yourself?
No, the design linked to in the first post in this thread is the NMRA DCC standard. It has been created by the DCC Working Group (international group dedicated to standardising the DCC protocol) and is available for everyone to use.
I simply recreated this circuit on a breadboard I bought from Dick Smith and hooked it up to my serial port.
Usually when you have a DCC setup, there is a command station (which sends out the 1's and 0's to control the trains) and then a booster which boosts this data stream up to ~16v so that the engines in the locomotives can function. The data output on a serial port on the computer (the old one you used to plug your modem in to) only pushes +5v and so the circuit built simply injects 12v and then pushes this into the tracks.
It is then up the other software on the computer to know about what locomotives you have (you program them in) and then allow you to control them by sending data out the serial port, via the booster and onto the tracks.
So, in reality, your computer replaces the need for a command station and the booster I have built replaces the need for a (possibly expensive) commercial booster.
Logged
Steven Hoefel.
Model Railroading/DCC Blog/Japanese trains
alpineaustralia
Global Moderator
Offline
Gender:
Re: Computer controlled DCC from scratch.
«
Reply #6 on:
July 16, 2008, 01:55:09 pm »
Mate, thats awesome. Do you have pictures of these to share with us?
Logged
Alpineaustralia
CaptOblivious
Philosopher-Engineer
Administrator
Offline
485系「あいづライナー」
Re: Computer controlled DCC from scratch.
«
Reply #7 on:
July 16, 2008, 03:52:50 pm »
Seconded: Awesome. But: I haven't owned a computer with a serial port in over a decade (and I haven't owned a PC in over 5 years)! Now I'll have to go buy one of those USB dongles...
Logged
A miniature slice of geekdom,
Akihabara Station
stevenh
Tetsudo Staff
Offline
Gender:
Re: Computer controlled DCC from scratch.
«
Reply #8 on:
July 16, 2008, 11:30:06 pm »
Quote from: alpineaustralia on July 16, 2008, 01:55:09 pm
Mate, thats awesome. Do you have pictures of these to share with us?
I do, first shot is the development board:
This is fairly nasty right now... but I'll be soldering up a first solid prototype shortly.
and then my current workbench...
My Kato Unitrack basic oval is on it's way... My full layout is at the parents house and I haven't had a chance to test this over there yet.
My goal is to get all this going on fairly minimal hardware... DOS if required and then you'll only need to find a 386/486 nasty old laptop to have it running.
Quote from: CaptOblivious
Seconded: Awesome. But: I haven't owned a computer with a serial port in over a decade (and I haven't owned a PC in over 5 years)! Now I'll have to go buy one of those USB dongles...
Let me buy one first and confim that it will work.. I've heard of issues with data speeds and ... bits-missing from such items and I wouldn't want to make people go out and buy stuff when it's not going to work.
Anyway... Blog here:
Homegrown DCC tinkerings...
with the full story and pictures.
Will keep you updated.
«
Last Edit: December 17, 2010, 12:15:25 am by stevenh
»
Logged
Steven Hoefel.
Model Railroading/DCC Blog/Japanese trains
stevenh
Tetsudo Staff
Offline
Gender:
Re: Computer controlled DCC from scratch.
«
Reply #9 on:
July 17, 2008, 01:06:32 pm »
Forgive the double post... but here is the finished prototype:
Again, see my
blog
for more information.
«
Last Edit: December 17, 2010, 12:15:40 am by stevenh
»
Logged
Steven Hoefel.
Model Railroading/DCC Blog/Japanese trains
alpineaustralia
Global Moderator
Offline
Gender:
Re: Computer controlled DCC from scratch.
«
Reply #10 on:
July 17, 2008, 03:24:39 pm »
Steve -what do you do for a crust?
Logged
Alpineaustralia
CaptOblivious
Philosopher-Engineer
Administrator
Offline
485系「あいづライナー」
Re: Computer controlled DCC from scratch.
«
Reply #11 on:
July 17, 2008, 03:26:50 pm »
This really is superb! I'm beginning to regret giving away all those old PC's I never used...there's a place around the corner that sells refurb'd PC's, and if the cost is less than fleshing out my Digitrax system, I may be going this route.
How easy is it to program for, is the real question. With the Digitrax bits, plus JMRI, I can program my layout in Java and Python (yay Python!).
Logged
A miniature slice of geekdom,
Akihabara Station
Martijn Meerts
Administrator
Offline
Gender:
Re: Computer controlled DCC from scratch.
«
Reply #12 on:
July 17, 2008, 03:53:18 pm »
The real questions are, how many Amps can the thing deliver, how warm does it get, and what if you have a layout that's big enough to require multiple boosters?
"Computer control" isn't too expensive even if you buy a Lenz or Digitrax central (they have boosters built in, so all you need is a power supply and an interface to the pc). The problem starts when you want automated control. There is no way a computer can safely track a train on the physical layout unless you use a block system, or do feedback with infrared sensors or reed switches. Any of these still need a way to give feedback to the controller/computer. Operating tunrouts also needs extra components.
All of that stuff can of course be homemade as well, but then you'd be building circuit boards more than a layout ;)
Logged
Mixed Japanese N-scale:
http://www.jr-chiisai.net
Era III German 0-scale:
http://blackforest.jr-chiisai.net
stevenh
Tetsudo Staff
Offline
Gender:
Re: Computer controlled DCC from scratch.
«
Reply #13 on:
July 18, 2008, 12:14:30 am »
Quote from: alpineaustralia
What do you do for a crust?
Software Engineer here in Canberra... mainly in the .NET space, but wherever required.
Quote from: CaptOblivious
How easy is it to program for, is the real question. With the Digitrax bits, plus JMRI, I can program my layout in Java and Python (yay Python!).
I'm still new to this area of the system. Currently I can easily control trains... but my application is very primitive. I need to purchase/build one or two accessory decoders and work out the best methods for feedback (as Martjin mentioned). I'm nearly thinking a separate interface will be required to do the feeding back. I don't know if accessory decoders have any further ability than an ACK?
Quote from: Martijn Meerts on July 17, 2008, 03:53:18 pm
How many Amps can the thing deliver?
Currently it's rated at 3A. I've seen a circuit that uses the two bridges in the main IC and that can then deliver 6A... That would require a fan and ventilation though.
Quote from: Martijn Meerts on July 17, 2008, 03:53:18 pm
How warm does it get?
I'll have to get back to you on this one... currently with around 10mins running one engine back&forth the main booster IC will get slightly warm... i.e. I can easily hold my finger against the backplate (and that's a good thing in this weather.) I have a loop of track and 4 more decoders on order to see what damage I can do to it ;D
Quote from: Martijn Meerts on July 17, 2008, 03:53:18 pm
What if you have a layout that's big enough to require multiple boosters?
The next task is to have a 'data out' port to bridge boosters... the goal will be to have a max cable length (say 3m between boosters) and then 3m to the tracks in question from the decoders... all this is to be tested when I have my track... I'll create another booster in that time... and then isolate the track into two sections and get it running.
Quote from: Martijn Meerts on July 17, 2008, 03:53:18 pm
The problem starts when you want automated control.
I totally agree... I had thought that DCC would be the be-all-and-end-all of Model Railroading... I mean, if you can talk to the train then it should be able to talk back. Well, it can... but it'll still only report to the booster/command station it's wired through to (based on it's current block) and then that unit still wont know exactly where the loco is... especially dependant on the size of said block.
I suppose the next trick is to put ethernet chips in the train and just give them all IP Addresses... hah.. that gives me some ideas. ;)
Logged
Steven Hoefel.
Model Railroading/DCC Blog/Japanese trains
Martijn Meerts
Administrator
Offline
Gender:
Re: Computer controlled DCC from scratch.
«
Reply #14 on:
July 18, 2008, 12:45:53 am »
You could add wi-fi transmitters in them that transmit their location based on a GPS coordinate system for the layout ;) Pretty sure that's hard to build, but on the other hand, that would really require a great deal less wiring. If only the Japanese started getting into some serious DCC, I bet they'd be able to shrink the decoders to half the size of what they currently are, and make them twice as cheap in the process...
Btw, does the booster use only standard components, or did you have to program the ic's and such? I seem to remember most circuits for not just boosters, but also occupancy decoders, feedback decoders and accessory decoders all required ic's to be programmed. Back then it was a problem, now it should be quite doable since those programmers don't cost tons anymore =)
I've build a few circuits myself as well, but those are based on kits and come with pre-programmed ic's. You get a manual of where everything should go. I've built those to control turnout motors (like circuitron's tortoise), feedback modules, and a lighting controller that interfaces with the pc. Those were easy to build though, just require a lot of soldering ;)
Logged
Mixed Japanese N-scale:
http://www.jr-chiisai.net
Era III German 0-scale:
http://blackforest.jr-chiisai.net
stevenh
Tetsudo Staff
Offline
Gender:
Re: Computer controlled DCC from scratch.
«
Reply #15 on:
July 18, 2008, 01:06:57 am »
Quote from: Martijn Meerts
You could add wi-fi transmitters...
Woah, now you're thinking... that's a neat idea... although I've always been a fan of hard-wired stuff. I'm going to investigate ethernet/wifi embedded devices shortly... They already have power-over-ethernet anyway :)
Quote from: Martijn Meerts
If only the Japanese started getting into some serious DCC...
Gah, tell me about it... I understand the whole space-concerns, etc... in Japan and therefore wanting easy to setup/packdown layouts... but DCC rocks...
Quote from: Martijn Meerts
Btw, does the booster use only standard components, or did you have to program the ic's and such?
All standard, although hard to find in Australia. No programming involved.. that's all on the PC side. There are other setups where people have built the command station as a separate device... this was never my goal.
Quote from: Martijn Meerts
...based on kits and come with pre-programmed ic's...
Total cheating :P... I was thinking of designing a PCB for this booster and then providing the kits... makes like so much easier than the hell I went through last night to hack veroboard and build the prototype :)
Anyway.. real-work continues... i'll get back to this project, and others, over the weekend.
Logged
Steven Hoefel.
Model Railroading/DCC Blog/Japanese trains
CaptOblivious
Philosopher-Engineer
Administrator
Offline
485系「あいづライナー」
Re: Computer controlled DCC from scratch.
«
Reply #16 on:
July 18, 2008, 03:39:45 pm »
WiFi may be overkill. Two words: Bluetooth :D
Logged
A miniature slice of geekdom,
Akihabara Station
Martijn Meerts
Administrator
Offline
Gender:
Re: Computer controlled DCC from scratch.
«
Reply #17 on:
July 18, 2008, 04:06:42 pm »
Quote from: CaptOblivious on July 18, 2008, 03:39:45 pm
WiFi may be overkill. Two words: Bluetooth :D
Meh, crappy range.. I'd need several repeaters just for Tokyo Station alone ;))
Btw Steven, nice avatar. I recently bought that loco and the accompanying string of cars =)
Logged
Mixed Japanese N-scale:
http://www.jr-chiisai.net
Era III German 0-scale:
http://blackforest.jr-chiisai.net
stevenh
Tetsudo Staff
Offline
Gender:
Re: Computer controlled DCC from scratch.
«
Reply #18 on:
July 18, 2008, 11:30:08 pm »
Quote from: CaptOblivious on July 18, 2008, 03:39:45 pm
WiFi may be overkill. Two words: Bluetooth :D
Valid, but I hate Bluetooth :)... I think it's all the dicks that walk around with their robots ear devices... :)
Quote from: Martijn Meerts on July 18, 2008, 04:06:42 pm
Btw Steven, nice avatar. I recently bought that loco and the accompanying string of cars =)
I loved watching it come in and leave around midday at ShinOsaka station when I was there for 2 months over christmas... Speaking of which, I should throw those photos up somewhere.
I've just found the carriages online (7 of them in a set) but no loco... I wonder if getting the whole set together is cheaper.
Logged
Steven Hoefel.
Model Railroading/DCC Blog/Japanese trains
Bernard
Administrator
Offline
Gender:
Re: Computer controlled DCC from scratch.
«
Reply #19 on:
July 19, 2008, 03:14:00 am »
Steveh - If you want you can post your photos in the gallery section.
Logged
Martijn Meerts
Administrator
Offline
Gender:
Re: Computer controlled DCC from scratch.
«
Reply #20 on:
July 19, 2008, 10:10:43 am »
The loco is part of a set as well, comes with 2 cars. It's one of Tomix's smaller sets, meant for people who are just getting started I believe. Then there's 2 add-on sets, and additionally you can get a separate dining car with lit table lamps. Numbers are:
92240 for the basic set including loco
92241 for add-on set 1
92242 for add-on set 2
8514 for the dining car with lit table lamps.
Quote from: stevenh on July 18, 2008, 11:30:08 pm
Quote from: Martijn Meerts on July 18, 2008, 04:06:42 pm
Btw Steven, nice avatar. I recently bought that loco and the accompanying string of cars =)
I loved watching it come in and leave around midday at ShinOsaka station when I was there for 2 months over christmas... Speaking of which, I should throw those photos up somewhere.
I've just found the carriages online (7 of them in a set) but no loco... I wonder if getting the whole set together is cheaper.
Logged
Mixed Japanese N-scale:
http://www.jr-chiisai.net
Era III German 0-scale:
http://blackforest.jr-chiisai.net
stevenh
Tetsudo Staff
Offline
Gender:
Re: Computer controlled DCC from scratch.
«
Reply #21 on:
November 26, 2008, 11:13:43 pm »
It's done....
After, now months, of work... the short circuit protection works perfectly and the system can deliver up to 5Amps depending on power supply and configuration.
See the Blog post here
That current box is fairly ugly, so I intend on running to the shops on the weekend to grab something a little more aesthetically pleasing.
As for the usage:
You can hook up multiple in a chain and also push both outputs to the same segment of track for higher current demands.
*wipes brow*... has been great fun :)
«
Last Edit: December 17, 2010, 12:07:21 am by stevenh
»
Logged
Steven Hoefel.
Model Railroading/DCC Blog/Japanese trains
serenityFan
Tetsudo Staff
Offline
Gender:
Re: Computer controlled DCC from scratch.
«
Reply #22 on:
December 18, 2008, 01:31:18 am »
steven, I was just wondering, can you use other software (like JMRI -
http://jmri.sourceforge.net/
) with your booster?
Logged
stevenh
Tetsudo Staff
Offline
Gender:
Re: Computer controlled DCC from scratch.
«
Reply #23 on:
December 18, 2008, 01:33:16 am »
You should be able to, but I haven't tried setting it up yet...
I remember failing to install it on Linux and not trying on Windows.
Although, the site does say that it can spew out direct commands, maybe even interface with SRCP... I'll have to investigate and get back to you.
Logged
Steven Hoefel.
Model Railroading/DCC Blog/Japanese trains
Pages: [
1
]
Go Up
Print
Japanese Modelling & Japan Rail Enthusiasts Forum
>
Forum
>
Platform 4 - (The Dark Side of) Modeling
>
DCC and Electrical
> Topic:
Computer controlled DCC from scratch.
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Platform 1 - Birth and Death of a Forum
-----------------------------
=> Welcome Guest!
=> Welcome
=> Forum Announcements
=> The Agora, General Administrative Discussions
-----------------------------
Platform 2 - Japanese Model Railroading
-----------------------------
=> N Gauge
=> Other Gauges and Scales
=> Trams and Trolleys
-----------------------------
Platform 3 - Products and Retailers
-----------------------------
=> New Releases and product Announcements
=> Suppliers
=> Hobby Shops - Where are they?
-----------------------------
Platform 4 - (The Dark Side of) Modeling
-----------------------------
=> The Train Doktor
=> DCC and Electrical
=> Layout Computer Control & Automation
=> The Tool Shed
=> Scenery
-----------------------------
Platform 5 - Layouts, Clubs and Projects
-----------------------------
=> Personal Projects
=> Club News
=> Archived Project Parties
===> September 2009 Project Party
===> Summer 2010 Project Party
===> Summer 2011 Project Party
-----------------------------
Platform 6 - Japan and Japan Rail
-----------------------------
=> Japan Rail, news and announcements
=> Prototypes, pictures and videos
=> Japan, travel tips and memories
-----------------------------
Platform 7 - International Modelling and Railroading
-----------------------------
=> Non-Japanese Modelling
=> Non-Japanese Prototypes
=> Non-Japanese Travelling
-----------------------------
Platform 8 - Other Destinations and Hobbies
-----------------------------
=> Train Related Software, Games and Simulations
=> Other Hobbies
=> Off Topic
TinyPortal v.1.0.6 beta 2 ©
Bloc
Problems? Simply email "help" at "jnsforum" dot "com"!
Loading...