Model Railroad Turntable with Arduinos!

Sdílet
Vložit
  • čas přidán 24. 08. 2024

Komentáře • 65

  • @thesheq5023
    @thesheq5023 Před 3 lety +1

    I made a similar design but with a power output to the motor and each transfer track zone be optionally isolated. This way when i want something lined up i can turn the table until it hits the isolated section then stops. It’s an easy addition to this already pretty easy setup

  • @PushingThroughThePain
    @PushingThroughThePain Před 5 lety +1

    This is great! I stumbled upon this from a Hackaday article. I'm really glad they posted your video too because it looks like your channel may be exactly what I need to learn what I need to set up a sweet model railroad with my boys the way I have always wanted! Great video! Looking forward to watching the rest 😁

    • @DIYDigitalRailroad
      @DIYDigitalRailroad  Před 5 lety

      Hey Nathan! Welcome to my channel! I am so glad to hear this! I hope that I can do more videos to help you on on your model railroad journey!

  • @paparoysworkshop
    @paparoysworkshop Před 5 lety +4

    Nice video. Last year I joined the local model railroad club and the first task they asked of me was to get the turntable operational. It was a mix and match of different turntables with no decent method of controlling it.
    So I took on the project and 3D printed a stepper motor mount to fit to the turntable which, by the way, has 13 tracks leading up to it; most going to the round house. I also used an arduino to control everything but the control panel had 13 buttons for the tracks, one for 180 degree turn and a reset. So if you are on track 5 and you want to go to track 9, you just push button 9. If you wanted to go to track 3 but also wanted to turn the loco around, you push 180 turn followed by track 3. The program calculates the direction and distance to travel.
    This works fine but the guys want a simpler control panel so I am currently making one with an LED numeric display and a rotary switch. When complete you will just dial in the track number you want and push the button. Last month I promised I would have it done by Christmas... good thing I didn't say what year.

    • @ReneDirks
      @ReneDirks Před 5 lety

      Sounds to me like a very easy and useful interface. Guess the other members just think old fashioned lol

    • @davidrt9999
      @davidrt9999 Před 5 lety

      Roy, I'm curious. How did you make it work by track number instead of just moving by a number of say degrees or stepper pulses? It sounds like you are doing what I have wanted to do with my TT but have not been able write a sketch that worked correctly.

    • @paparoysworkshop
      @paparoysworkshop Před 5 lety +3

      @@davidrt9999 First off, the tracks were not evenly spaced. Some were 10 degrees, some at 15 while others were at 22. Basically, just all over the place. So I calculated the distance between track 1 and track 2, then from track 2 to track 3, and so forth. I then wrote out a set of truth tables which held all this information.
      Now let's say you are starting at track 3. The variable CurrentTrackNumber holds that value. Now you want to go to track 7 so the program look at the truth tables and finds the corresponding entry. It then takes the value of 3 to 4 plus 4 to 5 plus 5 to 6 plus 6 to 7. These are added up and the turntable turns that specific number of steps. Now 7 is written to the variable CurrentTrackNumber. And it is ready for the next entry.
      That is the basics of it. And of course, depending if the new track number is higher or lower determines the direction. There is also a routine for turning the locomotive 180 degrees at the same time or independently. Lastly, for the odd time the alignment might not be perfect, (It sometimes happens) there are jog buttons to fix that problem. I hope I am clear enough with my explanation.

    • @ReneDirks
      @ReneDirks Před 5 lety

      @@paparoysworkshop sound clear to me. Of course if your track connections are evenly spaced it makes things a lot easier.

    • @paparoysworkshop
      @paparoysworkshop Před 5 lety

      @@ReneDirks You are absolutely correct. The turntable at the club was fabricated out of bits and pieces. Not a bought item.

  • @pwilliamssa
    @pwilliamssa Před 2 lety +1

    Love your Arduino videos. What I would really love to see is how you implement them (wire etc) into your layout.

  • @willgdesigns
    @willgdesigns Před 3 lety

    Absolutely amazing video. The only problems I'm having are that my potentiometer is not the best, and my stepper motor needs some help to spin. Those problems can be solved with getting new hardware, and nothing to do with the video. I don't think I've ever even touched a model train, but this video was so helpful. Thanks.

  • @hansfehlow9657
    @hansfehlow9657 Před 5 lety +1

    That was fun! Thanks Jimmy.

  • @nesr8786
    @nesr8786 Před 5 lety

    Great video Jimmy ,very educational, i have watched a few YT videos about steppers and yours has gave me another way of dealing with the turntable,Thank you ,Regards John

  • @unionpacificshermanhillinn4076

    Nice video, i only just got my done with two buttons as i could not get another pot to work. Im gonna give yours a try soon once i get the table painted and put together

  • @w.rustylane5650
    @w.rustylane5650 Před 4 lety

    Very nice. If I ever get a turntable I will definitely use this.

  • @ariegt
    @ariegt Před 5 lety +4

    you can use half steps on the arduino and also let it count steps so you can use pushbuttons for each track stopping in a perfect line. Or a horizontal slider pot ( fader ) with a Counting Dial range next to it for each track. so if the slider reads between 65-90 = track 3 , if it reads between 140-165 = track 6 etc. Also there are better handling stepper motor drivers that could be smoother. Good luck with this project

  • @lysardman3995
    @lysardman3995 Před rokem +1

    Hi Jimmy, I've just watched your turntable basic control, and thoroughly enjoyed it, but can't see if you've done anything else about it. I'm using an Arduino and the same stepper motor you used but have problems getting an exact alignment with just 1 on and 1 off track. Have you a similar short film on that too?

  • @chriszalenski9443
    @chriszalenski9443 Před rokem +1

    I found your video about Arduino UNO very informative. Where can I learn more about using and writing an Arduino program to operate a more complex turn table. Where one push button was used to start a set up process and several other buttons used to program stop points for head and tail stop points that lined up with the round house spurs. Also to incorporate some sort of relays to reverse the polarity of the turntable track and connect round house spur power. Just need more in depth info where can I fin this info

    • @me231951
      @me231951 Před rokem

      I’m having a similar problem, if you find the answer could you let me know?

  • @MultiBuster321
    @MultiBuster321 Před 5 lety

    thank you so much! you have just opened more opportunites to my layout!!

  • @leonardoosthuysen9662
    @leonardoosthuysen9662 Před 3 lety

    Thanks for the video. Very Very helpful. Can't wait to learn more.

  • @kevinflynn9204
    @kevinflynn9204 Před rokem

    Can you show a permanent mounted system.......... I mean do I have to use the bead board for a permanent mount
    ?

  • @samfromm3711
    @samfromm3711 Před 4 lety

    Thank you for the Video. Exactly what I was looking for so set up a table for curing my resin prints. Please though, the background noise/music when you are talking is very distracting, at least for this old man with bad hearing.
    Thanks again

  • @malparks6263
    @malparks6263 Před 11 měsíci

    Hi Jimmy, Really like your videos, keep up the good work. Where can I find the sketch for the Arduino turntable step motor control as shown in you video. Mal n gauge from Australia

  • @AlohaMilton
    @AlohaMilton Před 5 lety

    Super cool tutorial Jimmy.

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

    Jimmy, is there an updated link for the ardunio parts in this video? The the link for the starter set is no longer valid. Also, clicking on Pierre's link in the video doesn''t do anything.

  • @dannyvanstraelen3273
    @dannyvanstraelen3273 Před 6 měsíci

    Hi, I'm a complete novice with this Arduino technology, it's the first time in my life I work with this technology, but I understand the hardware connecting from your video.
    I'm following your instruction ordered the same components (still have to arrive).
    But one thing that is not clear to me is the software, is it a freeware or not, and probably only runs on widows not on Mac OS?
    Can you give me a link where and what to look for, you wold do me a big favor, as this is the only bit I'm struggling with?

  • @johnfm2731
    @johnfm2731 Před 9 měsíci

    I am getting ready to install a turntable on my layout, and I have bought a walthers 90 non motorized turntable and the motorizing kit. My question for you, is it possible to use Arduino to control a NON Stepper Motor, and get it to stop correctly at each track?

  • @riggziestrains8082
    @riggziestrains8082 Před 3 lety

    wow nice.. i have an atlas 305 ho turn table and its so noisy.. ill be thinking of doing this...thx!

  • @twitch1965
    @twitch1965 Před rokem

    Just found this video, very simple indeed. Quick question. How would you handle potential short circuits when the turntable reverses the direction of the trian?

  • @chriszalenski9443
    @chriszalenski9443 Před rokem

    is it possible to share some sort of link to show to code you wrote for this project

  • @ThePwcj
    @ThePwcj Před 5 lety

    Thank you and take care... Paul.

  • @PierreLucGagnon58
    @PierreLucGagnon58 Před 5 lety

    Aah so that's what that was! I used the stepper.h example and couldn't get the motor to stop. I thought it was because of the pot but in fact it was the motor and all I had to do was change it from 0 to 5! Because I never thought it was the stepper motor I ended up getting this special library and writing code for it to automatically do 180degrees at the push of a button.
    I'm thinking of going back to the potentiometer code as you get much more precision but keep the button and the button would reverse the rotation direction.
    If you ever use it on your layout, Jimmy let me know and I'll print you a nice knob for the potentiometer! :)

    • @DIYDigitalRailroad
      @DIYDigitalRailroad  Před 5 lety

      I'm glad that helped out! I actually bought a 3D printer! I love it!

    • @PierreLucGagnon58
      @PierreLucGagnon58 Před 5 lety

      That's great!! Which printer did you end up getting?

    • @DIYDigitalRailroad
      @DIYDigitalRailroad  Před 5 lety

      @@PierreLucGagnon58 I got a flashforge finder. It's been great so far

    • @PierreLucGagnon58
      @PierreLucGagnon58 Před 5 lety

      That's a nice little printer! For N scale it's a great size :) Congrats, Jimmy!

  • @garybroom3967
    @garybroom3967 Před rokem

    Can you update the link for the Arduino Starter Kit, please. It returns "Page Not Found".

  • @attackeagle
    @attackeagle Před 5 lety

    I agree with those who mentioned using a gearbox to decrease the speed, but I also wonder if that wouldn’t also solve the indexing problem.
    If you used a 25:1 gearbox, for example, now you’d have 5000 steps in a revolution, correct? Or more for a higher count gearbox.
    So you’d change that in the code, and at that point once indexed you’d have enough resolution to move a certain number of steps, 576 for example, every time and you’d always line up.
    Just a thought, really enjoyed your channel over the last few months, have a great 2019!

    • @ariegt
      @ariegt Před 5 lety

      arduino can do also half steps , this way it is already more subtile

  • @WarbonnetTrains
    @WarbonnetTrains Před 5 lety

    Cool, definitely cool

  • @Peepjouster27
    @Peepjouster27 Před 2 lety

    How do you power the rails on that setup?

  • @s.u.5285
    @s.u.5285 Před 4 lety

    does that sketch work with bipolar stepper motors or only unipolor motors?

  • @microplumb
    @microplumb Před 4 lety

    Hi, do you have plan for for 3d printing...thnks

  • @willannand9988
    @willannand9988 Před 5 lety

    Jimmy, good job. You have it working now with a rotary pot, are you going to index it so you can get accuracy?

    • @DIYDigitalRailroad
      @DIYDigitalRailroad  Před 5 lety +1

      Thanks Will! I plan on gearing it atleast and potentially using buttons and fine adjustments. I may index it, but I also want people to be able to do the tutorial line by line. it may end up being multiple videos.

    • @willannand9988
      @willannand9988 Před 5 lety

      @@DIYDigitalRailroad Wishing you luck sir, I have 2 on my layout and look forward to your progress.

  • @TheOriginalBadger
    @TheOriginalBadger Před 5 lety

    But what about stopping it? Specifically, stopping it at a specific location/angle in order to line up with the exit and entry tracks. Also, and I know diddly squat about turntables, but from what I have seen of them, the rotation speed seems to be too fast.

    • @mjbirdClavdivs
      @mjbirdClavdivs Před 5 lety

      From what I've read (in the HO class) this is by far the difficult part of a turntable. Getting it to precisely stop at the right spot for the tracks to line up. Most of the DIY turntables I've seen use a stepper motor to drive a worm gear. This slows the speed down greatly (much more prototypical) and allows things to slow and stop precisely. Usually there's a sensor on the swing arm of the table and guides where the tracks are. The best one I saw used bar codes and an IR phototransistor to let the arduino know where the next track is. And then, like an elevator, it could go faster between tracks and slow down and stop when it got to the correct track number. To make the turntable turn the other direction, it's just a reverse of the sequencing. Some of the other example sketches let you determine direction as well.

    • @franktkalcevic5342
      @franktkalcevic5342 Před 5 lety

      I hope that's in version 2.0. You can get away with 1 home switch/sensor then count steps to each track.

    • @DIYDigitalRailroad
      @DIYDigitalRailroad  Před 5 lety

      I gotta save some stuff for future videos right? ;) The speed is adjustable from the potentiometer and can move quite slow. I plan to work on the turntable and improve it. Once I've got it east to understand, then I'll do an update!

    • @TheOriginalBadger
      @TheOriginalBadger Před 5 lety

      @@DIYDigitalRailroad lol, ok, fair answer. Perhaps you might avoid comments such as mine by calling this "Part 1"? :)

  • @TechBuild
    @TechBuild Před 5 lety

    From where can I get the link to get the 3d model of the turntable?

    • @DIYDigitalRailroad
      @DIYDigitalRailroad  Před 5 lety

      I would have to refer you to YT user @Pierre-Luc Gagnon. You can also look on Thingiverse or do a google seach.

    • @PierreLucGagnon58
      @PierreLucGagnon58 Před 5 lety +1

      Here's where I got the turntable from: www.thingiverse.com/thing:933854 I did not create the model. I found a post from a guy trying it out on Reddit. It's worth mentioning that to get power to the rails you will have to do some custom work to it.

    • @GuyMasong1
      @GuyMasong1 Před 3 lety

      @@PierreLucGagnon58 How do you get power to the rails. The creator says something about brass rings but doesn't show an example.

    • @PierreLucGagnon58
      @PierreLucGagnon58 Před 3 lety

      @@GuyMasong1 You can use the components from an Atlas turntable which have the said brass ring. It's essentially spring tensioned contacts attached to the bridge part sliding on a brass ring attached to the base part. To keep things simple I simply coded specific positions and have the turntable reset back to the first position so it never does a complete rotation so you can just use wires directly

    • @GuyMasong1
      @GuyMasong1 Před 3 lety

      @@PierreLucGagnon58 Thank you. Also, do you know if the pivot is supposed to fit in the hole in the well? In this video it looks like it's sitting on top.