Chat freely about anything...

User avatar
By atexit8
#45285 I have an ESP-01.

I can communicate with it using AT commands using FTDI USB-to-serial converter cable.

I am trying to run the example Examples ---> ESP8266Wifi ---> NTPClient
and I am confused.

Is the ESP8266 module suppose to be connected to the Arduino Uno?
If so, which pins do I use?
User avatar
By martinayotte
#45289 You question is also confusing us ... :ugeek:
You can not have AT firmware along another firmware such ArduinoESP framework, or Lua, or Basic.
You have to choose on or the others.
So, if you wish to run the "Examples ---> ESP8266Wifi ---> NTPClient" from ArduinoESP framework, there is no ArduinoUNO around. The ESP8266 will run the NTPClient as a standalone module (and the AT firmware will be gone/erased).
User avatar
By atexit8
#45293 For a newbie it is very confusing.

But apparently, the ArduinoESP framework as you call it uses the Arduino IDE for programming the ESP8266.

If I want to use the ESP8266 simply as a wifi module for the Arduino Uno, then I can only send AT commands.


I don't even want to use Lua or BASIC or microPython or whatever just yet.
User avatar
By martinayotte
#45295
atexit8 wrote:But apparently, the ArduinoESP framework as you call it uses the Arduino IDE for programming the ESP8266.

Yes ! To create your own firmware.

atexit8 wrote:If I want to use the ESP8266 simply as a wifi module for the Arduino Uno, then I can only send AT commands.

Yes and No !
Yes, if you don't want to write your own ESP firmware and only want to program the UNO.
No, if you write your own ESP firmware, you can still have an UNO attached, and define your own protocol (other than AT) to establish communication between the ESP and the UNO. For example, the UNO can send a command thru serial to the ESP, such as "getntp", the ESP firmware execute the task and return the received NTP time to the UNO.
Doing the same thing using AT firmware would be much more troubles, therefore more headaches... ;)