<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> 
and there&#39;s a document there that has something about using multiple sensors on one bus:<br>
<a href="http://www.mouser.com/catalog/specsheets/D6T-01_ThermalIRSensor-Whitepaper.pdf" target="_blank">http://www.mouser.com/catalog/specsheets/D6T-01_ThermalIRSensor-Whitepaper.pdf</a><div><br></div></blockquote><div>
That&#39;s a much better doc.<br></div><div> <br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Seems to me the easiest way to multiplex them would be to put a CD4051 on the clock line and use up to 3 GPIO pins to select which of up to 8 sensors receives the clock. The only tricky bit would be making sure the clock is at the right level when the switching tales place, you might need ~10k pullups to 3.3V on the sensor clock pins.</blockquote>
<div><br></div><div>(did you spot my previous post with this and if so would that work?) <br></div><div><br> Yes that&#39;s what happens already. I was getting errors at first because the crc calculation was being done over both the write and read packets. I found that calculating only the read         packet gives the correct value almost always. If the PEC is wrong, the code simply asks for another packet. At the moment I&#39;m getting almost no errors<br>
<br></div><div>Maybe there&#39;s something I&#39;m missing here then:<br><br></div><div class="im">The average temp that comes out of [unpack 1] is way higher than the rest of the readings.  At the moment [unpack 1] says &#39;212&#39; yet a quick averaging of the other 16 readings is around &#39;180&#39;?<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
</blockquote>
<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Yes, it even works as an icecube detector!</blockquote><div><br></div><div>:D <br></div><div class="im"><br><br><br><br></div></div></div></div>