Installing the DIY Arduino Current Sensor on a Model Railroad Crossing!

Поділитися
Вставка
  • Опубліковано 26 жов 2024
  • #modeltrains #modelrailroad #modelrailroading #modelrailroadlayout
    Welcome back everybody! Be sure to subscribe! Today I am implementing another one of my arduino projects on the MRROne Model Railroad! We are installing a current sensor that will function to trigger the grade crossing! This is a fun project, plus I have designed a custom PCB board that you can order to build this!
    CHECK OUT THE MODEL RAILROAD SOLDERING KIT FROM SRA SOLDER!
    www.sra-solder...
    OshPark PCB Board
    oshpark.com/sh...
    Arduino Sketch
    github.com/DIY...
    BD20 Current Sensing Crossing
    • Arduino Model Railroad...
    DIY Current Sensor Prototype Tutorial
    • Building a Cheap DIY C...
    Build the PCB
    • Building Model Railroa...
    Resistor Wheelsets
    • DIY Resistor Wheelsets...
    MRROne Project Railroad
    • Build a Model Railroad...
    PARTS
    Arduino UNO
    amzn.to/3q2NQqj
    Crossing Signal N with flasher board
    amzn.to/3267fgo
    Crossing Signal HO with flasher board
    amzn.to/3wKIDrF
    Current Transformer
    amzn.to/3pVv97O
    Diode
    amzn.to/3kufFXj
    Resistor
    amzn.to/3uKJhTY
    LEDs
    amzn.to/3aXuUop
    Follow us on Facebook
    / diyanddigitalrr
    You can support the channel by becoming a Patron on Patreon for as little at $1 a month!
    / diyanddigitalrr
    Check out my Etsy Store!
    www.etsy.com/s...
    I do a lot of 3D printing
    My favorite Printers
    Workhorse - Prusa Mini
    shop.prusa3d.c...
    Value - Voxelab Aquila
    amzn.to/3dYEmIF
    Resin - Elegoo Mars 2
    amzn.to/2RjaO0s
    Favorite Filament
    www.matterhack...
    Favorite Resin
    amzn.to/326tC5e
    Samaritan’s Purse
    www.samaritans...
    Camera Used
    amzn.to/2X87yWR
    “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

КОМЕНТАРІ • 34

  • @scottericcatalano596
    @scottericcatalano596 3 роки тому +1

    Very good jimmy! Everything turned out great!

    • @KenN.OXN.805
      @KenN.OXN.805 3 роки тому +1

      @Scott Eric Catalano,
      Great add on of the indicator light to the sensor 👍

    • @scottericcatalano596
      @scottericcatalano596 3 роки тому

      @@KenN.OXN.805 I'm going to add a capacitor to the circuit so the indicator LED stays on steady as right now its lighting based on the current it senses....this can also be used under DC current as well.

  • @DeathByFishing
    @DeathByFishing 3 роки тому

    Very technical but you make it look easy. I almost think I could do it. Thanks Jimmy.
    -Tim

  • @HillBillyRailRoad
    @HillBillyRailRoad 3 роки тому

    Like this setup thank you for sharing

  • @TheyMakeItLikeThat
    @TheyMakeItLikeThat 3 роки тому

    Looks great! Next step is the crossing bell. 😉

    • @scottericcatalano596
      @scottericcatalano596 3 роки тому

      Not hard to do. Simple DFPlayer board with a bell sound

    • @TheyMakeItLikeThat
      @TheyMakeItLikeThat 3 роки тому

      @@scottericcatalano596 awesome!

    • @scottericcatalano596
      @scottericcatalano596 3 роки тому

      @@TheyMakeItLikeThat you can power it from the arduino and all you have to do is enable it to go on when the flashers go on and off when the flashers go off.

  • @sturnie1
    @sturnie1 3 роки тому

    Jimmy instead of heat gun have you ever tried using the side of your soldering iron on the shrink tubing??

  • @jeffemaxse8928
    @jeffemaxse8928 Рік тому

    Hi Jimmy, Hi guys,
    Another great video. Living in France, I can't get my BD20 sensor easily and quickly (except to order them in the United States, or in the United Kingdom with mind-blowing customs duties !!!), can a sensor such as the ACS712 be used instead as asked Sideloader99 ? If someone has tested this type of sensor, please let me know if I can use it to control the barriers of a crossing until now opening and closing with a switch.
    Many Thanks.
    Jeff

  • @KingTrump2024
    @KingTrump2024 3 роки тому

    Awesome stuff, next challenge for you.... RasPi PICO doing the same thing !!!!

  • @Sideloader99
    @Sideloader99 2 роки тому

    Hi Jimmy, thanks for all the Arduino projects, great job. I am looking in your Arduino projects for a servo operated crossing gate and cross buck lights together, triggered by current sensors. (Gate goes down, flashing light go on.) Also, do you know if the ACS712 Hall Effect Current Sensor Module would work in place of your sensor? I have some already. I'm planning on building your sensor too.
    Thanks again.
    Steve

  • @H4MR0CK5
    @H4MR0CK5 3 роки тому

    Neat install! I'm bit confused about adding hot glue to the arduino connections to hold them in place. Did you find that header pins weren't providing a good enough fit to prevent wires from falling out of ports?

    • @DIYDigitalRailroad
      @DIYDigitalRailroad  3 роки тому +1

      Good question. This layout moved around a lot so this makes sure that they stay in place. I see this done on a lot of electronic components.

    • @scottericcatalano596
      @scottericcatalano596 3 роки тому

      @@DIYDigitalRailroad I use screw sheilds on all my arduinos...they are cheap to get too.

  • @PatrickMcNealPuppets-n-Things
    @PatrickMcNealPuppets-n-Things 3 роки тому

    Awesome! Could you use an optical sensor instead of current sensing? If not, why is current sensing preferable over optical?
    Thanks for the great videos!

    • @DIYDigitalRailroad
      @DIYDigitalRailroad  3 роки тому +2

      Thanks Patrick! Yes you can use infrared or photo resistors. They are more invasive and require a different code setup. I actually have done quite a few of these setups with infrared. Check out my arduino projects playlist.

    • @PatrickMcNealPuppets-n-Things
      @PatrickMcNealPuppets-n-Things 3 роки тому

      @@DIYDigitalRailroad Thanks! Just getting started with the Arduino stuff and like to ask questions and learn as much as I can before I jump into something new.

    • @scottericcatalano596
      @scottericcatalano596 3 роки тому

      @@PatrickMcNealPuppets-n-Things Current sensing is the most dependable. Other sensors require a bit more in depth coding to factor into all the different variables of light etc.

    • @TheyMakeItLikeThat
      @TheyMakeItLikeThat 3 роки тому

      I’ve had it with optical sensors where if the lighting in the room isn’t just right, the signals never work right

    • @scottericcatalano596
      @scottericcatalano596 3 роки тому

      @@TheyMakeItLikeThat That is true. You have to use a calibration sketch first to read the light in the room and the sketch auto tunes itself to that.

  • @geesharp6637
    @geesharp6637 3 роки тому

    Is there an advantage besides space for using a single 2M resistor instead of the two 1M resistors like the previous video? I just ordered my 1M Ohm resistors.

  • @geesharp6637
    @geesharp6637 3 роки тому

    What did you use to design the circuit board? Does OshPark have software or online editor or using something else?

    • @danbrown586
      @danbrown586 Рік тому

      I can't answer what Jimmy used, but KiCad and EasyEDA are two options that are free and pretty capable. I've used KiCad with decent results.

  • @anfieldroadlayoutintheloft5204
    @anfieldroadlayoutintheloft5204 3 роки тому

    good vid

  • @lynnmccurdythehdmmrc2561
    @lynnmccurdythehdmmrc2561 3 роки тому

    How do you keep your soldering iron tip clean? Seems I can never keep mine so it will heat (melt) the solder.

    • @scottericcatalano596
      @scottericcatalano596 3 роки тому

      I used a damp soldering sponge on my soldering iron holder to help keep the tips clean.

  • @KenN.OXN.805
    @KenN.OXN.805 3 роки тому

    Jimmy,
    What was your final cost of the sensor?

    • @DIYDigitalRailroad
      @DIYDigitalRailroad  3 роки тому +4

      Hey Ken,
      If you use an arduino nano which the code will work with no changes, the cost of all the components is $11.50. This does not include wires because you can find those costs all over the place. I am considering designing a PCB that takes out all of the wiring and you just connect the flasher, signal and feeders.

  • @mzyvettecrenshaw9670
    @mzyvettecrenshaw9670 Рік тому

    I seen a video before this one. The guy in that one put censors on his about a foot & a half from the intersection. Your lights come on when the train is right at the intersection, not realistic at all. The lights should come on before you see the train.