Jim asks "why?"
Dear Jim,
- A "Raspberry Pi" is a small computer on a single circuitboard. It's powerful enough to run the JMRI suite of applications, and a lot cheaper than even the smallest windows laptops.
(They are also powerful enough to run stripped-down purpose-modified versions of Windows,
but are commonly used with pre-configured forms of the free Linux operating system).
Raspberry Pis (sometimes shortened to "RPi" or just "Pi")
can commonly connect to a full-sized HDMI PC monitor, and have USB ports so you can plug in a "normal" USB Keyboard and mouse. Setup this way, they appear to work just like a "normal" desktop computer does.
The benefits are that they are cheap, can work well with JMRI,
(which has gained a reputation in some areas as a "must have" tool for any modeller using DCC)
and can effectively take the place of a "full sized" PC on your workbench (DCC programming of locos)
or layout (running JMRI to control turnouts, signals, loco-dispatching, etc).
- An "Arduino" is a cheap little circuitboard device, which can be user-programmed to do all manner of tasks. It is by definition "flexible" in that it's nothing but a lump of dumb hardware until a "sketch" (a program of commands and configuration) is loaded into it. (This can be a blessing or a curse, depending on whether your particular head is "wired" to naturally understand "coding in software" or "coding in hardware". See Dr Geoff and PQE's "Arduino tutorial" threads for some of the easiest model railroading entry-point walkthrus in living memory).
Arduinos are also "flexible" in the sense that they are available in multiple different physical sizes
(pick the one that fits in whatever space the project allows),
and they have a load of connections onboard which can be used-directly
(plug straight onto the Arduino board)
or via bolt-on daughterboards (called "shields")
to accept all manner of Inputs from various controls
(Press buttons, toggle switches, track detection, PIR detectors, variable potentiometers , etc etc)
and control all manner of output devices
(LEDs, Motors, Servos, signals, Tortoises, etc etc)
With specific high-grade "sketches" loaded, they are capable of doing amazing "standalone" tasks such as:
- acting as stationary, or even mobile DCC decoders
- animating entire layout scenes
- forming the "brains" of homebuild LCC/DCC throttles
- controlling fast/smart clocks
etc etc
however, they also have a USB port and can be connected to "normal computers"
(including Raspberry Pis) to form more-complex systems, capable of entire layout and layout-room control and automation...
(The "DCC++" system falls under this category.
- A "normal PC" or RPi running JMRI
- sends signal to an Arduino to turn into DCC commands,
- which are then "amplified" to track-voltage level by a Motor-Shield,
and et voila, you have a "complete DIY DCC command system")
All of these devices aren't necessary to build the kind of layout you've mentioned in recent times,
and arguably if you have to ask "why is it a good thing to spend money on?",
then it's likely not a Good Thing for you to spend money-on at this time,
(They kinda come under
"...if you've done the research enough to know they solve a Model RRing problem you're facing,
then you don't need anyone to tell you why they are worth purchasing...",
and if you're a-ways-away from actually building the layout,
then by the time you get to the critical point of needing _something_ to solve ??? problem,
there will likely have been X number of RPi alternatives come-and-go by then...),
but for those modellers who do have a _pressing_need_ Command, Control, or Animation task on their layout right now, for which:
- a basic analog or simple chip-based circuit solution just doesn't give enough...
(precision timing, interactive logic, control, inputs, outputs, whatever)
- and/or a commercial "black box" solution is not available
- or the solution "looks like it needs a full-sized computer",
but the modeller does not want to purchase an proper DELL/HP/ASUS "just to do a little model RR thing"
then an Arduino or Raspberry Pi might just be capable of building-up into a working solution...
I hope this helps...
Happy Modelling,
Aim to Improve,
Prof Klyzlr