- 5
- 5 729
Lisa
Приєднався 8 тра 2022
Відео
Stepper Motor: keil_5 and Proteus project, Embedded Systems practical
Переглядів 106Рік тому
Light signal: keil_5 and Proteus project, Embedded Systems practical
Переглядів 101Рік тому
Temperature control : keil_5 and Proteus project, Embedded Systems practical
Переглядів 985Рік тому
Elevator -Proteus and keil_5 project Embedded System practical
Переглядів 4,4 тис.Рік тому
Give me this code
If you dont mine will you please send me this project report
Hi how can I contact you I have a question to ask
thanks bro helped me a lot
i dont know who you are but you saved generations with this video. many thanks
Can I get the circuit diagram with blinking of led at particular floor while lift is moving
what to do for having more than one input in the above project? could you please provide me explanation
Which time is displayed on lcd , its different from the real temperature right can u plz explain
Type de moteur s'il vous plaît
pas a pas
Type de moteur s'il vous plaît
Type de moteur s'il vous plaît
Type de moteur s'il vous plaît
#include<reg51.h> sbit red=P1^0; // microcontroller pin no P1.0 sbit yellow=P1^1; // microcontroller pin no P1.1 sbit green=P1^2; // microcontroller pin no P1.2 void main() { unsigned int i; red=yellow=green=0; while(1) { red=1; // red led on for(i=0;i<=60000;i++); // 3 sec for(i=0;i<=60000;i++); red=0; // red led off yellow=1; // yellow led on for(i=0;i<=32000;i++); // 2 sec delay yellow=0; // yellow led off green=1; // green led on for(i=0;i<=60000;i++); for(i=0;i<=60000;i++); // 6 sec delay green=0; // green led off } }
#include<reg51.h> void ToDelay(void); void main(void) { while(1) { P1 = 0xAA; ToDelay(); P1 = 0x55; ToDelay(); } } void ToDelay() { unsigned int i,j; for(j=0;j<24;j++) for(i=0;i<1000;i++); }
#include<reg51.h> void delay(unsigned int ms); // for delay sbit L1=P0^0; // attach L1 to microcontroller of pin P0.0 sbit L2=P0^1; // attach L2 to microcontroller of pin P0.1 sbit L3=P0^2; // attach L3 to microcontroller of pin P0.2 sbit L4=P0^3; // attach L4 to microcontroller of pin P0.3 sbit en1 = P0^4; // To enable A & B Pin in l293d Motor Driver sbit en2 = P0^5; // To Enable C & D pin in l293d Motor Driver void main() { P0 = 0x00; // Assigning all pin of port 0 as Output en1=en2=1; // Enable two pinds of L293d Motor Driver while(1) // Creating Infinite loop { L1=1; L2=L3=L4=0; // 45 Degree delay(100); // 1 Sec Delay L1=L2=1; L3=L4=0; // 90 Degree delay(100); // 1 sec Dealy L2=1; L1=L3=L4=0; // 135 degree delay(100); // 1 sec delay L2=L3=1; L1=L4=0; // 180 degree delay(100); // 1 sec delay L3=1; L1=L2=L4=0; // 225 Degree delay(100); // 1 se delay L3=L4=1; L1=L2=0; // 270 Degree delay(100); // 1 se delay L4=1; L1=L2=L3=0; // 315 Degree delay(100); // 1 se delay L4=L1=1; L2=L3=0; // 360 Degree delay(100); // 1 se delay } } void delay(unsigned int ms) { unsigned int i,j; for(i=0;i<=ms;i++) for(j=0;j<=120;j++); // Generate 1ms }
#include<reg51.h> #define dataport P2 #define adc_input P0 sbit rs = P3^0; sbit rw = P3^1; sbit e = P3^2; sbit wr= P3^3; sbit rd= P3^4; sbit intr= P3^5; void delay(unsigned int); void lcd_cmd(unsigned char); void lcd_data(unsigned char); void lcd_data_string(unsigned char*); void lcd_init(); void adc_conv(); void adc_read(); void lcd_data_adc(unsigned int); int num[10]; void main() { while(1) { dataport=0x00; adc_input=0xff; P3=0x00; lcd_init(); lcd_data_string("TEMPERATURE : "); adc_conv(); adc_read(); lcd_data('C'); delay(50); } } void lcd_init() { lcd_cmd(0x01); delay(1); lcd_cmd(0x06); delay(1); lcd_cmd(0x0e); delay(1); lcd_cmd(0x38); delay(1); lcd_cmd(0x80); delay(1); } void delay(unsigned int sec ) { int i ,j ; for(i=0;i<sec;i++) for(j=0; j<1275; j++); } void lcd_cmd(unsigned char item) { dataport=item; rs= 0; rw=0; e=1; delay(1); e=0; return; } void lcd_data(unsigned char item) { dataport = item; rs= 1; rw=0; e=1; delay(1); e=0; } void adc_conv() { wr = 0; delay(2); wr = 1; while(intr); delay(2); intr=1; } void adc_read() { unsigned int value; rd = 0; delay(2); value=adc_input; delay(1); rd=1; lcd_data_adc(value); } void lcd_data_adc(unsigned int i) { int p; int k=0; while(i>0) { num[k]=i%10; i=i/10; k++; } k--; for (p=k;p>=0;p--) { dataport=num[p]+48; rw = 0; rs = 1; e = 1; delay(1); e = 0; } } void lcd_data_string(char *x) { while(*x!='\0') { lcd_data(*x); delay(2); x++; } }
#include <REG51.H> #include <stdio.h> int p,q,r; q=10; //for every motor freezing count r=10; //rotation of the motor 0 min 32000 max delay(c) { int i,j; if(c==0) { for(i=0;i<500;i++) { for(j=0;j<r;j++); } } return c; } // elevator going up up(b) { int i,j; for (i=1;i<=b;i++) { for (j=0;j<=10;j++) { P3=1; delay(0); P3=2; delay(0); P3=4; delay(0); P3=8; delay(0); P3=16; delay(0); } P2=p+i; } p=p+b; return b; } // elevator going down down(b) { int i,j; for (i=1;i<=b;i++) { for (j=0;j<=q;j++) { P3=16; delay(0); P3=8; P3=4; delay(0); P3=2; delay(0); P3=1; delay(0); } P2=p-i; } p=p-b; return b; } control(a) { int difference; if(a>p) { difference=a-p; up(difference); } if(a<p) { difference=p-a; down(difference); } return a; } main() { int p1; p=0; P2=p; while(1) { if(P0==2) { p1=1; control(1); } if(P0==4) { p1=2; control(2); } if(P0==8) { p1=3; control(3); } if(P0==16) { p1=4; delay(0); control(4); } if(P0==32) { p1=5; control(5); } if(P0==1) { p1=0; control(0); } } }
Bhai error aa rha hai
Jha pe aapne main banaya hai
Please send me code file.i am subscribe you