<div dir="ltr">So, a couple of folks emailed mentioning lightning strikes - and that's a real risk, especially with a super-long antenna going almost directly into your arduino. One presented solution was to implement some kind of optocoupler, with the LED powered by harvested energy from the strike (clever). Another idea is to use beefier diodes instead of a zener, for your clamping circuit.<div><br><div>I've had a few lightning strikes on my property, within 100 feet of the house. Each time, the nearby strike took out the shunt regulator circuit in my garage door opener, which powers the safety optical beam and sensor, at the bottom of the door. It was basically a 100 ohm resistor in series with a .5 watt, 5.1v zener, to provide a cheap low-current 5.1v supply to the remote sensors. Each time lightning struck nearby, the zener shorted. The first time, I replaced it with the same zener... until the next strike. The next time, I used a beefier (5 watt) 5.1v zener... until the next strike. Finally, I replaced that zener with 8 series-connected 1n4007 diodes, forward-biased. All strikes since then, no damage! </div><div><br></div><div>There are also various spark gaps that can shunt lightning strikes.</div><div><br></div><div>Your mileage may vary...</div><div>-j</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jun 27, 2020 at 7:23 AM Josh Wyatt <<a href="mailto:dragojdw@gmail.com">dragojdw@gmail.com</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 dir="ltr">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.<div><br></div><div>Thanks,<br>Josh</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" target="_blank">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><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>
</blockquote></div>