Check out the Working Z-scale 3D-printed Railroad Crossing.
The project is still under development.
The page: Railroad Crossing Gate