A fourteen - segment display is a type of display based on 14 segments that can be turned on or off to produce
letters and numbers.
14 segment display name in proteus...
4 digit 14 segment display name in proteus.
complete circuit diagram ....
complete code for$ digit Fourteen-segment display interface....
int a=1; int b=2; int c=3; int d=4; int e=5; int f=6; int k=7; int m=8; int n=9; int p=10;
int r=11; int s=12; int t=13; int u=14; int e1=15;int e2=16; int e3=17; int e4=18;
void setup() {
// put your setup code here, to run once:
pinMode( a,OUTPUT);
pinMode( b,OUTPUT);
pinMode( c,OUTPUT);
pinMode( d,OUTPUT);
pinMode( e,OUTPUT);
pinMode( f,OUTPUT);
pinMode( k,OUTPUT);
pinMode( m,OUTPUT);
pinMode( n,OUTPUT);
pinMode( p,OUTPUT);
pinMode( r,OUTPUT);
pinMode( s,OUTPUT);
pinMode( t,OUTPUT);
pinMode( u,OUTPUT);
pinMode( e1,OUTPUT);
pinMode( e2,OUTPUT);
pinMode( e3,OUTPUT);
pinMode( e4,OUTPUT);
}
void loop() {
// exm print (SANI)
// for (S)
digitalWrite( a,1);
digitalWrite( b,0);
digitalWrite( c,1);
digitalWrite( d,1);
digitalWrite( e,0);
digitalWrite( f,1);
digitalWrite( k,0);
digitalWrite( m,0);
digitalWrite( n,0);
digitalWrite( p,1);
digitalWrite( r,0);
digitalWrite( s,0);
digitalWrite( t,0);
digitalWrite( u,1);
digitalWrite( e1,0);
digitalWrite( e2,1);
digitalWrite( e3,1);
digitalWrite( e4,1);
delay(50);
digitalWrite( a,1);
digitalWrite( b,1); ///for (A)
digitalWrite( c,1);
digitalWrite( d,0);
digitalWrite( e,1);
digitalWrite( f,1);
digitalWrite( k,0);
digitalWrite( m,0);
digitalWrite( n,0);
digitalWrite( p,1);
digitalWrite( r,0);
digitalWrite( s,0);
digitalWrite( t,0);
digitalWrite( u,1);
digitalWrite( e1,1);
digitalWrite( e2,0);
digitalWrite( e3,1);
digitalWrite( e4,1);
delay(50); ///for (N)
digitalWrite( a,0);
digitalWrite( b,1);
digitalWrite( c,1);
digitalWrite( d,0);
digitalWrite( e,1);
digitalWrite( f,1);
digitalWrite( k,1);
digitalWrite( m,0);
digitalWrite( n,0);
digitalWrite( p,0);
digitalWrite( r,1);
digitalWrite( s,0);
digitalWrite( t,0);
digitalWrite( u,0);
digitalWrite( e1,1);
digitalWrite( e2,1);
digitalWrite( e3,0);
digitalWrite( e4,1);
delay(50);
digitalWrite( a,1); ////for (I);
digitalWrite( b,0);
digitalWrite( c,0);
digitalWrite( d,1);
digitalWrite( e,0);
digitalWrite( f,0);
digitalWrite( k,0);
digitalWrite( m,1);
digitalWrite( n,0);
digitalWrite( p,0);
digitalWrite( r,0);
digitalWrite( s,1);
digitalWrite( t,0);
digitalWrite( u,0);
digitalWrite( e1,1);
digitalWrite( e2,1);
digitalWrite( e3,1);
digitalWrite( e4,0);
delay(50);
}
कोई टिप्पणी नहीं:
एक टिप्पणी भेजें