SolarTrap
Computer
- May 5, 2014
- 89
Hello,
below is my circuit for zero cross detection at 110VAC.
My pcb has 2 of these and they are connected to 2 independent AC sources.
I get a lot of faulty zero crossing events from the interrupt of the Arduino.
Below is the sampled input for 100ms.
At 19ms there is the problem. Vertical axis is 12bit ADC, horizontal time in ms.
It's a very simple circuit and I don't know why these values are not up to 4095 and down to 0:
12 168 178
13 177 189
14 218 245
15 4011 4060
16 4076 4075
17 4079 4079
19 4067 4080
20 4081 4083
21 4080 4082
22 4081 4081
23 4082 4081
24 1169 237
25 202 185
26 170 170
27 165 177
28 170 174
Any suggestions what might be the problem? Markus
below is my circuit for zero cross detection at 110VAC.
My pcb has 2 of these and they are connected to 2 independent AC sources.
I get a lot of faulty zero crossing events from the interrupt of the Arduino.
Below is the sampled input for 100ms.
At 19ms there is the problem. Vertical axis is 12bit ADC, horizontal time in ms.
It's a very simple circuit and I don't know why these values are not up to 4095 and down to 0:
12 168 178
13 177 189
14 218 245
15 4011 4060
16 4076 4075
17 4079 4079
19 4067 4080
20 4081 4083
21 4080 4082
22 4081 4081
23 4082 4081
24 1169 237
25 202 185
26 170 170
27 165 177
28 170 174
Any suggestions what might be the problem? Markus