Hereisawayofconstructingworkingmodelrailwaylevelcrossinggateswhereaminorroadcrossesa singleline.Onlyonegateisprovidedeachsideofthetracksotheoperation involvessequentialclosure of the gates.ThegatesaremodifiedWillsgates(4mmscale)coveredinK&S3/64”DiamondSpecialShapesmeshto simulatethewirenettingcoveringofthegates.Abrassrodisfixedtothestileofeachgatebymeansof solderedpinswhichfitthroughtwoholesdrilledintothestile.Therodisapushfitintoacollaronthe motor gearbox final drive shaft underneath the baseboard.EachgateisdrivenbymeansofaMultiRatioGearboxsoldbyMFA/ComoDrills(Part917D)which offersanumberofgearratiosbywhichthespeedofmovementofthegatescanbechosenin combinationwithavariablePWMpowersupply. Theoppositeendofthefinaldriveshaftisprovided withadischavingapegnearitscircumference.Therotationalmovementoftheshaftislimitedto90ºby meansofmicroswitchescontactedbythepegateachendofitstravelinconjunctionwiththeelectronics described below. ThefollowingcircuitforavariablePWMsupplyworksfine. Thespeedofmovementofthegatesis adjustedbymeansofthevariableresistors. Seewww.eleinmec.com/article.asp?28formore information.Theelectroniccircuitwhichcontrolsthesequentialmovementofthegatesisshownbelow.Thecontrol panelforthelevelcrossinggatesconsistsof anon-offswitch(notshown)andassociatedLEDanda momentarycontactDPDTSwitch1withassociatedgreenandredLEDstoshowwhetherthegatesare open or closed to traffic. Thesequenceisstartedbyoperationof themomentarycontactswitch1which(a)activateslatching relay1tochangethepolarityofthePWMmotorsupplyand(b)activateseitherrelay2orrelay3to triggerthe555timer.Theoutputfrompin3ofthe555timeractivatesrelay4toclosethemotorcircuit andstartgatemotor1.Theoutputpulseislongenoughtoallowthemotortostartitstravelandrelease microswitchM1whichswitchesSPDTrelay5tokeeppowertothegatemotor. Whenthegatemotorhas movedthegatethrough90º,thepegonthecircumferenceofthediscreferredtoaboveswitchesthetwo microswitchesM3andM4tocutpowertomotor1andstartmotor2.MicroswitchesM5andM6arethen releasedreadyforthereturnsequenceandwhenmotor2reachestheendofitstravelmicroswitchM2 switches to operate SPDT relay 5 to cut power to the motor.Thereversesequenceisstartedbyoperationofthemomentarycontactswitchintheoppositedirection to reverse polarity of the PWM supply and activate the other of relay 2 and relay 3.Thepurposeofthe555timeristoprovidealongenoughpulsetoallowthemotortostartitssequence andreleasethemicroswitcheswithoutbeingreliantontheoperatorkeepingtheDPDTmomentary contact switch pressed for the required time.Click or tap the image below for a short clip showing the operation of the gates.