Hardware and software for Raspberry Pi add-on board with up to 8 relays