<div dir="ltr"><div><div><div><div><div><div><div><div><div>Hi Martin / all,<br><br>Possibly overly-nerdy question here:<br><br></div>I&#39;m buying the various bits and pieces we require for the multiplexer and I&#39;m noticing quite a difference in pricing options for the pull-up resistors.<br>
</div>There&#39;s this one:<br><a href="http://uk.farnell.com/welwyn/rc55-10k-0-1/resistor-10k-250mw-0-1/dp/9499938">http://uk.farnell.com/welwyn/rc55-10k-0-1/resistor-10k-250mw-0-1/dp/9499938</a><br></div>which is 86p each.<br>
</div>Or there&#39;s something like this:<br><a href="http://uk.farnell.com/multicomp/mcf-0-25w-10k/resistor-10k-250mw-5/dp/9339060">http://uk.farnell.com/multicomp/mcf-0-25w-10k/resistor-10k-250mw-5/dp/9339060</a><br></div>
which is 2p each.<br><br></div>The former&#39;s spec sheet talks about its very low noise ratio and thinking on from reading the sensors spec sheet it&#39;s also pushed there to use low-noise components.<br><br></div>Do you think it actually makes any difference?  I have to buy a minimum 50 of the cheap ones so buying a couple of the dearer ones doesn&#39;t actually make much of a difference.<br>
<br></div>It got me thinking as you mentioned that your getting virtually no PEC errors from the sensors whereas as we are getting them very regularly.  I had been thinking it was the soldering of those pernickety sensors but could it also be the cheap 4k resistors currently on our board?<br>
<br></div>Cheers,<br><br>Julian<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 29 April 2013 16:38, 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">Here&#39;s a patch to display data from two D6T sensors on the same I2C bus. The clock line is switched using a 4051 analog multiplexer. The control line is GPIO_17 of the Pi connected to A of the 4051 (B, C and Inhibit are at 0V). 10k resistors to 3.3V are on each sensor&#39;s clock line at X0 and X1 of the 4051 (I2C clock connects to X). Because the code accesses the GPIO file system it needs to be run as root. I have two different sensors so the code reads two different packet lengths. Just a proof of concept, there could be up to 8 identical sensors on the same bus with this setup.<span class="HOEnZb"><font color="#888888"><br>

<br>
Martin</font></span><div class="im"><br>
<br>
On 2013-04-25 20:04, Julian Brooks wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Just spotted this:<br>
<a href="https://github.com/kadamski/i2c-gpio-param" target="_blank">https://github.com/kadamski/<u></u>i2c-gpio-param</a><br>
Could be useful<br>
<br>
<br>
On 25 April 2013 15:54, Martin Peach &lt;<a href="mailto:martin.peach@sympatico.ca" target="_blank">martin.peach@sympatico.ca</a><br></div><div class="im">
&lt;mailto:<a href="mailto:martin.peach@sympatico.ca" target="_blank">martin.peach@<u></u>sympatico.ca</a>&gt;&gt; wrote:<br>
<br>
    On 2013-04-25 10:37, Julian Brooks wrote:<br>
<br>
        &#39;Nother 2 dumb questions:<br>
        What&#39;s the difference between the ones that have<br>
        spider/centipede type<br>
        legs and the straight ones (which would be best to get).<br>
<br>
<br>
    The PDIP package is what you want, not the SOIC. The only difference<br>
    is size. DIP packages are human-friendly, surface mount is for robots.<br>
<br>
<br>
        And also are you attaching the MC14051 to any type of<br>
        board/adaptor or<br>
        just soldering straight on to the pins?<br>
<br>
<br>
    I have it in a breadboard right now, to make it more permanent I<br>
    would solder a socket to a prototyping board then (after verifying<br>
    the connections) plug the chip into the socket. Soldering to the<br>
    pins makes it difficult to replace the IC, and risks damaging it<br>
    with the heat if you&#39;re not good at soldering quickly and to the<br>
    point. A CD4051 would also work, it&#39;s basically the same circuit.<br>
<br>
    Martin<br>
<br>
<br>
<br>
</div></blockquote>
<br>
</blockquote></div><br></div>