0% found this document useful (0 votes)
286 views7 pages

Arduino Mega 2560 Wifi BT User Manual

This document provides instructions for operating an Arduino Mega 2560 WiFi BT board with multiple modules. It describes the different operating modes selected using DIP switches and their functions. It also provides steps for configuring the Arduino IDE to program the ESP8266 module, including selecting the board and upload speed settings. An example test sketch is given to control an LED using AT commands sent over Serial3 to the ESP8266 module.

Uploaded by

Muhammed Saeed.m
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
286 views7 pages

Arduino Mega 2560 Wifi BT User Manual

This document provides instructions for operating an Arduino Mega 2560 WiFi BT board with multiple modules. It describes the different operating modes selected using DIP switches and their functions. It also provides steps for configuring the Arduino IDE to program the ESP8266 module, including selecting the board and upload speed settings. An example test sketch is given to control an LED using AT commands sent over Serial3 to the ESP8266 module.

Uploaded by

Muhammed Saeed.m
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

ARDUINO MEGA 2560 WIFI BT

USER MANUAL
Operating mode is selected by means of DIP switches on-board:

Switch status and mode selection:

1 2 3 4 5 6 7 8
CH340 connect to ESP8266 OFF OFF OFF OFF ON ON ON No USE
(upload sketch)
CH340 connect to ESP8266 OFF OFF OFF OFF ON ON OFF No USE
(connect)
CH340 connect to ATmega2560 OFF OFF ON ON OFF OFF OFF No USE
(upload sketch)
CH340 connect to Mega2560 ON ON ON ON OFF OFF OFF No USE
COM3 connect to ESP8266
Mega2560+ESP8266 ON ON OFF OFF OFF OFF OFF No USE
All modules work independent OFF OFF OFF OFF OFF OFF OFF No USE

Also, have switch for change of connecting port between ATmega2560 and ESP8266

After choosing the mode of the board can proceed to set up the IDE
It is important that when the ESP8266 module is programming, it is necessary to press the button
“Mode”
To begin open the Arduino IDE programming environment and go to settings

Then in the window that appears in the row, Additional Boards Manager URLs additional scripts that
would work with the modules ESP8266 and click OK

Then go to the Tools> Board> Boards Manager


In the window that appears, scroll through the list down to the script esp8266 by ESP8266 Community
and click

In the lower right corner will be able to select the version of the software, select the version 2.1.0
(the newest) and click the Install button
After installation, close the window and go to Tools> Board and see the list of available devices on the
chip programming ESP8266

Next, you need to select the card as shown in the picture (Generic ESP8266 module)
Select the upload speed - 115200

==========test sketch for ATmega2560===========


void setup()

{
Serial3.begin (115200);
pinMode (13,OUTPUT);
delay (500);
Serial3.println ("AT+CIPMUX=1");
Delay (2000);
Serial3.println ("AT+CIPSERVER=1,5000");
delay(2000);
Serial3.println ("AT+CIPSTO=3600");
Delay (2000);
}
void loop()
{
While (Serial3.available())
{
char Rdata;
Rdata=Serial3.read ();
If (Rdata=='A'|Rdata=='a')
{
digitalWrite (13,HIGH);

delay (50);
}
else if(Rdata=='B'|Rdata=='b')
{
digitalWrite (13,LOW);
delay (10);
digitalWrite( 13,HIGH);
delay (10);
digitalWrite (13,LOW);
}
else
{
digitalWrite (13,LOW);

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