0% found this document useful (0 votes)
3K views

Arduino MEGA 2560 With WiFi Built in ESP8266 PDF

This document discusses an Arduino Mega board that has an ESP8266 WiFi module built into the board. This allows the board to connect to WiFi networks without needing an external ESP8266 module. The board has a switch to select between using the ESP8266 or the Arduino Mega microcontroller. Examples are given of using the board to control relays for home automation over WiFi, either by connecting an external ESP01 module or using the built-in ESP8266. Instructions are provided on setting up the Arduino IDE to program the board and use the ESP8266.

Uploaded by

DavidEsajas
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3K views

Arduino MEGA 2560 With WiFi Built in ESP8266 PDF

This document discusses an Arduino Mega board that has an ESP8266 WiFi module built into the board. This allows the board to connect to WiFi networks without needing an external ESP8266 module. The board has a switch to select between using the ESP8266 or the Arduino Mega microcontroller. Examples are given of using the board to control relays for home automation over WiFi, either by connecting an external ESP01 module or using the built-in ESP8266. Instructions are provided on setting up the Arduino IDE to program the board and use the ESP8266.

Uploaded by

DavidEsajas
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

instructables

Arduino MEGA 2560 With WiFi Built-in - ESP8266

by Fernando Koyanagi

In today's text, we discuss an Arduino that I consider Let’s move onto how this Arduino works, and let's do
extremely special, as it has an ESP8266 embedded an assembly that shows when you should select ESP
in its board. It doesn’t have the ESP12 soldered onto or Mega to perform a home automation. With this, we
the board. Instead, it has the Espressif chip. So, on can turn lamps on and off, which is a mechanism that
the board you have the built-in Tensilica chip with can be very useful for you to make improvements in
4MB of memory, along with the ATmega2560, which your house.
is the traditional Arduino Mega.

https://youtu.be/Yj5apiv4wcE

Step 1: Physical Characteristics of the Board

I really like that this Arduino has a Pigtail connector This board also has a selector switch that allows the
for an antenna. Why is this good? If you connect an ESP to interleave the connection between TX0 and
antenna on this device, you will have a huge benefit, TX3, remembering that the ATmega has four serials.
as it will increase your reach, straight from 90 meters A second selector switch is the DIP Switch, and we
to 240 meters away. I came to this conclusion after a also have a key recording mode of the ESP8266. All
test I did, so I did not have to rely solely on the the pinning is completely compatible with the
datasheet manual. ATmega pinout.

Arduino MEGA 2560 With WiFi Built-in - ESP8266: Page 1


Step 2: Access to ESP8266 Pins

Here, I show the back of the board, where there is a table that displays access to the ESP pins.

Arduino MEGA 2560 With WiFi Built-in - ESP8266: Page 2


Step 3: Comparing the Two Arduinos

Here, we have a comparison between the Mega We can see, then, that the intention of the RobotDyn
Arduino with the integrated ESP (Arduino Mega creaters was to maintain the architecture of the
RobotDyn) and the traditional Mega Arduino (Arduino ATmega.
Mega 2560). We can see that they are similar, but in
the 2560, we have the USB printer, which is a large As we see in the table above, the ATmega has 32MB
connector. However, in the RobotDyn, we have the of memory, not counting the ESP memory. This is
mini-USB. I particularly like the more compact option, wonderful, since the traditional Mega Arduino has
but the power is the same in both. only 256kb of memory. The power in the RobotDyn is

7 to 12 volts, and the ESP8266 is already powered, The processors are the same, 16MHz, and one great
and already has a voltage reducer. So, feeding the advantage of these models is the high amount of IOs.
Arduino is already feeding the ESP, which is already
down to 3v3, and internally that microcontroller is
already 3v3.

Step 4: Switch Status and Mode Selection

We have here the DIP Switch and a table with In the image below, we zoomed in on the key that
several positions. These help in the connections, changes the serial port of the Arduino Mega. This
depending on your objective. One essential detail is connects to the ESP, and also in the key Mode,
that if you are writing Flash in ESP, you have to be requiring that we must press the ESP8266 to record.
aware of addresses that are even slightly different.

Arduino MEGA 2560 With WiFi Built-in - ESP8266: Page 3


Step 5: AT Firmware Installation

If you want to use ESP8266 in AT mode, download SPI Speed = 80MHz


the PDF file. You should now configure the card so
that the ESP8266 is connected to the USB and in SPI Mode = DIO
recording mode. To do this, set switches 5, 6, and 7
to ON (left) and all other switches to OFF (right). Flash Size = 32Mbit 4mb bytes x 8 bits = 32m bits

If you want to use ESP8266 in AT mode, you should Crystal Freq = 26M
configure the Flash Download Tool as follows:

File\bin\esp_init_data_default.binataddress0x3fc000 File\bin\at\512+512\user1.1024.new.2.binataddress0x
1000
File\bin\blank.binataddress0x37e000

File\bin\boot_v1.4(b1).binataddress0x00000

Step 6: Verifying AT Firmware

In this part, I used esptool.exe, which is a command tool that accesses the ESP8266 Flash and checks for some
settings, such as the chip type and memory size.

Arduino MEGA 2560 With WiFi Built-in - ESP8266: Page 4


Step 7: Example

In this example we show the hexadecimal addresses we use to write with the Flash Download Tool.

Also, for those who do not have much experience with the ESP8266, I suggest two of my previous videos:
Recording in ESP01 and Introduction to ESP8266.

Step 8: Configure Arduino IDE Environment

To record the Arduino, there is no mystery at all. You only need to set up the Mega Arduino 2560 board as if it
were a traditional Arduino.

Arduino MEGA 2560 With WiFi Built-in - ESP8266: Page 5


Step 9: Arduino Mega With Relays Using Esp8266 Separate Board

We have here the assembly scheme that I perform in the video. We connected the Arduino Mega to the ESP01
and controlled two relays for one application.

Step 10: Arduino Mega With Built-in Esp8266

Here, we do the same thing mentioned above, but while using the Arduino Mega with integrated ESP. One tip is
that you watch the video entitled Residential Automation with Arduino Mega and ESP8266 for more details about
this subject.

Arduino MEGA 2560 With WiFi Built-in - ESP8266: Page 6

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy