Raspberry Pi Controller for a Railway Signal