AED 135.45
Description
This board is a tweaked version of the original Mega R3. On a single board, there's an Atmel ATmega2560 microcontroller, an ESP8266 WiFi IC, 32 Mb (megabits) of flash memory, and a CH340G USB-TTL converter! All of the components may be configured to function together or separately. And each one has its own set of pinout headers. The practical option for developing new ideas that require Uno and WiFi. You may simultaneously update ATmega2560 and ESP8266 drawings and firmware over USB.
the board is designed to be the same size as the original Arduino Mega controller. The ATmega2560 controller has been relocated to the right, while the ESP8266 controller has been relocated to the left. A USB connector is located above the WiFi controller, which has been replaced with a standard Type-B to Micro-B connector, and this connector interacts with the board's components through a USB-TTL CH340G converter and an 8-pin DIP switch.
as you see in the table below.
Switch status and selection mode : |
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 independently |
OFF |
OFF |
OFF |
OFF |
OFF |
OFF |
OFF |
NoUSE |
First, you must install the board driver, or more specifically, the CH340 controller driver. To do so, connect the board to the computer via USB connection as follows:
- Download the Windows CH340 Driver
- Unzip the file
- Run the installer which you unzipped
- In the Arduino IDE when the CH340 is connected you will see a COM Port in the Tools > Serial Port menu, the COM number for your device may vary depending on your system.
Now let's download the Mega2560 + WiFi R3 ATMEGA2560+ESP8266 32MB Memory USB-TTL CH340g Library to Arduino IDE:
you go to File → Preferences → Additional Board Manager URLs:
then paste this URL:
http://arduino.esp8266.com/stable/package_esp8266com_index.json
and OK.
now we go to :
Tool → Board → Board Manager → Search "ESP"
and click Install and wait:
Now:
Using a paper clip, switch the sliders of the DIP switch to the positions indicated in the table below.
1 | 2 | 3 | 4 | five | 6 | 7 | 8 | RXD / TXD |
USB<->ATmega2560 | --- | --- | ON | ON | --- | --- | --- | 0 |
Connect the board to the computer using a USB cable.
Launch the Arduino IDE program.
Select the Arduino / Genuino Mega or Mega 2560 board through
Tools -> Board -> Arduino / Genuino Mega or Mega 2560 .
Select the COM port that was written out from the Device Manager when installing the board driver, through
Tools -> Port -> COM4 .
Open the test program TEST_MEGA through File -> Folder with sketches -> TEST_MEGA .
Download firmware to the controller via Sketch -> Download.
After successfully downloading the firmware to the controller, open the Port Monitor through Tools -> Port Monitor.
After selecting a baud rate of 115200 baud in the Port Monitor, the test program menu should appear in the monitor window.
Enter the English letter "a" in the Port Monitor instructions input field and click Submit; the controller will enter the blinking mode with the built-in LED for 20 seconds in response to the command.
The Port Monitor is necessary to send a command to "b" - the controller will give the size of the free memory SRAM = 7873 and the full size of the memory EEPROM = 4096.
The Port Monitor is necessary to send the command "c" - the controller will test the status of the outputs and produces a table with the results.
e table, all outputs except 0, 1, and 13 must be OK. Faults were detected on pins 0, 1, 13, since the 0 and 1 pins are occupied by the serial port (UART), and the 13-pin pin has an integrated LED.
All checks are carried out - the controller must be disconnected from the USB port of the computer.