sometimes things are right in front of you and you need somebody to tell you
why don't you just do this before you find out how to do it instead of hooking
up and monitor I got to display on my tablet from my Raspberry Pi for my DCC I
got panel Pro up there right now let me show you how I did it 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 and pursuing their dream of
building a model railroad and sometimes when you get comments those people that
are commenting give you help or give me help and that's how I got to do this
right here hooking up this tablet to display what's on the Raspberry Pi this
is all it's needed you need your DC C++ you got your USB cable going over to the
Raspberry Pi and the only thing hook it up to the Raspberry Pi is the power
right here so USB and power and here's your display right here and I'm going to
show you how to do it right now no mouse no keyboard no HDMI cable on it
just power on there you have to have everything hooked up first on your
Raspberry Pi your keyboard your mouse and your monitor so you could activate
it get everything set up once you have everything set up then you need nothing
on there and you have it on here and I'm gonna set it up on my computer I'm going
to show you how to do it on the computer I had a comment on my video when I was
hooking up the DC c++ to the Raspberry Pi which I have right here and J MRI in
their comment they were talking about that they just purchased the seven inch
monitor touchscreen monitor that is built for the Raspberry Pi and I said
well that's a little bit too small for my eyes I'm comfortable with my 10 inch
tablet he says we'll just hook up your tablet
I've been using the tablet for my throttle but I could always put the
throttle on one of my old cell phones I looked into it there's a program that's
built into the Raspberry Pi all you have to do is activate it you don't see it
when you first have it on there but it's there and I'll show you how to activate
it on here and I'll show you how to get it on your computer or on your tablet I
have the VNC open on my computer and so what you're seeing up on the screen
right now is on my computer monitor so we're just going to go over to the
configuration preferences Raspberry Pi configuration and go to interfaces now
you can see right here VNC is enabled that's because I'm already using it but
when you first install the raspbian on your Raspberry Pi
it's everything's going to show disabled on here the reason that VNC is enabled
is because I'm using it right now also the serial console is enabled that it
allows me to use D C C++ on it so that's all you have to do is go into the
Preferences go over to VNC and click on enable close this out and
then restart and it'll show up up on the top when you first install the operating
system on Raspberry Pi you won't see this up here but once you enable it
you'll have this up there and you'll be able to pull this screen up right here
and basically this is your security screen whenever you first try to install
a new computer that views your Raspberry Pi this is the information that's going
to come up on there so you could verify that you're on the right device this has
Wi-Fi on it right now I'm running everything on my home router but like I
showed you in one of the other videos that I did setting up your cell phone as
a throttle I used a router that I picked up at a
thrift store but I'm gonna show you how to do it with my home network and it's
just as easy with the router you just put in your IP address and you're all
set on that so let's look at the website we got real VNC that's where you want to
go let's see if I could find how I got there it's it's a little okay they have
a professional and enterprise we don't have to worry about their compared
subscription in detail okay here's where you want to go all right you want to
look at the this one up here home convenient and easy to use for friends
and family device access limited to five remote computers and three users okay
that's not the part that I'm really concerned about you come down here on
available things on here please note that a home subscription entitles you to
extra features when used in conjunction with raspberry pi so we'll click on the
extra features or how to activate it on your Raspberry Pi
since I already activated my account all I have to do is sign in but what you'll
do is create an account and a password in there so you can hook it up to your
Raspberry Pi alright we'll come up here and we'll activate activate a home
subscription I already create a VNC account and activate home I guess all I
have to do is sign in here okay okay email address is my email address I'm
not a robot Tom's team home okay that's what I want so what I want to do
is I want to install it on this computer okay get VNC viewer for devices you want
to control from I want to control my Raspberry Pi from this computer right
here you can get the app for an iPhone or an Android but well I'm going to get
VNC viewer for this one here I'm on Windows download VNC viewer ok B&C
viewer save I got it there it's finished doesn't take very long we're gonna run
here and English stuff is coming this will install VNC viewer 618 907 I accept
next desktop shortcut yeah I want one of them go to next install and it's
finished I'm going to turn on the Raspberry Pi plug this back in right
here alright turn this on I'm starting this up from
my computer so you can see the screen on the actual Raspberry Pi so we can go
through the step of setting up the program which is already installed on
mine but I'll just go through the steps for you we have to put in the password
alright there you go minimize that part and we'll bring this
up right here first thing we want to do is go back into our web browser and pull
up the real VNC and bring up the instructions
now these two commands right here are for on your terminal if you had your
operating system on your PI for a while you want to make sure that you're up to
date with your operating system and the real VNC server so if you just put the
operating system on your PI you don't have to worry about these commands and
what I'm gonna do here is I'm going to copy this and bring up the terminal and
then put this in the terminal and it's checking to see if you have the latest
update if you have it it's not gonna do anything if you don't have one it's
gonna update it and it looks like on here it updated I only put this on there
a few days ago all right it's still working on there okay now it's finished
and then we'll highlight this second one here and this one is for the real VNC
server
and we'll do that and it is already the newest version so we're good to go with
the VNC server on here and like I showed you earlier we already how to enable
this right here so we're good to go with that and that's all these instructions
do right here configure that's what I already showed
you we're only concerned about Direct Connect on here and that's what we've
already done we're not going to worry about the cloud connection on here
because that's beyond the scope of this demonstration right here what I did was
change the screen resolution so it's different on here I had it set
originally for the monitor when I had to monitor hooked up directly through the
HDMI cable to the PI now that I'm running it remotely I had to change the
resolution so I could see all of the menus when I pulled this up before I was
not able to see the top of the dialog box
on offense occasion via VNC password this is what I have it set for that's
why I have to set a password whenever I access it usually on this I'm going to
go through these and usually you just keep them as the defaults
whenever you first do this and and set this as VNC password it's going to ask
you for the password and since I already have the password in there it's not
going to come up but just know that whenever you change this to VNC password
or change this I turned this prefer off so I don't have to put my username in
there just the password so it's going to pop up select a password for your pie or
for your connection and let me show you how to change the resolution on here
right here resolution this originally was 720 now I have it set for 1920 1080
which is what that monitor is now I could probably change it a little bit in
between the two because it shows up pretty pretty small on here but that's
where you go to change to anything on the Raspberry Pi that you need to change
on here now this screen here is 1280 by 720 which is a little bit better than
the other one it shows up a little bit bigger so you have to play around with
it and the menus show up all right on here I already tested them out
it's pull up JMRI website and that looks that's a pretty good picture right
there I mean you can play around with the resolutions on there to match your
device okay I'm going to bring up my tablet here and I have my BNC right
there let's pull that up turn this sideways
and it shows up pretty good on there okay so it does does work pretty good
with the with the resin with the resolution change it does adjust it for
the different sizes let me pull let me see if I could okay so where's my mouse
on here right there okay you can't see the screen okay never
mind but it does work it does show you a good picture on there it's as easy as
that to connect up a monitor to it and you don't need anything but your power
cable on there although I don't have my DCC++ on it right now with that all why
would I had to do was hook up one USB cable from the command station the
command station right here this USB cable connects the two of them and
you're good to go with
d cC++ and j MRI so until the next time we'll see Ya
Không có nhận xét nào:
Đăng nhận xét