Getting started with Arduino microcontroller
I remember there was a time when we use other micro controllers for our projects. Believe me, that was really difficult time.Rather difficult it was actually time-consuming.Making PCB’s and burning code with the separate burner.That is little annoying. So with every problem, there is also a solution exists just we need to find it.I remember when my teacher suggested me to buy an Arduino board. when the first time I bought an Arduino I thought it would be difficult to program as other micro controllers.It is much easier than any other board.We can Code Arduino board with basic knowledge of C programming, we can make any of project easily using Arduino
So let’s start with some basic concepts, Some theoretical concepts we must have to know before moving towards practical work.
Basic Functions of Arduino Board:
- It’s a microcontroller board.It has a USB port to communicate with PC and an Atmel microcontroller chip.
- It simplifies the process of creating any control system by providing the standard board that can be programmed and connected to the system without the need to any sophisticated PCB design and implementation.
- An open source hardware, any one can get the details of its design and modify it.
- (16 Mhz) frequency with (32k) memory.
- 6 Channel 10 bit Analog to Digital PWM.
There are different Arduino Boards available with different specifications.These boards can be used with the project requirements.The following are some Arduino boards.
- Arduino Uno R3
- Arduino Mega
- Arduino LilyPad
- Arduino Nano
- Arduino BT
- Arduino Mini
The most commonly used Arduino board is Arduino Uno.It has 15 Digital and 6 Analog pins.The analog pins are used for inputs and Digital for output.Every instruction is printed on the board so we don’t need to worry about how much power we need to plug on.We can connect 9 volts battery source to the given power input jack or we can use USB power source.Analog inputs are given and inbuilt ADC will give an output on digital pins.The PWM pins are marked on the board.The PWM, pulse width modulation pins are used for controlling the speed of the motor or generating specific square wave etc.
Arduino Board Programming Structure:
Used to indicate the initial values of the system on starting.
The inputs/Outputs declaration
It repeats the function to perform.
The Connected pins are defined before setup and in setup, we set these pins as input or output.both can also be done in the setup.
In the loop, we use basic methods of programming as we do in C.
Download the Arduino IDE from Arduino website.it’s free.
After easy installation opens the software and connects your Arduino board to any USB port.
On top of the Arduino IDE:
Go to the Tools>Boards and set Arduino Uno board if you have Arduino Uno.
Go to Port the port appears with the Arduino name like COM3 (Arduino Uno) and select that.if, not that means the board is not connected to the port or there are some driver issues in the installation of Arduino software.
Go to the Examples> Basics>Blink
After that click the first button on top to verify the code and then press next to it the upload button.
Now your code will be uploaded to the board.If there is any error it will be shown in the bottom window.
The led starts blinking on the board that shows the code is running.
Why we use Arduino Board:
Arduino board is the easiest way to control any system.The common reason behind using Arduino board is the programming of Arduino.We can easily code in Arduino, Even a child can code using Arduino board.Arduino is the open source platform for creating academics projects related to Engineering electrical and electronics studies or any sort of DIY project.We can easily implement sensor and observe the response in real time.We can implement any sort of module and run any motor or control any application like Robot, Quadcopter etc.There are millions of Arduino projects available out there for students and hobbyists. So the final words are the Arduino is easy to understand easy to accessible and easy to code.
We will discuss the Arduino coding in coming Tutorials.The best way to learn Arduino is doing the projects.So we will cover more and more interesting projects in coming posts.
If you have any query then comment below and Subscribe To our YouTube Channel for Video Tutorials.