ARDUINO IDE :
The Arduino Integrated Development Environment (IDE) is a
software application used to write, compile, and upload code to
Arduino microcontroller boards. Here's a detailed overview of
the Arduino IDE:
Graphical User Interface (GUI):
The Arduino IDE features a user-friendly graphical interface
designed to simplify the process of writing and uploading code.
It consists of various panels and windows, including the main
code editor, toolbar, message console, and status bar.
Code Editor:
The central component of the Arduino IDE is the code editor
where users write their Arduino sketches (programs).
The editor provides syntax highlighting, auto-indentation, and
code completion features to assist with writing code.
Arduino sketches are written in C/C++ programming language,
although the IDE abstracts many complexities to make it more
accessible to beginners.
Toolbar:
The toolbar contains buttons for common actions such as
compiling, uploading, verifying code, opening sketches, and
saving sketches.
It also includes options to select the Arduino board type,
communication port, and serial monitor settings.
Message Console:
The message console displays feedback messages, compilation
errors, warnings, and status updates during code compilation
and uploading.
It provides information about the progress of the compilation
process and highlights any errors or warnings that need
attention.
Status Bar:
The status bar at the bottom of the IDE displays information
about the current state of the Arduino IDE, such as the version
number, line and column number in the code editor, and
memory usage.
Sketches:
In the Arduino IDE, code files are referred to as "sketches."
A sketch typically consists of two main functions: setup()
and loop(). The setup() function is called once when the
Arduino board starts, while the loop() function runs
continuously in a loop after the setup() function completes.
Users can create, open, save, and manage sketches directly
within the IDE.
Library Manager:
The Arduino IDE includes a library manager that allows users to
easily install and manage libraries (collections of pre-written
code) for additional functionalities.
Users can search for libraries, install new libraries, and update
existing ones through the Library Manager interface.
Serial Monitor:
The Arduino IDE provides a built-in serial monitor tool that
allows users to communicate with the Arduino board via serial
communication.
It enables users to send data to the Arduino board and receive
data from it, making it useful for debugging and monitoring
applications.
Board Manager:
The Board Manager feature allows users to install and manage
board definitions for different Arduino-compatible boards.
Users can select their target Arduino board from a list of
supported boards and specify the appropriate processor, clock
frequency, and other parameters.
Preferences:
The Preferences menu in the Arduino IDE allows users to
customize various settings such as font size, theme (dark or
light), language, and additional board manager URLs.
CODE :
#include <LiquidCrystal.h>
LiquidCrystal lcd(7, 6, 5, 4, 3, 2);
#include "DHT.h"
#define DHTPIN 8
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE);
const int sensor1 =10 ;
void setup()
{
[Link](16, 2);
pinMode(sensor1, INPUT);
pinMode(8, INPUT);
[Link]();
pinMode(13,OUTPUT);
pinMode(11,OUTPUT);
pinMode(12,OUTPUT);
[Link]();
}
void loop()
{
[Link]();
[Link](1, 0);
[Link]("Solar-Powered");
[Link](4, 1);
[Link]("Mobile");
delay(1000);
[Link]();
[Link](2, 0);
[Link]("Health Clinic");
[Link](7, 1);
[Link]("For");
delay(1000);
[Link]();
[Link](5, 0);
[Link]("Social");
[Link](2, 1);
[Link]("Development");
delay(1000);
[Link]();
float humidity = [Link]();
float temperature = [Link]();
[Link](0, 0);
[Link]("Temp: ");
[Link](temperature);
[Link](" C");
[Link](0, 1);
[Link]("Humidity: ");
[Link](humidity);
[Link](" %");
delay(1000);
if(temperature>30){
digitalWrite(9,HIGH);
[Link]();
[Link](0, 0);
[Link]("Abnormality in");
[Link](3, 1);
[Link]("Temperature");
}
if(humidity<50){
digitalWrite(10,HIGH);
}
delay(2000);
[Link]();
int sensor11 = digitalRead(sensor1);
[Link](0, 0);
[Link]("Cough:");
delay(2000);
// [Link](sensor11);
if(sensor11==1){
[Link]();
[Link](8,0);
[Link]("Detected!!");
delay(1000);
[Link](2,1);
[Link]("Consult Doctor !");
digitalWrite(11,HIGH);
delay(2000);
}
else
{
[Link]();
[Link](6, 0);
[Link]("Undetected..");
digitalWrite(11,LOW);
delay(2000);
[Link]();