0% found this document useful (0 votes)
42 views

Software Description 1.1.1 ARDUINO IDE

The Arduino IDE is an open-source software used to write and upload code to compatible development boards. It contains a text editor, libraries, and tools to compile and upload code. Programs written in the IDE are called sketches and are saved with a .ino extension. The IDE supports C/C++ and board-specific libraries allow programming of boards like NodeMCU. The NodeMCU can be programmed using the Arduino IDE by adding its libraries and adjusting baud rate and port settings to match the board's specifications. Code is written in C/C++ and uploaded serially to the NodeMCU to control devices over WiFi using MQTT.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views

Software Description 1.1.1 ARDUINO IDE

The Arduino IDE is an open-source software used to write and upload code to compatible development boards. It contains a text editor, libraries, and tools to compile and upload code. Programs written in the IDE are called sketches and are saved with a .ino extension. The IDE supports C/C++ and board-specific libraries allow programming of boards like NodeMCU. The NodeMCU can be programmed using the Arduino IDE by adding its libraries and adjusting baud rate and port settings to match the board's specifications. Code is written in C/C++ and uploaded serially to the NodeMCU to control devices over WiFi using MQTT.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

CHAPTER 3

SOFTWARE DESCRIPTION

1.1.1 ARDUINO IDE:

3.8.1.1 Introduction

The open-source Arduino Software (IDE) is used to ease the process of writing
code and upload it to any developmental board compatible with this software. It
can run on Windows, Mac OS X, and Linux. The Integrated Development
Environment is written in Java and the execution is based on Processing projects. It
contains a text editor for writing code, a message area, a text console, a toolbar
with buttons for common functions and a series of menus. It connects to the
developmental board hardware in order to upload programs and communicate with
them.

3.8.1.2 Scripting

The programs that are written in the IDE are generally referred to as sketches; they
are written in the text editor region provided in the IDE; like any text editor they
support all the common and basic functionalities. The scripts are generally saved
with an extension of “.ino”. The IDE provides provision for compiling and
verifying the code before uploading the code to the hardware of the board that is
used. Sketchbook is the concept used by the Arduino IDE. It is a standard place
wherein the user can review his most recent scripts and access the same.

3.8.1.3 Uploading

While uploading the code to the hardware it is mandatory to ensure that proper port
is selected and baud rate is accepted by the hardware. The data is generally
transmitted in a serial fashion. There is a provision for visualizing the transferring
and displaying the data given to the hardware by using Serial Monitor. Depending
on the board’s hardware proper baud rate must be selected.

3.8.1.4 Language

Most of the boards are supported by the arduio IDE owing to the inputs from the
vast community. Each board has its own specific sets of libraries that can be
downloaded directly from the IDE. The language that is used in programming the
IDE is normal C/C++. Most of the standard C/C++ libraries will function in the
IDE with exception of a few; this depends on the hardware specifications of the
board connected and the RAM capability.

The NodeMCU can be programmed using the Arduino IDE by downloading a


specific set of libraries for the same. The baud rate and the port specification of
the IDE is changed in accordance with the hardware specification of NodeMCU
and program is uploaded in a serial fashion into the board. The program is written
in standard C/C++ language along with the library supporting MQTT
functionality.
All the standard MQTT protocol methods are supported on NodeMCU.

2.1 NodeMCU Code via Arduino IDE

To code NodeMCU via Arduino IDE, the NodeMCU needs to be added to


Arduino IDE library first by adding this address to Arduino IDE preferences.
After this reference is added to Arduino IDE, download nodeMCU to boards
manager and then select NodeMCU 1.0 (ESP- 12E Module). After nodeMCU
is added to Arduino IDE library, upload this code with changing hotspot name
and password also token code. Shown in figure 6.
Figure 6. Setting up NodeMCU in Arduino IDE
Figure 7 shows the NodeMCU code. The code includes the hotspot name and
password match with the android. The code does not need to identify the relay
input, as it is included in [Blynk.run();]. When auth (autho token) is given by
Blynk application sent as email and SSID is the name of smart phone hotspot.
Figure 7. NodeMCU Code

You might also like