Home | Store | About | Progress | TNP | Videos | Visit | Links Main Menu TMRC Store About TMRC Progress About the TNP Videos Visit the Clubroom Links
Sys 3 turntable

Introduction

The turntable controller is a device on the picnet that controlls the turntable in F-Yard. It can be controlled by commands from the server, or by the keypad in front of the turntable.

The turntable bridge is connected to a 1/2 inch steel shaft that does down under the layout through two substantial bearings. Under the layout there is an aluminum disk mounted to the shaft about a foot in diameter, and there is a precision potentiometer connected to the end of the shaft. A small motor with a rubber wheel is spring-loaded into a pulley on the shaft.

Nothing locks the position of the bridge. This is done so nothing will be damaged (particulary the details on the bridge) if someone tries to move it by hand.

The potentitiometer's wiper is connected to an analog-to-digital convertor input on the PIC microcontroller, and is used for coarse positioning of the turntable. There is not enough resolution in this to accurately position the track.

Mounted hanging down over the edge of the aluminum disk is a "flag" for each track alignment. These flags go through an optical sensor with LED and photo-diode. The photo-diode is connected to another analog-to-digical convertor, and the system moves the bridge to the half-extinction point of the photo-diode. This provides the necessary precision in track aligment. The "servo" is always active keeping the track aligned, if you nudge the bridge, it will go back to the desired position.

The turntable contoroller is also responsible for track power connection to the bridge. It is disconnected while the bridge is moving, and connected in the correct polarity depending on which end of the bridge is connected to which type of track.

Local Control

The first two buttons are the track number, and then the last one is A or B, to select the desired end of the turntable bridge. The end of the bridge with the operator's booth is B, the other end is A.

The C, D, and # keys also do something.

Remote Control

There are three picnet request packet types specific to the turntable.

The first is GOT_NORMAL (1), in which the one data byte indicates what end of the turntable goes to which track number. The end bit is apparently 1 for the end with the operator's booth, and 0 for the other end. Packet format:

      +---------------------------------------+
      | Start byte = 0xFF                     |
      +---------------------------------------+
      | GOT_NORMAL = 0x01                     |
      +---------------------------------------+
      | cardid = 99                           |
      +---------------------------------------+
      | number of bytes = 1                   |
      +----+----+----+----+----+----+----+----+
      | unused  | track number           |end |
      |         |                        |    |
      +----+----+----+----+----+----+----+----+
      | checksum                              |
      +---------------------------------------+
  

The second is GOT_TO_CLOSEST (2), in which the desired track number is coded as above, but with the low bit 0. The controller will rotate the turntable in the direction that requires the least rotation. The packet format is:

      +---------------------------------------+
      | Start byte = 0xFF                     |
      +---------------------------------------+
      | GOT_TO_CLOSEST = 0x02                 |
      +---------------------------------------+
      | cardid = 99                           |
      +---------------------------------------+
      | number of bytes = 1                   |
      +----+----+----+----+----+----+----+----+
      | unused  | track number           |un- |
      |         |                        |used|
      +----+----+----+----+----+----+----+----+
      | checksum                              |
      +---------------------------------------+
  

The third is GOT_FOO (3), which has no data bytes. It will stop the turntable immediately. The packet format is:

      +---------------------------------------+
      | Start byte = 0xFF                     |
      +---------------------------------------+
      | GOT_FOO = 0x03                        |
      +---------------------------------------+
      | cardid = 99                           |
      +---------------------------------------+
      | number of bytes = 0                   |
      +---------------------------------------+
      | checksum                              |
      +---------------------------------------+
  

A GOT_STATUS_INFO (243) request packet yields these data bytes in the response packet:

      +---------------------------------------+
      | card type                             |
      +----+----+----+----+----+----+----+----+
      |foo |mov-|track number            |end |
      |    |ing |                        |    |
      +----+----+----+----+----+----+----+----+
  

The "end" bit indicates which end of the bridge is aligned, with 1 being the operator's booth end, and 0 being the other end. The track number bits indicate what track that end of the bridge is aligned with. The moving bit is 0 if the bridge is moving, and 1 if it has stopped moving. The foo bit is 1 if the move was abandoned due to a GOT_FOO request.