Arduino Atmega-328 Microcontroller
Arduino Atmega-328 Microcontroller
Arduino Atmega-328 Microcontroller
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.,
KEYWORDS: ATMEGA 328, Aurdino, computer applications, Microcontroller
I.
INTRODUCTION
Nearly 7, 00,000 numbers of arduinos are present in the
market. Of these, Arduino ATMEGA-328 microcontroller
consist of 14 input and output analog and digital pins
(from this 6 pins are considered to be a PWM pins), 6
analog inputs and remaining digital inputs. Power jack
cable is used to connect arduino board with the computer.
Externally battery is connected with the arduino
microcontroller for the power supply. Arduino is an open
source microcontroller from which there is no feedback
present in the microcontroller. This arduino board consist
of I2C bus, that can be able to transfer the data from
arduino board to the output devices. These arduino boards
are programmed over RS232 serial interface connections
with atmega arduino microcontrollers. The operating volt
ranges from 5v. The input voltage recommended for
arduino microcontroller is from 7v and the maximum of
12v. The DC input current given to the arduino board is in
the range of 40mA.
DOI 10.17148/IJIREEICE.2015.3406
27
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.
Analog signal is considered as the continuous time signal,
from which these analog signal can be used for certain
applications. These are also called as non discrete time
signal.
Fig-3 ATMEGA-328 IC
POWER SUPPLY:
There is an additional power supply source present in
Arduino microcontroller. Power supply port is present at
the corner of the arduino microcontroller. Either we can
use this power supply port by connecting with external
power supply.(ie, ac power supply), or by connecting an
dc power supply through input pins. These power supplies
produce an active form to the arduino microcontroller.
These arduino microcontrollers can accept a range of
power supply. When the power supply voltage range
exceeds, the microcontroller gets damaged. Hence, only
the particular range of power supply should be given to the
arduino microcontroller.
III.
WORKING PRINCIPLE
The working of arduino microcontroller is where the
proper connection is made. Checking all the input ports as
well as the power supply connection. The output of the
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.
Copyright to IJIREEICE
DOI 10.17148/IJIREEICE.2015.3406
28
[2]
[3]
[4]
[5]
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.
#include <Stepper.h> const int steps Per Revolution = 200;
// change this to fit the number of steps per revolution for
your motor
// initialize the stepper library on pins 8 through 11:
Stepper my Stepper (steps Per Revolution, 8,9,10,11);
void setup()
{
// set the speed at 60 rpm: my Stepper. Set Speed(60);
//
initialize the serial port: Serial. begin(9600);
}
Void
loop()
{
// step one revolution
in one direction:
Serial. println("clockwise"); my Stepper. step(steps Per
Revolution);delay(500);
// step one revolution in the other direction:
Serial. println("counter clockwise"); my Stepper. Step (steps
Per
Revolution);
delay
(500);
}
From the above program, the Arduino can produce a
digital input signal to the stepper motor. The stepper motor
which in turn receives the signal from the arduino
microcontroller and therefore it can rotate either in
Copyright to IJIREEICE
DOI 10.17148/IJIREEICE.2015.3406
29