<div dir="ltr"><div>You could use a 74LVC245 tristate driver (I'm stuck with a bunch of them) or 74LCX07 hex buffer or 74LCX541 octal buffer that are 5V input tolerant and drive 3.3v outputs, but you would loose the analogous of the signal -- it would be conditioned to a digital signal.</div><div><br></div><div>For a recommended solution, look at Microchip's tipsheet: <a href="http://ww1.microchip.com/downloads/en/DeviceDoc/chapter%208.pdf">http://ww1.microchip.com/downloads/en/DeviceDoc/chapter%208.pdf</a>, specifically solution #12 for a resistor divider, or for your circumstances an active transistor clamp like solution #11.</div><div><br></div><div><div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 26, 2020 at 11:19 PM The MacDougals via TriEmbed <<a href="mailto:triembed@triembed.org">triembed@triembed.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US"><div class="gmail-m_-89066478863200872WordSection1"><p class="MsoNormal">My electric fence monitoring project is making progress.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Attached is a scope shot of the signal I am trying to monitor.<u></u><u></u></p><p class="MsoNormal">There are two issues I want to address before putting this signal on the A0 pin of my ESP8266 development board (D1 mini).<u></u><u></u></p><p class="MsoNormal">The spike to ~5 volts is concerning.  I think I can use a 3.3v Zener diode to suppress this.  Installed between my signal and ground with the banded end away from ground.<u></u><u></u></p><p class="MsoNormal">The negative lobe of the signal is also concerning.  Can I just use a diode in series here?  Banded end toward the A0 pin.  I can adjust the voltage up a bit to compensate<u></u><u></u></p><p class="MsoNormal">for voltage drop across the diode.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I have drawn up a schematic of what I think is the solution.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks for any comments.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">---> Paul<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div>_______________________________________________<br>
Triangle, NC Embedded Computing mailing list<br>
<br>
To post message: <a href="mailto:TriEmbed@triembed.org" target="_blank">TriEmbed@triembed.org</a><br>
List info: <a href="http://mail.triembed.org/mailman/listinfo/triembed_triembed.org" rel="noreferrer" target="_blank">http://mail.triembed.org/mailman/listinfo/triembed_triembed.org</a><br>
TriEmbed web site: <a href="http://TriEmbed.org" rel="noreferrer" target="_blank">http://TriEmbed.org</a><br>
To unsubscribe, click link and send a blank message: mailto:<a href="mailto:unsubscribe-TriEmbed@bitser.net" target="_blank">unsubscribe-TriEmbed@bitser.net</a>?subject=unsubscribe<br>
<br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Scott G. Hall<br>Raleigh, NC, USA<br><a href="mailto:scottghall1@gmail.com" target="_blank">scottghall1@gmail.com</a></div><i>Although kindness is rarely a job, no matter what you do it's always an option.</i><br></div></div></div></div></div></div>