I2C questions?
-
How do I go about using I2C with arduino Uno and wemos. I've used the arduino examples but when I do im getting -1 reading from arduino.
-
Works for me.
-
Is there any information on how to use I2c other than what is posted on github? I have also tested the I2cScanner code with no luck.
-
Yes, there is a lot of information available. Please refer to the documentation of whatever environment you are using to program your board. For instance, here is the documentation for MicroPython that I'm using: http://docs.micropython.org/en/latest/esp8266/library/machine.I2C.html
-
Hello @thejester88 ,
what exactly are you trying to do?
Do you want to communicate between Arduino Uno and Wemos with I²C?
7th Dwarf
-
@Seventh-Dwarf
Yes I'm trying to communicate between Arduino Uno and Wemos D1 mini. I am using Arduino IDE.
I found this today I'm hoping ths implementation will work.
https://www.google.com/amp/s/primalcortex.wordpress.com/2016/02/18/esp8266-sming-i2c/amp/
-
According to my understanding you need to have one of the devices on the I²C bus to be the master and the others to be the slaves. Most implementations assume that the Arduino or Wemos is the master. In your case you must implement a slave protocol in one of them. Did you do this?
Does it need to be I²C? UART might be better for this.
7th Dwarf
-
I have declared the slave and the master I'm going to try cutting all tcp wifi coding and see if I get any readings if not I will try the micropython or the uart