Wiring up multiple Model Railroad switch machines with Arduino!

  Рет қаралды 18,491

DIY and Digital Railroad

DIY and Digital Railroad

Жыл бұрын

Tortoise switch motor tutorial
• Controlling Model Rail...
Github Link to sketch with downloadable schematic
github.com/DIYandDigitalRR/Mu...
Tortoise Switch Matchine
www.trainworld.com/circuitron...
Arduino Nano - amzn.to/3AMo5CE
Nano Shield - amzn.to/3XFRQz1
Terminal Strip 12V - amzn.to/3VkcEdS
Terminal Strip 5V - amzn.to/3ihyoZ0
Other Terminal Strips - amzn.to/3F9vBu8
L298N Motor Drivers - amzn.to/3EM0qDu
wires - amzn.to/3gDtqFu
wire stripper - amzn.to/3OIH1Ij
1K resistors - amzn.to/3OKZHHh
heat shrink - amzn.to/3OO5QCM
Connect with me at ddrrcommunity@gmail.com
Support the Channel on Patreon - / diyanddigitalrailroad
Amazon Store - www.amazon.com/shop/diyanddig...
Etsy Store - www.etsy.com/shop/DIYandDigit...
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
3D PRINTERS
Elegoo Mars 2 - amzn.to/3yopRaS
Creality Ender 3 V2 - amzn.to/3DOuKei
CAMERA
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

Пікірлер: 58
@JSGregg
@JSGregg Жыл бұрын
I'd be happy to do your wire management for you haha. I like the idea of using terminal blocks - I'd do the same thing for the H-bridge drivers and solder the wires onto the pins as opposed to relying on dupont connections. Thanks, Jimmy!
@petermenningen338
@petermenningen338 Жыл бұрын
Aloha Jimmy Think tiny wire ties and lots of colored wires, set yourself a standard. I use Black as DC negative except for my Kato track feeds. Bundle all wires for a function and use the colors of the wire ties to show which function it goes to. I used to do this with temperature probe arrays to designate row and column in 100 probe units. Makes troubleshooting easier when a probe fails.
@timcoe6841
@timcoe6841 Жыл бұрын
I do the same. Eventuality you will need to troubleshoot.
@harperlarry49
@harperlarry49 Жыл бұрын
Yeah, a little wire management wouldn't hurt. I like it.
@gamepad3173
@gamepad3173 Жыл бұрын
This will be perfect for the North Pole Railroad as I'm going to be doing this in G scale, O and OO.
@Scaletrains
@Scaletrains Жыл бұрын
Another great video!
@NYandAtlantic
@NYandAtlantic Жыл бұрын
Got my layout almost done probably tonight need cork road bed just laying the track out but leaves room for a small town some industries and a whatever else I think of but just having fun with seeing it all come together
@Laat-Dovah-Kiin
@Laat-Dovah-Kiin Жыл бұрын
You know what I hate most about you and your videos. They end 😭. You're by far my favorite person to watch. But man when your videos are over I'm like "WHAT, THAT'S IT?!? I NEED MORE!!!" Keep up the excellent work! I really appreciate all you do! I'm actually getting back into model railroading thanks to you! My Grandpa gave me all his N scale stuff and it's been sitting in boxes for years! They're all DC locomotives, but I'm going to try and convert some of them to DCC if it's possible. They're old, I'm not even sure they're capable. Anyways thanks again for all you do!
@DIYDigitalRailroad
@DIYDigitalRailroad Жыл бұрын
Thank you for the kind words! about the DCC conversions, you may want to stay tuned as I may be having something that addresses the topic.
@Laat-Dovah-Kiin
@Laat-Dovah-Kiin Жыл бұрын
@@DIYDigitalRailroad I will thank you! Oh I'm drinking Pete's house blend, dark roast. Black, no sugar! Thanks again!
@RVA1954
@RVA1954 Жыл бұрын
All that wiring reminds me of my father working on some type of pinball machine trying to repair it back in Cuba, more than 50 years ago! If he was still alive he would eat this up and I wish he was so he could help me. I do have a nephew who’s an electrical engineer and I will recruit him for this stuff because that’s what it takes to do this.
@milkymoocowmoo
@milkymoocowmoo Жыл бұрын
I disagree! If you can solder and understand a logical system (or are willing to learn), you can do Arduino! I'm building my own system that does the same as Jimmy's + a bit more, in a slightly different way. Wanna know how I got started? I watched a video on THIS CHANNEL then I went and bought a $50 Arduino starter kit :)
@melkitson
@melkitson Жыл бұрын
A really good one. I am so jealous that you can turn your layout on it's side to do all this work. I am working underneath mine! At age 70 it is not so much fun. 😪 I am hoping you will follow on with your comment about including signals with the turnouts. That is something I would really like to see. It is beyond my current capabilities with Arduino but I would gratefully follow any examples. 🇵🇹
@milkymoocowmoo
@milkymoocowmoo Жыл бұрын
Great video, Jimmy! We are building similar systems but going about it in rather different ways, which is all down to the flexibility of Arduino. Have you given any thought to switching (sorry) from delay() to using a millis() clock? It would require some adjustments due to the way your code works (switch throwing functions only execute once per input, but a millis() clock forms a feedback loop and needs to...loop), but the payoff would be worth it. As it stands I foresee two issues- 1. The delay(200) in void has the potential to cause inputs to be missed if the button press occurs during the 200ms in which the program is halted. 2. Even worse, the delay(2000) in the throwing functions means you will need to wait at least 2 seconds after pushing a button before you can push another one, otherwise it won't be detected. Lastly, I think it would be helpful to briefly cover the what & why of your pull-down resistors (if you haven't already done so elsewhere). Looking forward to the next vid :)
@scentgrasslakerailway
@scentgrasslakerailway Жыл бұрын
Excellent video and information as always. I am still trying to determine if Arduino is the way to go, seems like its going to be a tough choice for me between Arduino-based DCC++ system... versus using Digikeijs and Digitrax equipment. Or perhaps run separate power grids to the layout and use each during different sessions? Maybe I think too much..
@onefast3gen
@onefast3gen 9 күн бұрын
Love your projects and videos. I pretty much get everything you do. My only problem is how can I integrate these into JMRI along with my DCC-EX system.
@TheNorthwestWind
@TheNorthwestWind Жыл бұрын
youre a good father
@AugustPelz
@AugustPelz 7 ай бұрын
Great video. Could you do a video on using this on a yard with more than 5 tortoises. And programing routes.
@mikeg.9008
@mikeg.9008 Жыл бұрын
Great video. I like how you mount the circuit card assemblies with hot glue. I generally use screws with some kind of improvised standoffs, which is a bit of a problem for me. Question: What do you do if you decide to relocate your circuit cards after you have hot glued them?
@milkymoocowmoo
@milkymoocowmoo Жыл бұрын
You would just gently pry it off. Hot glue is marvellous, particularly for this application as it's a great insulator, but you wouldn't use it for anything structural :) Failing the gentle application of elbow grease, you can apply heat to soften it up again.
@mikeg.9008
@mikeg.9008 Жыл бұрын
@@milkymoocowmoo Thanks. I will give it a try.
@augustpelz8833
@augustpelz8833 7 ай бұрын
Question. Would you use a arduino Mega to control 6 or more tortoises say for a yard. Love your channel.
@gartsherriejunction4643
@gartsherriejunction4643 2 ай бұрын
Hey Jimmy. Your arduinos and points control are impressive, so much so i am thi king of using your tdchnique in my own build. You talk about using 2 terminal block connectors - one with an input of 9V while the other is 12V. In your state is the supply voltage 120V? In the UK it is 240V. Can you tell me how or by what method do you use to step down from 120V to 9V and 12V respectively? Thank you for the response. Mike
@christiankroemer4267
@christiankroemer4267 Жыл бұрын
I am still trying to wrap my head around Tortoises. It pretty awesome that there is so much more customization potential for the system in the video, but can Tortoises be switched without Arduinos or accessory decoders? (i.e. just solder a switch onto it?)
@milkymoocowmoo
@milkymoocowmoo Жыл бұрын
Yes. Jimmy is driving the Tortoises for 2sec with each throw, but they're actually designed to be constantly driven and stalled at the end of their travel (~15mA @ stall). 12v and a DPDT is all you need, and the Tortoise even has an internal switch mechanism (actuated by its movement) that can be used to switch frog polarity and operate signals or panel lights if desired. There's a good reason they've been around for 30 odd years :)
@joelbenson3482
@joelbenson3482 Жыл бұрын
Great tutorial as always. However I have a question you will probably be able to answer. Okay so say you have a fiddle yard/a humping yard. So in most cases to go from the thru mainline to the next section you would have the switch for the mainline and the switch for the next track, you have to have both switches opened to transfer from one track to the other, can you wire the signal to 2 tortoise switches in like a series so they both operate at the same exact time? I'm guessing yes, however the other thing I don't know is it going to be enough milliamps and or voltage to do it? From what I understand it's a yes. And thank you for any and all responses. You're the best.
@pillaroftruth2830
@pillaroftruth2830 Жыл бұрын
can you interface this setup with a Loconet interface to run on Traincontroller? If so, what would the Arduino code look like?
@timf2279
@timf2279 Жыл бұрын
I got lost rather quickly.
@scentgrasslakerailway
@scentgrasslakerailway Жыл бұрын
How many amps are you sending to the 12V terminal power distributor and also to the 9V power distributor ?
@DIYDigitalRailroad
@DIYDigitalRailroad Жыл бұрын
Currently (pun intended). I have 1 amp power supply connected to the 12V as well as the 9V, but obviously the way I have it setup I can swap them out easily.
@scentgrasslakerailway
@scentgrasslakerailway Жыл бұрын
@@DIYDigitalRailroad If I run two amps through either or both will it cause any issues with the Arduinos (or any of the rest of these components)?
@milkymoocowmoo
@milkymoocowmoo Жыл бұрын
@@scentgrasslakerailway Nope, the components will only draw as many amps as they need :) Voltage is important to get right though, too much (or too little) will cause issues. You can run an Arduino on anywhere from 5-12V, but somewhere in the middle is preferred because it will generate less heat, that's why Jimmy is using a second 9V supply instead of just using 12V for everything.
@scentgrasslakerailway
@scentgrasslakerailway Жыл бұрын
@@milkymoocowmoo That is excellent info, thank you!
@phillipmarsh8806
@phillipmarsh8806 Жыл бұрын
Use hot glue to attach wires to board instead of staples
@greggmundkowsky7957
@greggmundkowsky7957 Жыл бұрын
I think you just scared me right back to hand thrown switches with ground throws, very impressive just not for me
@RVA1954
@RVA1954 Жыл бұрын
Me too!
@NYandAtlantic
@NYandAtlantic Жыл бұрын
Damn scared me right out of doing this
@kenshores9900
@kenshores9900 Жыл бұрын
Hear what you say. The word arduino makes my eyes glaze over and my mind start to see rotating pin wheels. However Jimmy makes it as simple as it can be made.
@kenshores9900
@kenshores9900 Жыл бұрын
What about us that don’t have or use tortoise switch motors.
@DIYDigitalRailroad
@DIYDigitalRailroad Жыл бұрын
hmmmm....this sounds like I need to do a video on it.
@ljl003
@ljl003 Жыл бұрын
I’m going to start a layout and you like to subscribe to your donor pages. What platform do you use, I think you said Pateron?
@DIYDigitalRailroad
@DIYDigitalRailroad Жыл бұрын
Yes I do have a patreon!
@johnsellers8555
@johnsellers8555 Жыл бұрын
Jimmy, I think you could have saved yourself some resistor wiring by using the Arduino's input_pullup feature. Then with all the pins internally pulled high you'd need to convert the 5v rail to your buttons into a ground rail and remove the resistors. Here is a good video on input wiring kzfaq.info/get/bejne/irqhoq6U1a-7m4U.html
@matthewhancock2127
@matthewhancock2127 Жыл бұрын
Why Tortoise switch machines, why not servos?
@FrankTedesco
@FrankTedesco Жыл бұрын
Jimmy go a little bit of a headache. I got a migraine.
@PalmSpringsPatriot
@PalmSpringsPatriot 10 ай бұрын
Walt her is a better system IMHO. No aruduinos.
@tczephyr3665
@tczephyr3665 Жыл бұрын
I kinda thought you needed jumper wires with resistors but I didn’t want to be a know-it-all😂😂😂.
@danshobbies13
@danshobbies13 Жыл бұрын
Way to over complicated for me. Think I’ll stay with my old school electric turnouts.
@GuGk-tu6gt
@GuGk-tu6gt Жыл бұрын
can u talk english english and not nerd english (jk)
@1babysag
@1babysag Жыл бұрын
What a nightmare. Now tell me why an Arduino is advantageous? It seems that there so many wires that I would lose my mind, certainly my love of the hobby. It is just too much. To make it even worse is that after all of that wiring you now have to program these nightmares. Now tell me how this makes life easier? I do not want to have a degrees in electrical engineering and computer science just to run a layout.
@DIYDigitalRailroad
@DIYDigitalRailroad Жыл бұрын
The main advantages of an arduino is customization and now it is easy to change my turnout setup. All I have to do is some minor adjustments to the code and I can make custom sequences for turnouts. No additional wiring required. It’s kind of like building a house. Building a house is complicated, but once it’s built, you don’t have to tear it down and rebuild it every time you want to change something about it.
@milkymoocowmoo
@milkymoocowmoo Жыл бұрын
It's advantageous because it introduces a helpful software level into an otherwise entirely physical system. On a traditional layout for example, you might have a control panel of switches with wires running to your turnouts, and probably some indicator lights somewhere in there too. Each [turnout]-[switch]-[light] grouping is its own circuit, independent of other grouping aside from a shared power supply. If you later decided you wanted to interlock some turnouts, you'd need to run more wires. Maybe have a particular turnout route also throw some related turnouts? That's more wires, and potential *re*wiring of existing circuits, assuming your setup would even let you achieve it without causing shorts. Think of Arduino as a middleman. Instead of individual circuits as above, you have inputs and outputs all connected up together via an Arduino "brain". Your switches, buttons, sensors, etc are your inputs, and your code tells the Arduino what to make your outputs (turnouts, signals, lights, etc) do when those inputs are received. To go back to the interlock example above, I could make that change quicker than I can type this sentence because all it would take is adjusting a line of code from "Arduino, when I push this button, throw turnout x" to "when I push this button, throw turnout x *and* turnout y". It also enables the use of logic, which is incredibly powerful. Conditionals, timers, reacting to situations....things that would be incredibly difficult if not impossible without that little brain sitting behind the scenes. I'd also like to point out that Arduino is quite simple to learn! It's not a computer, it's a microcontroller board, so no electrical engineering or computer science degrees required. I have neither and picked it up by watching videos on this very channel, buying a $50 starter kit and following some tutorials.
How does DCC Work and how do I wire my Model Railroad for it?
15:09
DIY and Digital Railroad
Рет қаралды 147 М.
More Model Railroad Arduino Projects and Other Questions Answered
16:16
DIY and Digital Railroad
Рет қаралды 9 М.
Дибала против вратаря Легенды
00:33
Mr. Oleynik
Рет қаралды 6 МЛН
When You Get Ran Over By A Car...
00:15
Jojo Sim
Рет қаралды 24 МЛН
DIY Arduino Model Railroad Reversing Loop
25:24
DIY and Digital Railroad
Рет қаралды 29 М.
Terminal Blocks for model railway wiring at Chadwick Model Railway | 85.
17:41
Chadwick Model Railway
Рет қаралды 105 М.
Controlling Model Railroad Switches with Arduinos!
14:11
DIY and Digital Railroad
Рет қаралды 19 М.
Routing Control for Your Model Railroad Layout with Arduino
21:08
Ron's Trains N Things
Рет қаралды 26 М.
Gearless Magnet Bike
17:57
Tom Stanton
Рет қаралды 6 МЛН
3D Printing for Model Trains - A Game Changer?
14:30
JC's Riptrack
Рет қаралды 21 М.
Arduino Block Signal for Model Trains
42:40
DIY and Digital Railroad
Рет қаралды 74 М.
How I wire up a Model Railroad for DCC
10:09
DIY and Digital Railroad
Рет қаралды 29 М.
DCC Bus Wiring at Chadwick Model Railway | 24.
39:00
Chadwick Model Railway
Рет қаралды 205 М.
В семье появился подросток!
0:15
Victoria Portfolio
Рет қаралды 2,5 МЛН
Tiny motor, big power
0:25
Rob Rides EMTB
Рет қаралды 36 МЛН
小天使和小丑离家出走#short #angel #clown
0:36
Super Beauty team
Рет қаралды 26 МЛН