I'm adding lighting to my buildings and
I have a setup on a circuit board that I
showed you in a video bringing in 2019
but I'm going to show you some of the
things that I found on here I added some
lights to test out this part here and
I'm gonna show you what I found so let's
get started with this right now the
other day when I was doing the video on
bringing in 2019 I showed this little
circuit board that I was working on
apparently I started on this in July and
soldered this and was doing all my
experimenting on it in July and in
August that's when we went on vacation
so that's why I didn't continue on it so
last night I was working on a little bit
I soldered some test leads on there with
SMD LEDs and put this speaker on there
and I want to show you what I did I have
to make some changes on it because I
found out something and I'll show you
what it is I'll bring it down to this
other camera here okay you see these two
short ones here these are on pins 0 & 1
and I have that it's called EF player
mini that's what I have here it uses
pins 10s and 11 that communicated that's
what it uses the TX and rx for but it
also interferes with zero in one and you
can see by these two pins right here or
these two LEDs right here let me turn
this over the correct way and they're
lit up as it starts and they're always
lit now see these other other ones here
they'll start lighting up in sequence
and this is clip number one that's this
is my test on it let me show you and
this is the sketch that I'm working on
and you can see right here I use pins 0
and 1 and those are TX and rx on the
Nano and you can see the other ones 2 3
4 5 6
eight nine ten and eleven are missing
because that's the TX and rx on the DF
player Mini and twelve and thirteen and
what I'm going to have to do is I'm
gonna have to go over and change some of
this on the bottom because you can see
right here these two right here this is
zero and one I'm going to have to cut
these off here and then bring them over
on to the other side and use two of the
input pins and designate those as
outputs but you can see on the no wrong
way you can see over here it uses a 1
and a 6 so I can't use those two pins
the busy pin is used in the program so I
could determine that the the sound clip
is being used and sensor a 6 and I'll
bring it over here you can see I have
three pins right here and I'm gonna have
to get a marker or some paint and mark
them but the this pin on outside is the
the sense pin and then you have a plus
and a minus on there to power the sensor
now that would be a sensor like say like
this right here or you could use any
kind of sensor on there to start it I
haven't determined if I want to use a
sensor or not but if I do I'll like to
put some ends on on here and then just
plug it right into there anywhere on the
layout now this board will be back
behind one of the buildings out of sight
but I'm going to show you a little bit
more of what I'm doing with this and how
I have to change it around and I like
this it will hit the reset button on
here and we'll watch it go and you can
see the the two LEDs stay on all the
time
now on this speaker here I have the
volume set to I think it's 15 on there I
could turn that up to make it louder
I've been using my solderless breadboard
on there for this project here's the let
me put it over here here's my nano my DF
player and all my LEDs right there and I
was having a problem with it I think
it's in the resistors I'm gonna show you
some different resistors here and I'm
not sure that you'll be able to see the
difference in there but these are 0.55
millimeter wires on there now this is an
older style this is a newer style this
is another newer style these are point
three eight and the regular resistors
are 0.55 so you have a little bit of
play when you're putting them in in the
holes in there and let me show you
what's happening here let me put these
back in we'll plug this in and I'll show
you what I'm talking about now you hear
that from the from the speaker I think
that is because these resistors here
aren't making good contact but these are
the same resistors that I'm using on the
circuit board and I have them soldered
in so they're making a good contact on
there and also on some boards you can
see these are two different colors that
you know the cameras are not picking it
up that well but anyway there's two
different colors on there there are two
different manufacturers and
manufacturers whatever manufacturing
plant they come from they may be a
little sloppy I found that some of the
boards that I got were a little bit
sloppy so these are two different brands
of boards right here I have to move some
of the pins from
side of the Nano to the other side so I
could eliminate that problem with the
interference for the TX and rx pens 0 &
1 I have 4 available pens right there
that I could use these blue wires that
are coming across or going past them so
they're not connected to that depends
but those are the 4 input pins that I
could use as output I could take a
designated as output and use them for my
LEDs so that's what I'm gonna do now
before I make any changes on a circuit
board I'm gonna make the changes on the
breadboard just to make sure that it
works before I unsolder everything and
solder in the new location on the
circuit board I'm using pin a2 and a3 to
substitute the 0 & 1 and I'll show you
how I did it over here I'm using you
could see I go from 12 13 and then I
goes 16 & 17 when you're designating the
pins this way you just go up the line
and then 8a 0 would be 14 a 1 would be
15 a 2 is 16 and a 3 is 17 so I'm using
2 & 3 a 4 and a 5 are designated for I
squared C so I'm gonna leave that open
just in case I want to use that for
something else later on you can see on
here I have all the LEDs lit up right
now I added 1/4 on 13 and I have these
two over here which were on 0 on 1 I
have it on pins 92 and a 3 so let me
reset this so you can see it going in
the sequence and you still get 2 little
dip there you still get 2 little flash
on went on the 13 I'm gonna do it again
so you still get the little flash on pin
13 but you could see them all starting
up in sequence right there so I'm
satisfied with that we could transfer
that over to onto the circuit board
I'll solder the wires on there and we'll
be good to go I have my circuit board
set up in the holder and all I have to
do is remove the wires from these two
pins right here that's much better there
I got a sutter sucker and all you do is
push that plunger in and it's got a
release button on it and that'll suck
the solder up once I get it hot so put
it right on top of that I have the two
wires from the resistor leads right over
here
and I ran them over to a two and a three
so we should be good to go right now all
I have to do is upload the sketch to
this board right here and we should be
able to go with that the only thing I
have to do now is loosen that a little
bit okay the only thing I have to do now
is I have to put a little dab of paint
on here I have to put yellow on this
side I'll leave that black and a little
bit of red on this side right here for
the sensor so we can identify that I
identified the pins on there with
primary yellow and Kanyon orange I used
two orange on there because the Reds
that I had were a little bit too dark
they're a little bit too hard to see so
I put it on there also put it on the
power connector in the front which I had
black magic marker on the other one I
uploaded the sketch and we'll see how
this thing works now
so all 12 twelve of them light up in
sequence and then the sound foul starts
I now have everything connected on my
board that I want right now I'm going to
do some more experimentation with it in
the future I have a lot of video already
on what I did so far and that'll take up
maybe another two or three videos so
keep an eye out for them I may do a
little bit more experimentation on the
Nano okay as you can see on here I have
a plug here for the power I may change
that to something that I could just plug
in and out on there but what I have this
connected to it's the VI n pin and let
me show you on here you could use the
mini USB for power you could put six to
twenty volts on that pin that I am using
the external power supply you could use
an unregulated external power supply as
it says here on pin 30 or 5 volts
regulated external power on pin 27 now
let me show you where pin 27 is pin 27
is the one that's marked 5 volts so you
could put 5 volts regulated on that but
on this last pin here you could put
anywhere from 6 to 20 volts unregulated
on there so if you had an old power pack
from your DC days if you have the speed
control up all the way I think the
maximum on most of them were about 18
volts on the real old ones that came
with your train sets it might be a
little bit less than that but anyway you
could use that for this right here I
haven't tested it out but it says 6 to
12 6 to 20 volts unregulated external
power supply so that can be a power pack
from your DC days and then I have these
pins on here so I could trigger this if
I
when a train goes by I could turn the
lights on or I might just leave the
lights on altogether
I may do a little bit more with the
sound on here I I just have a test clip
on here saying this is clip number one
just to verify that you know that was
the clip that I recorded and I have in
the placeholder on the directory for the
SD card there is an I squared C pins on
there I think it's a four and five and I
may use that okay that is where you
could use serial communication for two
with just two pins like on the display
that I use on my Arduino that is an eye
I use that using the I squared C
technology with just two pins going to
the Arduino to power that and to control
what wording is the on the display so I
may be doing a little bit more with this
later on we'll see but anyway that's it
for right now we got a couple more
coming out for the building and the
electronics on here I have some stuff
that I wanted to show you on some other
LEDs the ones that I have here or the SM
LEDs and I have them on the plugs but I
think what I am going to put on the the
in inside the buildings itself is I'm
going to experiment with some of these
SM SMD but I also have these other you
know these were Christmas tree lights
and I showed you these and these are
really small ones and I already have
them on there and I have video footage
already made up of what I did with them
and showed you how to do it I use the
magnet wire from those wall warts but I
took apart so look out for them they'll
be coming up
until the next time we'll see Ya I didn't
want to do that move my mouse around  I got to get
used to this new I got a new wireless
keyboard that makes a little bit easier
I could move this around the other one I
had was a wired keyboard and I had to
move over here to use it because it's as
far as the wires went so now I got this
one I can move anywhere on there but I
got to get used to this touchpad because
there's no mouse on it but I'm doing
pretty well and it's got an extra thing
right here for a mouse click and if I
click that it's going to stop recording
but this is a logitech k400 plus which
is I guess if you want to you can hook
this up to your computer and hook your
computer up to your TV and roark like
that but here we go
