Professional Documents
Culture Documents
A Practical Activity Report Submitted For Engineering Design Project-II (UTA-014) by
A Practical Activity Report Submitted For Engineering Design Project-II (UTA-014) by
by
Submitted to
INDIA
July-Dec 2020
Experiment: 3
Objective: To make a 4 bit counter.
Theory:
1.ARDUINO UNO: The Arduino Uno is an open-source microcontroller board based on
the Microchip ATmega328P microcontroller . The board is equipped with sets of digital and
analog input/output (I/O) pins that may be interfaced to various expansion boards (shields)
and other circuits.[1] The board has 14 digital I/O pins (six capable of PWM output), 6 analog
I/O pins, and is programmable with the Arduino IDE (Integrated Development Environment),
via a type B USB cable.
2.LED: A light-emitting diode (LED) is a semiconductor light source that emits light
when current flows through it. Electrons in the semiconductor recombine with electron holes,
releasing energy in the form of photons.
Coding:
int pin1=13;
int pin2=12;
int pin3=11;
int pin4=10;
void setup()
pinMode(pin1, OUTPUT);
pinMode(pin2, OUTPUT);
pinMode(pin3, OUTPUT);
pinMode(pin4, OUTPUT);
}
void loop()
int a,b,c,d;
for(int j=0;j<16;j++)
{ int i=j;
a=i%2;
i=i/2;
b=i%2;
i=i/2;
c=i%2;
i=i/2;
d=i%2;
i=i/2;
digitalWrite(pin 1,d);
digitalWrite(pin2 ,c);
digitalWrite(pin3 ,b);
digitalWrite(pin4 ,a);
delay(1000);
}
Discussion:
In this experiment, we have learnt how make a 4 bit counter using LED’S and Arduino board.