วันเสาร์ที่ 7 ตุลาคม พ.ศ. 2560

HOW to Check ESP8266 connected with Arduino





1.Specification


Specification

  • Module power 3.3V, regular current consumption at 70ma, peak current at 240mA (300mA must be able to provided)
  • +20Dbm power, 100M max transmitting distance on ideal circumstance.
  • It is common and correct to see some random error data when module is power up, and end up with "ready" (Turn baud rate to 115200 can see this actual debug data, this is used for firmware updating)

IC Features

  • 802.11 b / g / n
  • WIFI @ 2.4 GHz, supports WPA / WPA2 security mode
  • Ultra-small size module 11.5mm * 11.5mm
  • Built-in 10 bit precision ADC
  • Built-in TCP / IP protocol stack
  • Built-in TR switch, balun, LNA, power amplifier and matching network
  • Built-in PLL, voltage regulator and power management components
  • 802.11b mode + 19.5dBm output power
  • Supports antenna diversity
  • Off leakage current is less than 10uA
  • Built-in low-power 32-bit CPU: can double as an application processor
  • SDIO 2.0, SPI, UART
  • STBC, 1x1 MIMO, 2x1 MIMO
  • The guard interval A-MPDU, the polymerization of the A-MSDU and 0.4 s of
  • Within 2ms of the wake, connect and transfer data packets
  • Standby power consumption is less than 1.0mW (DTIM3)
  • Operating temperature range -40 ~ 125 ℃

2. Connection 




3. Connect

ESP8266    to   Arduino

TX             to   PIN1
RX             to   PIN0
CH_PD      to   3.3 Vcc
Vcc            to   3.3 vcc
GND          to   GND







VDO 













4.  Test  Arduino  Board

load simple blinking led pin 13 make sure board connected



code

void setup() {

  // initialize digital pin 13 as an output.

  pinMode(13, OUTPUT);

}

// the loop function runs over and over again forever

void loop() {

  digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)

  delay(1000);              // wait for a second

  digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW

  delay(1000);              // wait for a second



}


5. serial monitor check AT Command

load AT Command Here : 

https://www.dropbox.com/s/iyuybn7bg9nw0vg/4a-esp8266_at_instruction_set_en_%281%29.pdf?dl=0


5.1  AT

Should get OK

5.2 AT+GMR

version


5.3 AT+CWMODE?

Mode will show 1,2 or 3

5.4 AT+CWLAP

Will show Access point around


5.5 AT+CWJAP="User","Password"

connect Access point

5.6 AT+CIFSR

Get IP

All OK mean connected.






ไม่มีความคิดเห็น:

แสดงความคิดเห็น