r/ArduinoProjects • • Oct 25 '23

i2c

hello guys how to tx data from Arduino Uno to esp8266 using i2c ?

0 Upvotes

16 comments sorted by

1

u/xebzbz Oct 25 '23

You define which one is the master, and implement the other one as a slave

1

u/HARRYBINDRA Oct 25 '23

Yes already did that but the slave is not getting the data.

1

u/HARRYBINDRA Oct 25 '23

Slave addres:0x09 Clock:100000

1

u/xebzbz Oct 25 '23

Maybe the clock frequency is too high

1

u/HARRYBINDRA Oct 25 '23

I think 1000000 is the default frequency

1

u/HARRYBINDRA Oct 25 '23

Not sure

1

u/xebzbz Oct 25 '23

Well, it doesn't hurt trying

1

u/HARRYBINDRA Oct 25 '23

So than I have to wait I am in Gym lol

1

u/xebzbz Oct 25 '23

Also, you need to check if a pull up resistor is needed.

1

u/HARRYBINDRA Oct 25 '23

Pull down???

2

u/tipppo Oct 26 '23

You need to use a bi-directional level shifter to connect a 5V Uno to a 3.3V ESP via I2C. This converts the levels and provides the necessaty pullup for the I2C bus. Something like this https://www.adafruit.com/product/757