Features of Arduino
- Open source based electronic programmable board (micro controller) and software (IDE)
- Accepts analog and digital signal as input and gives desired output
- No extra hardware required to load a program into the controller board
Types of Arduino Board
- Arduino boards based on ATMEGA328 microcontroller
- Arduino boards based on ATMEGA32u4 microcontroller
- Arduino boards based on ATMEGA2560 microcontroller
- Arduino boards based on AT91SAM3X8E microcontroller
Board Details
- Power supply : USB or power barrel jack
- Voltage Regulator
- LED Power Indicator
- Tx-Rx LED Indicator
- Output power, Ground
- Analog Input Pins
- Digital I/O Pins
Arduino IDE
- Arduino IDE is an open source software that is used to program the Arduino controller board
- Based on variations of the C and C++ programming language
- It can be downloaded from Arduino's official website and installed into PC
- Power the board by connecting it to a PC via USB cable
- Launch the Arduino IDE
- Set the board type and the port for the board
- TOOLS -> BOARD -> select your board
- TOOLS -> PORT -> select your port
Arduino IDE Overview
Program coded in Arduino IDE is called a SKETCH
- Verify : Checks the code for compilation errors
- Upload : Uploads the final code to the controller board
- New : Creates a new blank sketch with basic structure
- Open : Opens an existing sketch
- Save : Saves the current sketch
Sketch Structure
- A sketch can be divided into two parts :
- Loop ( )
Supported Datatype
- Arduino supports the following data types -
Int Char
Boolean Unsigned char
Byte Unsigned int
Word Unsigned long
Float Double
Array String-char array
String-object Short
Arduino Function Libraries
Input/Output Functions :
- The Arduino pins can be configured to act as input or output pins using the pinMode( ) function
Void setup ( )
{
pinMode (pin , mode);
Pin-pin number on the Arduino board
Mode - INPUT/OUTPUT
For Example, See Video ------
No comments:
Post a Comment