<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>LeafLabs Garden &#187; Topic: Wire (I2C) Using Leaf Maple Mini</title>
		<link>http://forums.leaflabs.com/topic.php?id=9121</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:16:26 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=9121" rel="self" type="application/rss+xml" />

		<item>
			<title>crowja on "Wire (I2C) Using Leaf Maple Mini"</title>
			<link>http://forums.leaflabs.com/topic.php?id=9121#post-20195</link>
			<pubDate>Fri, 05 Oct 2012 05:53:58 +0000</pubDate>
			<dc:creator>crowja</dc:creator>
			<guid isPermaLink="false">20195@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;@gbulmer:&#60;br /&#62;
ok, thank yout very much for the help. iam very appreciate with it :D&#60;br /&#62;
i will try built level shifter, but i have one more question, the camera module produce picture digital data though 11 pin:&#60;/p&#62;
&#60;p&#62;Y0 - Y7: its pixel data&#60;br /&#62;
HREF: its horizontal reference&#60;br /&#62;
VSYN: its indicate new frame&#60;br /&#62;
PCLK: its pixel syncronization.&#60;/p&#62;
&#60;p&#62;should i convert the level logic of all this pin??thanks :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "Wire (I2C) Using Leaf Maple Mini"</title>
			<link>http://forums.leaflabs.com/topic.php?id=9121#post-20184</link>
			<pubDate>Thu, 04 Oct 2012 06:41:10 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">20184@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;crowja - yes it is possible to connect i2c 5V to a 3.3V microcontroller.&#60;/p&#62;
&#60;p&#62;There are dedicated chips called level shifters, but there is a simple, low-cost scheme using two MOSFETs.&#60;br /&#62;
This application note (from Philips, now NXP, who inveted I2C) explains how in &#34;2.3 Devices with different logic levels connected via the bi-directional level shifter&#34;:&#60;br /&#62;
&#60;a href=&#34;http://ics.nxp.com/support/documents/interface/pdf/an97055.pdf&#34; rel=&#34;nofollow&#34;&#62;http://ics.nxp.com/support/documents/interface/pdf/an97055.pdf&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>crowja on "Wire (I2C) Using Leaf Maple Mini"</title>
			<link>http://forums.leaflabs.com/topic.php?id=9121#post-20183</link>
			<pubDate>Thu, 04 Oct 2012 06:19:32 +0000</pubDate>
			<dc:creator>crowja</dc:creator>
			<guid isPermaLink="false">20183@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;i think i dont have, is it possible connect i2c 5v device on maple mini?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>crowja on "Wire (I2C) Using Leaf Maple Mini"</title>
			<link>http://forums.leaflabs.com/topic.php?id=9121#post-20182</link>
			<pubDate>Thu, 04 Oct 2012 06:17:37 +0000</pubDate>
			<dc:creator>crowja</dc:creator>
			<guid isPermaLink="false">20182@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;i was new in hardware programming, i have tried each i2c pin on maple mini (0,1) and (15, 16) but the result was same :(&#60;br /&#62;
is any suggestion for me make it work on maple mini?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>manitou on "Wire (I2C) Using Leaf Maple Mini"</title>
			<link>http://forums.leaflabs.com/topic.php?id=9121#post-20181</link>
			<pubDate>Thu, 04 Oct 2012 06:01:41 +0000</pubDate>
			<dc:creator>manitou</dc:creator>
			<guid isPermaLink="false">20181@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I have a Maple RET6.  Pins 0 and 1 are NOT 5v tolerant on RET6.&#60;br /&#62;
do you have 3.3v I2C device you can try?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>crowja on "Wire (I2C) Using Leaf Maple Mini"</title>
			<link>http://forums.leaflabs.com/topic.php?id=9121#post-20180</link>
			<pubDate>Thu, 04 Oct 2012 05:44:34 +0000</pubDate>
			<dc:creator>crowja</dc:creator>
			<guid isPermaLink="false">20180@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;@manitou:&#60;br /&#62;
i have tried it using 4k7 pullup resitor, can i know what maple is u'are using? is it make sense if my leaf maple mini i2c device is broke? thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>manitou on "Wire (I2C) Using Leaf Maple Mini"</title>
			<link>http://forums.leaflabs.com/topic.php?id=9121#post-20179</link>
			<pubDate>Thu, 04 Oct 2012 05:31:47 +0000</pubDate>
			<dc:creator>manitou</dc:creator>
			<guid isPermaLink="false">20179@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;arduino has internal pullups that Wire library uses, so usually you need pullups with maple&#60;/p&#62;
&#60;p&#62;if you are using 5v to device, only some of maple pins are 5v tolerant.  check the spec sheet&#60;br /&#62;
for the version of maple you are using
&#60;/p&#62;</description>
		</item>
		<item>
			<title>crowja on "Wire (I2C) Using Leaf Maple Mini"</title>
			<link>http://forums.leaflabs.com/topic.php?id=9121#post-20178</link>
			<pubDate>Thu, 04 Oct 2012 00:07:40 +0000</pubDate>
			<dc:creator>crowja</dc:creator>
			<guid isPermaLink="false">20178@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;@gbulmer:&#60;br /&#62;
I am also tried test it with TPA81 thermophile array, but it doesnt work to..&#60;/p&#62;
&#60;p&#62;@manitou:&#60;br /&#62;
before iam trying test it with leaf maple, i have test it with arduino nano. and its worked without any pullups on SDA and SCL. i have tried using 4k7 ohm pullups, but the result is leaf maple didnt found any i2c connected to it..&#60;/p&#62;
&#60;p&#62;Yes, C3088 require 5v. iam also tried using external 5V to suply the camera, but nothing i can get. but when i tried test it with arduino and c3088 suplied 3v from leaf maple it also worked.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>manitou on "Wire (I2C) Using Leaf Maple Mini"</title>
			<link>http://forums.leaflabs.com/topic.php?id=9121#post-20167</link>
			<pubDate>Wed, 03 Oct 2012 14:39:22 +0000</pubDate>
			<dc:creator>manitou</dc:creator>
			<guid isPermaLink="false">20167@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;do you need pullups on SDA/SCL?  &#60;/p&#62;
&#60;p&#62;your code works for me, found an attached I2C EEPROM&#60;/p&#62;
&#60;p&#62;Scanning...&#60;br /&#62;
I2C device found at address 0x50 !&#60;br /&#62;
done&#60;/p&#62;
&#60;p&#62;Does your C3088 require 5v?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "Wire (I2C) Using Leaf Maple Mini"</title>
			<link>http://forums.leaflabs.com/topic.php?id=9121#post-20166</link>
			<pubDate>Wed, 03 Oct 2012 13:54:31 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">20166@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;crowja - I am not sure what you are asking.&#60;/p&#62;
&#60;p&#62;Have you tried connecting a simple I2C device to the maple mini before trying to connect to the camera?&#60;br /&#62;
For example, I use a low cost I2C 'thermometer' to check I2C is working, but anything very simple (so it can't go far wrong) and low-cost with the ability to give a different value to help testing is good enough.&#60;/p&#62;
&#60;p&#62;(Full disclosure: I am not a member of Leaflabs staff.)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>crowja on "Wire (I2C) Using Leaf Maple Mini"</title>
			<link>http://forums.leaflabs.com/topic.php?id=9121#post-20164</link>
			<pubDate>Tue, 02 Oct 2012 23:03:19 +0000</pubDate>
			<dc:creator>crowja</dc:creator>
			<guid isPermaLink="false">20164@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I bought a mini maple leaf with the objective of making the C3088 cmos camera interface, I was having trouble with his use i2c peripherals, I connect the SDA and SCL pins of the camera module with pin sda and cells to the maple leaf mini board. I tried to test it using an algorithm which works i2c scanner to scan i2c device addresses that are connected, I scan from address 0 to 127, but the result is leaf maple find all devices of all that address. here is my i2c scanner algorithm:&#60;/p&#62;
&#60;p&#62;--------------------------&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;#include &#38;lt;Wire.h&#38;gt;
#define Serial SerialUSB

void setup()
{
  Wire.begin(0,1);

  Serial.println(&#38;quot;\nI2C Scanner&#38;quot;);
  while (!SerialUSB.available()) {}
}

void loop()
{
  byte error, address;
  int nDevices;

  Serial.println(&#38;quot;Scanning...&#38;quot;);

  nDevices = 0;
  for(address = 0; address &#38;lt; 128; address++ )
  {
    // The i2c_scanner uses the return value of
    // the Write.endTransmisstion to see if
    // a device did acknowledge to the address.
    Wire.beginTransmission(address);
    error = Wire.endTransmission();

    if (error == 0)
    {
      Serial.print(&#38;quot;I2C device found at address 0x&#38;quot;);
      if (address&#38;lt;16)
        Serial.print(&#38;quot;0&#38;quot;);
      Serial.print(address,HEX);
      Serial.println(&#38;quot; !&#38;quot;);

      nDevices++;
    }
    else if (error==4)
    {
      Serial.print(&#38;quot;Unknow error at address 0x&#38;quot;);
      if (address&#38;lt;16)
        Serial.print(&#38;quot;0&#38;quot;);
      Serial.println(address,HEX);
    }
  }
  if (nDevices == 0)
    Serial.println(&#38;quot;No I2C devices found\n&#38;quot;);
  else
    Serial.println(&#38;quot;done\n&#38;quot;);

  delay(8000);           // wait 8 seconds for next scan
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;--------------------------------------------&#60;/p&#62;
&#60;p&#62;Please help me :)&#60;/p&#62;
&#60;p&#62;(Edit: I added code layout markup  to make it easier to read - gbulmer)
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
