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:
1 Asked on December 12, 2021 by aymdev
1 Asked on December 10, 2021 by path-or
3 Asked on December 7, 2021 by ericmjl
2 Asked on December 6, 2021 by mark-bennett
2 Asked on December 6, 2021 by geaux62
3 Asked on December 4, 2021
1 Asked on November 30, 2021 by peter-wishart
2 Asked on November 28, 2021
3 Asked on November 28, 2021
1 Asked on November 25, 2021 by lisandro-di-meo
2 Asked on November 25, 2021 by gabriel-schubert
1 Asked on November 25, 2021
2 Asked on November 23, 2021 by lolok
3 Asked on November 21, 2021 by dorin-botan
Get help from others!
Recent Questions
Recent Answers
© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP