Author Topic: Hey, actually figured something out on my own! (zero-crossing detector)  (Read 2789 times)

0 Members and 1 Guest are viewing this topic.

Online TimFox

  • Super Contributor
  • ***
  • Posts: 8881
  • Country: us
  • Retired, now restoring antique test equipment
Re: Hey, actually figured something out on my own! (zero-crossing detector)
« Reply #25 on: December 26, 2024, 12:23:56 am »
I miss the animated Hamm's bear.
 

Online Analog KidTopic starter

  • Frequent Contributor
  • **
  • Posts: 862
  • Country: us
Re: Hey, actually figured something out on my own! (zero-crossing detector)
« Reply #26 on: December 26, 2024, 12:25:21 am »
We want a pulse on each zero crossing. Like what @Tooki drew:

(Attachment Link)
Why do we want that? What is an application where we need two pulses per period and cannot accomplish the same thing with the square wave?

I don't know.
I had a project in mind that needed this, can't think of it now.
Why don't y'all just humor me, consider this an interesting electronic challenge.
How could a guy generate short-ish pulses from that nice square wave at each zero crossing?
Surely you smart guys can come up with something.
 

Online Analog KidTopic starter

  • Frequent Contributor
  • **
  • Posts: 862
  • Country: us
Re: Hey, actually figured something out on my own! (zero-crossing detector)
« Reply #27 on: December 26, 2024, 12:27:26 am »
I miss the animated Hamm's bear.

[Indian drums: BOOM boom boom boom BOOM boom boom boom]

From the land of sky blue waters,
From the land of pines, lofty balsams,
Comes the beer refreshing—Hamm's, the beer refreshing.
 

Online TimFox

  • Super Contributor
  • ***
  • Posts: 8881
  • Country: us
  • Retired, now restoring antique test equipment
Re: Hey, actually figured something out on my own! (zero-crossing detector)
« Reply #28 on: December 26, 2024, 12:31:03 am »
My favorite ad from that era has the bear playing hockey goalie and flirting with a cute lady beaver in the stands.
Her bratty kid-brother beaver chews a puck-clearing hole in his goalie stick.
 

Online Analog KidTopic starter

  • Frequent Contributor
  • **
  • Posts: 862
  • Country: us
Re: Hey, actually figured something out on my own! (zero-crossing detector)
« Reply #29 on: December 26, 2024, 12:38:46 am »
Apparently that beaver also owns a chainsaw:

 

Offline Circlotron

  • Super Contributor
  • ***
  • Posts: 3351
  • Country: au
Re: Hey, actually figured something out on my own! (zero-crossing detector)
« Reply #30 on: December 26, 2024, 04:48:35 am »
Here’s one I cooked up many years ago. Used it quite successfully in SCR soft starters for three-phase induction motors.
 
The following users thanked this post: Xena E

Offline xvr

  • Frequent Contributor
  • **
  • Posts: 539
  • Country: ie
    • LinkedIn
 
The following users thanked this post: tooki, Xena E

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 20250
  • Country: gb
  • 0999
Re: Hey, actually figured something out on my own! (zero-crossing detector)
« Reply #32 on: December 26, 2024, 07:17:38 pm »
That's only halfwave. Here's a fullwave solution, which is designed to work from a bridge rectifier.


EDIT: I attached the wrong .asc file. Here's the correct one.
« Last Edit: December 26, 2024, 10:28:28 pm by Zero999 »
 
The following users thanked this post: Analog Kid

Offline Picuino

  • Super Contributor
  • ***
  • Posts: 1049
  • Country: es
    • Picuino web
Re: Hey, actually figured something out on my own! (zero-crossing detector)
« Reply #33 on: December 26, 2024, 07:36:18 pm »
Very precise and robust detector from: http://web.archive.org/web/20170704120431/www.dextrel.net/diyzerocrosser.htm



FEATURES:
    highly accurate mains zero crossing detection
    fully isolated and low voltage safe output
    ultra-low power consumption; worst case power dissipation < 120mW
    produces symmetrical pulses around zero crossings
    output pulse stays constant, independent of the mains voltage
    very low parts count, no precision components required
    all components can be low voltage SMD
    works over all voltage ranges (100VAC/240VAC), without modification
    50Hz/60Hz compatible
    50Hz produces a 1ms ZC pulse, 60Hz produces 0.83ms ZC pulse
    highly stable with varying temperature and aging
« Last Edit: December 26, 2024, 07:41:50 pm by Picuino »
 
The following users thanked this post: cte, Xena E

Offline Picuino

  • Super Contributor
  • ***
  • Posts: 1049
  • Country: es
    • Picuino web
Re: Hey, actually figured something out on my own! (zero-crossing detector)
« Reply #34 on: December 26, 2024, 07:41:10 pm »
The only drawback I find to this circuit is that it is necessary to count only the even pulses (or odd pulses) to accurately measure the network frequency, because the time from an even pulse to an odd pulse is not the same as from an odd pulse to an even pulse.
 

Online Analog KidTopic starter

  • Frequent Contributor
  • **
  • Posts: 862
  • Country: us
Re: Hey, actually figured something out on my own! (zero-crossing detector)
« Reply #35 on: December 26, 2024, 07:45:37 pm »
That's only halfwave. Here's a fullwave solution, which is designed to work from a bridge rectifier.

I loves it. Thanks!

Same old story here: I post a question, get a few answers, then the naysayers come out at night, accusing me of being a troll (!?!?!) but posting nothing of use.

Then someone posts a simple and elegant solution to my question. Which proves my theory that there are indeed people who not only know more than I do about electronics here, but who are willing to share their knowledge without condescension, carping or chiding.

Good job, @Zero999!
 

Offline xvr

  • Frequent Contributor
  • **
  • Posts: 539
  • Country: ie
    • LinkedIn
Re: Hey, actually figured something out on my own! (zero-crossing detector)
« Reply #36 on: December 26, 2024, 07:53:28 pm »
> but posting nothing of use.

I give up. Why you ask a question when don't want to see an answer?
 
The following users thanked this post: tooki

Online Analog KidTopic starter

  • Frequent Contributor
  • **
  • Posts: 862
  • Country: us
Re: Hey, actually figured something out on my own! (zero-crossing detector)
« Reply #37 on: December 26, 2024, 08:04:31 pm »
> but posting nothing of use.

I give up. Why you ask a question when don't want to see an answer?

Au contraire, mon ami.
I did want an answer, and I got it from comrade @Zero999.
OK?

What I don't want is a rash of shit saying "why bother asking that question?" or "what, are you nuts?" or things along those lines.
 

Offline xvr

  • Frequent Contributor
  • **
  • Posts: 539
  • Country: ie
    • LinkedIn
Re: Hey, actually figured something out on my own! (zero-crossing detector)
« Reply #38 on: December 26, 2024, 08:20:16 pm »
You got 3 answers in total, but ignore 2 of them
 

Online Analog KidTopic starter

  • Frequent Contributor
  • **
  • Posts: 862
  • Country: us
Re: Hey, actually figured something out on my own! (zero-crossing detector)
« Reply #39 on: December 26, 2024, 08:23:12 pm »
You got 3 answers in total, but ignore 2 of them

That's because I only got one that provided the solution I asked for (pulses on all zero crossings).
 

Offline xvr

  • Frequent Contributor
  • **
  • Posts: 539
  • Country: ie
    • LinkedIn
Re: Hey, actually figured something out on my own! (zero-crossing detector)
« Reply #40 on: December 26, 2024, 08:25:17 pm »
Once again - you got 3 answers for your question - pulses on each edge of conparator output. And ignore (or didn't understand) 2 of them
 
The following users thanked this post: tooki

Online Analog KidTopic starter

  • Frequent Contributor
  • **
  • Posts: 862
  • Country: us
Re: Hey, actually figured something out on my own! (zero-crossing detector)
« Reply #41 on: December 26, 2024, 08:35:36 pm »
Once again - you got 3 answers for your question - pulses on each edge of conparator output. And ignore (or didn't understand) 2 of them

To be fair, @Circlotron did post such a solution, but it looked a bit too complex for my taste (4 op-amps!).
We are allowed to pick and choose which solutions we like, yes?
Or are now subject to CCP rules that mandate that we accept all solutions equally?
 

Offline xvr

  • Frequent Contributor
  • **
  • Posts: 539
  • Country: ie
    • LinkedIn
Re: Hey, actually figured something out on my own! (zero-crossing detector)
« Reply #42 on: December 26, 2024, 08:48:42 pm »
Post #19 and post #35 was ignored. Yes, you have a right take in account or ignore any solution on your choise, but don't be surprised to be taken as a troll in this case.
 
The following users thanked this post: tooki

Online Analog KidTopic starter

  • Frequent Contributor
  • **
  • Posts: 862
  • Country: us
Re: Hey, actually figured something out on my own! (zero-crossing detector)
« Reply #43 on: December 26, 2024, 09:05:08 pm »
I'm trying to simulate #19 in LTSpice. Unfortunately, can't seem to do it, as for some reason the program doesn't recognize some of its own models (trying to use CD4030 or CD4070, since I don't have any of the 74HCT models).
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 20250
  • Country: gb
  • 0999
Re: Hey, actually figured something out on my own! (zero-crossing detector)
« Reply #44 on: December 26, 2024, 10:27:35 pm »
That's only halfwave. Here's a fullwave solution, which is designed to work from a bridge rectifier.

I loves it. Thanks!

Same old story here: I post a question, get a few answers, then the naysayers come out at night, accusing me of being a troll (!?!?!) but posting nothing of use.

Then someone posts a simple and elegant solution to my question. Which proves my theory that there are indeed people who not only know more than I do about electronics here, but who are willing to share their knowledge without condescension, carping or chiding.

Good job, @Zero999!

This was suggested in post 8, all due respect to zero999

Just stuff the output of a bridge rectifier into the AoE design and you have what you asked for.

There have been several other perfectly sound suggestions all ignored.

If you want to discuss a topic, do so, but FFS stop weaving a bullshit story into it and keep dismissing those who try to help, making pedantic comments about their answers, spelling, prose and wasting their time.

You are a troll, just not a very clever one.
I was a little puzzled about why he preferred my design over the others. It's nothing special. Plenty of other sensible suggestions have been posted. My design has its downsides, the main one being that it isn't isolated, but that wasn't a requirement. I just wanted something which will work with a bridge rectifier and doesn't require an additional diode in series with the load, so the zero crossing circuit is isolated with the smoothing capacitor.

Perhaps it's because I included a clear simulation and plot?
 

Offline MrAl

  • Super Contributor
  • ***
  • Posts: 1653
Re: Hey, actually figured something out on my own! (zero-crossing detector)
« Reply #45 on: December 26, 2024, 11:23:32 pm »
Here is a low parts count design.

Note you have to size the resistors according to the input line.
Also note that R8 and R9 may be needed to decrease the fall time because the 4N35 opto's are pretty slow.
There maybe a little phase shift (test that) so it also depends exactly how accurate you need to detect the zero crossing point.

I used the schematic from post #35 as a starting point for the drawing itself.
 

Online Analog KidTopic starter

  • Frequent Contributor
  • **
  • Posts: 862
  • Country: us
Re: Hey, actually figured something out on my own! (zero-crossing detector)
« Reply #46 on: December 27, 2024, 12:05:58 am »
This was my mistake not his (Analog Kid), as I didn't read whom the OP author was when first replying as I thought I had put the user on the ignore list so I didnt interact any more and get pissed at him.

Please, by all means do put me on your ignore list.
You're just a snob, and an unhelpful asshole to boot.
 

Online Analog KidTopic starter

  • Frequent Contributor
  • **
  • Posts: 862
  • Country: us
Re: Hey, actually figured something out on my own! (zero-crossing detector)
« Reply #47 on: December 27, 2024, 12:07:45 am »
Here is a low parts count design.

Note you have to size the resistors according to the input line.
Also note that R8 and R9 may be needed to decrease the fall time because the 4N35 opto's are pretty slow.
There maybe a little phase shift (test that) so it also depends exactly how accurate you need to detect the zero crossing point.

I used the schematic from post #35 as a starting point for the drawing itself.

Thanks.
My zero-crossing detector wouldn't need any line isolation like that.
If you wouldn't mind, could you tell us what the output waveforms look like? And how would we deal with the two separate outputs?
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 20250
  • Country: gb
  • 0999
Re: Hey, actually figured something out on my own! (zero-crossing detector)
« Reply #48 on: December 27, 2024, 11:05:25 am »
Here is a low parts count design.

Note you have to size the resistors according to the input line.
Also note that R8 and R9 may be needed to decrease the fall time because the 4N35 opto's are pretty slow.
There maybe a little phase shift (test that) so it also depends exactly how accurate you need to detect the zero crossing point.

I used the schematic from post #35 as a starting point for the drawing itself.
I would just use an opto-coupler with an AC input, rather than two opto-couplers.
https://www.vishay.com/docs/83608/83608.pdf

Here is a low parts count design.

Note you have to size the resistors according to the input line.
Also note that R8 and R9 may be needed to decrease the fall time because the 4N35 opto's are pretty slow.
There maybe a little phase shift (test that) so it also depends exactly how accurate you need to detect the zero crossing point.

I used the schematic from post #35 as a starting point for the drawing itself.

Thanks.
My zero-crossing detector wouldn't need any line isolation like that.
If you wouldn't mind, could you tell us what the output waveforms look like? And how would we deal with the two separate outputs?

What are you talking about?  There is only one output. Take another look at the circuit.
 

Offline Xena E

  • Frequent Contributor
  • **
  • Posts: 609
  • Country: gb
Re: Hey, actually figured something out on my own! (zero-crossing detector)
« Reply #49 on: December 27, 2024, 04:26:46 pm »
This was my mistake not his (Analog Kid), as I didn't read whom the OP author was when first replying as I thought I had put the user on the ignore list so I didnt interact any more and get pissed at him.

Please, by all means do put me on your ignore list.
You're just a snob, and an unhelpful asshole to boot.

Thank you! I did, but for some reason the forum started to display them again.

It's sorted now though.

I dont know why unhelpful? I suggested upthread that you just feed a bridge rectifier waveform into the AoE circuit and it's job done... but not realising it was you that was TS.

As you don't appreciate people being helpful, (don't understand, or have another agenda), I've saved you from reviewing my posts and have had them deleted in this thread.

Please accept my profound appologies for interupting your trolling.

Regards.
X (Dr Asshole)


 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf