<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=us-ascii"><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.apple-tab-span
        {mso-style-name:apple-tab-span;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.hoenzb
        {mso-style-name:hoenzb;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle22
        {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'>How big is your code?  If it is 8K or larger, you will have to go through the pain of reducing it.  If it is much larger, you may not ever succeed.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>If you decide to try the Tiny, I can help with examples of using pin change interrupt.<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'>---> Paul<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><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"'> Charles McClelland [mailto:chip@mcclellands.org] <br><b>Sent:</b> Friday, March 21, 2014 5:41 PM<br><b>To:</b> The MacDougals<br><b>Cc:</b> Glen Smith; TriEmbed Discussion<br><b>Subject:</b> Re: [TriEmbed] Giving this Surface Mount Thing a Try - Transistor Help Needed<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Paul, <o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>I was planning on using the ATMEGA328 as that is what is on the Arduino Pro Mini board.  Now that you mention it, I guess I could use the ATTiny84.  I did try to use the pin change interrupt on the ATTiny84 but was not able to get it to awake form sleep except with a LOW signal.  I wonder if that may be a limitation of the Sleep library I am using.  <o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Back to the chip choice.  Please let me know if I am missing anything on this list of pros and cons:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>ATTiny84<o:p></o:p></p></div><div><p class=MsoNormal><span class=apple-tab-span>            </span>- Pros: Cost, size, number of external components required<o:p></o:p></p></div><div><p class=MsoNormal><span class=apple-tab-span>            </span>- Cons: This board uses both SPI and I2C so would need to learn how to “bit bang”<o:p></o:p></p></div><div><p class=MsoNormal><span class=apple-tab-span>            </span>- Don’t know - power / battery life?<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>ATMEGA328<o:p></o:p></p></div><div><p class=MsoNormal><span class=apple-tab-span>            </span>- Pros: More pins for inputs and indicators (thinking about adding some more controls)<o:p></o:p></p></div><div><p class=MsoNormal><span class=apple-tab-span>            </span>- Cons: Cost, size, needs an external crystal<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>The easy choice would be to stay with the ATMEGA328 as I have the sketch working and have developed and field tested the design over the past 6 months.  But, am I missing something that could sway me toward the Tiny?<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Thanks,<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Chip<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>On Mar 21, 2014, at 4:42 PM, The MacDougals <<a href="mailto:paulmacd@acm.org">paulmacd@acm.org</a>> wrote:<o:p></o:p></p></div><p class=MsoNormal><br><br><o:p></o:p></p><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Since you are collapsing all of the breakout boards, what are your plans for the processor?</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>As I recall, the reason for having to invert the signal was due to a limitation on the external</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>interrupt pin of the processor.  Newer Atmel chips have pin change interrupts on all pins</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>and can handle either edge.  So, if you go with an ATTiny 84 or similar, you don’t need the transistor.</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>---> Paul</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p></div><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><div><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span class=apple-converted-space><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> </span></span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>TriEmbed [<a href="mailto:triembed-bounces@triembed.org">mailto:triembed-bounces@triembed.org</a>]<span class=apple-converted-space> </span><b>On Behalf Of<span class=apple-converted-space> </span></b>Charles McClelland<br><b>Sent:</b><span class=apple-converted-space> </span>Friday, March 21, 2014 3:47 PM<br><b>To:</b><span class=apple-converted-space> </span>Glen Smith<br><b>Cc:</b><span class=apple-converted-space> </span>TriEmbed Discussion<br><b>Subject:</b><span class=apple-converted-space> </span>Re: [TriEmbed] Giving this Surface Mount Thing a Try - Transistor Help Needed</span><o:p></o:p></p></div></div></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal>Glen, <o:p></o:p></p></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal>I am using EAGLE - it allows you to set the names so I guess I have to take responsibility  - Resister Base (RB)  - I am learning so if there is a better naming convention I should be using, I would be open to it.<o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal>Thanks,<o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal>Chip<o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div><div><div><div><p class=MsoNormal>On Mar 21, 2014, at 1:29 PM, Glen Smith <<a href="mailto:mrglenasmith@gmail.com"><span style='color:purple'>mrglenasmith@gmail.com</span></a>> wrote:<o:p></o:p></p></div></div><div><p class=MsoNormal><br><br><br><o:p></o:p></p></div><div><div><div><div><div><p class=MsoNormal style='margin-bottom:12.0pt'>Charles,<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>As Bill said, there are single gate IC's to do what you want, a quick glance indicates the cheapest (in one'sie two'sie quantities) is $0.33. But there are 2222 transistors available in SOT-23 packages: Jameco has them here:<span class=apple-converted-space> </span><br><a href="http://www.jameco.com/webapp/wcs/stores/servlet/StoreCatalogDrillDownView?langId=-1&storeId=10001&catalogId=10001&freeText=2222%20sot-23&search_type=jamecoall"><span style='color:purple'>http://www.jameco.com/webapp/wcs/stores/servlet/StoreCatalogDrillDownView?langId=-1&storeId=10001&catalogId=10001&freeText=2222%20sot-23&search_type=jamecoall</span></a><span class=apple-converted-space> </span><br>qty 10 available at $0.09 each. Or, to keep the comparison, DigiKey has them here:<span class=apple-converted-space> </span><br><a href="http://www.digikey.com/product-search/en?pv7=2&FV=142c0042&k=MMBT2222A&mnonly=0&newproducts=0&ColumnSort=0&page=1&quantity=0&ptm=0&fid=0&pageSize=25"><span style='color:purple'>http://www.digikey.com/product-search/en?pv7=2&FV=142c0042&k=MMBT2222A&mnonly=0&newproducts=0&ColumnSort=0&page=1&quantity=0&ptm=0&fid=0&pageSize=25</span></a><span class=apple-converted-space> </span><br>(for one'sie two'sie quantities) at $0.18 each.<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>It has been far too long since I did transistor circuit design to tell you whether what you have will do the inversion you want, but you can hook it up on a breadboard with your discrete's and see how it works.<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>Since I'm sending this note anyway, is there a reason why you chose RA, RB RC designations? It took me a few minutes looking at your circuit to figure out that it was a designator rather than a ResistorCapacitor (RC) network. Maybe it is just what I'm used to working with. Which layout tool are you using? KiCAD or Eagle? If one of them forces me to use RA, RB, RC - I think I will use the other.<o:p></o:p></p></div><div><p class=MsoNormal>Glen<o:p></o:p></p></div></div><div><p class=MsoNormal style='margin-bottom:12.0pt'> <o:p></o:p></p><div><div><p class=MsoNormal>On Fri, Mar 21, 2014 at 12:46 PM, Bill Farrow <<a href="mailto:bill@arrowsreach.com" target="_blank"><span style='color:purple'>bill@arrowsreach.com</span></a>> wrote:<o:p></o:p></p></div><div><div><div><p class=MsoNormal>Charles,<o:p></o:p></p></div></div><div><div><p class=MsoNormal>There are single logic gate ICs in surface mount which should do what you want. Here's my quick digikey search.<o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><p class=MsoNormal><a href="http://www.digikey.com/product-search/en?pv247=24&pv64=1&pv667=1&pv69=3&FV=fff40027%2Cfff8019d&k=single+gate&mnonly=0&newproducts=0&ColumnSort=0&page=1&quantity=0&ptm=0&fid=0&pageSize=25" target="_blank"><span style='color:purple'>http://www.digikey.com/product-search/en?pv247=24&pv64=1&pv667=1&pv69=3&FV=fff40027%2Cfff8019d&k=single+gate&mnonly=0&newproducts=0&ColumnSort=0&page=1&quantity=0&ptm=0&fid=0&pageSize=25</span></a><o:p></o:p></p></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='color:#888888'> </span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='color:#888888'>Bill</span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='color:#888888'> </span><o:p></o:p></p></div></div></div><p class=MsoNormal style='margin-bottom:12.0pt'><br>_______________________________________________<br>Triangle, NC Embedded Computing mailing list<br><a href="mailto:TriEmbed@triembed.org"><span style='color:purple'>TriEmbed@triembed.org</span></a><br><a href="http://mail.triembed.org/mailman/listinfo/triembed_triembed.org" target="_blank"><span style='color:purple'>http://mail.triembed.org/mailman/listinfo/triembed_triembed.org</span></a><br>TriEmbed web site:<span class=apple-converted-space> </span><a href="http://triembed.org/" target="_blank"><span style='color:purple'>http://TriEmbed.org</span></a><o:p></o:p></p></div></div></div></div></div></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>