AnswerBun.com

Communicate via I2C using an 8-Bit Bidirectional (TXS0108E)

Raspberry Pi Asked on January 4, 2022

I want to communicate through I2C between a Raspberry Pi 4 and an ATMega4809 (Arduino Nano Every or Curiosity).

Since SDA/SCL pins in Raspi Pi are 3.3V and in ATMega4809 are 5V I thought I had to use a logical converter, for which reason I’m trying to use an 8-Bit Bidirectional (TXS0108E).

The problem is that the logical converter seems to be quite unstable because when I have everything connected I detect on and off signal quite randomly. I’m using i2cdetect and setting up 0x18 as address:

With signal:

[email protected]:~ $ i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- 18 -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --    

Without signal:

[email protected]:~ $ i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --  

If I wire directly SDA/SCL pins I have a stable connection. However, I’m afraid that using it directly I might damage RaspiPi pins that work at 3.3V.

EDIT: schematics:

enter image description here

Add your own answers!

Related Questions

Raspberry 4 usbmount not working

5  Asked on December 12, 2021 by papatrexas

   

RPI 4B – Bluetooth unavailable on Ubuntu 20.04

1  Asked on December 12, 2021 by aymdev

     

Autostart chromium browser other user than pi

2  Asked on December 12, 2021

   

3B+ fails to boot Ubuntu mate

1  Asked on December 10, 2021 by washy

   

What is going on with my GPIO pins?

1  Asked on December 4, 2021 by dubstepzedd

 

can’t login after modifying .bash_aliases

0  Asked on December 2, 2021 by abstract

 

Network boot with rootfs on USB3 drive fails with Ubuntu 20.04

1  Asked on November 30, 2021 by peter-wishart

     

Alpine Linux – Changing/Moving the file system

1  Asked on November 25, 2021 by lisandro-di-meo

 

3.5 Inch RPi LCD with colors problem

2  Asked on November 25, 2021 by gabriel-schubert

   

Sub-process /usr/bin/dpkg returned an error code (1)

2  Asked on November 23, 2021 by lolok

   

PWM issues with pigpio and RPi.GPIO

2  Asked on November 23, 2021

       

Can I identify my PI by domain name in a LAN?

3  Asked on November 21, 2021 by dorin-botan

     

Ask a Question

Get help from others!

© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP