Your solution looks pretty good to me; I might consider adding a couple of capacitors to clean the waveform up a bit if you're just looking to detect the pulse. Something like a .1uF between R2 and D2, and maybe a .01uF or .001uF from A0 to ground.
Thanks, Josh On Fri, Jun 26, 2020 at 11:19 PM The MacDougals via TriEmbed < [email protected]> wrote: > My electric fence monitoring project is making progress. > > > > Attached is a scope shot of the signal I am trying to monitor. > > There are two issues I want to address before putting this signal on the > A0 pin of my ESP8266 development board (D1 mini). > > 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. > > 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 > > for voltage drop across the diode. > > > > I have drawn up a schematic of what I think is the solution. > > > > Thanks for any comments. > > > > ---> Paul > > > > > _______________________________________________ > Triangle, NC Embedded Computing mailing list > > To post message: [email protected] > List info: http://mail.triembed.org/mailman/listinfo/triembed_triembed.org > TriEmbed web site: http://TriEmbed.org > To unsubscribe, click link and send a blank message: mailto: > [email protected]?subject=unsubscribe > >
_______________________________________________ Triangle, NC Embedded Computing mailing list To post message: [email protected] List info: http://mail.triembed.org/mailman/listinfo/triembed_triembed.org TriEmbed web site: http://TriEmbed.org To unsubscribe, click link and send a blank message: mailto:[email protected]?subject=unsubscribe
