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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/17/07 17:26
Read: times


 
#130970 - Why make simple matters worse?
Responding to: ???'s previous message
There is one application note in Atmel which gives
simple method for zero crossing detector.
You just connect micro ground 0V with to Neutral
(return of 240V system)thru 1MEG resistor and P3.3 ( INT1) with another 1Meg resistor. Set INT1 with Falling Edge and not level
type. The internal protection diodes of micro take care of
the excess voltage. If not sure then connect anode of 1N4148
diode to P3.3 pin and Cathode to +5V. Similarly use other
1N4148 with anode to GND of +5V supply and cathode to P3.3pin.
Now you will get very precision interrupt when Mains voltage
is just falling to zero!
Presently what is your connection is absoultely wrong as
pointed by others. The emitter of OC should be connected to
0V and collector to P3.3.If no internal pullup used then use
external pull up of 10K ohm resistor. However this will be
incorrect by many degrees. The method described above gives
precison gives fraction of a degree!( By degree I mean there
are 360 degrees in one cycle)

List of 31 messages in thread
TopicAuthorDate
Zero Crossing detector woes            01/01/70 00:00      
   "Bible" time.            01/01/70 00:00      
      proper connecton 4n35?            01/01/70 00:00      
   Try MOC 3041 or MOC 3043            01/01/70 00:00      
   links            01/01/70 00:00      
   Why make simple matters worse?            01/01/70 00:00      
      I would never do this!            01/01/70 00:00      
         Sounds like a recipe for a Darwin Award.            01/01/70 00:00      
            Total agree!            01/01/70 00:00      
         i had did this with opampe !            01/01/70 00:00      
   Have tried out the suggestions!            01/01/70 00:00      
      It will get you 'excited' when you reverse the plu            01/01/70 00:00      
   Schematic Added - Am I asking for too much?            01/01/70 00:00      
      Been there; done that            01/01/70 00:00      
      Jerson is right            01/01/70 00:00      
      Post the code !here!            01/01/70 00:00      
   URL for schematic            01/01/70 00:00      
      You can avoid the bridge            01/01/70 00:00      
      You need a pull up            01/01/70 00:00      
      Will not work!            01/01/70 00:00      
         will work - 4511 has active "high" outputs            01/01/70 00:00      
            what is a 4511            01/01/70 00:00      
               It's a CD4511, of course            01/01/70 00:00      
                  of course?            01/01/70 00:00      
            No, it will not            01/01/70 00:00      
               agree            01/01/70 00:00      
         Mistake in writing            01/01/70 00:00      
   just remembered this one . Do not know if            01/01/70 00:00      
   Am making modifications            01/01/70 00:00      
      a few answers            01/01/70 00:00      
   It is a HEF4511B - sorry for the short form.            01/01/70 00:00      

Back to Subject List