Está en la página 1de 15

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
L: photoresistor
M: DS18B20 probe interface
N: Relay
O: Relay shock mouth

P: 3.3V stable Pressure chip

Q 3DB gain antenna
R: ipx antenna input port

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
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 instructions

UART 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.

NRF24L01 + sub
separate red, green

Relay connected to the microcontroller P3.3


The MCU can be reset to force action on the ESP8266 ESP8266 prevent crashes
connected to the
P1.7 port, you
can collect the
which with AD
sensor connected
to P1.6
You can manually
reset ESP8266
external use available
generic IO ports are

GP0 GP2 GP15 GP12 GP13 GP14 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
reuse as

adapter base
as follows:


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

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

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

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
way, and after two 1.5V batteries in series to power the new module
2 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 USB
3 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 normal
4 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.

Some details:
A simple system startup conditions: two battery-powered, CH_PD then high if GPIO15, please
GPIO15 low. It's that simple
2 If the blue light flashing after power is off 0.2 seconds for normal to normal after 70-90 mA
current system
3 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.