The use of the ESP8266 in the world of IoT

User avatar
By Nouman
#77850 Hi,
I am working on a project in which Arduino Mega and ESP Huzzah Feather collect multiple sensor readings. I want the ESP8266 Huzzah Feather to collect the data from Arduino Mega as well and forward it to the server website. Is it possible? If yes, it would be a great help if you could share your experience.
User avatar
By Nouman
#77903
QuickFix wrote:Any reason not to drop the Mega (the ESP is also a microcontroller and in many aspects superior to the Atmel)?


That is a great tip, I will certainly try it out. I actually started with Mega and continued building on it with a data logging Shield. But for Wifi support purchased an ESP Huzzah. If we can not use the Huzzah for general Wifi purpose with Mega, it means I spend more money.
User avatar
By vibhu18
#78793 1. The only way of doing this is by serially passing the sensor readings from mega to esp8266. but the problem is this process is slow and hinder the back ground tasks. due to some issue in esp8266 as mentioned here https://github.com/esp8266/Arduino/issues/1330 you can't use I2C to communicate or you can't make ESP8266 as a slave device. you can use SPI with the same development boards like ESP and ESP communication but not with mega and ESP. uh can use SPI only while flashing the device

2. You can use I2C with sensors. This will help the UART communication with two board much better and will not hinder the process. you can use these sensor module https://store.ncd.io/?fwp_product_type=temperature which have I2C compatibility