Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Controlling trains off a PC

Thread Tools
 
Search this Thread
 
Old 09 June 2002, 08:56 PM
  #1  
super_si
Scooby Regular
Thread Starter
 
super_si's Avatar
 
Join Date: Feb 2002
Location: Lurkin Somewhere
Posts: 7,951
Likes: 0
Received 0 Likes on 0 Posts
Post

Is it possible might try getting a jump on a 3rd year project

Si
Old 09 June 2002, 09:26 PM
  #2  
dsmith
Scooby Regular
 
dsmith's Avatar
 
Join Date: Mar 1999
Posts: 4,518
Likes: 0
Received 0 Likes on 0 Posts
Post

Si - Why break the habit - and get a project in early

What sort of control do you need.. e.g.

Simple pre-programmed control of the voltage - so the Train can just be left to run without crashing
Interactive control via the PC (e.g. from Custom App or Web interface).
Some sort of intelligent feedback learning so it controls the train as fast as possible ?

Not an expert but I'm sure most can be achieved via the pll port and a basic D/A circuit. www.maplins.co.uk usually has some interesting pc based "project" kits which may help.

Deano
Old 09 June 2002, 09:33 PM
  #3  
super_si
Scooby Regular
Thread Starter
 
super_si's Avatar
 
Join Date: Feb 2002
Location: Lurkin Somewhere
Posts: 7,951
Likes: 0
Received 0 Likes on 0 Posts
Post

hey i worked my **** off on the java hash tables and the Vb code got 9% on both! good old 4am every day heheh

Si
Old 09 June 2002, 11:07 PM
  #4  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Post

Ive got a zero 1 made by hornby, this lets you run 18trains off 1 pair of wires... find out how this works and then go from there... would be very easy to do I would have thought..

David
Old 09 June 2002, 11:17 PM
  #5  
snowcrash
Scooby Regular
 
snowcrash's Avatar
 
Join Date: Mar 2002
Location: www.scoobyzone.co.uk
Posts: 2,082
Likes: 0
Received 0 Likes on 0 Posts
Cool

you guys informed railtrack about this?

it could save the government millions in revenue!!!!

Old 10 June 2002, 12:46 AM
  #6  
AndiThompson
Scooby Regular
 
AndiThompson's Avatar
 
Join Date: Aug 2001
Location: Republic Of Mancunia
Posts: 2,474
Likes: 0
Received 0 Likes on 0 Posts
Post

Yeah, i've seen it done before, should be pretty easy I would have thought.
Old 10 June 2002, 08:32 AM
  #7  
super_si
Scooby Regular
Thread Starter
 
super_si's Avatar
 
Join Date: Feb 2002
Location: Lurkin Somewhere
Posts: 7,951
Likes: 0
Received 0 Likes on 0 Posts
Post

lol @ snow

All i know it we have to programs a dependdant system to stop it crashing i just fancied having a bash at it

Si
Old 10 June 2002, 08:38 AM
  #8  
super_si
Scooby Regular
Thread Starter
 
super_si's Avatar
 
Join Date: Feb 2002
Location: Lurkin Somewhere
Posts: 7,951
Likes: 0
Received 0 Likes on 0 Posts
Post

Had words with the old man! he's said need a Input output card cos hes an electrical engineer but a muppet at pcs! he can do laser, robots etc but can he hell fix theses

Si
Old 10 June 2002, 10:10 AM
  #9  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Post

no you dont... You can do it via the parallel port, you need to isolate it somehow though as you dont want to accidently send high voltages (as little as 12v) back in...

David
Old 10 June 2002, 02:20 PM
  #10  
super_si
Scooby Regular
Thread Starter
 
super_si's Avatar
 
Join Date: Feb 2002
Location: Lurkin Somewhere
Posts: 7,951
Likes: 0
Received 0 Likes on 0 Posts
Post

Spoke to senior lecture apparently newcastle trying to make / software and hardware to control the train off the net! cool

Si
Old 10 June 2002, 03:28 PM
  #11  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Post

I would be interested in seeing what you do with this
/ or what you find out.. as the control could be modified for other things!

David
Old 10 June 2002, 04:16 PM
  #12  
ptholt
Scooby Regular
 
ptholt's Avatar
 
Join Date: Dec 1999
Posts: 3,846
Likes: 0
Received 0 Likes on 0 Posts
Post

Isnt this exactly what railtrack do? With all the downtime and late trains im guessing the whole rail network is running of a p90 with a very dodgy build of 95 installed!
Old 10 June 2002, 06:56 PM
  #13  
super_si
Scooby Regular
Thread Starter
 
super_si's Avatar
 
Join Date: Feb 2002
Location: Lurkin Somewhere
Posts: 7,951
Likes: 0
Received 0 Likes on 0 Posts
Post

Thanks how much we talking?
Old 11 June 2002, 09:39 AM
  #14  
dsmith
Scooby Regular
 
dsmith's Avatar
 
Join Date: Mar 1999
Posts: 4,518
Likes: 0
Received 0 Likes on 0 Posts
Post

Click on the maplins link and have a look......
Old 11 June 2002, 09:45 AM
  #15  
dsmith
Scooby Regular
 
dsmith's Avatar
 
Join Date: Mar 1999
Posts: 4,518
Likes: 0
Received 0 Likes on 0 Posts
Post

link looks wrong - its £99
Old 11 June 2002, 04:52 PM
  #16  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Post

I certainly dont think you need to go that far... you could talk read the inputs and outputs from the parrallel port...

or a max232 on the com port??

David
Old 11 June 2002, 05:28 PM
  #17  
dsmith
Scooby Regular
 
dsmith's Avatar
 
Join Date: Mar 1999
Posts: 4,518
Likes: 0
Received 0 Likes on 0 Posts
Post

Surely for a third year project you need some complexity ? control a few signal etc. - merely adding stop/go control wouldn't have cut it in my 3rd year !
Old 06 October 2002, 05:24 PM
  #18  
dsmith
Scooby Regular
 
dsmith's Avatar
 
Join Date: Mar 1999
Posts: 4,518
Likes: 0
Received 0 Likes on 0 Posts
Post

Well I reckon You could use one of these Maplin Parrallel port cards...

http://www.maplin.co.uk/products/det...an&modulecode=

If you lookup the Specs on the Velleman site it can do....

Features

optically isolated from computer
16 optically isolated digital connections
9 analogue outputs, of which one is high precision and 4 analogue inputs
a simple way of controlling using Turbo Pascal, Turbo C, Qbasic, Visual Basic
printer bypass connector on board
simple connection with printer port


Specifications

digital outputs : optocoupler, open collector output : 50mA - max. 30VDC
digital inputs : optocoupler input : 5V/5mA, max. 20V/40mA analogue outputs :
8 outputs DAC1 to DAC8, resolution : 64 steps
minimum output voltage : 0.1V at 2mA
maximum output voltage : 11.5V adjustable at 2mA
resolution per step from 0.1 to 11.5V : 160mV +/- 90mV
1 precision output DA1, resolution : 256 steps
minimum output voltage : 0V
maximum output voltage : 4.5V adjustable at 0.5mA
resolution per step from 0 to 4.5V : 17.5mV
analogue inputs :
4 analogue inputs AD1 to AD4, resolution : 256 steps
minimum input voltage : 0V
maximum input voltage : 5V
input impedance : 50Mohm
resolution : 19.5mV
communication protocol : I²Cbus
LED indication for each I/O
25 pin D series connector for computer
25 pin D series connector for printer
supply voltage : 230Vac
PCB dimensions : 237 x 133mm (9.3" x 5.2")

Which should give you the voltage reqd. Not usre what current a train pulls but if 2mA is not enough you could combine it with the dimmer module which with a bit of tweaking (you have to do some work ) should control as many amps as you line on 12v ?

Being able to control the parrallel port from some web scripts should be easy. Then you can add bells and whistles - like a webcam on the front of the train - and control of a few signals.

Am I getting carried away now ?


[Edited by dsmith - 6/10/2002 5:25:56 PM]
Old 06 November 2002, 04:48 PM
  #19  
MrDeference
Scooby Regular
 
MrDeference's Avatar
 
Join Date: Mar 2002
Posts: 337
Likes: 0
Received 0 Likes on 0 Posts
Post

Do you need to go anywhere near that complex?
Totally forgotten everything in my degree, but what about using the Transmit line of the serial port in a duty ratio type thing. Use this as the input for a transistor sinking the power, and smooth the resulting DC with a fat capacitor. Bung it all on a breadboard for £5

EDIT, Here we go - just to show I wasn't talking gibberish.
http://www.national.com/ms/LB/LB-18.pdf

[Edited by MrDeference - 6/11/2002 4:53:37 PM]
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
JimBowen
ICE
5
02 July 2023 01:54 PM
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
Abx
Subaru
22
09 January 2016 05:42 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM
Ganz1983
Subaru
5
02 October 2015 09:22 AM



Quick Reply: Controlling trains off a PC



All times are GMT +1. The time now is 08:10 AM.