in this video I'm going to show you how
to use JMRI and your DC C++ without a
computer we're gonna hook it up to a
Raspberry Pi and we're also gonna use
our cell phone as a throttle so see how
we're gonna do this i'm Tom Kvichak
and this is Toms Trains and Things this
channel was created to help other
modelers who are in need of guidance in
pursuing their dream of building a model
railroad the Raspberry Pi is a small
device it is a small computer that you
could hook up your mouse keyboard
speakers and an HDMI monitor this one
has Wi-Fi you could hook up a camera to
it and you could do a lot of things to
it this is a little bit more powerful
than an Arduino and I'm gonna show you
in this video how to hook it up easily
so you can use this to run your JMRI
and DCC++ this is all you're going to
need for this project right here you're
gonna need a mini SD card you're gonna
need the Raspberry Pi with Wi-Fi this
right here is a wall wart it's 5 volts
2.5 amps and your DCC++ base
station and some tracks you also need
your computer to set it up first because
you're going to have to put the program
on this mini SD card and then once you
do that you'll be able to use that as a
bootable disk for your Raspberry Pi and
here is the Raspberry Pi with Wi-Fi
capabilities and Bluetooth I have one a
same version but without Wi-Fi so you do
have the possibility of purchasing this
without the Wi-Fi which I did originally
I have an extra one now but this is the
one we're going to use that has the
Wi-Fi on there and it's all the same we
have four USB to ports we have the
Ethernet we have an output plug right
here where you we could hook up speakers
we have the HDMI and we have the power
input and right here is where you put
the mini SD card we're gonna set this up
for the raspbian operating system we're
gonna put it on this mini SD card right
here what I'm gonna show you on here is
the easiest way to do it there are two
different methods to install the
software on a Raspberry Pi I'm going to
tell you at the end of this video which
one I like best I've taken you to the
Raspberry Pi website and we're gonna go
to downloads and there's two ways that
we could do that we could actually put
the raspbian operating system on the
mini SD card or we could put the noobs
program on there which is actually new
out-of-the-box software which is
actually an easier way of installing the
software and let's take a look at this
see there's a noobs light and the noobs
and we could download the zip file onto
there but before we get to that I want
to show you the raspbian also this is a
good way to do it this is how I did it
with a another program called echar it's
a free program that allows you to make
your SD card a bootable device but
anyway this is available for you to do
if you feel more comfortable with it and
you are more experienced with installing
software for our purposes here we're
going to use the noobs software and
place that on our SD card so we can
install it easily well if you haven't
used these before you have the SD full
size SD and the mini SD and just place
it in there like so
all right and then you stick it in your
SD card reader in your computer if you
don't have an SD card reader in your
computer you could pick up one of these
they're real cheap this is an insignia I
got this at Best Buy for about five
bucks you can put your SD card right in
here this way it shows you how to put it
in and then you put it in your USB slot
it's that easy we're gonna download the
zip file just click on download and
we're gonna put it on the desktop for
you there we go I've been calling this a
mini SD card it's actually a micro SD
card but anyway the reason it took so
long to download was because it is 1.6
gigabytes
what you want to do is put this into
your computer and like I said if you
don't have an SD card slot use one of
these and plug it into your USB you're
gonna have to format it for fat32 once
you put it into your SD card reader just
to be on the safe side we're going to
use the formatter that the Raspberry Pi
website recommends and I'll show you how
to get there
you want to go to this website here SD
formatter 4 but actually it's up to 5 so
I'm going to bring it up on the next tab
right here and we're gonna come down
here we're going to download it for
Windows ok it's pretty simple we want to
format H it has H up here quick format
and we'll click that and we get a
warning you expect that ok filesystem
fat32 ok what we're gonna do is extract
all we're going to extract it onto the
desktop again now if you have a computer
that will not extract something that is
large as 1.6 gigabytes
then there is also a program that you
could download from the Raspberry Pi
website that will accomplish that task
for you
now once this is finished we'll just
transfer this over to the SD card one
very important instruction in here is on
this readme file copy the extracted
files onto the SD card that you just
format it so that the files are in the
root directory of the SD card please
note that in some cases it may extract
the files into a folder if this is the
case then please copy across the files
from inside the folder rather than to
the folder itself so what we have to do
on here just copy everything on here hit
the shift key while you're holding it
down and let's just drag this across to
the SD card okay now we have all the
files in the SD card and this is what
you want to see whenever you're finished
with it you want to see these three
folders here and then all these in the
root of the SD card if it's extracts
into a folder do not move the whole
folder over just copy all these and then
drag them over all right i--i ejected it
and I'm going to place it in the
raspberry pot let's go over to the other
camera here
okay I'm gonna take my mouse and
keyboard that's these two right here and
it doesn't matter which ones you plug it
into you can plug it into any one of the
USB slots on here now we're going to put
in the ethernet cable right here we
really don't need it but I'm going to
put it in there anyway we're going to
use the HDMI cable for our monitor
straighten this out a little bit and
finally the wall wart 5 volt 2.5 amps
with a on/off switch
let's turn this thing on to see what
happens so far so good we should see a
raspberry up on the screen in a minute
or two what it's doing right now is its
preparing all the files that we
downloaded on to the SD card so this may
take a while not only took about four
minutes to go through that first step
but what we're gonna do we're just gonna
click on the first one R as R as being
full that's the recommended click up
here and install so we want to do that
because that's the operating system we
want on there Oh s installed
successfully it took maybe about 10
minutes clicked on it and it looks like
it's gonna reboot okay before you start
it says there are a few things to press
next to get started okay country and
this is the basic thing you put the
country in there your language timezone
and we're gonna have to find there it is
in New York okay
use us keyboard that's checked next it's
setting the location not sure if you
actually need it on the other one I did
not set a password in there
system is up to date all right is now
set up and ready to go please reboot
your PI for the new settings to take
effect before I hook this thing up I
tried to pair the Bluetooth with my cell
phone and I couldn't do it it said it
didn't recognize it so we're going to
pull up the Chrome browser here so I
wait for the browser to open put this in
the middle right here okay we're just
going to go and check and or hi dot-org
and there we go we'll bring up
production release and Linux
it's ready to go we're going to minimize
this right here and we're going to bring
our file manager go to downloads and you
can see that this is our file that we
want to unzip didn't bring it up yet
okay now we have J MRI there action we
want to extract and instead of
extracting it into downloads we're going
to extract it into the main directory
home PI you'll do selected files extra
files extract and as long as that's
blinking like that it's working when it
finishes blinking it'll be finished now
that it quit blinking it's finished so
we'll go over here and we'll just
refresh this right here and you can see
J MRI right there
before we start we want to make sure
that we have our command station for D C
C++ hooked up with the USB cable I'm
going to put the power to it you know
the the 12 volts on the operating side
of it just in case we'll go over to
panel pro you want to execute and wait
for it to open and once we open it we'll
have to set all the defaults on on it
and setup the railroad on there okay so
the preferences come up automatically
okay so what we're going to do I'm going
to go over here and that sets the
default right there my jmr railroad but
I'm going to put in
we can Creek that's the name of my
railroad we'll just see if it comes up
on there so we're going to know D C C++
right here we're going to go D C C++
serial port because we haven't hooked up
with the USB serial port we're going to
use a CMO TTY a CMO defaults we can't do
anything yet on that until after we want
to perform action and come down here and
open our Y throttle server and again it
puts two of them up here so we remove
one and what else okay
file locations my jmr railroad bah bah
bah bah bah so we'll save and we'll have
to reboot or restart brings it right
back up with the Y throttle there's our
IP address for the Y throttle right
there with the port number we'll bring
this back up here into preferences go to
defaults and you see service programmer
we're going to need to click that radio
those two radio buttons to make sure
that all of these going across are on
the DC c++ save it I'm going to have to
restart it again and we'll be good to go
to use the throttle now before we use
the why throw ttle we're going to use a
regular throttle just to make sure it
runs and I have 8432 on there I'm going
to turn it on first
heard the little click there's the horn
there's the bell and you can hear it
moving the Bell going while it's moving
we put it back in forward
okay now that we know that our DC c++ is
working then we'll set it up with the Y
throttle all right I have my tablet out
with engine-driver we'll pull that up
and as you can see it says leaking Creek
1000 142 and then one 209 Oh over here
so we're gonna click on Lincoln Creek
press the select we have 83 at 8432
already on there so we'll just bring it
over to here and alright now let me do
this with the other hand
okay so we'll put this on forward turn
the bell on oops and I forgot we got
it's off right now so you can see the
red over there right over here so we'll
just tap it make it green
okay forward turn the Bell one turn horn
okay so you know that works okay so
we'll go
and I just have the short track right
here so we can't go too far it's about
as far as we can go so we'll go with us
oops okay
right on right off we'll turn the power
off okay now we'll turn the power off
right here and you can see over there
it just turned it off and when we turn
the power on over here it'll turn it on
on our tablet so we're good to go we got
it running like I showed you earlier
there's two different ways that you
could put the operating system on I've
used both ways that I've used the noob
noobs and I've used the raspbian to burn
the image on the SD card with etcher
even though they say noobs
is the easiest way to do it in my
opinion doing the raspbian and use an
edger is a lot easier and a lot faster
there's less setup for it all you have
to do is download edger
select the file that you want select the
SD card that you want let it go it takes
about five minutes or less and you're
all set you plug that into your
Raspberry Pi it doesn't take that long
for it to set up and you still have to
go through the same setup process once
it starts and reboots so it's up to you
which way you want to go I showed you
the noobs way and I'll also show you the
raspbian way in another video it's not
that hard it takes about maybe 5-10
minutes altogether so until next time
we'll see ya
