Professional Documents
Culture Documents
Report Ee21 PDF
Report Ee21 PDF
6 TOOLS REQUIRED
6.1 For PCB designing part:
1) Soldering Iron
2) Solder wire
3) Small needle plier
4) Small cutter
5) Wire striper
3) POTENTIOMETER: A potentiometer is a
variable resistor. It has three pins one for
output (wiper) and the other two for power and
ground.
Potentiometers work by having a resistive ele-
ment inside. Both end terminals are attached to
it, and do not move. The wiper travels along the
strip when the knob is turned. The closer the
wiper is to the end terminal, less the resistance,
because the path of the current will be shorter.
The further away it moves from the terminal,
Fig. 2: SEVEN SEGMENT DISPLAY the greater will be the resistance.
Fig. 5: Potentiometer
9.1 CIRCUIT DESIGN SECTION I have used c programming and arduino program-
7 a-g pins of the one segment are connected to ming language. I have written the program step by
the same one of the other segment. COM- pins of step:
each display are connected to the 220 ohm resistors
and then to the digital output pins of the Arduino 1) For single digit common cathode display
as shown in figure. The 7 a-g pins of one segment void setup()
is connected to the 0-6 digital output pins of the {
Arduino. The push button has been used for the pinMode(2,OUTPUT);
reset purpose, Pin A0 has been used for the INPUT pinMode(3,OUTPUT);
given by push button. The A1 and A2 analog read pinMode(4,OUTPUT);
pins are used for the potentiometer, they are used pinMode(5,OUTPUT);
pinMode(6,OUTPUT);
to change the value of minute and hour as per our pinMode(7,OUTPUT);
desire, instead of resetting the clock. pinMode(8,OUTPUT);
pinMode(9,OUTPUT);
pinMode(10,OUTPUT);
}
void display(int N)
{
A=N%2;
N=N/2;
B=N%2;
N=N/2;
C=N%2;
D=N/2;
a=C&&!B&&!A||!D&&!C&&!B&&A;
b=C&&!B&&A||C&&B&&!A;
c=!C&&B&&!A;
d=!D&&!C&&!B&&A||C&&!B&&!A||C&&B&&A;
e=C&&!B||A;
f=!D&&!C&&!B&&A||B&&A||!C&&B&&!A;
g=C&&B&&A||!D&&!C&&!B;
}
void loop()
{
if(x==10)
{
x=0;
display(x);
}
Fig. 7: BLOCK DIAGRAM (Not scaled to pin else
configuration) {
display(x);
}
x=x+1;
digitalWrite(2,!a);
digitalWrite(3,!b);
digitalWrite(4,!c);
digitalWrite(5,!d);
digitalWrite(6,!e);
digitalWrite(7,!f);
digitalWrite(8,!g);
digitalWrite(9,HIGH);
digitalWrite(10,LOW);
5
digitalWrite(0,HIGH);
digitalWrite(8,HIGH);
digitalWrite(9,HIGH);
digitalWrite(10,HIGH);
digitalWrite(11,HIGH);
digitalWrite(12,HIGH);
digitalWrite(P,LOW);
digitalWrite(7,!a);
digitalWrite(6,!b);
8
digitalWrite(5,!c); else{
digitalWrite(4,!d); dec=-1;}
digitalWrite(3,!e);
digitalWrite(2,!f);
digitalWrite(1,!g); dec++;
ti++;
while(1<10){ }
cou=millis() ;
if(cou-tcou>=T)
break;
} }
tcou=cou;
12 FUTURE WORK
In future we can change the clock format from 24
hour to 12 hour A.M/P.M format and also we can
make few changes in the code and use it to display
the date(mm/dd/yyyy format) in LCD.