I would go the Arduino route with a "relay shield" such as...
https://www.amazon.co.uk/ARDU-Arduin.../dp/B076B1WBKF
https://www.amazon.co.uk/F-Mingnian-...strial&sr=1-23
They are very easy to programme and if you get the Chinese knock offs very cheap (with a two week wait). I don't bother making microprocessor boards anymore, just pick up one of these. If you need a hand with the programme just shout.