Tags: Mega2560, Wifi, R3, Atmega2560, esp8266, 32mb, Memory, Usb, TTL, CH340

Mega2560 + WiFi R3 ATMEGA2560+ESP8266 32MB Memory USB-TTL CH340g

  • 184.00 AED
    • Ex Tax:184.00 AED
    • Product Code: Mega With ESP8266
    • Availability: In Stock
    table, th, td { border: 1px solid black; } This board is a customized version of the classic Mega R3 board. Full integration of Atmel ATmega2560 microcontroller and ESP8266 WiFi IC, with 32 Mb (megabits) of flash memory, and CH340G USB-TTL converter on a single board! All compo..

    This board is a customized version of the classic Mega R3 board. Full integration of Atmel ATmega2560 microcontroller and ESP8266 WiFi IC, with 32 Mb (megabits) of flash memory, and CH340G USB-TTL converter on a single board! All components can be set up to work together or independently. And every one of it has its own pinout headers. The convenient solution for the development of new projects requiring Uno and WiFi. Via USB you can update sketches and firmware for ATmega2560 and for ESP8266 at the same time.

    So, the board is made in the size of the original Arduino Mega controller. The ATmega2560 controller is shifted to the right side, and the ESP8266 controller is located on the left side. Above the WiFi controller is a USB connector, which is replaced with a conventional Type-B to Micro-B, and the interaction of this connector with the components of the board is via 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

     

    Switch Status and Mode Selection

    First, you need to install the board driver, or more precisely, the driver of the CH340 controller. To do this, you need to connect the board to the computer using the USB cable:

    1. Download the Windows CH340 Driver
    2. Unzip the file
    3. Run the installer which you unzipped
    4. 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

    Programming the ESP8266 WeMos-D1R2 Using Arduino Software/IDE ...

    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.

      1234five678RXD / TXD
      USB<->ATmega2560------ONON---------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.

      In the Port Monitor, you need to select a baud rate of 115200 baud, after which the test program menu should be displayed in the monitor window

      In the input field for the Port Monitor commands, enter the English letter "a" and click Submit, in response to the command, the controller will enter the blinking mode with the built-in LED for 20 seconds.

      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.

      There are no reviews for this product.

      Write a review

      Please login or register to review