<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I like the ideas presented for the Electric Fence monitoring.   I've seen the issue of lightning strikes addressed in other products.   Here's what I suggest:  <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>1) 10 mm separation without solder mask on your PCB between your lightning signal and arduino ground.   Solder mask puts a smooth surface on the PCB.  Without solder mask the exposed PCB insulator (ie the FR4 dielectric) surface appears rough and distance across it is greater.  Increased separation improves the chance that you can attenuate the lightning signal before it causes damage.  <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2) Carbon composition resistor with 2 Watt size manufactured by Allen Bradley.  The 2 watt package size gives 10 mm separation.  Allen Bradley gives a carbon composition resistor with no voids.  No voids give no sparks inside the resistor.  No sparks inside give no damage to the resistor.  No damage gives resistance value that remains constant.    <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>3) An off-the-shelf lightning strike arrestor with a ceramic insulator separating terminals by maybe an inch or two.   Be sure and install these with exposure to rain.  Water on the surface of the insulator reduces the voltage potential required to jump the gap.  My neighbor attached something like these to his electric fence and the result was that his electric fence charger survived lightning strikes.   https://www.tractorsupply.com/tsc/search/lightning%20strike%20arrestor<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>4) Neon lamps dissipate energy.  For example, https://www.digikey.com/product-detail/en/cml-innovative-technologies-ltd/6838/2216-6838-ND/12089136.  <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Except for the off-the-shelf lightning arrestor,  my suggestions are based on my best recollection of conversations I had circa 1991 with an office-mate that designed a 10Base5 Ethernet transceiver.  A system including these transceivers might have 100 such transceivers attaching to a thick coaxial cable running 500 meters outdoors.  The transceiver was designed to possibly survive and certainly fail safe - nobody wanted to electrocute anyone that happened to be typing on their keyboard when lightning struck.  <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>-John Edward Moore<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> TriEmbed [mailto:triembed-bounces@triembed.org] <b>On Behalf Of </b>Josh Wyatt via TriEmbed<br><b>Sent:</b> Saturday, June 27, 2020 9:27 PM<br><b>To:</b> paulmacd@acm.org<br><b>Cc:</b> TriEmbed<br><b>Subject:</b> Re: [TriEmbed] Electric Fence monitoring<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>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.<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>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! <o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>There are also <span style='background:yellow;mso-highlight:yellow'>various spark gaps</span> that can shunt lightning strikes.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Your mileage may vary...<o:p></o:p></p></div><div><p class=MsoNormal>-j<o:p></o:p></p></div></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>On Sat, Jun 27, 2020 at 7:23 AM Josh Wyatt <<a href="mailto:dragojdw@gmail.com">dragojdw@gmail.com</a>> wrote:<o:p></o:p></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><p class=MsoNormal>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.<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Thanks,<br>Josh<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>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:<o:p></o:p></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>My electric fence monitoring project is making progress.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Attached is a scope shot of the signal I am trying to monitor.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>There are two issues I want to address before putting this signal on the A0 pin of my ESP8266 development board (D1 mini).<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>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.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>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<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>for voltage drop across the diode.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I have drawn up a schematic of what I think is the solution.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Thanks for any comments.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>---> Paul<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div></div><p class=MsoNormal style='margin-bottom:12.0pt'>_______________________________________________<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" target="_blank">http://mail.triembed.org/mailman/listinfo/triembed_triembed.org</a><br>TriEmbed web site: <a href="http://TriEmbed.org" 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<o:p></o:p></p></blockquote></div></blockquote></div></div></body></html>