The Forums of PlanetChristmas have moved to http://talk.PlanetChristmas.com Home 

 Moderated by: moderator12, csmith
New Topic Reply Print
Zero Crossing Question / Issues - DIY Direct Control of Hardware. Read Only. No more posting. - PlanetChristmas! Forums. Read Only. We've moved to http://talk.planetchristmas.com - The Forums of PlanetChristmas have moved to http://talk.PlanetChristmas.com

 Not logged in  
 Login
 Register
 Home
 Calendar
 Members
 Help

Search
Search
Search by username

Great Links
PlanetChristmas

PC Links
PC Radio Station


AuthorPost
r01carlsonr
Member
 

Joined: Sunday November 25th, 2007
Location:  
Posts: 6
Picture: 
Status:  Offline
 Posted: Sunday January 6th, 2008 05:26 am
QuoteReply
I'm working on modifying my ICICLE boards to allow them to use dimming.  I'm having trouble getting the circuit for the zero crossing detection to detect 120Hz.  Instead I'm only getting a high enough pulse on the rising edge of the sine wave to detect 60Hz.  The zero crossing circuit that I'm using is the same one described in the RENARD documentation and it is also on many other places on the web.  One thing that I have noticed is that the output voltage varies highly (shifts up or down a volt) with a small VCC change (say 4.5V to 6V).  A picture of my circuit is below.  Also, I have attached a scope image showing the output signal (blue) and the input sine wave measured after the two 15K resistors (red). Does anybody have any tips or hints that could help me detect all 120 zeros in my wave?

Thanks
Ryan

The Circuit:  R1: 27K  R2,R3: 15K


The Scope:




Back To Top QuoteReply

ErnieHorning
Member


Joined: Friday November 25th, 2005
Location: Apple Valley, Minnesota USA
Posts: 663
Picture: [Download]
Status:  Offline
 Posted: Sunday January 6th, 2008 08:39 pm
QuoteReply
The input voltage looks good; it should be around +/- 1 volt.  The output is way too low and because you’re saying that the level is drastically changing with VCC, I would say that the H11AA1 is defective.

 

When you get this working, you may need to change the value of R1.  It was chosen to match the input current of a PIC micro.

 

BTW, the first time that I tested this circuit, I only use 24VAC as the input voltage and it still functioned correctly.  I’ve had enough first time circuits explode at 120 volts that I would prefer that they only smoke at 24.



____________________
No really... Just one more light and I'll be finished....
Disclaimer: If you take any of what I say as non-constructive, it's not how I intended it.
Back To Top QuoteReply

LiquidRetro
Member
 

Joined: Friday October 19th, 2007
Location: Lincoln, Nebraska USA
Posts: 25
Picture: 
Status:  Offline
 Posted: Monday January 7th, 2008 04:22 am
QuoteReply
Thanks for the reply.  This is good news and hopefully it will be an easy fix and we can move on to the next phase of the icicle redesign. 



____________________
Visit my light shows webpage
http://www.liquidretro.net/lightshow/

Visit my blog
http://blog.liquidretro.net

Visit my photography business website
http://www.jbmphoto.com
Back To Top QuoteReply

r01carlsonr
Member
 

Joined: Sunday November 25th, 2007
Location:  
Posts: 6
Picture: 
Status:  Offline
 Posted: Monday January 28th, 2008 02:11 am
QuoteReply
I just wanted to let everyone know that changing the chip rectified the problem if anybody else runs into this problem.

Back To Top QuoteReply

Current time is 03:25 am
The Forums of PlanetChristmas have moved to http://talk.PlanetChristmas.com > PlanetChristmas! Forums. Read Only. We've moved to http://talk.planetchristmas.com > DIY Direct Control of Hardware. Read Only. No more posting. > Zero Crossing Question / Issues


Slate theme designed by: The Cat Dragged Inn
Powered by WowBB 1.7 - Copyright © 2003-2006 Aycan Gulez