I want to create some kind of 'live view' from camera module and display data on website (e.g. local server).
I have esp8266 (image in attachments) and android UNO, as I know so far, I can use it together without any additional devices only it AT commands mode, but it is really hard to handle that. So I decided to buy another esp8266 wifi module (NodeMCU one) and split it on two devices. But I don't know how I2C works and I need to know, can I share data from 'Slave' to 'Master' and from 'Master' to 'Slave' at the same time, because I need to pass data from camera module to arduino then from arduino to wifi module and receive some data from wifi module (like some actions on website) and pass data back to arduino.
It may confuse you, so I will try to draw this:
wifi nodemcu <------> arduino uno <------ camera module
I did not chose camera yet, but one thing that confused me, 'Slave' (1) and 'Master' (2) roles, so you telling, basically, I can rotate any data between 1 and 2?
I did not chose camera yet, but one thing that confused me, 'Slave' (1) and 'Master' (2) roles, so you telling, basically, I can rotate any data between 1 and 2?
Yes and no. It's possible to send data in both directions but each transfer must be initiated by the master (which must be the ESP as it cannot be slave in I2C). So the ESP may write data to the Arduino and it may request information from the Arduino but the Arduino cannot send data to the ESP if that one hasn't asked for it.
pylon:
Yes and no. It's possible to send data in both directions but each transfer must be initiated by the master (which must be the ESP as it cannot be slave in I2C). So the ESP may write data to the Arduino and it may request information from the Arduino but the Arduino cannot send data to the ESP if that one hasn't asked for it.