Wemos Mega is Arduino Mega compatible board plus additional ESP8266 with 32Mb Flash. It allows flexible configurations for connections between ATmega2560, ESP8266 and USB serial. Arduino sketches can be uploaded to ATmega2560 or ESP8266 via USB separately and they can either work together to form a system or independently. The configurations are set by the onboard DIP switches.
The onboard ESP8266 can be flashed with popular firmwares like NodeMCU firmware or ESP8266 AT command-set firmware, as well as be programmed with Arduino IDE.
DIP Switch Configurations
Connection | DIP | ||||||
1 | 2 | 3 | 4 | 5 | 6 | 7 | |
ATmega2560<->ESP8266 | ON | ON | OFF | OFF | OFF | OFF | OFF |
USB <->ATmega2560 | OFF | OFF | ON | ON | OFF | OFF | OFF |
USB<->ESP8266 (Update firmware or sketch) | OFF | OFF | OFF | OFF | ON | ON | ON |
USB<->ESP8266 (communication) | OFF | OFF | OFF | OFF | ON | ON | OFF |
All independent | OFF | OFF | OFF | OFF | OFF | OFF | OFF |
An additional switch configures which serial UART (Serial0 or Serial3) that ESP8266 is connected to. It is possible to connect USB to RX0/TX0 of ATmega2560 and ESP8266 connects to RX3/TX3 of ATmega2560 at the same time, as following.
DIP | SWITCH 2 | |||||||
Connection | 1 | 2 | 3 | 4 | 5 | 6 | 7 | |
USB <-> ATmega2560<-> ESP8266 | ON | ON | ON | ON | OFF | OFF | OFF | To RXD3/TXD3 |
Shipping List
1 x Wemos® Mega +WiFi R3 ATmega2560+ESP8266 32Mb Memory