<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 26 May 2018 at 18:07, Tim Ressel <span dir="ltr"><<a href="mailto:timr@circuitabbey.com" target="_blank">timr@circuitabbey.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We tried the zero crossing method but it does not work if there is no signal present.<br></blockquote><div><br></div><div>Right, there must be some clever use of a safety margin if it's going to work properly. Wonder what the best practice is?</div><div><br></div><div>Detecting a band around zero instead of zero?</div><div>Then it would always click a tiny bit if a signal is present, and the band could also be missed if there is some DC offset.</div><div><br></div><div>Detecting the maximum & minimum envelopes of the signal, and only apply the zero-crossing method if they are far enough apart?</div><div>Might work well, but adds complexity. (Like if that ever stopped me - hah!) ;-)</div><div><br></div><div>/mr</div><div><br></div></div></div></div>