Here you will find my collected code for the various automated featured on my model railways. This encompasses level crossing gates, inclines and WHR style ladybird signals.
You can find details of the layouts themselves on https://www.my-place.org.uk/mymodels/ . Full details of the builds are found on my layout threads on NGRM-Online.com (registration required).