# 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:

## 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

### How to add the hfp/hsp profile based speaker for input (speech recognition)and output simultaneously?

1  Asked on December 10, 2021 by path-or

### How do I use the command line to check which WiFi network I am connected to?

3  Asked on December 7, 2021 by ericmjl

### Raspberry PI2 under voltage with a standard microsoft webcam connected.

2  Asked on December 6, 2021 by mark-bennett

### How to use Rpi python to read/write/convert, to/from Arduino PPM and PWM servo control signals?

2  Asked on December 6, 2021 by geaux62

### What is going on with my GPIO pins?

1  Asked on December 4, 2021 by dubstepzedd

### says i don’t have wiringpi module when runing code at startup

3  Asked on December 4, 2021

### 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

### Is it possible to interact with the NOOBS install remotely (VNC, SSH or other)?

2  Asked on November 28, 2021

### Access point as WiFi router/repeater, optional with bridge

3  Asked on November 28, 2021

### 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

### Getting Memory Error while installing tensorflow in raspberry

1  Asked on November 25, 2021

### 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