Working Signals for a Model Railroad Double Crossover using an Ardunio

  Рет қаралды 23,813

DIY and Digital Railroad

DIY and Digital Railroad

Күн бұрын

Code (GitHub)
github.com/DIY...
Schematic
github.com/DIY...
T Trak Module
klawndyke.com/...
Kato Double Crossover
factorydirecth...
SIgnals
www.ebay.com/i...
Arduino Mega
amzn.to/49yG2Ek
L298N Motor Driver
amzn.to/3uWhxl7
Dupont Wires
amzn.to/3SSKQgD
Terminals
amzn.to/3SSfM0j
Barrel plug
amzn.to/4c3VYA7
Momentary push buttons
amzn.to/3OWS4ia
Resistors
amzn.to/3IexqGC
12 volt power supply with barrel plug
amzn.to/3TcjC60
Factory Direct Hobbies for all of your Model Railroad needs
factorydirecth...?sca_ref=4342906.pSQXhFmxxc
Connect with me at ddrrcommunity@gmail.com
Support the Channel on Patreon - / diyanddigitalrailroad
Amazon Store - www.amazon.com...
Facebook - / diyanddigitalrr
Instagram - / diydigitalrailroad
TRAIN SETS
N Scale Train Set - amzn.to/33TzsbS
HO Scale Train Set - amzn.to/311N17g
O Scale Train Set - amzn.to/3lAZCGu
G Scale Train Set - amzn.to/312Cn09
Sony ZV-E10 - amzn.to/3IK9pX1
MICROPHONE
Rode Wireless Go - amzn.to/33ipqDf
Rode Smart Lav - amzn.to/3dN6ChI
LIGHTS
Aputure Amaran 100D - amzn.to/3ELlysm
Aputure Amaran MC - amzn.to/3ER8Vfw
GVM 480LS 2 Light Kit - amzn.to/3EOTTGY
MOTION CONTROL
MOZA Aircross 2 Gimbal - amzn.to/3oNb4TG
MOZA Slypod E - amzn.to/3dMWtkQ
Channel Merch - teespring.com/...
Consider donating the PCOS Challenge to help women everywhere with PCOS
pcoschallenge....
“The godly may trip seven times, but they will get up again.
But one disaster is enough to overthrow the wicked.
Don’t rejoice when your enemies fall;
don’t be happy when they stumble.
For the Lord will be displeased with you
and will turn his anger away from them.
Don’t fret because of evildoers;
don’t envy the wicked.”
Proverbs 24: 16-19 NLT

Пікірлер: 49
@HumancityJunction
@HumancityJunction 6 ай бұрын
It’s good to see the Arduino projects coming back to the channel.
@averageguy7136
@averageguy7136 6 ай бұрын
Good video. I’m working on a 40 signal layout with 32 turnouts (including 5 double crossovers), and 16 blocks. All driven by a single arduino nano. With over 200 outputs and 50 inputs, you can imagine the complexity.
@larrydee8859
@larrydee8859 6 ай бұрын
Wow this is very interesting, but a tremendous amount to digest, for us old timers who are not familiar with code. Thanks again for bringing the Arduino back though. (Being an old timer; I previously used a modified version of your Arduino signal detection code from 2018. The Arduino output fed 4P double pole relays. These really outputs drove both LED signals, and NCE mini panels, that controlled switch track routing and signals).
@rwissbaum9849
@rwissbaum9849 6 ай бұрын
Great to see you returning to your digital roots! BTW, you do not need the 470 Ohm resistor - Arduino input pins can be configured to use the internal 20,000 Ohm pullup resistor by pinMode(_pin,INPUT_PULLUP); this keeps the voltage on _pin HIGH unless _pin is deliberately grounded (by pushing the button.) Also, your code can be simplified *enormously* by using classes: you'll create a single class called, say, Signal, and create 4 instances of that class - s1, s2, s3, and s4 - along with a variety of constants to set the signal aspects. Instead of a huge list of digitalWrite statements (which are easy to type incorrectly and difficult to debug) you'll simply say, for example, s1.aspect(RED_OVER_GREEN);
@DIYDigitalRailroad
@DIYDigitalRailroad 6 ай бұрын
This is really cool. I've always been at the tinkerer level of arduino code. I would love to go deeper!.
@kharis7602
@kharis7602 6 ай бұрын
6 o’clock on the dot, always in time for my morning treadmill run
@melkitson
@melkitson 6 ай бұрын
Wow! That was quite a project. I love the nonchalant way you talk about future updates.
@davidwilliams1060
@davidwilliams1060 6 ай бұрын
This one was probably a stretch for some of your regular viewers. Two things: stuff like this is strictly optional and if you still really want it without understanding it, develop friends in the hobby who have specific interests. In my case, I’m slowly learning Arduino, so thanks.
@drewzero1
@drewzero1 6 ай бұрын
Very interesting! I've been using an L298N with an ESP8266 to add remote control to my garden trains.
@danbalmer1
@danbalmer1 6 ай бұрын
Really Cool. looks awesome. Not sure I have the ability to get that deep with the wiring but admire the work. I'll work on doing my next layout and a few modules and then see where I am.
@johnboren3976
@johnboren3976 6 ай бұрын
This is WAY above my pay grade!!! I don’t even understand what’s going on! I just recently wired a DPDT switch to power the frog, and illuminate an indicator LED and that was a challenge for me!
@AkaSoggyBunz
@AkaSoggyBunz 6 ай бұрын
I am so excited for the ttrak series!
@MU-2
@MU-2 6 ай бұрын
I had an easier time learning to fly! 😂 You are definitely the maestro of the rails. Looking forward to the completed project.
@IMRROcom
@IMRROcom 6 ай бұрын
With a the two signals showing Red over Green Medium Clear. That is an accident waiting to happen, You have just gave an indication that a train on main 1 and main 2 can enter the crossover at the same time. One of those signals needs to be Red over Red (No Number Plate) or both Red over Red with a number plate for Rule 291? Stop and Proceed.
@DIYDigitalRailroad
@DIYDigitalRailroad 6 ай бұрын
You are correct. I am currently working on the code to control this.
@davidfromtexas9681
@davidfromtexas9681 6 ай бұрын
Sheesh, I don't know if I could go through this. It would look like a birds nest under my layout. I really want working signals and this is the kind of stuff that is holding me up trying it. I've got a couple of the Atlas signals but even those require some song and dance.
@michaelwalpow5261
@michaelwalpow5261 6 ай бұрын
Love it. Thank you so much for this GREAT Content. Can't wait to see the the next one
@Sinistar24
@Sinistar24 6 ай бұрын
My brain just swelled by 50%
@SpudsMcCat
@SpudsMcCat 6 ай бұрын
you don't need to use another pin for a 2nd button if they're NO put them in parallel, if NC, in series. you'll only need 1 resistor
@4everdc302
@4everdc302 6 ай бұрын
Holy.. That's darn fancy🚦🚦🚦🚦🚂🙋
@G_de_Coligny
@G_de_Coligny 6 ай бұрын
…for people who think the computer system of a 2024 S-Class Mercedes Benz is too primitive…
@BrianMills
@BrianMills 5 ай бұрын
Very happy to see a new Arduino project, and it's one I plan to work on for myself soon. I've got a couple of questions, though. You mentioned that the proper signal placement should be outisde the confines of a single module. I'm planning to build mine on a double T-TRAK module, so I'll have more room and can move the signals out to proper placement. Also, since all 4 signals are essentially mirrors of each other, is there a reason that you can't run them all from the same set of pins on the Arduino instead of a separate set of pins for each? Does that have to do with the future plans you hinted out?
@BK-oo1bl
@BK-oo1bl 6 ай бұрын
That wiring looks like spaghetti 🤣 but seriously good work.
@TheTrainFreak
@TheTrainFreak 6 ай бұрын
That's pretty cool Jimmy. I will be looking forward to when you make these work with block detection as well. Also because I am very big into signalling myself with using LCC. Do you plan on explaining the differences between how the Class 1 RR's do their signalling and I am assuming you'll adopt the NS rules since you mostly model the NS? - Jason
@meddie79
@meddie79 5 ай бұрын
Just getting into t trak layouts but keep getting confused regarding how to go cross over from the 2 main lines because of the BWWB standard without getting shorts. Any videos or future videos on the matter would greatly help.
@johnbanicki7232
@johnbanicki7232 6 ай бұрын
Very nice. Thanks for sharing.
@thetrainloverdk
@thetrainloverdk 6 ай бұрын
7:47 one hopper is fallen over
@sgttoe9763
@sgttoe9763 6 ай бұрын
Great project! Will this only be controllable with the push buttons. Is there a way to make this work like a stationary decoder so it can be controlled via throttle?
@andrewlaverghetta715
@andrewlaverghetta715 6 ай бұрын
That's is a LOT of work to do what it was doing. As you said, it isn't done yet, but idk... I don't think I'd have the patience to do something so mindboggling without actually having a really worthwhile payoff. Was this your code? I remember your video on using AI to work on code. Did you use AI for any of this? In a curiou fashion and not at all "omg AI is stealing" or something. On all the wiring, I'm at least feeling proud of myself for wiring up an Athearn blue box switcher for DCC. I still need to add the speakers and lights, but still, it's a bit more than what I've done before, and it's fun to see an old loco come alive on DCC.
@chipetke
@chipetke 6 ай бұрын
Well, the MEGA is a slight overkill, in my opinion. It has enormous program memory for this task.. I get it, it's easier with that many I/O lines... However, if you use an Uno or Nano, with a PCA9685 servo board, you can spare $$$ here, I think. It's a PWM LED driver originally. Programming shouldn't be much harder. I get it that it has "only" 16 outputs, but in this close proximity driving the red and green together should be yellow, and the yellow wires from the signals can be dropped, and you have only 16 LEDs to drive this way. With the PWM duty cycle you can tune the yellow color. Probably a bit more fidgeting, than anticipated, but might still worth the time. If you still want to drive the yellow LEDs, another servo board would do the trick, on the exact same two pins, only its address must be modified. Nice work though, I really enjoy your videos.
@BriansModelTrains
@BriansModelTrains 6 ай бұрын
Great project!
@BetaEngineer
@BetaEngineer 6 ай бұрын
Very cool.
@rpbrice
@rpbrice 6 ай бұрын
Hi Jimmy! Great video! I really want to do this on my T-Trak setup as the railroad I am modeling in Ashland VA has some of these at various points between Richmond and DC. Here’s my question, how do you handle the polarity shift in the cross over from the Yellow and Red lines and vice versa?
@Nscalescenic
@Nscalescenic 6 ай бұрын
U ever wanted a bachmann gg1 they're cheap and pull great
@kleetus92
@kleetus92 5 ай бұрын
Shouldn't one of the other routes go to red when the crossover is switched? I mean you'd never have two routes cleared to the same crossover at the same time.
@DIYDigitalRailroad
@DIYDigitalRailroad 5 ай бұрын
Yes you are correct. It's part of the code that I need to update. I actually have now and it works where when it goes to diverging, all the signals go red and a second button lets you select which signal is green.
@1stArizonaSub
@1stArizonaSub 5 ай бұрын
Awesome. Thanks Jimmy
@anfieldroadlayoutintheloft5204
@anfieldroadlayoutintheloft5204 6 ай бұрын
good work thanks lee
@StevesTrains
@StevesTrains 6 ай бұрын
very cool!
@user-gu8mp6yy4m
@user-gu8mp6yy4m 6 ай бұрын
Can you wire this up for us not so techy people.
@SD45-ET44AC
@SD45-ET44AC 6 ай бұрын
Bravo!
@scottthomas5999
@scottthomas5999 6 ай бұрын
Wow!! Nice job. Complicated.
@KatoOnTheTrack1
@KatoOnTheTrack1 6 ай бұрын
Lefty?
@El_Crab
@El_Crab 6 ай бұрын
Hello
@benammiswift
@benammiswift 6 ай бұрын
I’d be really interested in helping you code some of this out. I’m an experienced programmer with a good deal of Arduino experience. Let me know if you’d be interested in my help 😊
@dexterdog62
@dexterdog62 6 ай бұрын
If you stuck me in a jail cell with my freedom being dependent on successfully completing this project, I can guarantee that I would die in prison. Sorry Jimmy but this project is not for everyone. Maybe I’m just that crabby old guy in the room, but all of these electronics projects in model railroading these days just leave me thinking that I shouldn’t have to graduate from MIT to enjoy the hobby. Now where are those Atlas block control switches I’ve been meaning to install… saw them here just the other day…
@manueljdaskalos
@manueljdaskalos 6 ай бұрын
“Ardunio”?????
@martino7896
@martino7896 6 ай бұрын
hi
Why are we still using DCC?
21:26
DIY and Digital Railroad
Рет қаралды 83 М.
Using A.I. to Make your Model Railroad Better
6:50
DIY and Digital Railroad
Рет қаралды 15 М.
Can This Bubble Save My Life? 😱
00:55
Topper Guild
Рет қаралды 85 МЛН
WHO CAN RUN FASTER?
00:23
Zhong
Рет қаралды 46 МЛН
If Barbie came to life! 💝
00:37
Meow-some! Reacts
Рет қаралды 77 МЛН
This Made Cheap Model Railroad Signals Look Better
8:56
DIY and Digital Railroad
Рет қаралды 12 М.
SCARM Tutorial - Kato Unitrack N Scale
14:38
Alvin Trusty
Рет қаралды 9 М.
WATCH THIS before you wire your model railroad!
4:52
Second Section Podcast
Рет қаралды 9 М.
DCC++EX: A Cheap DIY DCC System?!?! This is a Model Railroad Game Changer
17:54
DIY and Digital Railroad
Рет қаралды 83 М.
How it Works: Railroad Signals and CTC (US&S Type)
6:53
NSmodeler24
Рет қаралды 77 М.
Automated Colour Light Signals on a Budget
22:15
Station Road Model Railway
Рет қаралды 60 М.
Cheap and Amazing!  DCC-EX 2 Years Later
10:46
DIY and Digital Railroad
Рет қаралды 24 М.
We Built a Camera with an Etch-a-Sketch
30:53
Every Flavor of Robot
Рет қаралды 647 М.
Люблю детей 💕💕💕🥰 #aminkavitaminka #aminokka #miminka #дети
0:24
Аминка Витаминка
Рет қаралды 374 М.
ToRung short film: 🙏rescuing disabled people❤️
0:24
ToRung
Рет қаралды 3,5 МЛН
Готовьтесь к зиме 🤣 /Мой официальный канал @Lazarevaolga_
0:59
Mysterious sock smell 😂👻
0:31
Ben Meryem
Рет қаралды 23 МЛН
НИКОГДА не БЕРИТЕ ЖЕНУ на РЫБАЛКУ
0:35
ИЗЮМЕР
Рет қаралды 1,2 МЛН