Arduino

How & Why to use Arduino | How to program an arduino

How to program an arduino board.This is the quick tutorial about arduino code basics.A step by step arduino uno tutorial for leaning arduino for beginners.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 was annoying. So with every problem, there is also a solution exists just we need to find it.So here we will learn to code for arduino.
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.As i didn’t know how to programm an arduino.It is much easier than any other board.We can Code for Arduino board with basic knowledge of C programming, we can make any of project easily using Arduino
So let’s start learning arduino for beginners with some basic concepts, Some theoretical concepts we must have to know before moving towards practical work.

See Also:

How to use LM35 Temperature Sensor with Arduino

How to use IR sensor with Arduino

How to use Ultrasonic Sr04 With Arduino

00Contents:

  1. Arduino Board Basic functions
  2. Types of Arduino Boards
  3. Learning Arduino uno
  4. Programming structure to code for Arduino
  5. Arduino coding Software
  6. Why we use Arduino board

Learning Arduino for beginners

01Arduino Board basic functions:

  • It’s a micro controller board.It has a USB port to communicate with PC and an Atmel micro controller 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.

02Types of Arduino boards:

There are different Arduino Boards available to code for arduino 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

How to program an Arduino

03Learning Arduino Uno:

Learning arduino for beginners 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.

uno pinout

 

Arduino code basics

04Programming structure to code for arduino:

How to program an arduino.To code for arduino there is a very simple line of structure.

Void setup(){}

Used to indicate the initial values of the system on starting.
The inputs/Outputs declaration
Void loop(){}
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.

Arduino how to program

05Arduino Coding software:

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.

06Why we use Arduino:

Arduino board is the easiest way to control any system.The common reason behind using Arduino board is the programming of Arduino the way and how to program an arduino.We can easily code for 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.
This is the quick learning tutorial about learning arduino for beginners and how to program an arduino.We will discuss the Arduino coding example 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.
Tags

mak

Mechatronics Engineer-Solution Architect-Entrepreneur. Being Average isn't a choice.Keep working-Stay motivated & always have faith on yourself.

Related Articles

Leave a Reply

Back to top button
Close
Close