2x i2c devices + level shifter = issues...


i have 2 i2c devices , arduino nano v3.  1 ssd1306 oled display 3.3v.  other work either 3.3v or 5v(ina226), decided use mosfet level shifter link below.  i'm using i2c scanner , hangs , won't anything.  i'm using 2 irf8113's, had handy.  datasheet below.

i tried pullups on level shifters themselves.  should fine since both scl/sda lines connected source , source pulled up, right?  tried removing pullup resistors on oled display trying them on.

if wire scl/sca lines directly ina226(with pullup resistors), scanner picks no problem. device working fine 4.7k or 10k resistors.

so yeah, real issue here when hook level shifter, serial monitor hangs up.  tried either 1 , both devices connected, nothing connected. did work 1 time, display displaying garbage.  tried again after swapping resistors , nothing.  pretty weird.

any appreciated.  thanks!

 
mosfet level shifter diagram:

http://www.hobbytronics.co.uk/image/data/tutorial/mosfet_level_converter.jpg

mosfet i'm using:

http://www.irf.com/product-info/datasheets/data/irf8113.pdf

can post link device? ssd1306 oled display

i found 1 on adafruit 5 volt compatible. maybe going trouble device 5 volt tolerant.


Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > 2x i2c devices + level shifter = issues...


arduino

Comments