<p>I think the issues are not related to the transterpreter stuff as I get same sorts of issues with the standard software.  Funny thing is I can&#39;t find any red to similar issues on web.<br>
Thanks.  Will look at your pir project.  I find it much easier to move on by looking at real world examples.  Do you have any details of the circuitry you used as well?</p>
<p>James Brown<br>
+44 (0)7736 667382</p>
<div class="gmail_quote">On Jan 15, 2013 12:31 AM, &quot;Matt Jadud&quot; &lt;<a href="mailto:matt@jadud.com">matt@jadud.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 14, 2013 at 6:28 PM, James Brown <span dir="ltr">&lt;<a href="mailto:james.brown4994@gmail.com" target="_blank">james.brown4994@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div lang="EN-GB" link="blue" vlink="purple"><p><br>
</p><p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I get frustrated with the upload process.  Various errors I can’t fathom out about not finding files, not in sync.  In the end I usually end up having to restart the pc and that solves it.  Would be nice to understand what is going on there.</span></p>

</div></blockquote><div><br></div><div>We do need to update avrdude, which might help. In the meantime, however, you might do the following:</div><div><br></div><div>1. Press &quot;Upload&quot; (or whatever icon we use)</div>

<div>2. Hit reset on your board just before the upload.</div><div>3. Profit!</div><div><br></div><div>When dealing with serial, I find that sometimes the Arduino misses things, because it comes to life and starts doing things with the serial port. Resetting the PC... well, I use a Mac, so I face different issues at different times.</div>

<div> </div><div>Underneath, we&#39;re using the same tools as the Arduino IDE, so there shouldn&#39;t be anything too special/different there. At some point, let us know what those errors are specifically, in case there&#39;s anything we can do.</div>

<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div lang="EN-GB" link="blue" vlink="purple">

<p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p><p><span style="color:rgb(31,73,125);font-family:Calibri,sans-serif;font-size:11pt">Also if anyone can tell me why my pc insists on allocating COM7 and COM8 for my 2 arduino boards.  As far as I can see I am not using any of the lower number ports.  Not that important I suppose but would be great to understand these things better as helps troubleshooting.</span><br>

</p></div></blockquote><div><br></div><div>Windows does not like you. (Read: I have no idea.)</div><div> <span style="color:rgb(31,73,125);font-family:Calibri,sans-serif;font-size:11pt"> </span></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div lang="EN-GB" link="blue" vlink="purple"><p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Finally, yes you are right I am inquisitive I have now found those libraries.  Thanks for that.  I promise to keep my nose out!  Seriously though, it is nice to see how things work.  Again helps troubleshooting possibly.</span></p>

</div></blockquote><div><br></div><div>:)</div><div><br></div><div>I was kidding about not reading in. You&#39;re welcome to ask any and all questions about what you find. It is certainly the case that we might be able to usefully expose more in Plumbing... that I don&#39;t doubt. That said, because of how occam #includes work, our &quot;libraries&quot; are not really &quot;blessed&quot; entities. For example, you could start working on &quot;libjames.module&quot;, put it in the same directory as your code, and do</div>

<div><br></div><div>#include &quot;libjames.module&quot;</div><div><br></div><div>and it will be pulled in. Further, the include is the same as copy-pasting the code into the file it is being sourced from. So, really, all of the code in the &quot;library&quot; folder is only special because someone other than you wrote it. (If that makes it special.)</div>

<div><br></div><div><br></div><div>W.R.T. your code:</div><div><br></div><div>If you are actually using a PIR module, you might also look at</div><div><br></div><div><a href="https://github.com/jadudm/Paper-ES-Sensor" target="_blank">https://github.com/jadudm/Paper-ES-Sensor</a><br>

</div><div><br></div><div>where I use the Modern Device PIR sensor. In that context, I think I was using it in an interrupt-driven mode. </div><div><br></div><div><a href="https://github.com/jadudm/Paper-ES-Sensor/blob/master/pir.module" target="_blank">https://github.com/jadudm/Paper-ES-Sensor/blob/master/pir.module</a><br>

</div><div><br></div><div>and</div><div><br></div><div><a href="https://github.com/jadudm/Paper-ES-Sensor/blob/master/just-pir.occ" target="_blank">https://github.com/jadudm/Paper-ES-Sensor/blob/master/just-pir.occ</a><br>

</div><div><br></div><div>might be of interest.</div><div><br></div><div>Or, if I&#39;m completely wrong, nevermind. :)</div><div><br></div><div>Cheers,</div><div>M</div></div></div>
</div>
</blockquote></div>