Arduino#ESP-WROOM-02 Startup

Before

I bought the ESP-WROOM-02 Wifi Module before and just put it into my toolbox for more than half a year..and like to use this post to memo some steps while startup.

Wiring

The TX0 and RX0 ESP-WROOM-02 pins are used to communicate between these modules and Arduino, but you can arrange the pins that you like.

Photos

Sorry that I am using Bread-board to build this small circuit.

Code

#include <SoftwareSerial.h>

SoftwareSerial mySerial(2,3); // RX, TX

void setup()

{

  Serial.begin(115200);

  while (!Serial) {

  ; // wait for serial port to connect. Needed for Leonardo only

  }

  mySerial.begin(115200);

}

void loop()

{

  if(mySerial.available())

  Serial.write(mySerial.read());

  if (Serial.available())

  mySerial.write(Serial.read());

}

AT Command

This module can use AT Command to configure it and it is not different.

Open your Serial Monitor in Arduino IDE, Choose Both NL&CR and set the communicate speed as 115200.

AT Command Link:

http://nonnoise.github.io/ESP-WROOM-02/ATcommand.html

Check the communication status.

Good, OK is back.

よし、OKが戻ってきた。

00:21:42.630 -> AT

00:21:42.630 -> 

00:21:42.630 -> OK

Check the current Status.

..What is 5?

00:22:39.454 -> AT+CIPSTATUS

00:22:39.454 -> STATUS:5

00:22:39.454 -> 

00:22:39.454 -> OK

Operate a Factory Reset.

00:22:55.636 -> AT+RESTORE

00:22:55.804 -> 

00:22:55.804 -> OK

00:22:55.904 ->  ets Jan  8 2013,rst cause:1, boot mode:(3,7)

Check the IP.

00:25:54.528 -> AT+CIFSR

00:25:54.528 -> +CIGSR:APIP,”192.168.4.1″

00:25:54.528 -> +CIFSR:APMAC,”de:4f:22:3f:73:ff”

Set the IP to 192.168.0.251.

00:30:50.999 -> AT+CIPAP=”192.168.0.251″

00:30:51.067 -> 

00:30:51.067 -> OK

Result

Just using the terminal to ping the address.

It seems good because the reply is back.

Link

http://quixotia.com/jj0ppm/?p=1696

https://www.mgo-tec.com/blog-entry-43.html

https://www.qoosky.io/techs/14bfffdc82

Footer_Basic

Please Support some devices for my blog

Amazon Gift List

Find ME

Twitter:@3threes2
Email:soup01threes*gmail.com (* to @)
YoutubeChannel:https://www.youtube.com/channel/UCQ3CHGAIXZAbeOC_9mjQiWQ

シェアする

  • このエントリーをはてなブックマークに追加

フォローする