<div dir="ltr"><div><div><div><div>Thanks Martin, really useful stuff.<br><br></div>I&#39;ve got i2cdetect on the RPi which is how I knew that [gpio] was setting hi &amp; lo.  And good to hear you&#39;ll be wrestling with this on the Pi as well.<br>
<br></div><div>In some ways this is good news as we&#39;ve setup everything from the &#39;instructables&#39; page already and now just need to get the bloody thing going (have to to sort the housings out).<br></div><div><br>
</div>Another possible issue is that from my reading it seems that the RPi doesn&#39;t do &#39;clock-stretching&#39;, though I have found a link where they slow the i2c bus down.<br><a href="http://www.hobbytronics.co.uk/raspberry-pi-i2c-clock-stretching">http://www.hobbytronics.co.uk/raspberry-pi-i2c-clock-stretching</a><br>
<br></div><div>Another one here too:<br><a href="http://www.raspberrypi.org/phpBB3/viewtopic.php?f=44&amp;t=34734&amp;p=294297&amp;hilit=i2c+gpio+direction#p294297">http://www.raspberrypi.org/phpBB3/viewtopic.php?f=44&amp;t=34734&amp;p=294297&amp;hilit=i2c+gpio+direction#p294297</a><br>
<br></div><div>That&#39;s interesting as they talk about setting up more GPIO pins for i2c to run 2 sensors.<br><br></div><div>Not being able to change the sensors address is a real pain though, as one of the things that I keep reading about i2c is it&#39;s ability to run up to 128 sensors on the same line - kinda defeats the object!  Must be a way round it.<br>
</div><div><br>&quot;You can use the 5V from the GPIO header on the pi. From the schematic 
pin 2 is 5V. Ground is on pin 6. Pin 3 is the i2c data and pin 5 is the 
clock. Pullup resistors are already installed on those lines.&quot;<br><br></div>Yes, found a good diagram for the GPIO schematic.  <br><a href="http://elinux.org/RPi_Low-level_peripherals#GPIO_hardware_hacking">http://elinux.org/RPi_Low-level_peripherals#GPIO_hardware_hacking</a><br>
<br>My understanding was that what we can&#39;t do is send data from the sensor at 5v back into the RPi at 3.5v and it&#39;s there that we need to drop the voltage back to 3.5.  Noticeably though the &#39;instructables&#39; link says they just did it anyway and was fine (with a disclaimer attached on to it).<br>
<br></div><div>We got some 4.7k resistors as you recommended - do we only need these before the sensors?  The pdf from digikey has a diagram with a voltage transformer that we&#39;ve been presuming is what we need to do?? Presumably if we put more resistors next to the Pi then we wont have enough voltage to lift the pin high (many ???).  There&#39;s also lots of code (C?) on that pdf, anything you&#39;ve made use of?<br>
<br></div><div>This is the little add-on board<br><a href="http://adafruit.com/products/757">http://adafruit.com/products/757</a><br></div><div>I did read it&#39;s doable with mos-fet but seemed like another layer where we can screw-up so have taken the simple option.<br>
<br></div><div>Still don&#39;t get how we tie in the clock and the messages but I&#39;m sure it&#39;ll become clearer when we actually get to the point where we can start it up.<br><br></div><div>Cheers,<br><br></div><div>
Julian<br></div><div><br></div><br><div><br><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 7 April 2013 14:28, 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">Also check this out: it seems to have everything except how to make a pd external from it.<br>
<a href="http://www.instructables.com/id/Raspberry-Pi-I2C-Python/" target="_blank">http://www.instructables.com/<u></u>id/Raspberry-Pi-I2C-Python/</a><span class="HOEnZb"><font color="#888888"><br>
<br>
Martin<br>
<br>
</font></span></blockquote></div><br></div>