So Im switching from an SPST relay board to a SPDT board. On the SPST relay board I currently have 3 channels occupied.
Channel 1: Has incoming Live and outoing to LED circuit of 4 lights. So I interrupted the home light circuit and fed the live into 1 relay terminal and then connected the other relay terminal to the outgoing line towards the lights. This works fine on SPST and Id like to keep it working on the SPDT.
Channel 2: Has incoming Live and outoing to a small compressor. Same as above but Im eliminating the compressor.
Channel 3: Has incoming 24VDC from power source and outgoing to 5/2 solenoid valve . The solenoid valve actuated a pneumatic cylinder and was operated by the compressor.
Channel 4: Is empty
Since Im replacing the compressor/solenoid valve/pneumatic cylinder with a linear actuator, I only need Channel 1 for lights and Channel 2 for the linear actuator. This leaves me with 2 doubts (wiring,commands):
Wiring
Channel 1: Now lights will be wired Live into common and outgoing to NO? Right?
Channel 2: Now actuator will be wired Live into common and outgoing to NO? Right?
Im guessing to NO because I dont want the lights on or the actuator activated constantly.
Commands
Channel 1: I used to send a command from a python script, (the letter e) for turning the relay ON and another command (o) for turning it off. Now the commands are a decimal 1 to activate relay 1, but now relay 1 has 2 positions. Would I send 1 two times and each successive one just toggles between the previous state? Here is a screenshot of the android app used to toggle it, its called blueswitch:
Channel 1: Has incoming Live and outoing to LED circuit of 4 lights. So I interrupted the home light circuit and fed the live into 1 relay terminal and then connected the other relay terminal to the outgoing line towards the lights. This works fine on SPST and Id like to keep it working on the SPDT.
Channel 2: Has incoming Live and outoing to a small compressor. Same as above but Im eliminating the compressor.
Channel 3: Has incoming 24VDC from power source and outgoing to 5/2 solenoid valve . The solenoid valve actuated a pneumatic cylinder and was operated by the compressor.
Channel 4: Is empty
Since Im replacing the compressor/solenoid valve/pneumatic cylinder with a linear actuator, I only need Channel 1 for lights and Channel 2 for the linear actuator. This leaves me with 2 doubts (wiring,commands):
Wiring
Channel 1: Now lights will be wired Live into common and outgoing to NO? Right?
Channel 2: Now actuator will be wired Live into common and outgoing to NO? Right?
Im guessing to NO because I dont want the lights on or the actuator activated constantly.
Commands
Channel 1: I used to send a command from a python script, (the letter e) for turning the relay ON and another command (o) for turning it off. Now the commands are a decimal 1 to activate relay 1, but now relay 1 has 2 positions. Would I send 1 two times and each successive one just toggles between the previous state? Here is a screenshot of the android app used to toggle it, its called blueswitch: