Go Down

Topic: Arduino controlled model trains and layout (Read 5186 times) previous topic - next topic

Nov 12, 2018, 03:45 am Last Edit: Nov 15, 2018, 05:26 am by Steve_Massikker

Hello friends! I developed a very simple and cozy model trains control system using an Arduino and Android applications. All instructions on my site: www.arduinorailwaycontrol.com. I really need your feedback. Here I will answer all your questions. Discussions are welcome!

#1
Nov 12, 2018, 07:17 am Last Edit: Nov 13, 2018, 05:07 am by Steve_Massikker
Probably you will be interested my tutorials on Arduino.PROJECT.HUB:

- Android App Arduino Train Demo
- The URB Unit - Making Arduinos Network
- Using IR & Hall Type Sensors for Train Detection

How order or making the URB unit

Robin2

Image from Original Post so we don't have to download it. See this  Simple Image Guide



...R
Two or three hours spent thinking and reading documentation solves most programming problems.

Robin2

It looks interesting but how does it work?

Are the trains controlled through the track using DCC or does each loco have its own Bluetooth receiver?

If the locos have Bluetooth receivers how are they powered? Through the track, or with batteries?

If you have a Bluetooth receiver in each loco can you post a photo of the module in the loco?

And how many different locos can the system control?

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

#4
Nov 12, 2018, 11:20 pm Last Edit: Nov 12, 2018, 11:44 pm by Steve_Massikker
Good question :)
It's work only DC mode
You may use many trains on isolated tracks, so have running an automatic interlocking system are possible and simultaneous control of two players.

Robin2, Thanks so much for the guide. Really cool features!

Parodius316


#7
Nov 12, 2018, 11:56 pm Last Edit: Nov 13, 2018, 12:11 am by Steve_Massikker
Yeeeeeeessssss! Owners of DCC systems have many reasons use other Arduino projects. My opinion about DCC here.
And the question to Parodius316, can you do this or that in your DCC system?

And my system works with any scales of model trains (HO, TT, N) and greatly cheaper compared by DCC. :smiley-wink:

Robin2

I have no problem with a DC system - some competition for DCC is a good thing.

But you have not given us a simple overview of how it works - and your website seems mainly about clever pictures.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

#9
Nov 14, 2018, 03:17 am Last Edit: Nov 14, 2018, 05:39 am by Steve_Massikker
The Android application on the phone via Bluetooth or computer via serial connection (USB cable) transmits simple string commands to the communicate Arduino (Communicate URB unit). The sketch converts them into a change in the state of I/O pins or sends them to other Arduino via I2C or via a more complex chain (that is, a routing occurs, which you set yourself). Thus you can build any flexible distributed control system. Response data transfer from any URB units to Android or a computer allows you to apply feedback.

In general, this is a rather complicated system, and I just cannot describe it simple. :smiley-confuse:

And thanks again for Image Guide. Funny trick!

#10
Nov 14, 2018, 03:31 am Last Edit: Nov 14, 2018, 04:16 am by Steve_Massikker
Variants connections between URB

Robin2

In general, this is a rather complicated system, and I just cannot describe it simple. :smiley-confuse:
I can understand that there may be some levels of complexity but at the bottom of the pile a loco has a DC motor which is simple to control - how is that done.

Another way of looking at it is if I want to drive a single train what Arduino bits do I need to buy?


...R

PS ... In my working experience, the "real" experts I dealt with (physics, engineering, economics) had no trouble explaining themselves in simple language for "ordinary folk".

Two or three hours spent thinking and reading documentation solves most programming problems.

#12
Nov 14, 2018, 09:31 am Last Edit: Nov 14, 2018, 09:48 am by Steve_Massikker
Hmm...http://arduinorailwaycontrol.com/arduino.php#motor-driver

All sketches on my project are specially written based on the simpliest classic sketches from Arduino IDE (for example SerialEvent).
Sorry, I do not understand your opinion about "experts" and "not for ordinary folks" :(

#13
Nov 14, 2018, 10:02 am Last Edit: Nov 14, 2018, 10:04 am by Steve_Massikker
Another way of looking at it is if I want to drive a single train what Arduino bits do I need to buy?


...R

PS ... In my working experience, the "real" experts I dealt with (physics, engineering, economics) had no trouble explaining themselves in simple language for "ordinary folk".


Video and link to sketch for an one train.

Robin2

#14
Nov 14, 2018, 11:06 am Last Edit: Nov 14, 2018, 11:46 am by Robin2
Video and link to sketch for an one train.
I have looked at the link.

It seems to be very traditional DC control of power to the track using a motor driver. I presume that means that the user who wishes to run several locomotives has to implement some form of what model-railway-folks call cab-control.

Does your system manage that? The wiring and switching can be very complex - which is why DCC is attractive.

You might also consider a more modern and more efficient motor driver than an L298. I am using Infineon TLE5206 drivers for a system I am building for a group in my model railway club. Those chips have overload and short-circuit protection and fault indication.


...R
Two or three hours spent thinking and reading documentation solves most programming problems.

Go Up