Trains.com

Subscriber & Member Login

Login, or register today to interact in our online community, comment on articles, receive our newsletter, manage your account online and more!

Arduino controlled turntable

9315 views
9 replies
1 rating 2 rating 3 rating 4 rating 5 rating
  • Member since
    November 2016
  • 196 posts
Posted by khier on Monday, October 15, 2018 10:15 AM

B. Bryce

Whatta da heck is Arduino???Huh?



An ATMEL micro controller installed on a board with some useful accessories. You can program it like a computer to do specific tasks.

  • Member since
    July 2009
  • From: lavale, md
  • 4,678 posts
Posted by gregc on Wednesday, October 10, 2018 10:57 AM

the use of some sensor on the turntable bridge and pit wall seems to require precise location.

a somewhat older approach is to have a disc under the benchwork that also turns and an optical sensor near its' edge.   Cardboard or brass flags can be attached to the disc and one side of the flag aligned with the optical sensor when the bridge is aligned with the corresponding track.   The flag can be nudged a little for precise alignment.

the controller (e.g. arduino) can be triggered to rotate clockwise or CCW to the next flag/track.   If it approaches the flag from the opposite side (e.g. CW), it can overrun and backtrack.

on the older designs, a motor with a rubber friction wheel is pressed against the under bench disc to move the turntable.   PWM can be used to control it's speed.   One advantage of this approach is if something impedes the turntable above, the friction wheel can slip, avoiding any damage.

greg - Philadelphia & Reading / Reading

  • Member since
    July 2006
  • From: Pittsburgh, PA
  • 1,796 posts
Posted by JoeinPA on Tuesday, October 9, 2018 4:08 PM

B. Bryce

Whatta da heck is Arduino???Huh?

 

 

Try this link: https://learn.sparkfun.com/tutorials/what-is-an-arduino/all

Joe

  • Member since
    September 2012
  • 79 posts
Posted by B. Bryce on Tuesday, October 9, 2018 12:46 PM

Whatta da heck is Arduino???Huh?

  • Member since
    November 2016
  • 196 posts
Posted by khier on Monday, October 8, 2018 11:36 AM

and another nice guy with a link to the program:

https://www.youtube.com/watch?v=9O-Xqz-H9-k

  • Member since
    November 2016
  • 196 posts
Posted by khier on Monday, October 8, 2018 11:32 AM

Unfortunately I cannot find the link anymore.....

There was a WIP of a turntable powered by a stepper moto and Arduino. The code was also included in the thread. It was fairly simple construction and basic code. You will need a turntable, a stepper motor of your choice (probably a NEMA 17) and a suitable stepper motor driver from spark fun, and of course an Arduino or the micro controlelr of your choice.

Regards

Walid

 

  • Member since
    January 2009
  • From: Bakersfield, CA 93308
  • 6,526 posts
Posted by RR_Mel on Tuesday, October 2, 2018 6:28 PM

I made my turntable indexer using LEDs by simply tripping a relay to open the circuit.  I installed a LED on the pit wall in the center of each track and a pair of sensors under the bridge.  I set a rotary switch to illuminate the correct LED and turn on the power to the turntable motor.  The relay is in series with the go switch and drops out when it sees the LED.  Super simple.  I wanted more connections to the bridge so I went berserk with a slip ring for the sensor and bridge lights.
 
I had planned on using an Arduino but the LED sensors was much easier with very accurate positioning and no code to write.   I wanted more connections to the bridge anyway so I intended to make the slip ring assembly.  Never liked the way the power to the rails on the bridge is done on any of the store bought turntables, so I made my own.
  
 
 
Mel
 
 
My Model Railroad   
 
Bakersfield, California
 
I'm beginning to realize that aging is not for wimps.
 
  • Member since
    December 2015
  • From: Shenandoah Valley
  • 9,094 posts
Posted by BigDaddy on Tuesday, October 2, 2018 5:46 PM

Welcome to the forum

I suppose YTMB is a reference to a youtube channel.  I have seen Arduino, but that is the sum total of my knowledge.  I found a thread which may or may not have the code your need.  I can't tell.

https://model-railroad-hobbyist.com/node/28501?page=3#comment-272281

Henry

COB Potomac & Northern

Shenandoah Valley

  • Member since
    August 2018
  • 1 posts
Arduino controlled turntable
Posted by Rleg on Friday, August 10, 2018 9:38 PM

I recently watched a YTMB video which showed a turntable controlled with Arduino but the code was not published. The code author was Greg Heinz from Minnisota I think. I have tried to contact YTMB to request if the code was available anywhere but have not received a reply. Does anyone know of this code?

Subscriber & Member Login

Login, or register today to interact in our online community, comment on articles, receive our newsletter, manage your account online and more!

Users Online

There are no community member online

Search the Community

ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT
Model Railroader Newsletter See all
Sign up for our FREE e-newsletter and get model railroad news in your inbox!