<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://w.electrodragon.com/w/index.php?action=history&amp;feed=atom&amp;title=Category%3AIIC</id>
	<title>Category:IIC - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://w.electrodragon.com/w/index.php?action=history&amp;feed=atom&amp;title=Category%3AIIC"/>
	<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=Category:IIC&amp;action=history"/>
	<updated>2026-07-22T10:28:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://w.electrodragon.com/w/index.php?title=Category:IIC&amp;diff=31976&amp;oldid=prev</id>
		<title>Chao: /* = EEPROM Read */</title>
		<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=Category:IIC&amp;diff=31976&amp;oldid=prev"/>
		<updated>2021-08-06T14:51:20Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;= EEPROM Read&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;* 总线， 不同设备地址&lt;br /&gt;
== Schematic ==&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Adio_iic_expander.png | ADC and IO expander board SCH&lt;br /&gt;
File:IIC_utility_sensor_pack.png | Sensor pack board SCH&lt;br /&gt;
File:IIC_MISC_Board_SCH.png | IIC MISC (OLED RTC EEPROM) board SCH&lt;br /&gt;
File:TI_IIC_sensor_01.png | TI series IIC sensors&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Expansion &lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:MCP23017_SCH.png | MCP23017 to GPIOs expansion, SCH&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
== IIC Devices ==&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Category !! Alternative 1 !! Default IIC Utility Address &lt;br /&gt;
|-&lt;br /&gt;
| Pressure || BMP280 || Use BMP180 &lt;br /&gt;
|-&lt;br /&gt;
| Temperature huminity || AM2322&lt;br /&gt;
|-&lt;br /&gt;
| Light sensor || BH1750 || &lt;br /&gt;
|-&lt;br /&gt;
| RTC || DS1307 &lt;br /&gt;
|-&lt;br /&gt;
| Analog Expander || PCF8591 || 0x48&lt;br /&gt;
|-&lt;br /&gt;
| GPIO Explander || PCF8574T, MCP23008 || 0x20&lt;br /&gt;
|-&lt;br /&gt;
| I2C Expander || tca9548a&lt;br /&gt;
|-&lt;br /&gt;
| Servo Drive || PCA9685&lt;br /&gt;
|-&lt;br /&gt;
| EEPROM || AT24C256 || &lt;br /&gt;
|-&lt;br /&gt;
| Display || IIC OLED&lt;br /&gt;
|-&lt;br /&gt;
| Accelerator || ADXL345 &lt;br /&gt;
|-&lt;br /&gt;
| Segment Display || TM1650&lt;br /&gt;
|-&lt;br /&gt;
| Char Display || PCF8574 1602&lt;br /&gt;
|-&lt;br /&gt;
| ADC || ADS1110&lt;br /&gt;
|}&lt;br /&gt;
* I2C device found at address 0x3C  ! // IIC OLED&lt;br /&gt;
* I2C device found at address 0x75  ! // IP5306&lt;br /&gt;
* ST25DV ............................................0x2D.....................................0x53...0x57........................................&lt;br /&gt;
* EEPROM + RTC + OLED ...........................................................0x3C...................0x50.......................0x68.......................&lt;br /&gt;
* AHT20: 0x38&lt;br /&gt;
* K23-1025 - 0x1F&lt;br /&gt;
* EEPROM 0x50&lt;br /&gt;
&lt;br /&gt;
== I2C 3-in-1 Breakout ==&lt;br /&gt;
 I2C device found at address 0x3C  !  // this is OLED 128x32&lt;br /&gt;
 I2C device found at address 0x50  !&lt;br /&gt;
 I2C device found at address 0x68  !&lt;br /&gt;
&lt;br /&gt;
* To use on board 128x32 OLED, define first:&lt;br /&gt;
 //   #define SSD1306_128_64&lt;br /&gt;
  #define SSD1306_128_32&lt;br /&gt;
 //   #define SSD1306_96_16&lt;br /&gt;
* Demo code read EEPROM and display on OLED, please wait 2-3 seconds until OLED initated after restart&lt;br /&gt;
&lt;br /&gt;
==  i2cdetect ==&lt;br /&gt;
* Linux (RPI)&lt;br /&gt;
 i2cdetect -y 1&lt;br /&gt;
* Arduino scanner skecth, please find in our arduino github&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:I2cdetect.png | linux raspberry pi scanner &lt;br /&gt;
File:Arduino_I2c_Scanner.png | arduino I2C scanner &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Nano -&amp;gt; i2cdetect -r -y 0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== EEPROM Read ==&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status !! Hardware !! Code Next Step !! Hardware Next&lt;br /&gt;
|-&lt;br /&gt;
| 08 || already send start || send SLA+R || Do code and wait ACK&lt;br /&gt;
|-&lt;br /&gt;
| 40 || already send SLA+R + got ACK || X || X&lt;br /&gt;
|-&lt;br /&gt;
| 50  || Get REV data +ACK || Example&lt;br /&gt;
|-&lt;br /&gt;
| 58  || Get REV data + NO ACK || Example&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Wire ==&lt;br /&gt;
* Wire.begin(4, 5);&lt;br /&gt;
&lt;br /&gt;
[[category: Interface]]&lt;/div&gt;</summary>
		<author><name>Chao</name></author>
	</entry>
</feed>