-->
Page 7 of 7

Re: ESP8266 with XBee

PostPosted: Sat Feb 04, 2017 10:50 am
by JyotiRajSharma
Hi,

Your code is based on 8 pin esp8266 or 16 pin esp8266 ??

You have mentioned Pin1 and Pin3 . Are they Gpio1 and Gpio3 pins as per 16 pins ESP8266 ?? If so i will purchase 16 pin esp too because on 8 pins esp8266, i have only gpio0 and gpio2 to use for i2c and no extra gpio pins to be used for RTS and RESET .

Please share your input.

Re: ESP8266 with XBee

PostPosted: Wed Feb 15, 2017 4:14 pm
by JyotiRajSharma
ESP8266 Arduiono
GPIO_0 -------A4
GPIO_2 -------A5
//Arduino as slave
#include <Wire.h>

void setup()
{
Serial.begin(9600);
Wire.begin(8); // join i2c bus with address #8
Wire.onRequest(requestEvent); // register event
}

void loop()
{
delay(1000);
requestEvent();
}
void requestEvent()
{
int temp=24 ;
byte barr_temp[2] = { lowByte(temp), highByte(temp)};
Wire.write(barr_temp,2);
}

//ESP8266 as Master side
void setup()
{
Wire.begin(0,2); // I2C Bus 0
}
loop()
{
byte barr[2];
Wire.requestFrom(8, 2);
while(Wire.available())
{
for(int i = 0; i<2; i++){
byte b = Wire.read();
barr[i] = b;
}
}
When check the value of barr[0] and barr[1] on ESP side, it is returning 0 and 255 only. It should return 24 as low byte and 0 as high byte.

Please help me to resolve this.

Re: ESP8266 with XBee

PostPosted: Tue Oct 10, 2017 7:09 am
by Eagle5
JyotiRajSharma wrote:Hi,

Now i am able to get data from arduino slave to esp8266 master i.e esp8266 can read sensor data via i2c from arduino slave.

Can master esp8266 write some data onto i2c and slave arduino read the same ?? This is required to control LED from webserver --->esp8266------->arduino led.


Hi,

Did you getting DTLS working on the esp8266? (I want to use it with CoAP ...)

Re: ESP8266 with XBee

PostPosted: Tue Jun 05, 2018 2:03 am
by Hando76
Hey I was going thorugh your Blog and able to use to zigbee device to send the data wireless from sensor (inter face with Arduino Uno) to my laptop
But I wanted to send this data to internet cloud and for doing this I have bought ESP8266 but I am not aware about connection between ESP8266 and Zigbee to get connected with internet.
What will be the best way to make ESP8266 to receive(RX) (connected to another arduino) the data wireless thorugh mesh based sensor so that data will be retrieve on internet cloud
I trying to use as per your suggestion but found some error
I am using Chip SHT30 and its library
While using ESP8266 I am using laptop to just monitor the data through inter there is no connectivity between Laptop and Arduino after uploading the code
your suggestions will be very helpful