INTRODUCTION
INTRODUCTION
INTRODUCTION
Q. What is Arduino?
• Arduino is an open-source electronics platform based on easy-to-use hardware and
software.
• It is the Open-Source Hardware board created in Ivrea, Italy in 2005 by Massimo Banzi &
David Cuartielles.
• The Arduino ecosystem is consisting of the hardware, software tools (Arduino IDE), and the
Arduino programming language.
• Arduino Hardware consists of a small board which is able read the input values from
different sensors and is able to drive different output load.
Arduino Specification
Hardware Wiring
• The Arduino IDE has a built-in serial monitor that makes it easier to send and to receive data
from computer.
• This also helps to debug and develop your Arduino code.
• An Arduino board needs to be plugged into your computer in order for the serial monitor to
function.
• Open the serial monitor by clicking on the button in the upper right of your Arduino window.
Syntax: -
Serial.begin(9600);
Example: -
The 9600 is the baud rate for serial communication with the computer.
2. available (): -
Get the number of bytes (characters) available for reading from a software serial port.
This is data that has already arrived and stored in the serial receive buffer.
Syntax: -
Serial.available();
Example: -
4. read()
Syntax: -
Serial.read();
Example: -
5. SoftwareSerial()