The MCP23007 is powered thanks to the VIN from the Photon.
So you have : RELAY <—> MCP23007 <—> Particle Photon
I have discovered that I don’t need to power my Photon with the USB when the relay is powered by a 12v arrival. And everything is surprisingly working well…
Why ? Is it ok for the Photon on the long term ?
By the way, do you know any other relay module with 16 channels ?
@peekay123 thanks for your help. I followed your advice and it works very well.
I bought an other 8 relays board and want to connect it to my master board but I don't understand the address jumpers. Do you have any idea ? I've opened a topic on the matter: