-->
Page 3 of 7

Re: ESP8266 with XBee

PostPosted: Sun Jan 29, 2017 2:12 pm
by GengusKahn
Hi there, setup the Xbee and arduino as per your needs as a standard sketch then communicate whatever you recieve from the Xbee network via the I2C from the Arduino to the ESP running a web server....

Look through this github for some information.......

https://github.com/telecombretagne/Arduino-IPv6Stack

Re: ESP8266 with XBee

PostPosted: Sun Jan 29, 2017 4:35 pm
by JyotiRajSharma
Hi,

Thanks for your information.

Can I communicate xbee with Esp8266 using uart i.e xbee tx to esp8266 rx and xbee rx to esp tx. In this case, whatever i receive in xbee will be forwarded to esp. Is my understanding correct ?? You are using i2c as you recieive data from2 routers right??
I am receiving data from one router and have 8 pin esp which i think do not have separate i2c pins. I want to forward the data from xbee to esp using 8 pin chip only for now using uart.

I s it feasible?? Sorry for several question :D

Re: ESP8266 with XBee

PostPosted: Sun Jan 29, 2017 4:55 pm
by bjoham
The esp8266 has no hw i2c. Hence, you can use any gpio pins you like; preferably non-uart pins.

Then you can use the uart pins to communicate with the XBee.

With the esp as master, you can connect as many arduinos you want on the i2c bus. (Reasonable limits of course!)

Re: ESP8266 with XBee

PostPosted: Sun Jan 29, 2017 5:57 pm
by GengusKahn
The use of Serial is simple...

Follow the examples here....

https://github.com/andrewrapp/xbee-arduino

The serial and software serial are available in the ESP8266 as are mapping of RX and TX to alternative pins via Software Serial....

I would suggest you look through the page here......This will explain the "8 pins".......

https://github.com/esp8266/Arduino/blob/master/doc/reference.md#digital-io