Hi , I have a Relay ISOx16 Module and I don’t have much knoledg of electrical circuits ,
but I want to use It ,
I have attached a pictue which shows my imagination of how I should wire the module , and I have these questions :
1- How should a 220 VAC power apply to the relay ? is this right to plug a power plug to power outlet and put the other side of the wire to k2 on the relay board as I have painted It on the picture ?
and then wire out the k1 and paste it to a lamp ? as I have painted it on the picture ?
so k1 will be the power output and k2 will be the power input !
and in my code how should I turn on and off the lamp ?
should I enable or disable both k1 and k2 ? Or should I enable or disable only one of them ? if yes which one ?
2- My second question is about the part which beside It is written +12v and GND , I have painted an arrow beside It , what is that for ?
To summerize what I want to do and know :
- I want to simply wire power plug to the board so I can apply 220 VAC Power to the board
- I want to simply wire lamp to the board so I can turn It on or off
I will really appricieate any body who guids me and help me through this .