Arduino is an open-source platform in electronics based on hardware and software. Arduino is a microcontroller board which can be used in developing digital devices that can read inputs like touch on a screen, light on a LDR sensor and for controlling motors etc.
Types of Arduino:
There are various types of Arduino boards that are available in the market. These are:
- Arduino UNO
- Arduino Mega
- Arduino Leonardo
- Arduino Nano
- Arduino Micro
- Red Board
- LilyPad Arduino
These Arduino boards are used in different projects and we can choose according to our need.
Importance of Arduino:
Arduino allows users to creating objects that can take inputs from different sensors such as touch sensor, IR sensor, Rain sensor etc. Also we can control outputs like led’s, motors, or actuators.
Arduino IDE:
Arduino ide is a software offered by Arduino itself that allow us to write our code and create projects. Arduino IDE support the language C and C++. We can write our code in Arduino ide and upload to Arduino by clicking upload button.
There are two sections in Arduino ide to write our code:
- void setup()
- void loop ()
Void setup() is a function that we can create at the beginning of each program. The code should be written Inside the curly brackets, the code inside the void setup() will run for once as the program starts running. You can set things like pinMode and initialize Serial monitor in this section.
Void loop() is another function of Arduino code structure. The code should be written Inside the curly brackets. The code inside the loop function runs over and over until Board is turned on.