Arduino and NodeMcu esp8266 12e v3

Hi,
I know this is Arduino forum. But i suppose my topic qualifies as i am trying to work my new module using Arduino IDE and Arduino UNO.
Also, no one seems to reply at the esp8266 community.

I just got my NodeMcu esp8266 12e v3 module.

I hooked it up to the laptop using the cable and also did all the arduino ide installations.
I am able to send blink codes and make the led blink successfully.
But how am i to send AT commands to the module?

I tried opening the serial monitor and sent "AT" but no reply. Even the command i am sending is not shown on the serial monitor.
Set the baud rate to 115200. "Both NL and CR" selected.

Any kind of advice is appreciated.

I'm relatively new to the ESP8266 so my experience is limited here, but I believe your problem is that you have overwritten the supplied firmware on your ESP8266 (which had an interpreter to support AT commands through the serial monitor), with an Arduino firmware.

You have to make a decision about which firmware you want to use (ModeMCU with LUA interpreter) or the Arduino firmware. If you change your mind, you have to reflash the original firmware.

This may help you to get an overview:

Post a link to the tutorial you have followed (if any) any may be you get more help here.

Hey. Thank you very much for your reply.

The things is....I have not flashed the new module at all.

  1. Got he module.
  2. Installed the esp8266 libraries in Arduino IDE.
  3. Opened the Blink example.
  4. Uploaded to the board.

That is all i have done.
If the module did come with pre-installed AT Commandset firmware, then i havent flashed it with any other firmware. That I am aware of.

This from a similar example may help you understand what has happened (in the background) when you integrated your device with the Arduino IDE.

I got the original AT firmware and re-flashed the nodemcu module.

Connected the Module to Arduino IDE using my phone charger cable.

Selected the port.
Opened the Serial Monitor.
Sent "AT".
Selected the proper baud rate.

Still NO response!!! Why isn't the module communicating using AT??

The reason it no longer works with the Arduino IDE and serial consoleis that you have removed the Arduino firmware from the ESP8266.

To talk to the NodeMcu sytem firmware, you cannot use the Arduino serial console have to use a different one, for example Putty under Windows.

Have a look here for some information about using NodeMcu via a serial monitor:

OK. I tried it. But did not work. Ended up testing the module with NodeMcu libraries in Arduino IDE.

Now, I want the wifi module to accept data from my android app and give it straight to arduino for furter end actions.
From what i read and researched, I need to set my device as a WiFi Station. I checked almost everywhere for a command to set my module in the Station mode. Which will directly accept any data once it is sent to the module's ip address. But in every example and video, there is only mention of WiFiClient and WiFiServer.

Am I missing something?

OK. So you are effectively using the NodeMcu esp8266 simply as a WiFi module for your Arduino.

You have a number of possibilities for a wifi connection between your android device and the arduino/esp8266. These include:

  1. integrate the arduino/esp8266 as a wireless client in your exisiting home network. It gets an IP address from your router and you connect from the android to this IP Address (of your arduino/esp8266)

  2. set up the arduino/esp8266 as a wireless access point. You scan the available wireless networks with your android and hope to find the network name (SSID) of the arduino/esp8266.

  3. set your Android device up as a WiFi hotspot and then the arduino/esp8266 (wireless client) has to find it (the hotspot) by its network name (SSID)

No matter which connection method you chose, you are probably going to have to run a Web server on the arduino/esp8266 which the application on the android talks to.

Are you developing all this yourself, or are you using a readymade application on your android ? and you should anyway tell us a bit more about it and what you are doing to get appropriate advice. You may even find that you do not need the arduino because the esp8266 is already a (more) powerful device.

Hey. Thank you for your advises. It was very informative.

Yes. I am developing everything by myself. I am trying to develop a prototype for home automation.
Yes, I could even take help of pre-defined libraries and apps such as Blynk but I want to develop the whole thing from scratch.

Also, I want to be able to access the esp8266 wifi device using normal internet, from anywhere in the world using internet connection on the phone.

I suppose that is a much tedious process that would require deep detailed networking knowledge also.

OK. You have at least 2 main architecture choices for your development:

  1. Run a webserver on arduino/esp8266 which is integrated into your home network. From the web brower on your android, you access web pages which control your home automation devices. But your home network is probably not directly routeable from the internet and the IP address that your provider gives to you will probably change from time to time. [you can deal with both these problems. Key words: port forwarding , dyndns ]

  2. Get an internet service provider that offers mySQL/PHP or similar. Your android device leaves commands via web pages in an SQL table and your arduino/esp8266 periodically looks into the SQL database for commands, executes them and puts the results, if required, into a table.

There may be other choices which are appropriate to your requirements.

I have made some basic experiments with method 2 for two way communication to set up a demonstration, but that is as far as my practical experience goes. The demonstration, incidentally, uses only an esp8266 without an arduino. Most of my early information to get me started came from the adafruit tutorials.

hellow dear firends
who work with sim800l in nod mcu whit arduino IDE?
can you help me?
i want connect sim800l to node mcu and use library sim800l for arduino in sim800l but all of theme use soft ware serial in this program and when i upload that program in node mcu didnt work
please giude me for send & resive sms with sim800l in nodemcu with arduino
thanks alot