Category:IIC

From ElectroDragon Wiki
Revision as of 22:51, 6 August 2021 by Chao (talk | contribs) (→‎= EEPROM Read)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  • 总线, 不同设备地址

Schematic

Expansion

IIC Devices

Category Alternative 1 Default IIC Utility Address
Pressure BMP280 Use BMP180
Temperature huminity AM2322
Light sensor BH1750
RTC DS1307
Analog Expander PCF8591 0x48
GPIO Explander PCF8574T, MCP23008 0x20
I2C Expander tca9548a
Servo Drive PCA9685
EEPROM AT24C256
Display IIC OLED
Accelerator ADXL345
Segment Display TM1650
Char Display PCF8574 1602
ADC ADS1110
  • I2C device found at address 0x3C  ! // IIC OLED
  • I2C device found at address 0x75  ! // IP5306
  • ST25DV ............................................0x2D.....................................0x53...0x57........................................
  • EEPROM + RTC + OLED ...........................................................0x3C...................0x50.......................0x68.......................
  • AHT20: 0x38
  • K23-1025 - 0x1F
  • EEPROM 0x50

I2C 3-in-1 Breakout

I2C device found at address 0x3C  !  // this is OLED 128x32
I2C device found at address 0x50  !
I2C device found at address 0x68  !
  • To use on board 128x32 OLED, define first:
//   #define SSD1306_128_64
 #define SSD1306_128_32
//   #define SSD1306_96_16
  • Demo code read EEPROM and display on OLED, please wait 2-3 seconds until OLED initated after restart

i2cdetect

  • Linux (RPI)
i2cdetect -y 1
  • Arduino scanner skecth, please find in our arduino github
  • Nano -> i2cdetect -r -y 0


EEPROM Read

Status Hardware Code Next Step Hardware Next
08 already send start send SLA+R Do code and wait ACK
40 already send SLA+R + got ACK X X
50 Get REV data +ACK Example
58 Get REV data + NO ACK Example

Wire

  • Wire.begin(4, 5);

Pages in category "IIC"

This category contains only the following page.