Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/08/05 05:33
Read: times


 
Msg Score: +1
 +1 Good Answer/Helpful
#104862 - mains filtering
Responding to: ???'s previous message

The zero crossing input is used as a correction for the timer. Assuming we're using a capture input for the zero crossing, the software does a simple window comparison between captures to check to see if the value is within the expected range - if it's out of the expected range, the value is rejected, no correction takes place. A timer compare is used to generate the internal zero crossing. The period value gets adjusted by the period of the incoming zero cross captures - a simple low pass filter is used to limit the rate of correction, so the internal compares will be frequency locked to the zero cross captures. To phase lock the internal compares to the zero crossings, the difference between the internal and external zero crossings is calculated and based on the magnitude of the difference, a correction is added or subtracted from the next compare value. Eventually, the two will be phase locked. A fixed offset can be added in so that phase shifts due to external filtering can be cancelled out. Therefore the internal compares will be very close to the actual zero crossing of the mains.

Something like X10 is synchronised to the mains, so that won't affect zero crossing detection, but zellweger is asynchronous - as it moves through zero crossing, it causes major errors in the zero crossing detection - if you're doing phase control it causes false firings. The above technique remove the effects of mains borne interference so that your phase control behaves as you would expect.

List of 35 messages in thread
TopicAuthorDate
LPC922 Comparator Interrupt Problems.            01/01/70 00:00      
   Vcc?            01/01/70 00:00      
      Vcc=3.0 to 3.3 Volts.            01/01/70 00:00      
         Possible causes            01/01/70 00:00      
            Noise could come from comparator itself            01/01/70 00:00      
               Re: Noise from Ground.            01/01/70 00:00      
                  Filter            01/01/70 00:00      
                     Exactly!            01/01/70 00:00      
                  R21 is contaminated            01/01/70 00:00      
                     Hystresis is 1.7 mV            01/01/70 00:00      
                        It's 20mV!            01/01/70 00:00      
                           oops calculation error            01/01/70 00:00      
                              waaaay too small a hysteresis..            01/01/70 00:00      
                                 Not at all !            01/01/70 00:00      
                                    there are (at least) 2 ways to skin this            01/01/70 00:00      
                                       Extreme care??            01/01/70 00:00      
                                          correct, but there has been umpteen post            01/01/70 00:00      
                     Please Suggest some filtering.            01/01/70 00:00      
                        100R plus 47µF            01/01/70 00:00      
                           Re: 100E + 47uF            01/01/70 00:00      
                              Like that...            01/01/70 00:00      
                                 Red LED.            01/01/70 00:00      
                                    Every red LED should work            01/01/70 00:00      
                                       also be aware            01/01/70 00:00      
                                          At 500µA...            01/01/70 00:00      
            Noisy ground?            01/01/70 00:00      
            Re: Possible Causes.            01/01/70 00:00      
               Mains Signalling?            01/01/70 00:00      
                  Mains filtering            01/01/70 00:00      
                     mains filtering            01/01/70 00:00      
                        Very informative!            01/01/70 00:00      
   Problem Frequency.            01/01/70 00:00      
      Filtering will help!            01/01/70 00:00      
         Problem Solved.            01/01/70 00:00      
            Nice to hear!            01/01/70 00:00      

Back to Subject List