Arduino ATMEGA 328 Microcontroller
Arduino ATMEGA 328 Microcontroller
INTERNATIONAL JOURNAL OF INNOVATIVE RESEARCH IN ELECTRICAL, ELECTRONICS, INSTRUMENTATION AND CONTROL ENGINEERING
Vol. 3, Issue 4, April 2015
ARDUINO ATMEGA-328
MICROCONTROLLER
R.HARI SUDHAN1 M.GANESH KUMAR2 A.UDHAYA PRAKASH3 S.ANU ROOPA DEVI4 P. SATHIYA5
Student, Instrumentation and Control Engineering, Saranathan College of Engineering, Trichy, India1,2,3,4
Assistant Professor, Instrumentation and Control Engineering, Saranathan College of Engineering, Trichy, India5.
Abstract: Arduino ATMEGA-328 microcontroller has been programmed for various applications. By using the power
jack cable, arduino microcontroller has been programmed so that the execution of the program may takes place.
Various kinds of arduino board are present in the market. In this paper, Arduino UNO ATMEGA-328 microcontroller
is described in a detailed manner. Arduino software is installed in the computer and so that we can edit and upload the
program according to the applications. Mainly these arduino software supports c and c++ programming languages.
Various inputs and outputs are present in the arduino board and therefore simultaneously 8 input and output ports can
be used for various applications. Some of the applications used by using arduino boards are rotating general motor,
stepper motor, control valve open, etc.,
I. INTRODUCTION
Nearly 7, 00,000 numbers of arduinos are present in the are high level languages. Normally it has 18 number of
market. Of these, Arduino ATMEGA-328 microcontroller input and output pins.
consist of 14 input and output analog and digital pins
(from this 6 pins are considered to be a PWM pins), 6 Among those 6 pins are considered to be an analog inputs.
analog inputs and remaining digital inputs. Power jack From these analog inputs, we can be able to work the
cable is used to connect arduino board with the computer. arduino microcontroller using analog inputs supply.
Externally battery is connected with the arduino Normally analog inputs can be in the range of 0-5V.
microcontroller for the power supply. Arduino is an open Similar to that digital inputs are present in the
source microcontroller from which there is no feedback microcontroller which can act the use of microcontroller
present in the microcontroller. This arduino board consist using digital inputs. Digital inputs can be in the range of
of I2C bus, that can be able to transfer the data from 5V.
arduino board to the output devices. These arduino boards
are programmed over RS232 serial interface connections ATMEGA 328 microcontroller, which acts as a processor
with atmega arduino microcontrollers. The operating volt for the arduino board. Nearly it consists of 28 pins. From
ranges from 5v. The input voltage recommended for these 28 pins, the inputs can be controlled by transmitting
arduino microcontroller is from 7v and the maximum of and receiving the inputs to the external device. It also
12v. The DC input current given to the arduino board is in consists of pulse width modulation (PWM). These PWM
the range of 40mA. are used to transmit the entire signal in a pulse modulation.
Input power supply such as Vcc and Gnd are used. These
It consists of different types of memories such as flash IC mainly consists of analog and digital inputs. These
memory, EEPROM, SRAM. The length of the arduino analog and digital inputs are used for the process of certain
board is nearly about 68.64mm and the width of the applications.
microcontroller is about 53.4mm. The weight of the
arduino microcontroller is about 20g. We can use various
types of microcontroller such as 8 bit AVL Atmel
microcontroller and 32 bit Atmel arm microprocessor.
From these different kinds of processors, we can use those
processors for various engineering projects as well as
industrial applications. Some of the examples of using the
arduino in the industrial applications are controlling the
actuators and sensors. Some of the examples of arduino
microcontrollers are Arduino Duemilanove, Arduino
UNO, Arduino Leonardo, Arduino Mega, Arduino MEGA
2560 R3, Arduino MEGA 2560 R3, Arduino Nano,
Arduino Due, LilyPad Arduino, micro arduino. We have
already mentioned, arduino has been programmed by
Fig-1 : ARDUINO ATMEGA-328
using c and c++ programming language. These c and c++
MICROCONTROLLER
INTERNATIONAL JOURNAL OF INNOVATIVE RESEARCH IN ELECTRICAL, ELECTRONICS, INSTRUMENTATION AND CONTROL ENGINEERING
Vol. 3, Issue 4, April 2015
II. DESCRIPTION
INPUT:
ANALOG INPUT:
Arduino atmega-328 microcontroller board consist of 6
analog inputs pins. These analog inputs can be named
from A0 to A5. From these 6 analog inputs pins, we can
do the process by using analog inputs. Analog inputs can
be used in the operating range of 0 to 5V.
DIGITAL INPUT:
Digital inputs can be defined as the non continuous time Fig-3 ATMEGA-328 IC
signal with discrete input pulses. It can be represented as
0’s and 1’s. These digital inputs can be either on state or POWER JACK CABLE / USB PORT:
in off state. Arduino atmega328 microcontroller also This Arduino atmega-328 microcontroller can be
consists of 12 digital input pins. It can be stated as D0 to interfaced with the other electronic devices such as
D11. Nearly 12 inputs can be used for digital input/output computer by using USB port or power jack cable from
applications. these power jack cable, we can upload the program of
Arduino for their applications. At first, the program can be
The working of the digital input ports is where the discrete initialised or can be edited by using Arduino software
input pulses can be triggered and supplied to the ports. tools. Then these programs can be transferred through
These ports receive the input and therefore the port can be arduino microcontroller board by using usb cable or power
used for both input and output process. These digital pins jack cable.
can access only the digital inputs.
POWER SUPPLY:
ATMEGA-328 IC: There is an additional power supply source present in
This ATMEGA-328 integrated chip consists of 28 pins. It Arduino microcontroller. Power supply port is present at
consists of 6 analog inputs that are shown in the pin the corner of the arduino microcontroller. Either we can
diagram. Analog inputs can be represented as PC0 to PC5. use this power supply port by connecting with external
These analog input pins posses the continuous time signal power supply.(ie, ac power supply), or by connecting an
which acts as an analog input for the system. Further it dc power supply through input pins. These power supplies
also consists of 12 digital inputs. produce an active form to the arduino microcontroller.
These arduino microcontrollers can accept a range of
It can be represented as PD1 to PD11 which act as an power supply. When the power supply voltage range
digital input ports based on pulse width modulation exceeds, the microcontroller gets damaged. Hence, only
(PWM). These PWM, which transmits the signal in the the particular range of power supply should be given to the
form of discredited form. Both analog and digital input arduino microcontroller.
ports can be used for various applications for the input
power supply, VCC and GND pins are used. Pins PB6 and III. WORKING PRINCIPLE
PB7, which acts as a crystal to generate a clock signal. By
The working of arduino microcontroller is where the
using these crystal, we can generate the clock signals and
proper connection is made. Checking all the input ports as
by these clock signals, we can use this clock signals for
well as the power supply connection. The output of the
input sources. pins can be connected with the external devices according
to their applications. The program to be executed for the
PC6 pin are the one where it can be used for the reset applications can be done by using arduino software. From
option. Resetting the program can be done by using this this arduino software, we can edit according to the
PC6 pin. applications. This software can works on c and c++
programming language. It is fully a high level language.
The pin diagram of atmega-328 microcontroller can be By using the conditions of working, we can create a
shown below.
INTERNATIONAL JOURNAL OF INNOVATIVE RESEARCH IN ELECTRICAL, ELECTRONICS, INSTRUMENTATION AND CONTROL ENGINEERING
Vol. 3, Issue 4, April 2015
program to proceed for the applications. Then after, these clockwise or an anticlockwise direction. By using these
programs can be uploaded through the arduino Arduino microcontrollers, we can controller speed,
microcontroller by using the power jack cable. The direction and also the number of steps of a motor.
program can be uploaded to the microcontroller and ready Likewise these arduino microcontrollers can be used for
for further process. ATMEGA-328 microcontroller can many numbers of applications.
saves a program and these IC can acts as a processor to do
the process without any error. After by giving an analog or IV. CONCLUSION
digital input to the system, we can do the process Thus, the Arduino ATMEGA 328 microcontroller can be
according to the applications. We can control the process used for various applications such as industrial and
of the application by editing the program in the arduino laboratory applications. These Arduino ATMEGA 328
software and again can be uploaded to the arduino microcontrollers are the most suitable microcontroller for
microcontroller via power jack cable. There is an option of the robotic applications. These Arduino ATMEGA 328
reset button. The purpose of reset button is to reset the microcontrollers can be widely used in automation process
program which means the previous programs are deleted industries.
and we can use the arduino for the other application
purposes. Likewise, these arduino ATMEGA-328 REFFERENCES
microcontrollers can be used for n number of applications. [1] Automatic gas valve control system using aurdino hardware-T.K.
These arduino microcontrollers are widely used in Sethuramalingam and M. Karthighairasan “Bonfring International
Journal of Power Systems and Integrated Circuits Vol 2, No 3,
automation industries for controlling the process and to September 2012.
work the system in an automation mode. [2] Aurdino- Wikipedia.
[3] Programming Aurdino Getting started with sketches- McGraw Hill
Nov 8, 2011.
Here, I have provided a simple arduino program to do the
[4] Aurdino source code.
process of rotating a stepper motor for one revolution. [5] ArduinoPhone. Instructables.com (2013-07-17). Retrieved on 2013-
There are many number of example programs that are 08-04.
present in the arduino software. We can edit these
programs for our applications purposes. The example
program can be given below.
PROGRAM
Stepper Motor Control - one revolution
This program drives a unipolar or bipolar stepper motor.
The motor is attached to digital pins 8 - 11 of the
Arduino. The motor should revolve one revolution in one
direction, then one revolution in the other direction.