qpasatio said:It´s very easy. I have a presence sensor with 3 terminals. These terminals are the tree connections of relay.
I use this connection:
NC (normally closed) -> N
NO (normally open) -> F
C (common) - > to the microcontroller Input (signal)
If the sensor detects presence, the signal is 220, otherwise, N.
I don´t know if my english is precise, if you don´t understand me I can send you one scheme.
qpasatio said:Thank you for your replies
But.... I need 1 or 0. The resistante is a good method if you activate an interrupt to detect the zero cross. In order to detect Fase oder Neutral, I think that it is necessary to add diodes... condensators... and so on.
qpasatio said:Let´s try it now.
The opto is very expensive and I had some problems, maybe a good selected capacitor with the 680K resistance could improve the circuit.
thanks
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?