Switch status and mode selection:
|
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
CH340 connect to ESP8266 (upload sketch)
|
OFF
|
OFF
|
OFF
|
OFF
|
ON
|
ON
|
ON
|
NoUSE
|
CH340 connect to ESP8266 (connect)
|
OFF
|
OFF
|
OFF
|
OFF
|
ON
|
ON
|
OFF
|
NoUSE
|
CH340 connect to ATmega2560 (upload sketch)
|
OFF
|
OFF
|
ON
|
ON
|
OFF
|
OFF
|
OFF
|
NoUSE
|
CH340 connect to Mega2560 COM3 connect to ESP8266
|
ON
|
ON
|
ON
|
ON
|
OFF
|
OFF
|
OFF
|
NoUSE
|
Mega2560+ESP8266
|
ON
|
ON
|
OFF
|
OFF
|
OFF
|
OFF
|
OFF
|
NoUSE
|
All modules work independent
|
OFF
|
OFF
|
OFF
|
OFF
|
OFF
|
OFF
|
OFF
|
NoUSE
|
Special solution:
USB <->ATmega328<-> ESP8266
|
DIP |
SWITH 2 |
Connection |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
|
USB <-> ATmega2560<-> ESP8266 |
ON |
ON |
ON |
ON |
OFF |
OFF |
OFF |
To RXD3/TXD3 |
USB converter CH340G connect to RX0/TX0 of ATmega2560
ESP8266 connect to RX3/TX3 of ATmega25