Тёмный
No video :(

Model Railroad Turntable with Arduinos! 

DIY and Digital Railroad
Подписаться 62 тыс.
Просмотров 30 тыс.
50% 1

Опубликовано:

 

26 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 65   
@thesheq5023
@thesheq5023 3 года назад
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
@paparoysworkshop
@paparoysworkshop 5 лет назад
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 5 лет назад
Sounds to me like a very easy and useful interface. Guess the other members just think old fashioned lol
@davidrt9999
@davidrt9999 5 лет назад
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 5 лет назад
@@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 5 лет назад
@@paparoysworkshop sound clear to me. Of course if your track connections are evenly spaced it makes things a lot easier.
@paparoysworkshop
@paparoysworkshop 5 лет назад
@@ReneDirks You are absolutely correct. The turntable at the club was fabricated out of bits and pieces. Not a bought item.
@pwilliamssa
@pwilliamssa 2 года назад
Love your Arduino videos. What I would really love to see is how you implement them (wire etc) into your layout.
@PushingThroughThePain
@PushingThroughThePain 5 лет назад
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 5 лет назад
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!
@willgdesigns
@willgdesigns 3 года назад
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.
@ariegt
@ariegt 5 лет назад
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
@chriszalenski9443
@chriszalenski9443 Год назад
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 Год назад
I’m having a similar problem, if you find the answer could you let me know?
@lysardman3995
@lysardman3995 Год назад
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?
@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
@nesr8786
@nesr8786 5 лет назад
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
@DIYDigitalRailroad
@DIYDigitalRailroad 5 лет назад
Thank you!
@w.rustylane5650
@w.rustylane5650 4 года назад
Very nice. If I ever get a turntable I will definitely use this.
@samfromm3711
@samfromm3711 4 года назад
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
@hansfehlow9657
@hansfehlow9657 5 лет назад
That was fun! Thanks Jimmy.
@leonardoosthuysen9662
@leonardoosthuysen9662 3 года назад
Thanks for the video. Very Very helpful. Can't wait to learn more.
@MultiBuster321
@MultiBuster321 5 лет назад
thank you so much! you have just opened more opportunites to my layout!!
@DIYDigitalRailroad
@DIYDigitalRailroad 5 лет назад
Thank you!
@malparks6263
@malparks6263 11 месяцев назад
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
@attackeagle
@attackeagle 5 лет назад
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 5 лет назад
arduino can do also half steps , this way it is already more subtile
@PierreLucGagnon58
@PierreLucGagnon58 5 лет назад
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 5 лет назад
I'm glad that helped out! I actually bought a 3D printer! I love it!
@PierreLucGagnon58
@PierreLucGagnon58 5 лет назад
That's great!! Which printer did you end up getting?
@DIYDigitalRailroad
@DIYDigitalRailroad 5 лет назад
@@PierreLucGagnon58 I got a flashforge finder. It's been great so far
@PierreLucGagnon58
@PierreLucGagnon58 5 лет назад
That's a nice little printer! For N scale it's a great size :) Congrats, Jimmy!
@kevinflynn9204
@kevinflynn9204 Год назад
Can you show a permanent mounted system.......... I mean do I have to use the bead board for a permanent mount ?
@dannyvanstraelen3273
@dannyvanstraelen3273 6 месяцев назад
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?
@johngamiles2541
@johngamiles2541 4 месяца назад
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.
@riggziestrains8082
@riggziestrains8082 3 года назад
wow nice.. i have an atlas 305 ho turn table and its so noisy.. ill be thinking of doing this...thx!
@johnfm2731
@johnfm2731 9 месяцев назад
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?
@twitch1965
@twitch1965 Год назад
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 Год назад
is it possible to share some sort of link to show to code you wrote for this project
@AlohaMilton
@AlohaMilton 5 лет назад
Super cool tutorial Jimmy.
@DIYDigitalRailroad
@DIYDigitalRailroad 5 лет назад
Thank you!
@garybroom3967
@garybroom3967 Год назад
Can you update the link for the Arduino Starter Kit, please. It returns "Page Not Found".
@ThePwcj
@ThePwcj 5 лет назад
Thank you and take care... Paul.
@DIYDigitalRailroad
@DIYDigitalRailroad 5 лет назад
Thank you!
@Peepjouster27
@Peepjouster27 2 года назад
How do you power the rails on that setup?
@s.u.5285
@s.u.5285 4 года назад
does that sketch work with bipolar stepper motors or only unipolor motors?
@WarbonnetTrains
@WarbonnetTrains 5 лет назад
Cool, definitely cool
@microplumb
@microplumb 4 года назад
Hi, do you have plan for for 3d printing...thnks
@willannand9988
@willannand9988 5 лет назад
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 5 лет назад
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 5 лет назад
@@DIYDigitalRailroad Wishing you luck sir, I have 2 on my layout and look forward to your progress.
@TheOriginalBadger
@TheOriginalBadger 5 лет назад
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 5 лет назад
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 5 лет назад
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 5 лет назад
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 5 лет назад
@@DIYDigitalRailroad lol, ok, fair answer. Perhaps you might avoid comments such as mine by calling this "Part 1"? :)
@TechBuild
@TechBuild 5 лет назад
From where can I get the link to get the 3d model of the turntable?
@DIYDigitalRailroad
@DIYDigitalRailroad 5 лет назад
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 5 лет назад
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 3 года назад
@@PierreLucGagnon58 How do you get power to the rails. The creator says something about brass rings but doesn't show an example.
@PierreLucGagnon58
@PierreLucGagnon58 3 года назад
@@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 3 года назад
@@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.
Далее
DIY Arduino Model Railroad Reversing Loop
25:24
Просмотров 29 тыс.
Installing Atlas #305 Turntable with #304 Motor Drive
11:15
Arduino Model Railroad Turntable Part 4
17:29
Просмотров 5 тыс.
A beginners guide to turntables
21:52
Просмотров 24 тыс.
Arduino Model Railroad Turntable Part 3
13:38
Просмотров 9 тыс.
Model Train Switch Control with an Arduino!
21:05
Просмотров 21 тыс.
turntable project part 1
11:35
Просмотров 6 тыс.
ADM Turntables - An overview
4:51
Просмотров 49 тыс.
Arduino DIY DC Model Train Controller
15:58
Просмотров 39 тыс.
Basic Arduino Servo Control for Model Railroads
19:55