- Mon Jun 22, 2015 2:32 pm
#21266
Using AT commands is uncomfortable.
The ESP-Arduino IDE has the ESP8266WiFi.h library, a straightforward library. So much simpler and faster than using AT commands.
b.t.w there is no AT command for reading the ADC in the ESP. The internal ADC of the ESP is not accurate and not very usable at the moment. (Maybe in a future ESP-firmware this is better)
I would recommand using the ESP for all the WiFi related stuff, no AT commands.
For the Analog/Digital part, either you use some sort of add-on I2C multiple A/D converter (see this video:
https://www.youtube.com/watch?v=EWpr3fpNz88) or something like this board:
http://www.ebay.com/itm/ADS1115-Module- ... 5d595e0ac8 and run the complete program exclusively in the ESP. (Do need for an Mega2560 anymore)
or use a Arduino-board only for reading the analog inputs and sent the values direct to the ESP by Serial or use the arduino-board as I2C slave. see this tutorial, where a ESP8266 must be used as I2C master and the Arduino as I2C slave.