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
Very good jimmy! Everything turned out great!
@Scott Eric Catalano,
Great add on of the indicator light to the sensor 👍
@@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.
Very technical but you make it look easy. I almost think I could do it. Thanks Jimmy.
-Tim
Like this setup thank you for sharing
Looks great! Next step is the crossing bell. 😉
Not hard to do. Simple DFPlayer board with a bell sound
@@scottericcatalano596 awesome!
@@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.
Jimmy instead of heat gun have you ever tried using the side of your soldering iron on the shrink tubing??
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
Awesome stuff, next challenge for you.... RasPi PICO doing the same thing !!!!
Now I have to learn python...😂
been there done that.
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
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?
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.
@@DIYDigitalRailroad I use screw sheilds on all my arduinos...they are cheap to get too.
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!
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.
@@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.
@@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.
I’ve had it with optical sensors where if the lighting in the room isn’t just right, the signals never work right
@@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.
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.
No advantage really just space.
What did you use to design the circuit board? Does OshPark have software or online editor or using something else?
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.
good vid
How do you keep your soldering iron tip clean? Seems I can never keep mine so it will heat (melt) the solder.
I used a damp soldering sponge on my soldering iron holder to help keep the tips clean.
Jimmy,
What was your final cost of the sensor?
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.
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.