AMSERARALLLLEARALL ELECTRONICS

Post all your model railway electronic problems, solutions and discoverys here.
timbologist
Posts: 362
Joined: Wed Sep 18, 2013 6:39 am
Location: Hazeldene Victoria Australia ( in the bush )

AMSERARALLLLEARALL ELECTRONICS

Postby timbologist » Thu May 24, 2018 7:09 am

Due to an error on my part my main thread regarding my layout under construction, I called it "MY NEW LAYOUT ARDUINO CONTROLLED"
I have probably put people off by the title so I have now broken it up into 2 separate threads on for scenery and this one for the electronics.
The mixed up thread is viewtopic.php?f=22&t=50895
and the scenery layout thread is now located at viewtopic.php?f=22&t=53022&p=651352#p651352
So hopefully I shall sort my mess out.
Last edited by timbologist on Thu May 24, 2018 12:42 pm, edited 2 times in total.

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

Re: AMSERARALLLLEARALL ELECTRONICS

Postby timbologist » Thu May 24, 2018 7:32 am

So Today finally have got the Auto Acceleration or Train Start moving and running button working. Now don't have to twiddle the knob to get the train running any more. At present the final speed is a fixed value, which I will make selectable as different Loco's will have different settings.
With Hand Controller I can now disconnect it from the layout and everything still runs, then when the Hand Controller is plugged back in it retrieves all the last settings from the Master and continues where it left off. The CAN-BUS is definitely the way to go with this type of set-up.
I am currently waiting for some more CAN-BUS modules so I can start on the mimic panel will use an Arduino Mini for that part of the system.
But it is nice to sit back in the chair with a nice cup of TEA and watch the trains go by, at the moment I Have the Flying Scotsman, and 3 Pullman coaches.

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

Re: AMSERARALLLLEARALL ELECTRONICS

Postby TimberSurf » Thu May 24, 2018 8:31 pm

So effectively CanBus is "plug 'n' Play"?
Image
Lumsdonia <--- Hit link to go to my website for full story and wiring advice!

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

Re: AMSERARALLLLEARALL ELECTRONICS

Postby Bufferstop » Thu May 24, 2018 11:20 pm

Nearly forty years ago I looked after a computer network based on Can-Bus. It was the most resilient network I've ever used, BUT you had to be prepared to do an awful lot of the work yourself, there were transmitters and receivers, but no error checking or acknowledgement, you'd submit a request to the server then you had to watch for it responding otherwise you'd resubmit but once your devices were configured to do what you needed it was lightning fast and you could potentially hang anything off it. Two pairs of wires "one in each direction" or at a pinch two wires and a common ground (showing its automotive background), made it ideal for the sort of things we want to do.
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: AMSERARALLLLEARALL ELECTRONICS

Postby timbologist » Fri May 25, 2018 2:15 am

Not having a good time with these new threads forgot to subscribe to them :oops: so was getting no notifications.
TimberSurf wrote:So effectively CanBus is "plug 'n' Play"?

Yes it is pretty much plug and play, since Bosch developed this system for Automotive use, it just works. And is the nearest thing to bullet proof.
It only needs 2 wires a twisted pair for communication between devices. So the devices don't even need a common ground or power between them.
How simple can something get, all the error detection, crash detection is all done in the special IC's that are used.
So it has come along way from when you were involved with maintaining this type of set-up.
Bufferstop wrote:Nearly forty years ago I looked after a computer network based on Can-Bus

User avatar
Flashbang
Posts: 3244
Joined: Thu Oct 18, 2007 1:07 pm
Location: SE United Kingdom
Contact:

Re: AMSERARALLLLEARALL ELECTRONICS

Postby Flashbang » Fri May 25, 2018 7:14 pm

MERG kits https://www.merg.org.uk/ use 'CBus' (CanBus) as one method of layout two wire electronic control.
I have recently purchased several of their kits and built them and delighted with the results.
Image << Click the Icon to go to my website

Broken? It was working correctly when I left it.

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

Re: AMSERARALLLLEARALL ELECTRONICS

Postby Bufferstop » Fri May 25, 2018 8:33 pm

If anyone remembers Lucas it was they who developed the can_bus network that I knew as an exercise in developing staff knowledge, Bosch were doing the same. Lucas were part of the UK motor industry, shared most of it's faults and suffered the inevitable consequence. Fortunately Bosch made a better job of it!
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: AMSERARALLLLEARALL ELECTRONICS

Postby timbologist » Fri Jun 01, 2018 12:10 pm

Well been going crazy the last few days wiring up the Mimic Panel matrix array interface board, that's the board at the top of the picture has 8 rows x 8 columns so had to wire up the matrix for 64 LEDS each with a 2 pin header. 40 LEDs are for train location the rest will be used for point positions. Again this Arduino is hooked up to the rest of the system using the CAN-BUS, just needed to add 2 wires from the last CAN-BUS module. At the moment is using an Arduino UNO but will have a Pro-Mini in the final set-up, I had to order more 2 pin housings to make more leads for the rest of LEDs, over the weekend hopefully will get a mock-up of the panel done. Then I will make another boring video to show it working.
And a side note I got my new false teeth today so might be able to do a talky video, eating is a pain the bottom one wants to keep jumping out of my mouth so have to take it out to eat :).

The mock-up works as it should with only 8 leds hooked up, the software was a bit of a pain as it will show the position of more than one train.
In later versions may do something silly and have each train in a different colour LED by using RGB LEDS, which would mean another 2 interface boards and some "Mickey Mouse Logic" at each LED as the LEDS are Common Cathode, but the cathodes need to be separate to connect to the arrays :?: .

MIMIC-DISPLAY- PROTOTYPE.JPG
MIMIC-DISPLAY- PROTOTYPE

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

Re: AMSERARALLLLEARALL ELECTRONICS

Postby Bufferstop » Fri Jun 01, 2018 3:07 pm

Now I can usually get my tongue around Welsh names and I think I've got the breaks in the right places but this ones got me stumped. How about a bit of phonetic help :)
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: AMSERARALLLLEARALL ELECTRONICS

Postby timbologist » Wed Jun 06, 2018 9:42 am

Bufferstop wrote:Now I can usually get my tongue around Welsh names and I think I've got the breaks in the right places but this ones got me stumped. How about a bit of phonetic help :)

I did not realise that you had to be able to pronounce these names I typed in the original phrase and used some online translator to see what it looked like in another language. Of course the below I have taken the spaces out!

Swahili________wakatimwinginemahalipengine
Irish__________ameileáiteile
Galician_______outraveznoutrolugar
LATIN________aliotemporealioloco
Scots Gaelic___àiteeileàiteeile
Zulu__________esinyeisikhathiesinyeindawo
????__________belonehwiiibelone

I have been reading data sheets and found the info for driving RGB LEDS in a Matrix so I have already scrapped the single colour leds and gone to the RGB set-up already below are photos of the Matrix interface board. The LEDS and The rest of the components are on there way from China already. The actual Mimic panel has been printed out and laminated ready to stick to the perspex or MDF what ever I find when I go into the workshop. Started to look at replacing the Arduinos with STM32's which are a 32 bit Micro running at about 78MHZ compared to the Arduino's 8 bit 16MHZ more horse power. plus they have more program space and ram, good for the main controller the "BRAINS". Everything else is still progressing slowly.
MVC-416F.JPG
RGB MIMIC PANEL INTERFACE BACK

MVC-415F.JPG
RGB MIMIC PANEL INTERFACE FRONT

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

Re: AMSERARALLLLEARALL ELECTRONICS

Postby timbologist » Fri Jun 22, 2018 10:22 am

Hope you all in the homeland are nice and warm because it is very cold down under, good inside train weather.
I have been doing a bit of work on the mimic panel all the goodies have arrived just getting things together. the case is 3mm MDF Laser cut with finger joints in the corners. The 5mm LEDs on the font panel are RGB Common Anode so different colours mean different things ( well that's the plan ). And the 3mm LEDs are just standard Red for the curve and Green for the straight. This will be hooked up to the rest of the system via the Can-Bus.

The boards mounted to the base panel are the interface board, the controller board and the Can-Bus controller, I still have to make the board to mount the cat-5 socket onto, as this will use cat-5 to connect to the rest of the system. Once wired up I then have to go write the software to control the LEDs.

Good job next to the wood fire with a nice cup of TEA.


MVC-417F.JPG
MIMIC PANEL OUTSIDE FRONT

MVC-418F.JPG
MIMIC PANEL INSIDE FRONT

MVC-419F.JPG
MIMIC PANEL BASE CONTROLLER ELECTRONICS


Return to “Electronics”

Who is online

Users browsing this forum: No registered users and 1 guest