I am planning to make a prototype for wired home automation devices, and I am thinking of using CAN bus for communication between nodes and Gateway.
The way I am planning to build it, there is one gateway with CAN bus capabilities, let's say up to 4 CAN buses for extension, with only software running. No inputs or output, and up to the limited number of nodes per bus with up to 2 relays, or 4 sinking transistor outputs, and 5 V inputs to act as switch and sensor inputs. I also think of wiring each node connected to the same CAN bus with a single wire.
I was hoping to use up to 32 nodes per bus for a maximum distance of 500m per bus cable
My questions are as follows:
Should I use 24 VDC or 24 VAC for power supply to cover the distance between gateway and all nodes?
What kind of twisted pair shielded cable should I use to ensure both communication and power supply of the nodes?
Is there another bus that will be better in this use case?