Working Signals for a Model Railroad Double Crossover using an Ardunio

Sdílet
Vložit
  • čas přidán 25. 02. 2024
  • Code (GitHub)
    github.com/DIYandDigitalRR/Ka...
    Schematic
    github.com/DIYandDigitalRR/Ka...
    T Trak Module
    klawndyke.com/catalog/index.p...
    Kato Double Crossover
    factorydirecthobbies.com/prod...
    SIgnals
    www.ebay.com/itm/402379545080
    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
    factorydirecthobbies.com?sca_ref=4342906.pSQXhFmxxc
    Connect with me at ddrrcommunity@gmail.com
    Support the Channel on Patreon - / diyanddigitalrailroad
    Amazon Store - www.amazon.com/shop/diyanddig...
    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/shop/diy-digita...
    Consider donating the PCOS Challenge to help women everywhere with PCOS
    pcoschallenge.org/
    “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
  • Jak na to + styl

Komentáře • 49

  • @HumancityJunction
    @HumancityJunction Před 4 měsíci +5

    It’s good to see the Arduino projects coming back to the channel.

  • @averageguy7136
    @averageguy7136 Před 4 měsíci +3

    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 Před 4 měsíci +3

    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 Před 4 měsíci +4

    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  Před 4 měsíci +2

      This is really cool. I've always been at the tinkerer level of arduino code. I would love to go deeper!.

  • @kharis7602
    @kharis7602 Před 4 měsíci +3

    6 o’clock on the dot, always in time for my morning treadmill run

  • @melkitson
    @melkitson Před 4 měsíci +3

    Wow! That was quite a project. I love the nonchalant way you talk about future updates.

  • @davidwilliams1060
    @davidwilliams1060 Před 4 měsíci +1

    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.

  • @MU-2
    @MU-2 Před 4 měsíci +1

    I had an easier time learning to fly! 😂 You are definitely the maestro of the rails. Looking forward to the completed project.

  • @drewzero1
    @drewzero1 Před 4 měsíci +1

    Very interesting! I've been using an L298N with an ESP8266 to add remote control to my garden trains.

  • @danbalmer1
    @danbalmer1 Před 4 měsíci +1

    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 Před 4 měsíci +1

    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 Před 4 měsíci +1

    I am so excited for the ttrak series!

  • @michaelwalpow5261
    @michaelwalpow5261 Před 4 měsíci

    Love it. Thank you so much for this GREAT Content. Can't wait to see the the next one

  • @Sinistar24
    @Sinistar24 Před 4 měsíci +1

    My brain just swelled by 50%

  • @BriansModelTrains
    @BriansModelTrains Před 4 měsíci

    Great project!

  • @johnbanicki7232
    @johnbanicki7232 Před 4 měsíci

    Very nice. Thanks for sharing.

  • @anfieldroadlayoutintheloft5204

    good work thanks lee

  • @4everdc302
    @4everdc302 Před 4 měsíci

    Holy.. That's darn fancy🚦🚦🚦🚦🚂🙋

  • @BetaEngineer
    @BetaEngineer Před 4 měsíci

    Very cool.

  • @StevesTrains
    @StevesTrains Před 4 měsíci

    very cool!

  • @SD45-ET44AC
    @SD45-ET44AC Před 4 měsíci

    Bravo!

  • @davidfromtexas9681
    @davidfromtexas9681 Před 4 měsíci +1

    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.

  • @BK-oo1bl
    @BK-oo1bl Před 4 měsíci

    That wiring looks like spaghetti 🤣 but seriously good work.

  • @rpbrice
    @rpbrice Před 4 měsíci

    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?

  • @TheTrainFreak
    @TheTrainFreak Před 4 měsíci +1

    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

  • @BrianMills
    @BrianMills Před 4 měsíci

    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?

  • @sgttoe9763
    @sgttoe9763 Před 4 měsíci

    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?

  • @SpudsMcCat
    @SpudsMcCat Před 4 měsíci

    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

  • @meddie79
    @meddie79 Před 4 měsíci

    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.

  • @1stArizonaSub
    @1stArizonaSub Před 4 měsíci

    Awesome. Thanks Jimmy

  • @IMRROcom
    @IMRROcom Před 4 měsíci +1

    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  Před 4 měsíci

      You are correct. I am currently working on the code to control this.

  • @andrewlaverghetta715
    @andrewlaverghetta715 Před 4 měsíci

    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.

  • @Nscalescenic
    @Nscalescenic Před 4 měsíci

    U ever wanted a bachmann gg1 they're cheap and pull great

  • @thetrainloverdk
    @thetrainloverdk Před 4 měsíci

    7:47 one hopper is fallen over

  • @chipetke
    @chipetke Před 4 měsíci

    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.

  • @scottthomas5999
    @scottthomas5999 Před 4 měsíci

    Wow!!
    Nice job.
    Complicated.

  • @G_de_Coligny
    @G_de_Coligny Před 4 měsíci +2

    …for people who think the computer system of a 2024 S-Class Mercedes Benz is too primitive…

  • @KatoOnTheTrack1
    @KatoOnTheTrack1 Před 4 měsíci

    Lefty?

  • @kleetus92
    @kleetus92 Před 4 měsíci

    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  Před 4 měsíci +1

      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.

  • @user-gu8mp6yy4m
    @user-gu8mp6yy4m Před 4 měsíci

    Can you wire this up for us not so techy people.

  • @El_Crab
    @El_Crab Před 4 měsíci +1

    Hello

  • @benammiswift
    @benammiswift Před 4 měsíci

    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 😊

  • @martino7896
    @martino7896 Před 4 měsíci

    hi

  • @manueljdaskalos
    @manueljdaskalos Před 4 měsíci

    “Ardunio”?????

  • @dexterdog62
    @dexterdog62 Před 4 měsíci +1

    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…