Animated Model Railroad Building Lights with Arduinos!

  Рет қаралды 17,832

DIY and Digital Railroad

DIY and Digital Railroad

Күн бұрын

Пікірлер: 30
@pawpawelizabeth669
@pawpawelizabeth669 2 жыл бұрын
You could also add a photocell sensor to start turning the lights on when darkness falls (i.e. you turn out the lights).
@richardwilliams232
@richardwilliams232 2 жыл бұрын
My father, who worked for Ma Bell maintaining the switching equipment, taught me to use the side of the soldering iron barrel to make the shrink-wrap shrink. Nice project and keeping it simple helps understand integrating microcomputers to scenery.
@Beliar275
@Beliar275 3 ай бұрын
This video is about 2 years old and I dont know if anybody pointed it out already - but maybe the leds with the wires you use there already contain resistors. I have bought a few bags of them a few years back, prewired warm white LED with resistors included - so I could attach them directly on up to 16V. Works well on 12 V as well - if the interior walls are white like in your case it should even work from as little as 5 V on (resistor is 1kOhm iirc). The funny part ábout the LED I got .. they have a cylindrical shape at the end of 1/10 " - and are wider at the base so you could put them through the ceiling where they work similar to real light sources and the electric connection is hidden in the lighted room. On the other hand the wire is thin enough to hide it in corners or like you did in hidden rooms
@asaprocky8195
@asaprocky8195 2 жыл бұрын
As a newbie, I'm really enjoying this series, for it applies instruction with application that bridges the esoteric thereby making it easier to understand the purpose of the code statements and the logic being utilized. From there, that understanding can be applied to all sorts of other instances not even related to model railroading. The scale of model railroading is very useful to this type of instruction, immediate application, highly visual, sound, motion, timing, responses to proximity, response to counted values, signal strength, etc... for a good grasp of micro-controlling or AI in general, not to mention the exercise of logic flow. It would be great if every school could have an area dedicated to model railroading for this purpose... for building, and programming as you tutor it. Students could then better understand the relationship between their code and result, instant feedback for best guidance. From there, the sky's the limit! Thank you so much. That said, I'm gonna click that Patreon link to support my appreciation and benefit from your channel. Learning with immediate application, is a very solid way to learn. The old saying, "If I only hear, I'll probably forget. If I see, I might remember. If I do, I'll understand." So far, I've enjoyed 2 out of 3 ... and it's time to get busy with the doing! Cheers! Keep safe, healthy, and happy!
@dhanushwimaladharma2524
@dhanushwimaladharma2524 2 жыл бұрын
You're doing awsome, Jimmy ❤️‍🔥❤️‍🔥❤️‍🔥
@rwissbaum9849
@rwissbaum9849 2 жыл бұрын
Jimmy, this is a GREAT video illustrating how easy it is to add interior lights to a structure. I see a lot of models that look beautiful, but are not lit - even on the outside - and, in my opinion, this ignores a wonderful way to make our structures come to life. A few comments: First, check out Roomettes lighting kits. They make very simple building interiors printed on cardboard and they include surface mounted LEDs. Many of their kits are designed to fit various DPM structures, and the others can be modified easily. That way, when the lights come on, you see an actual room, not just a white box. The LEDs they supply are compatible with Woodland Scenics Just-Plug lighting system, but they work just fine on 5 volts from the Arduino. Second, your if statement should be a while statement: while (randomlight1 == randomlight2) { randomlight2 = random(3,7);} This guarantees the two lights will be different and you can skip the else if statement. Third, you CANNOT use int timeon; if timeon will be larger than 32,767 (about 32 seconds)! If you want your light to be on for longer as you mention, you need to declare timeon as a long integer, like this: long timeon; Now, timeon can be as large as 2,147,483,647 - about 600 hours. Fourth, I know that using delay() in the loop() function makes things easy, but it puts severe handcuffs on the Arduino: the processor cannot do ANYTHING else while the delay() statement is running. Suppose I want to turn a random room light on for a random length of time, then do the same thing for the other four rooms? This is a much more realistic animation, and absolutely impossible to do using delay(). The solution is easy to use, but too lengthy to show here. I will email two files to you; you can choose whether your audience would be interested.
@rwissbaum9849
@rwissbaum9849 2 жыл бұрын
Sorry - forgot to mention the Roomettes kits are only available in HO scale, but it would be easy to copy them at 54% to get N scale interiors.
@petermenningen338
@petermenningen338 2 жыл бұрын
Jimmy a good addition to any modelers kit is a set of brad point drill bits. By design they cut the outer edge before the full center so they have a smaller chance to get hung up and spoil the work. You might explore the mili function rather than delay for timing as it does not stop the rest of the program while waiting. Mahalo
@asaprocky8195
@asaprocky8195 2 жыл бұрын
I'm now an Engineer Patreon... Gotta find me an Engineer's hat. Whoot ... Whoot!
@markjolyn94
@markjolyn94 2 жыл бұрын
Very cool video!! Now I have more choices in lighting my buildings
@WheelchairGuyHobbyChannel
@WheelchairGuyHobbyChannel 2 жыл бұрын
If I saw the lights going on and off so often I’d be telling the kids to stop playing with the lights :)
@l.rod2827
@l.rod2827 Жыл бұрын
Great video, I just put together some structure lighting but added four more lighting pins (total eight) I'm also using an Arduino Uno. The code you wrote worked great, just modified for the additional outputs however noticed the random lighting stops when it reaches the end, is there additional coding required to keep the random lighting sequence continually going?
@CM-ARM
@CM-ARM 2 жыл бұрын
Very cool Jimmy
@asaprocky8195
@asaprocky8195 2 жыл бұрын
Outstanding episode, Jimmy! A bit of everything in this nice salad mix to turn into a finished product. The Sketch did a nice job of allowing each area to act independently, as well as together at times as it might in a real world. Really liked the clever way you handled separation for the random cases, by forcing a go back if equal. Well played. Curious.. Is that work surface mat specific to RR scale dimensions?
@gravesclay
@gravesclay 2 жыл бұрын
A flickering blue LED could simulate a TV being on in a room!
@MMRails
@MMRails 2 жыл бұрын
Looks great Jimmy! Can you add other things to that Nano (sp?) or is it now committed to that structure and lights only? Would you have to purchase another Nano for another structure?
@baldypalmsrailroad
@baldypalmsrailroad 2 жыл бұрын
Nice job Jimmy, thanks to posting all the links of the products you were using in this build. How long did the Tamiya glue take to set and dry. Did you use an accelerator? Thanks.
@donaldkormos5529
@donaldkormos5529 2 жыл бұрын
Nice job Jimmy!! Some modelers give the interior and structure walls a quick spray of flat black to block light. BTW, if you increase the "on time" by using great big integers larger than 2 bytes with most Arduinos, you might have to declare them as long integers to get 4 btyes.
@SD45-ET44AC
@SD45-ET44AC 2 жыл бұрын
Looking Very nice ! It looks like I might eventually get there, almost ready to top out on my layout. Does your square convert inches or mms to HO & N scales? If you turn your project 90° & put it parallel to the front edge of your workbench you can use a pair of clamps to hold it in place (yes, I’m truly OCD).
@VictorianMaid99
@VictorianMaid99 2 жыл бұрын
I really enjoy your projects. Have you ever used the UNO to create engine noises on a diesel locomotive?
@herliananovianti4152
@herliananovianti4152 Жыл бұрын
May I know what tools are needed in this video?
@edwardaudet8367
@edwardaudet8367 2 жыл бұрын
Really nice, like how you did the interior setup. I didn't realize you could use 12V leds and skip the resistors. One last thing did yu use an HO building to demonstrate the lighing on a building. My buildings are all DPM building and they sure look smaller than your building. Either that or my eyes are deceiving me ... Great video always a pleasure to tune in and learn new stuff !!!
@garrettswoodworx1873
@garrettswoodworx1873 2 жыл бұрын
It was easy to miss but he mentioned right at the beginning of the video that it was an HO scale building. LOL your eyes are fine!
@edwardaudet8367
@edwardaudet8367 2 жыл бұрын
@@garrettswoodworx1873 I guess it was my ears then.. I didn't catch it. It bytes getting old. Bummer!
@garrettswoodworx1873
@garrettswoodworx1873 2 жыл бұрын
@@edwardaudet8367 Trust me Edward I understand! (Getting old does beat the alternative, however!)
@lab4746
@lab4746 2 жыл бұрын
You may have noticed that the LEDs in the link are prewired with a resistor.
@OTRWA
@OTRWA 2 жыл бұрын
Another interesting segment....forgive me if I ,issed a bit but was wondering...can these Arduino bus units be programmed for flickering and dimming your leds? Cheers in advance.
@GetRealwithMike
@GetRealwithMike 9 ай бұрын
Awesome. Thanks!
@smallrails6831
@smallrails6831 Жыл бұрын
Cool
@charlesmcclure5994
@charlesmcclure5994 2 жыл бұрын
It's a nice little project Jimmy but you lost me at the coding 😵‍💫
Using an Arduino for Model Railroad Speed Matching
23:27
DIY and Digital Railroad
Рет қаралды 12 М.
Model Making Quick Tip: Easy LED Lighting for Structures
18:33
ThunderMesaStudio
Рет қаралды 55 М.
The Ultimate Sausage Prank! Watch Their Reactions 😂🌭 #Unexpected
00:17
La La Life Shorts
Рет қаралды 8 МЛН
I thought one thing and the truth is something else 😂
00:34
عائلة ابو رعد Abo Raad family
Рет қаралды 10 МЛН
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 27 МЛН
Avoid the frustration: Model Railroad Kit Building Tips and Tools for Beginners
19:11
Light Up Your Locos With LEDs (92)
19:55
Model Railroading
Рет қаралды 44 М.
Light Up Your Structures With LEDs (93)
14:02
Model Railroading
Рет қаралды 31 М.
The Comprehensive Newbie Guide to LEDs in Miniatures Terrain
14:15
Wyloch's Armory
Рет қаралды 83 М.
S1: E5: Tracklaying, Wiring, DCC and More!
25:32
rcgrabbag
Рет қаралды 975 М.
Arduino Model Railroad Projects - Campfire
28:15
Ron's Trains N Things
Рет қаралды 20 М.
Lighting Solutions for Model Train Layouts
7:23
Pete's 3D Scale Models
Рет қаралды 29 М.
How to Build a Small Layout for Your Z Scale Trains
17:11
Steve's Trains
Рет қаралды 80 М.
SCALE MODEL STRUCTURE LIGHTING for Beginners Like Me
13:24
Fos Scale Models - Model Railroad Structure Kits
Рет қаралды 7 М.
The Ultimate Sausage Prank! Watch Their Reactions 😂🌭 #Unexpected
00:17
La La Life Shorts
Рет қаралды 8 МЛН