Lumsdonia

Post pictures and information about your own personal model railway layout that is under construction. Keep members up-to-date with what you are doing and discuss problems that you are having.
User avatar
TimberSurf
Posts: 2044
Joined: Wed Jan 08, 2014 5:47 pm
Location: N.Wales
Contact:

Re: Lumsdonia

Postby TimberSurf » Tue May 01, 2018 9:59 am

!2C is out then as block detector Arduino's will be far apart.
Yes SPI may be a problem. if I understand correctly, each slave uses a I/O on the master? I could get 4 block detectors in each Arduino, then I would only need ten, but using 10 I/O on the master leaves little else for the mimic (assuming the master IS the mimic) or I could have an independant master and have the mimics as slaves. I need to communicate between block Arduinos AND send block states to the mimic.
Can you have multiple addresses on serial?
Image
Lumsdonia <--- Hit link to go to my website for full story and wiring advice!

timbologist
Posts: 362
Joined: Wed Sep 18, 2013 6:39 am
Location: Hazeldene Victoria Australia ( in the bush )

Re: Lumsdonia

Postby timbologist » Tue May 01, 2018 10:20 am

TimberSurf wrote:Can you have multiple addresses on serial?

Unfortunately not, the other 2 wire option is using a CANBUS, but more complex handshaking.
Which Arduino are you planning to use.

timbologist
Posts: 362
Joined: Wed Sep 18, 2013 6:39 am
Location: Hazeldene Victoria Australia ( in the bush )

Re: Lumsdonia

Postby timbologist » Tue May 01, 2018 10:27 am

The I2C and the SPI system were designed for communications between devices on the same PCB to eliminate the need for at data bus and address bus to run everywhere

User avatar
TimberSurf
Posts: 2044
Joined: Wed Jan 08, 2014 5:47 pm
Location: N.Wales
Contact:

Re: Lumsdonia

Postby TimberSurf » Tue May 01, 2018 11:53 am

timbologist wrote:Which Arduino are you planning to use.

CANBUS sounds scary!
I have been using mini pro so far, but could upgrade if needed. Sounds like I need a VAT table in a master (handles just coms and data) that all can look up data in and get the master to poll for updates?
Image
Lumsdonia <--- Hit link to go to my website for full story and wiring advice!

timbologist
Posts: 362
Joined: Wed Sep 18, 2013 6:39 am
Location: Hazeldene Victoria Australia ( in the bush )

Re: Lumsdonia

Postby timbologist » Tue May 01, 2018 12:27 pm

The baby one, I am using that one to control my points, I can control 6 points on each one, using PWM to control sevrvo's to throw the points. Slow motion,I have a video on youtube that shows there operation.

timbologist
Posts: 362
Joined: Wed Sep 18, 2013 6:39 am
Location: Hazeldene Victoria Australia ( in the bush )

Re: Lumsdonia

Postby timbologist » Wed May 02, 2018 8:36 am

Regarding your mimic panel a good option is using a MAXIM chip MAX7219 https://datasheets.maximintegrated.com/en/ds/MAX7219-MAX7221.pdf

Uses SPI so only need 3 lines on the Arduino to drive it MOSI CLK and CS and will drive 64 LEDS in an 8 x 8 matrix. I will be using this chip on my Mimic panel. easy to use as there is a library to make things simpler to use.

User avatar
Bufferstop
Posts: 10402
Joined: Thu Mar 11, 2010 12:06 pm
Location: Bottom end of N. Warks line

Re: Lumsdonia

Postby Bufferstop » Wed May 02, 2018 1:04 pm

TimberSurf wrote:[.
CANBUS sounds scary!


It's the basis of the control by wire systems in most cars. I once ran a computer system that used a development of CANBUS. Blindingly fast for its time, but with a total lack of error checking, so if a node missed part of a download the operator had to request it again. Or if the server missed your request you had to keep thumbing return. Made computer practical sessions a fun exercise, just right for "bored out of their skull" reluctant YTS apprentices. The ultimate computer game you versus the system.
PS it had a real mean "UFO shoot em up" game.
Growing old, can't avoid it. Growing up, forget it!
My Layout, My Workbench Blog and My Opinions

timbologist
Posts: 362
Joined: Wed Sep 18, 2013 6:39 am
Location: Hazeldene Victoria Australia ( in the bush )

Re: Lumsdonia

Postby timbologist » Thu May 03, 2018 2:10 am

Here is a good table that compares UART SPI AND I2C

http://www.rfwireless-world.com/Terminology/UART-vs-SPI-vs-I2C.html

User avatar
TimberSurf
Posts: 2044
Joined: Wed Jan 08, 2014 5:47 pm
Location: N.Wales
Contact:

Re: Lumsdonia

Postby TimberSurf » Thu May 03, 2018 6:25 am

timbologist wrote:The baby one, I am using that one to control my points, I can control 6 points on each one, using PWM to control servos to throw the points.
So if you have one mini per 6 points, how do you communicated with them?
It is an interesting comparison chart that indicates all can communicate over 50ft! That' not what I have read so far. Research is saying max 6ft for I2C as a best practice, but longer is possible.
I2C looks ideal from the point of view of intercommunication between block Arduino's, but I am guessing that programming of swappable masters may get beyond my capabilities. SPI looks good, I could use a common table and share it from a central coms arduino as the master and could therefor live with the extra wiring.
At some point, I will sit down and draw a topology diagram, so I can see what needs to talk to what.
Image
Lumsdonia <--- Hit link to go to my website for full story and wiring advice!

timbologist
Posts: 362
Joined: Wed Sep 18, 2013 6:39 am
Location: Hazeldene Victoria Australia ( in the bush )

Re: Lumsdonia

Postby timbologist » Thu May 03, 2018 9:30 am

TimberSurf wrote:So if you have one mini per 6 points, how do you communicated with them?

At the moment non of the point set-up is present. most of the points have rubber bands holding them in place as I have taken the springs out. :oops:
It's on the one day list. Probably will use SPI 1 slave Mega, will probably have connection to 1 Mini, most of the points are in 1 area
TimberSurf wrote:It is an interesting comparison chart that indicates all can communicate over 50ft! That' not what I have read so far. Research is saying max 6ft for I2C as a best practice, but longer is possible.

The fine print is missing if you use boosters you can go further, and also if you drop the data speed down will go further, even 6 ft seems a bit far on un-boosted, unless you cut the data rate down.

User avatar
TimberSurf
Posts: 2044
Joined: Wed Jan 08, 2014 5:47 pm
Location: N.Wales
Contact:

Re: Lumsdonia

Postby TimberSurf » Wed Jun 06, 2018 8:52 pm

I have just returned from a two week trip and got an added bonus while away, as I managed to get an unplanned TRAIN visit included!

For the engine guru's, guess what this is and where?
Mistery trip.jpg
Image
Lumsdonia <--- Hit link to go to my website for full story and wiring advice!

User avatar
manna
Posts: 687
Joined: Mon May 31, 2010 10:13 am
Location: Booborowie S Aust

Re: Lumsdonia

Postby manna » Wed Jun 06, 2018 9:33 pm

G'Day Gents

It's an Ex LMS 8F, but to 'where'is it' I don't know, but it has a hint of Asia about it :D

manna
EDGWARE GN. Steam in the Suburbs

User avatar
TimberSurf
Posts: 2044
Joined: Wed Jan 08, 2014 5:47 pm
Location: N.Wales
Contact:

Re: Lumsdonia

Postby TimberSurf » Wed Jun 06, 2018 9:59 pm

You are correct manna!
So here is another one you might recognise:-
Mistery trip 2.jpg
Image
Lumsdonia <--- Hit link to go to my website for full story and wiring advice!

User avatar
Mountain
Posts: 2465
Joined: Mon Oct 24, 2016 3:43 pm
Location: Somewhere in Wales, UK.

Re: Lumsdonia

Postby Mountain » Wed Jun 06, 2018 10:19 pm

Is it a North British company design? The style it is in makes me think a bit of India, but India would go overboard with their painting and it would be immaculately turned out.
Then we come to Africa ads many British locomotives ended up there as railways grew through the many African countries, so this would be my first choice of a continent, though to narrow it down to a single country there wouldn't be easy.
Many other countries ended up with British built locomotives as Britain exported world wide. In theory this locomotive could have been built anywhere between about 1910 to 1950 though it looks more like the 1920-30's that it would have been built as the 1940's saw Britain too involved in the war or cleaning up after the war.
It looks like it was likely to be used for passenger services in a warm climate where lightly laid track may have been the order of the day? Was just a thought.
Australia could be a possibility and even Turkey or places like that.
Don't do anything I wouldn't do!

User avatar
Mountain
Posts: 2465
Joined: Mon Oct 24, 2016 3:43 pm
Location: Somewhere in Wales, UK.

Re: Lumsdonia

Postby Mountain » Wed Jun 06, 2018 10:20 pm

Is not Libya is it?
Don't do anything I wouldn't do!


Return to “Personal Layouts - Under Construction”

Who is online

Users browsing this forum: No registered users and 8 guests