<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 14 (filtered medium)"><style><!--
/* Font Definitions */
@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;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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'>Sorry about that. The attachment is on here. Thanks!<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><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"'> Dwight Morgan [mailto:dwight.w.morgan@gmail.com] <br><b>Sent:</b> Tuesday, January 20, 2015 8:45 PM<br><b>To:</b> 'Martin Brooke'<br><b>Cc:</b> 'TriEmbed Discussion'<br><b>Subject:</b> RE: [TriEmbed] TriEmbed Digest, Vol 20, Issue 11<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Just a follow-up on my efforts to measure current using the ACS712 Hall Effect sensor. I decided to buy a 5 amp model to experiment with, thinking the 20 or 30 would be a little dangerous just for testing. I received it from Amazon via UPS and the package appeared to have been run over with what looked like tire marks and the pins were bent down and over to the side but not touching. So, I made a rig to do some testing at first with a lamp with no success and then DC with no success. Today, while I was looking for more wire I found one of my wife’s old hair dryers with 1200 watt rating. If I turn it on low in “air” mode it produces over 4 amps – perfect. As soon as I connected and turned it on the amps on the Serial Monitor jumped to a little over 4 amps. I couldn’t believe it so I got my clamp-on and surprise it also read a little  less than 5 amps. It’s an old analog so it may be a little off on the low end. Side note: I accidentally ran the dryer way above 5 amps and the reading went erratic all over the place, but came right back. That ACS712 is a tough and forgiving little piece of hardware to be smashed and overcurrented and be okay. <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'>Anyway, I added a little code to the code I borrowed from one of the Arduino forums and did a screen shot of the code and the output on the SM. I’m attaching the screen shot so if anyone wants to please comment on any of it I would be most appreciative. <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'>Again, my application goal ultimately is to track when my hot water heater is on and off. <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'>Thanks from this newbie!<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'>Dwight<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'>PS: That was fun to get that thing working.<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><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"'> Martin Brooke [<a href="mailto:martin.brooke@duke.edu">mailto:martin.brooke@duke.edu</a>] <br><b>Sent:</b> Wednesday, January 14, 2015 9:49 PM<br><b>To:</b> Dwight Morgan<br><b>Cc:</b> TriEmbed Discussion<br><b>Subject:</b> Re: [TriEmbed] TriEmbed Digest, Vol 20, Issue 11<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>I used an audio jack breakout on an arduino proto shield with a simple RC circuit to level shift the AC.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>here is a <a href="https://drive.google.com/file/d/0B0lP-6BNGel_a09EbFBkeDJWamc/view?usp=sharing" target="_blank">photo</a>.  The proto shield is this one from  <a href="http://smile.amazon.com/SainSmart-Prototyping-Prototype-Breadboard-Arduino/dp/B0079WI2MK/ref=sr_1_4?ie=UTF8&qid=1421289842&sr=8-4&keywords=Prototype+Shield">sain smart </a> although there are many alternatives for this.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>The break out was from <a href="https://www.sparkfun.com/products/10588" target="_blank">sparkfun</a>  for which you need some <a href="https://www.sparkfun.com/products/116" target="_blank">headers </a>and the <a href="https://www.sparkfun.com/products/8032" target="_blank">jack</a>  maybe you can find one assembled <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>There is also two resistors and a capacitor needed to get the AC signal into the ADCs input range.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>I really just copied the circuit from this <a href="http://www.instructables.com/id/Yun-based-Electricity-Monitor-with-Cloud-Support-T/?ALLSTEPS">intructable</a>. <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>The instructable goes way further, using an Arduino Yun to make it readable via wifi, very cool, but maybe beyond what you want or need.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>Cheers,<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>​​<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p></div></div></div></body></html>