Source code which worked with me if anyone is having problems due to the working (it works for individual lamps ON/OFF only): #include sbit fan = P1^0; sbit light = P1^1; sbit television = P1^2; sbit machine = P1^3; unsigned char x; unsigned int l; unsigned int w; int j=0; unsigned char *str; unsigned char *Charin; unsigned char *p; //added void Serialwrite(char byte) { SBUF=byte; while(!TI); TI=0; } void Serialprintln(char *p) { while(*p) { Serialwrite(*p); p++; }
Sir,I had done as you done in video,In terms of code,connections on proteus but there is no response in my Proteus animation.Can you please convey me the problems behind it.
Hello a learning room. Thank you for the video. I'd followed all the steps from the video but I am not getting the expected output. Actually, there's no change in the circuit after typing the inputs in the virtual terminal. Even the virtual terminal wasn't working until I checked the option of Echo Typed Characters. I need help with the same.
hi i have done everything and everything is done till the end. only thing is when i type 2 or 4 in the virtual terminal nothing happens to the bulb or relay can you help me with this
What if we want to change two of LEDs with fan??
What changes does code required ??
Not connected to the Vertual terminal screen so how the output can reach I think you did other things which is not in this video
Sir my virtual terminal is not opening
Source code which worked with me if anyone is having problems due to the working (it works for individual lamps ON/OFF only):
#include
sbit fan = P1^0;
sbit light = P1^1;
sbit television = P1^2;
sbit machine = P1^3;
unsigned char x;
unsigned int l;
unsigned int w;
int j=0;
unsigned char *str;
unsigned char *Charin;
unsigned char *p;
//added
void Serialwrite(char byte)
{
SBUF=byte;
while(!TI);
TI=0;
}
void Serialprintln(char *p)
{
while(*p)
{
Serialwrite(*p);
p++;
}
}
void Serialbegin()
{
TMOD=0x20;
SCON=0x50;
TH1=0xfd;
TR1=1;
}
void main() {
P1 = 0x00; //input ports
Serialbegin();
l=0;
while(1) {
while(RI==0);
*Charin=SBUF;
*str = *Charin;
RI = 0;
if(*str =='a')
{
fan = 1; //turn off, set the input to Relay 1 as low
}
else if(*str =='b')
{
fan = 0; }
else if(*str =='c')
{
light = 1; }
else if(*str =='d')
{
light = 0; }
else if(*str =='e')
{
television= 1; }
else if(*str =='f')
{
television = 0; }
else if(*str =='g')
{
machine = 1; }
else if(*str =='h')
{
machine = 0; }
else if(x=='i')
{
//fan = light = television = machine =1;
fan = 0;
light = 0;
television = 0;
machine =0;
}
else if (x=='j')
{
//fan = light = television = machine =0;
fan = 1;
light = 1;
television = 1;
machine = 1;
}
}
//str = 0;
}
UPDATE:
change the variable in the last two else if statements from x to *str
Sir,I had done as you done in video,In terms of code,connections on proteus but there is no response in my Proteus animation.Can you please convey me the problems behind it.
I dont know what is your problem, do screen shots and send me mail ysnanda45@gmail.com. TQ
My virtual machine run but don't take and display a entered number . I have written same code and circuit
superb explanince
Is their any need for a special function for delay
Sir, i have a project, can u write a code for me? And what is the condition
Thankuuuu sooo much sir ji
Tq so much sir
sir how to use 74hc164 matrix keypad
Virtual terminal is not taking values from keyboard how to make it take values?
Hello a learning room.
Thank you for the video. I'd followed all the steps from the video but I am not getting the expected output. Actually, there's no change in the circuit after typing the inputs in the virtual terminal. Even the virtual terminal wasn't working until I checked the option of Echo Typed Characters. I need help with the same.
Do u get the output now? Have your project is completed?
hi i have done everything and everything is done till the end. only thing is when i type 2 or 4 in the virtual terminal nothing happens to the bulb or relay can you help me with this
Thank you.... it's great
Sir plz is video ka 8051 with GSM modules and LCD relay control code and circuit diagram ka link Dall dejiea
thanks sir this is very very interesting bt we need the code
sir using this procedure I can't connect the virtual terminal..
For me also
Hii sir my code not working means when i gave input there is no change in relay or bulb.
can anybody provide me the link for version 3 because im not getting it anywhere
Can you please share the full program video or link pls
what language does use for programming?
embedded C
@@seshanandareddy6078 which programming Arm Or Avr ?
Despite of adding 'RI=0' my virtual terminal is typing numbers infinitely. Please suggest modification. Anyone. Please 🙏
may i get the prteus n kiel software link want to this progrming so can u.plss hlp me i that
Give me your mail id .. i will send tolls . Thank you
drive.google.com/open?id=10s4rEGCFilVMyB2WJmNP3gbp14g4oVSp
drive.google.com/open?id=1uuUODCihj7583H_i4pYIMO9yr3386fo2
sir i am getting error in code "" error C202 : 'load4': undefined identifier""
pls help me to fix it.
Please share me the proteous software download link or zip file
sir can you send program code
I am getting unknown characters if I pressed 1 or 2 or 3 etc in virtual terminal. Solution please
Change microcontroller clock frequency from 12MHz to 11.0592MHz
Need the Proteus and program file can u provide now
Thank you saibabu,,contact 9000047070
can you provide the file please?
Sir can you send me proteus simulation soft copy file 📂 with me.
sir kindly provide the file
sir using this procedure I can't connect the virtual terminal..
send me problem by doing screen shot to mymail ysnanda45@gmail.com