Make:Projects build plans for this. You can find a link to this completed project here: Operating Railroad Grade Crossing Signal over on the Make Magazine site. Or you can generate your own PDF version by clicking here.
I used Make:Projects because I found the interface very easy to use, especially since it allowed bulk import of steps.
As before you can find the entire design package zipped (here) for download.