ESP8266 Huzzah to Arduino MEGA2560


i purchased adafruit esp8266 huzzah breakout board, instead of having deal logic level shifters , not. anyways, reason need kind of wifi capabilities in project, able control robot through webpage, or phone app. me , few guys working on robot has arm, powered servos, , wheels powered dc motors. have necessities these motors. have need, except knowledge control these parts wirelessly.

i have arduino mega, , control it's digital pins using buttons on webpage hosted esp8266 huzzah board. followed tutorial explaining how make webpage produce temperature , humidity data. understood of that, need connect esp8266 mega, , totally lost. must rx , tx pins on esp connected tx , rx pins on mega, respectively? how work? possible can refer me document explaining why is, or show me example code of esp communicating mega?

i appreciate it!

must rx , tx pins on esp connected tx , rx pins on mega, respectively?
if want communication on serial, yes. there other options might easiest.

how work?
that's you.

typically in sort of avr-esp8266 configuration people have @ firmware on esp8266 , use avr (the mega in case) master. esp8266 used wifi adapter. benefit of official , community support avr architecture best far have lots of libraries, sketches, tutorials, , people here on forum can you. in case mega serving webpage , interpreting http requests. option recommend library:
https://github.com/bportaluri/wifiesp


the other option write custom firmware esp8266 handles serving webpage , interpreting http requests , sends control commands mega. benefit of esp8266 more powerful mega , should more efficient transferring data , forth between mega, through esp8266, , phone. it's bit more complex because writing code esp8266 , mega , esp8266 bit more difficult work mega, not bad, application. in case using esp8266 core arduino program esp8266:
https://github.com/esp8266/arduino


Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > ESP8266 Huzzah to Arduino MEGA2560


arduino

Comments

Popular posts from this blog

Flip address is out of range arduino uno r3

Arduino Uno not uploading

Indesign and MathType fonts