Presentation on theme: "AUTOMATIC TURNTABLE (PART 1 – ELECTRIC AL)"— Presentation transcript:
1 AUTOMATIC TURNTABLE (PART 1 – ELECTRIC AL) AUTOMATING A TURNTABLEThis clinic describes the electrical system and drive train of an optically aligned turntable that uses no precision parts yet aligns itself with extreme accuracy.Construction of the pit and bridge are left to the user as they would be typical of building a manually positioned table.Examples will be available for viewing at the clinic.Presented by BOB VAN CLEEF, MMRof the North River Railway
2 This presentation is NOT complete at this time nor will it cover the construction of the actual turntable above table level in more than a general way.This optical circuit was first successfully built and proven over 35 years ago.This clinic shows a modern, updated version with less cost and fewer parts at the expense of slightly more complex circuitry.
3 A SCRATCH BUILT TABLEScratch building an optically aligned table is not simple but it does have many advantages.Stall tracks do not have to be equally spaced.No switches for stall tracks are required.No complex mechanical alignment mechanisms that can wear out are used. Alignment is simple and dependable.No precision parts or carpentry is required.YES, quite a bit of assembly IS required; This project is NOT for beginners.This table is based on a successful table design built over 35 years ago.Construction of the pit, bridge and every thing visible above the table will be covered in a future presentation. There are plenty of
4 FORWARDThe roundhouse and turntable is often the main focus point of a layout yet very few modelers build their own turntable.There are only a few small simple turntables available on the market today.Most commercial tables of any reasonable size are expensive, hard to find, have few features and are difficult to use.FORWARDThe roundhouse and turntable is often the main focus point of a layout yet very few modelers build their own turntable.There are only a few small simple turntables available on the market today.Most commercial tables of any reasonable size are expensive, hard to find, have few features and are difficult to use.
5 THIS CLINIC IS DIVIDED AS FOLLOWS: Theory of operationElectronicsPIC deviceSupport circuitrySoftwareMechanicalMotorOpticsOverall ConstructionTHIS CLINIC IS DIVIDED AS FOLLOWS:
6 THEORY OF OPERATION This is an optically-based positioning system. A motor drives the turntable.A LED projects a beam of light over a pairs of photo cells for each track position.Circuitry counts the number of cell pairs passed as the table turns and stops all motion when exactly half way between the cell pair of the desired track.Adjustments are simple and easy.Accuracy is reliable and close to about +/- .010”Power to the stall tracks is delivered by a special comutator thus eliminating the need for switches.
7 A SIMPLE OPTICAL SYSTEM This is a simulation of an optical turntable system.A single pair of photo-resisters represent up to 24 pairs or more of cells wired in parallelThe LCD below table level pivots with the bridge of the turntable.Note that no lens or other optical components are required
8 HOW IT WORKSLight directed to either cell will cause a signal for that cell to go from high to low.A low signal from either of (2) cell signals the table is near alignment and slows the motor.A third signal is also generated from one of the cells that has no effect until the other two go low.Then, but only then, when the signal changes, the table stops indexing.Output of cells and motor speed as light source passes.
9 ELECTRICAL CONNECTIONS A slip ring is a method of making an electrical connection through a rotating assembly.This complex slip ring is made from a printed circuit board.motor brushes on the underside of a drive wheel route power to the light source and various tracks around the table.(More on this later)
11 THE ELECTRONICSNote the absence of IC gates, op-amps or comparators. These are all included in the PIC device. LCD display is added. Even the motor circuit is greatly simplified buy using another special IC.A single PIC device contains most of the circuitry required for this project.Special chips are used to control the motor and to display the status of turntable operation.A small number of discrete components complete the project.A USB interface is used to program the PIC only during the development of the system.
12 THE PIC MICRO CONTROLER 16-bit architecture16K x 14bit Program Memory1024 x 8 bit RAMClock, timing and all support circuitrySerial Programming I/FAbout 56 other components all in a single 64-pin package slightly larger than a thumbnail for just $4
13 A TOOLKIT IN A BOX In addition to the RAM ROM it contains: 6-1/2 ports A/D convertersTimersUARTSLCD AND LCD DRIVERSCOMPARATORSSEVERAL OTHER FUNCTIONS
14 PINS HAVE MULTIPLE USES Most pins have multiple usesDevice must be configured to define pin useConfiguration can be changed in mid-program
15 CONFIGURING THE PIC DEVICE This project makes use of the (3) comparators contained within this device.Note the multiplexed inputs.The polarity of the output can be inverted or accessed without the use of an external pin.This leaves the unused pins free for other uses.
17 PROGRAMMING THE PICPIC devices are designed to be programmed without being removed from their socket.A USB port powers the programmer as well as the data to be programmed.The programmer supplies all voltages and signals required to program the PIC device.
18 JUMPERSFour jumpers provide direct access to up to 15 test routines as well as the normal “RUN” mode.This simplifies testingThis also allows multiplexing of multiple tables on one system.
19 CONTROL PANEL Three buttons control the table. CWCCWRESETThe 8-character LCD displaysThe number of button pressesDirection of rotationStatusRapid travelSeeking (slow travel)Stop (in Position)Ready
20 CONTROLER PCB LAYOUTThis 2-layer PCB uses a PIC device and a minimal component countTo control the turntable.The schematic for main was created using a freeware application“ADVANCED CIRCUITS” available from PCB Artist Layout SoftwareAvailable through Advanced circuits, a source for printed circuit boardsWeb Home Page:Sales telephone number: (800) x1025
21 LCD DISPLAYA simple, inexpensive LCD display is used to show the turntable status.I shows (1) line of (8) characters.Only (8) wires are required to connect the display
22 MOTOR CONNECTIONSA driver uses circuitry similar to a DCC decoder to drive the motorNo decoder is required.It can be configured to run using a wide range of voltages.Logic circuits are electrically independent of motor power.A simple 2-speed circuit controls the motor.The motor is driven at hide speed until it approached the desired trackIt then slows to a “seek” speed as it approaches the final positionThe motor stops and an electronic brake is applied to keep motor momentumFrom passing the desired stopping pointThis controller can be adjust to supply between 5 and 40 volts to the motorNote the extra circuit to turn the light source on and off.
26 5 and 8 volt POWER SUPPLYThe turntable runs from a 16v DC wall transformer.Two common voltage regulators provide the required voltagesA simple power supply
27 Micro Engineering U2 Programmer USB interface for easy use with virtually all computersGenerates all required voltages required for programming.Works with entire range of PIC devices with proper interfacesFirmware can be automatically updated via host computer as new PIC devices become available.
28 CCS “C” Compiler and IDE Custom Computer Services (CCS) offers a complete range of software for PIC devices.One product offers a full implementation of the “C” and other languages at a very low price.It is easy to install.All components work well together.EVERYTHING YOU NEED TO GET STARTED
29 PRINTED CIRCUIT SLIP RING This printed circuit board (PCB) provides connections to the rotating bridge.The Center and first band provide power to the “light gun”The next band simply provides clearance for power feedsThe next band provides power to one of the bridge rails. Note the split to allow proper reversing.The outer band energizes one, but only one stall track at a time.
30 RESOURCES Digikey http://www.digikey.com/ Source for wide variety of electronic related parts and hardware including LEDs, Wire, Solder, Copper wire, printed circuit board and headers.MicroMarkSource for small tools and materials useful for modeling.Custom Computer Services (CCS)“C” and several other higher level languages for PIC devicesMicrochipManufacturer of PIC devices and several programming accessoriesProto-Advantage -Custom design and assembly of SMT devices and related materials.
31 This presentation has been brought to you by the North River Railway Bob Van Cleef46 BroadwayCoventry, CTTHE ENDTHE ENDThis presentation has been brought to you by the North River Railway.Bob Van Cleef46 BroadwayCoventry, CTThis Power Point presentation is available at:This presentation is available as a .PDF file at:This presentation is available as a Web page file at:
32 AUTOMATING A TURNTABLE (PART 2) This clinic describes the electrical system and drive train of an optically aligned turntable that uses no precision parts yet aligns itself with extreme accuracy.Construction of the pit and bridge are left to the user as they would be typical of building a manually positioned table.Examples will be available for viewing at the clinic.Presented by BOB VAN CLEEF, MMRof the North River Railway
33 MOTORSVex Robotics carries a line of motors, gears and metal channels designed for building robots.These are perfect for building a rugged mechanism the runs at whatever speed desired.Parts include gears, chains, tank tracks almost any drive desired including belts.
34 BRUSHES ON DRIVE DISKBrushes for motors are used to collect power from the comutatorThe are attached to thin metal springs to allow maximum movementOlsen’s Toy Train Parts, Lakewood OHLionel motor brushesYoder Railroad Mesa, AZ
35 PHOTO CELLS ON TABLE BASE Photo cells are mounted on a pylon using a single screwFine positioning can be accomplished by simply turning the pylon slightly until proper alignment is achieved.Simple and crude? Yes, but very effective and dependable.
38 DRIVE MOTORAny small inexpensive motor can be used to drive a turntableThis system used a simple rubber shaft to turn the diskThe clutch drive was required to prevent any binding at slow speeds.
39 Drive belt made from heat-shrink tubing used to turn drive disk IMPROVED DRIVE SYSTEMA future drive will be a bit more complexThe motor will be mounted solidly and a spring-loaded pulley will keep a more reliable tension on the drive disk.Drive belt made from heat-shrink tubing used to turn drive disk
41 A BRIEF HISTORYTurntables were rare in the first early model railroad layouts. The First crude table mentioned in the July ‘42 MR used a phonograph table as the base and was manually aligned. In August of the same year a much more advanced “automatic” table featured both power to the stall tracks and a mechanical positioning system. Systems in this era used a split ring rail to power the bridge track.Several articles in the MR and other magazines have appeared since then with many differences in the construction to the bridge and pit portions of a turntable (see Sept 57, Aug and Sept ‘63 and March ’72 but few advances were made in the drive mechanism. The exception was a photo-cell system described in the Nov ’66 MR using a single photo-cell and lens.In Oct ‘58 Atlas produced a small, inexpensive self indexing table that became quite popular in both motorized and manual versions. Since then most commercial tables have been very expensive, not automatically aligned and required switches to apply power to the stall tracks.
42 AN “IMPROVED” TABLEUnsatisfied with what was available at the time, I built a turntable with several novel features. Because the North River already used a computer controlled block system it only seemed logical to use a computer to control the turntables too. At the time I worked with numeric controlled machines with optical positioning systems and found that with a few modifications the principal worked extremely well. Positioning was based on a beam of light, not falling on one photo cell, but falling exactly half-way between pairs of photocells.It also turned out that by using a printed circuit board under the table eliminated the need for switches for the stall tracks as well as eliminating the need for pulling power from a split ring rail to power the bridge track.This system worked well for over 35 years with only two problems. Controlling the motor for the final track alignment required the dedicated attention of the computer at the expense of all other functions of the computer until the alignment was complete. Also, The rubber drive wheel has dried out and decayed causing unreliable operation.
43 A NEW, “IMPROVED” TABLEThe North River Railway has recently been going through a complete renovation to improve and expand the control system, the turntables included. The new system will contain turntables with a more detailed superstructure and will operate independently of the main computer with a dedicated controller of their own.A modern PIC device greatly simplifies the circuitry involved without interrupting operation on the rest of the layout while hardware designed for robots will hopefully provide more reliable operation.
46 SLIP RINGS PCB TEMPLATE Brushes mounted under the table transfer power to the LED light sourceAs well as to the rails of the bridgeAnd to the surrounding stall tracksThis eliminates the need for separate switches otherwise requiredTo select the required track.
47 GENERIC BRIDGE CONTRUCTION Very little variations in general construction.All had some sort of central pivot, the bridge proper, a deck, and usually some sort of end support.Dimensions varied to size and weight of locomotives
48 DECK PLAN FOR BRIDGETies are laid on top of the bridge, some or all of which extend the entire width of the deck.The deck covers pretty much the entire bridge as it must carry a lot of foot traffic around the locomotive.
50 BRIDGE SUPPORT Use a truck to support the bridge. A narrow gauge truck can be used here with smaller wheelsRemove wheels from one side of truckMount truck in usual way so it can pivot and follow the ring rail“Hide” the truck behind the bridge sides
51 MORE SIMPLE SUPPORT TRUCKS Whatever is used to support the bridge it must …Carry the full weight of the bridge.Must roll freely on ring rail.Must flex enough to follow the rail at all times.Need not make electrical contact
52 AUTOMATING A TURNTABLE (PART 3 - TECHNICAL) This clinic describes the electrical system and drive train of an optically aligned turntable that uses no precision parts yet aligns itself with extreme accuracy.Construction of the pit and bridge are left to the user as they would be typical of building a manually positioned table.Examples will be available for viewing at the clinic.Presented by BOB VAN CLEEF, MMRof the North River Railway
53 SURFACE MOUNT TECHNOLOGY This new design will use SMT chipsHand soldering of these chips is difficult but not impossible.It is also possible to flow solder these parts yourself.A third alternative is to use a vendor to custom mount these chips on an adapter.
54 ADAPTER FOR MOTOR CONTROLER This adapter is simply a small circuit board.Pads on one side are patterned to fit the specific IC you use.Note the holes along the sides.These particular adapter is for a DIP configuration.
56 A TYPICAL SMT to DIP ADAPTER Proto Advantage is one source for obtaining such adaptersThey can also purchase and assemble an adapter for a small fee.This can be an economical labor-saving approach that can save time in the development of a new circuit.
57 A KIT FOR FLOW SOLDERING. Kits are also available for mounting the part on the adapter.This kit contains a sample adapter and headers and enough solder paste for several assemblies.It also contains the steel stencil used for applying the soldering paste.
58 SOLDERING STENCIL The stencil is placed over the pads for the IC. A squeegee is then used to spread the paste evenly over stencil.The IC is carefully placed over the pasteThe whole thing is then placed in a toaster oven.
59 MOUNTED COMPONENTSockets for SMT parts are available but are also very expensive.It can be more cost effective to pay a vender to mount the part for you.The cost for ten of these mounted parts is less than a SMT socket
60 VOLTAGE REGULATORSThese regulators are available in the same TO-220 package as the power transistors.Note that small capacitors are placed as close as possible to the regulators to filter out voltage spikes that may cause undependable operation.Also, the input voltage must be at least 5 volts greater than the specified output5 and 12 volt Regulators
61 TRANSISTERSThese two complementary power transistors are designed to be used in this type of applicationAny number of small signal transistors can be used. Beware that several different pin configurations exist.