home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / sci / electron / 14713 < prev    next >
Encoding:
Text File  |  1992-08-21  |  2.4 KB  |  53 lines

  1. Newsgroups: sci.electronics
  2. Path: sparky!uunet!decwrl!zazen!doug.cae.wisc.edu!kolstad
  3. From: kolstad@cae.wisc.edu (Joel Kolstad)
  4. Subject: Re: AC zero cross detection?
  5. Organization: U of Wisconsin-Madison College of Engineering
  6. Distribution: sci
  7. Date: 21 Aug 92 18:03:26 CDT
  8. Message-ID: <1992Aug21.180326.14917@doug.cae.wisc.edu>
  9. References: <1992Aug21.222100.15735@sics.se>
  10. Lines: 41
  11.  
  12. In article <1992Aug21.222100.15735@sics.se> boortz@sics.se (Kent Boortz) writes:
  13. >
  14. >Hi,
  15. >
  16. >I will interrupt a microcontroller at 220V AC zero crossing time to reset
  17. >an internal timer. Any ideas of a simple but reliable zero crossing detection
  18. >circuit? The triggering has to be isolated with a optocoupler. The 220V
  19. >will beside driving a halogen lamp be transformed down to 9V AC to drive
  20. >the processor etc. Could I detect the zero crossing point on the 9V side
  21. >or will there be a phase shift because of the induction in the transformer
  22. >and the load?
  23.  
  24. You can just run that 220V AC straight to an opto-coupler through a BIG
  25. resistor.  (220K comes to mind...)  If your opto-coupler only transfers
  26. in one direction (i.e., there's only one LED inside instead of 2 back to back),
  27. you should make sure that that LED can handle 220*1.5V reverse voltage.  It
  28. probably can't, so you'll need to use an extra diode.
  29.  
  30. I've used some cheap NEC optocouplers (sold by DigiKey, page 77 in their
  31. catalog) to do this.  (I used the 2502 and 2506 models -- they have Darlington
  32. outputs so that you only _need_ 1ma of that 220V, and the less 220V I need,
  33. the happier I am!)  The output is rather distorted (they aren't perfectly
  34. linear).  What you want to do, though, is run this through a series
  35. capacitor so that you get a differentiator.  Now, feed those pulses to a
  36. comparator, and you'll all set!
  37.  
  38. As for the second question... yes, you could take the zero crossing from the
  39. low voltage side.  And yes, it _could_ be out of phase depending on your
  40. transformer and the load.  It may be best to look at the voltage vs. current
  41. on an o-scope and see if you care...
  42.  
  43. I assume that you want to do more than just get a timer reset pulse though,
  44. right?  If you use that timer to, say, control pulses to a TRIAC or something,
  45. the low voltage side will most definitely look different that the primary.
  46. (And if you _are_ firing TRIACs, remember to put some filtering into your
  47. system so that we can all still listen to our radios without too much 
  48. static. :-) )
  49.  
  50.                         ---Joel Kolstad
  51.  
  52.  
  53.