ESP 8266 TestingMethods

17
Testing method 1 5V1A switching power supply 2 USB mini cable 3 WIFI Module 4 WIFI adapter Block 5 STC15W408AS 6 Power switch 7 USB_TTL number According to mouth 8 CH340 USB_TTL chip 9 USB to TTL data output port A External battery box connection port, B 5V DC input connector C DIP switch control ESP8266 start state of GPIO port splitter and relay selection D Serial shunt converter E1 E2: ESP8266 useful and necessary IO port IO port unified interface F 2.4G Module interface G1 G2: lead WIFI module interface

description

ESP 826 testing MEthods

Transcript of ESP 8266 TestingMethods

Page 1: ESP 8266 TestingMethods

Testing method

1 5V1A switching power supply 2 USB mini cable 3 WIFI Module 4 WIFI adapter Block 5 STC15W408AS 6 Power switch 7 USB_TTL number According to mouth 8 CH340 USB_TTL chip 9 USB to TTL data output port A External battery box connection port, B 5V DC input connector C DIP switch control ESP8266 start state of GPIO port splitter and relay selection D Serial shunt converterE1 E2: ESP8266 useful and necessary IO port IO port unified interface F 2.4G Module interface G1 G2: lead WIFI module interface L: photoresistor M: DS18B20 probe interface N: Relay O: Relay shock mouth P: 3.3V stable Pressure chip

Page 2: ESP 8266 TestingMethods

Q 3DB gain antenna R: ipx antenna input port

Page 3: ESP 8266 TestingMethods

The main IO port connection description

1. TXD USB transfer on a board after CH340 and RXD same time the board can be connected to the microcontroller RXD and TXD. ESP8266 or connected to the RXD and TXD. RXD TXD so from CH340 output through DIP switch branches, for example, download the program to the MCU, respectively, as the device icon in the 5th position that the six DIP switches are 000101 in which a representative to the ON state. . If you need to connect to the ESP8266 serial port, you need to state appropriated 001,010. . If you need to go through with the carrier onboard MCU serial control ESP8266 module please state appropriated 110 000

2. Another DIP switch determines the status ESP8266, such as entering the serial upgrade status, or running at full speed into the general state, and because the onboard relays can be controlled and ESP8266 MCU to be controlled, so to choose, such as to make the relay by MCU control, ESP8266 module running at full speed into the state, for the DIP switch position for 011,010, if

Page 4: ESP 8266 TestingMethods

you want to update ESP8266 module, you must first enter the upgrade status, DIP switch was set to 011,110, the first of this DIP switch and the first one 2 determines the relay is affected by the MCU controlled or controlled by the module. Choose one!

3. MCU IO port connection instructionsUART can be used to download STC 51 microcontroller program, and can be switched directly control ESP8266 module

SCM P1.2 P1.3 P1.4 took three separate buttons.

Page 5: ESP 8266 TestingMethods

MCU IO port individually hung 2.4G module NRF24L01 + sub

Page 6: ESP 8266 TestingMethods

Pick up three separate red, green and blue LED lights on the microcontroller IO port

Page 7: ESP 8266 TestingMethods

Relay connected to the microcontroller P3.3

Buzzer

Page 8: ESP 8266 TestingMethods

The MCU can be reset to force action on the ESP8266 ESP8266 prevent crashes

Photoresistor connected to the P1.7 port, you can collect the ambient brightness, which with AD

Page 9: ESP 8266 TestingMethods

Temperature sensor connected to P1.6

You can manually reset ESP8266

ESP8266 has six external use available generic IO ports are GP0 GP2 GP15 GP12 GP13 GP14

Page 10: ESP 8266 TestingMethods

which GP0 GP2 GP15 before the system starts, it determines what the state after the system starts to enter, after the system starts properly, GPO GP2 GP15 do general IO ports.Therefore, all the IO port 6 after the system is running can be when using common IO port, do the following figure as the input and output output, ESP8266 IO port directly drive LED

ESP8266 reuse as a key detection input

Page 11: ESP 8266 TestingMethods

ESP8266 onboard adapter base as follows:E1 transposon

Page 12: ESP 8266 TestingMethods

E2transposon

Page 13: ESP 8266 TestingMethods

System mode instructions and the DIP settings

The figure marked ESP8266 module into the normal startup, received 8266 MCU serial port control! You can now test the demo phone control panel stuff

Page 14: ESP 8266 TestingMethods

The figure marked the system is linked to the microcontroller serial port, so that the program can be programmed into the device

Page 15: ESP 8266 TestingMethods

The figure indicates that the system enters upgrade status! Please note that the above four DIP switches

Page 16: ESP 8266 TestingMethods

The figure marked the system's serial port connected to the ESP8266 can demonstrate manually AT serial debugging software

System startup basic instructions:If this test board customers can enter four common states such as the above four methods. All preparation have been set up on the board! Easy to use.

If the customer does not test board, just pay attention to the following points can be easily tested:1 Please ensure the power at 3V-4V, the power supply is very important in the failure of customers in 10, there are eight is the power, therefore, because the current is relatively large when the system starts! So please do not be too confident its own power, no problem. Simple and reliable

Page 17: ESP 8266 TestingMethods

way, and after two 1.5V batteries in series to power the new module2 is guaranteed CH_PD chip strobe pin is high, if GPIO15 (ie MTDO), please take this pin low. Note that the above two points, the factory out of the module, you can enter the system after entering the system,A module current 70-80 mA. . Please test this current 20A stalls measuring! Necessary.2 If the indicator system, the electric blue light will blink at once and instantly exterminate! Flashing is because after power system data output. Because indicator connected to the data output port! If you see the indicator data with output, and you did not serial data, the data representing the output of you not well received, please check your USB3 system starts at 0.91 and previous versions, the system will output a bunch of gibberish (in fact, not garbled, after the system starts out some inside information)) and output READY! Representative system to normal4 as described above, the normal operation of the system should be able to hand on the machine or computer to search for the first router to ESP_XXXX If the above description of the state of the system, the system is running on your behalf. According to official data, GP0 GP2 GP15 in normal operation GPO GO2 needs then high, G15 constant low. GP0 is low, GP2 is high, GP15 is low, on behalf of the system into a new program through the serial port upgrade status

The simplest system diagram above after several validated middle four feet short circuit connected VCC,, or CH_PD connect to VCC system can be started.

Page 18: ESP 8266 TestingMethods

Some details:A simple system startup conditions: two battery-powered, CH_PD then high if GPIO15, please GPIO15 low. It's that simple2 If the blue light flashing after power is off 0.2 seconds for normal to normal after 70-90 mA current system3 Remember to enter various AT commands to add a carriage return after! Remember to add a carriage return, or what made you what module returns.