<div dir="ltr"><div><div><div><div><div>Sorry meant to attach the code (doh!).<br><br></div>My compadre has all the photo&#39;s on his phone so will give him a nudge now and get back to you when I hear from him...<br></div>
<br>(hey George:)<br><br></div>Thanks for the testing tip - of course, seems so obvious now that you&#39;ve said it.<br><br></div><div>And I guess we can&#39;t definitely confirm that the pin switches although the last big problem we had was that I&#39;d set the switch to pin 17 rather than pin 11 (gpio 17).  What would happen then is that we would get one reading from the 1st sensor and then it would stall/quit-out.<br>
</div><div><br></div>More soon hopefully,<br><br></div>Julian<br><div class="gmail_extra"><br><br><div class="gmail_quote">On 17 May 2013 15:14, Martin Peach <span dir="ltr">&lt;<a href="mailto:martin.peach@sympatico.ca" target="_blank">martin.peach@sympatico.ca</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 2013-05-17 09:39, Julian Brooks wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hey Martin,<br>
<br>
Can I please peck your head hopefully one last time?<br>
<br>
</blockquote>
<br></div>
Sure.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
We&#39;re so close, got the hardware for the installation up and running,<br>
box made etc etc.<br>
<br>
Could you have a once-over of our code:<br>
Still only seeing one sensor though all of our multimeter testing says<br>
sensor 2 is fine and ready to go.  I think it has to be a code problem<br>
in the C file but I just_can&#39;t\-see\-it!!<br>
<br>
</blockquote>
<br></div>
You need to show me your code... The file I sent was to read two sensors. The second was the 1X8 sensor so it reads a different number of bytes. You have to change that, everything else should be the same..<div class="im">
<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Keep wondering if there&#39;s a way of being able to test the 2nd sensor in<br>
a similar vein to sensor 1 with &#39;i2cdetect&#39;, like if we could shift the<br>
IC switcher so it would allow us to run the test on the 2nd one.<br>
</blockquote>
<br></div>
Yes, just connect the A select line of the 4051 (pin 11) directly to 3.3V or ground to select one or the other. But disconnect the GPIO pin when you do that.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Pd is receiving on both sends (44l &amp; 44l2) but all we have is one<br>
sensors readings - same in the prints from the C file.<br>
</blockquote>
<br></div>
Sounds like the multiplexer isn&#39;t working right. Do you have a photo of your setup? Can you confirm that the GPIO pin switches?<span class="HOEnZb"><font color="#888888"><br>
<br>
Martin<br>
<br>
</font></span></blockquote></div><br></div></div>