Discussion in "Project Doubts" started by    Sudhansudeep    Aug 31, 2018.
Fri Aug 31 2018, 02:09 PM
Shall I use the program as it is given with out any changes? And Can I use the same program for 16x4 LCD sir?
Fri Aug 31 2018, 04:41 PM
Status messages over 16 chars will need to be trimmed to 16 chars.

You will need to modify the LCD display routine to start a new line
after every 16 chars.

You will have to change 'Mob_no' to match your mobile.
unsigned char code Mob_no[]= "9739317976";


[ Edited Fri Aug 31 2018, 09:25 PM ]
Sat Sep 01 2018, 01:58 AM
Thank you sir I have understood that I have to change the mobile number and have to give my mobile number which I will be using. But I did not understand the concept that u have stated regarding the LCD display to trimm to 16 chars will u please tell me which line of the program to change it to 16 chars
Sun Sep 02 2018, 05:46 PM
Okay.. I assumed the project would use all 4 lines.
In fact it only uses 2, so I wonder why a 4 line display is used.

The project will only safely display message up to 10 bytes long,
which is odd, but means no changes are needed for a 16 * 4 or 16* 2 display.

Simple changes allows 16 /20 char messages.
#define LCDWIDTH 16 //or 20
unsigned char store[LCDWIDTH+1];

change store_msg()

void store_msg(unsigned char msg_array[])
unsigned char i,j;
	while(msg_array[i]!='\r')  // copy to end of line or buffer full
 	 store[j]= msg_array[i];
	if( j >
=LCDWIDTH) break;  //stop at 16 / 20
	store[j]= 0; //terminate the string

Also change clear_mybuff() as buffer is declared as 20 bytes
void clear_mybuff()
	unsigned int a;

[ Edited Sun Sep 02 2018, 05:52 PM ]
Sun Sep 02 2018, 10:23 PM
Ok sir I understood just I need to change the number 20 with 16 right?
Sun Sep 02 2018, 11:02 PM
#define LCDWIDTH 16 //or 20
unsigned char store[LCDWIDTH+1];

change store_msg()

Shall I need to write the above lines also??
Mon Sep 03 2018, 04:47 PM
This version supports 16 character messages on 16*4 or 16*2 LCDs

[ Edited Mon Sep 03 2018, 04:55 PM ]
Tue Sep 04 2018, 11:01 AM
sir i have compiled the above program i am getting the following error
program size: data=176.5 xdata=0 code=1909
target not created

Tue Sep 04 2018, 12:16 PM
please sir can u help me in removing this error as i am using a kiel uvision 3 software as i have to complete my project in few days
Tue Sep 04 2018, 02:49 PM
Have you made any changes to the code I posted ?

The errors might be due to the version of Keil you are using.
The best fix is to get the evaluation version of Keil 5.
It has a limit of 2K, but this project is less than 2K so will be okay.

You have to register but it is free.

Does the original project compile ?
If so you could just use that and edit your phone number and
status messages to fit.

[ Edited Tue Sep 04 2018, 03:56 PM ]

Get Social


Powered by e107 Forum System


Tue May 19 2020, 06:29 PM
Does anyone have microcontroller programming software for STC15F104W (core 8051, 4 k, 128 byte, 6 I/O pin, UART ... DIL8), that works?
Sat May 02 2020, 03:38 PM
Tamu Gurung
Hi I am looking for a assembly language program for a digital decimal counter. Time counts max limit of 2 mins starting from 2.00 mins and ending at 0.00. time is to be displayed on 4 7-segment LED displays. Edsim51 simulator to be used. Thanks
Wed Mar 25 2020, 09:39 AM
Sir kindly send the code file i2c for 8051
Fri Mar 13 2020, 06:36 PM
@ Rohitnani,ABEBE..which project ?
Fri Mar 13 2020, 08:55 AM
how can get hadwere of this project
Sat Mar 07 2020, 12:11 PM
Sir, Could you please send me the zip file input password....
Wed Feb 26 2020, 11:58 AM
Peter Parker
Is it possible to send multiple messages using only 1 GSM module?
Sat Feb 01 2020, 05:12 AM
Pearl Olin
Wed Jan 22 2020, 01:16 PM
I m getting errors while simulation process during interfacing socket output and lcd... Can i get the report of ur project which is same as us.
Tue Jan 14 2020, 02:08 AM
shubham kharade
when i am trying to simulate the program in Proteus 8 professional, I am getting some errors as cannot find module file dhtxx.md can u help me



Thu May 21 2020, 08:44 AM
Wed May 20 2020, 09:28 PM
Wed May 20 2020, 03:05 PM
Wed May 20 2020, 07:52 AM
Wed May 20 2020, 03:15 AM
Tue May 19 2020, 06:08 PM
Tue May 19 2020, 02:22 PM
Mon May 18 2020, 09:50 PM


Guests: 83, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 01:37 AM

Members: 38211
Newest member: Davidthils
Forum Activity
xrxx Avatar
Posted By xrxx
Thu Apr 30 2020, 06:59 AM
BCD MULTIPLICATIONAssume that you have to 2 BCD nu...
liqian Avatar
Posted By liqian
Tue Apr 28 2020, 05:26 AM
I happened to see your post and I got many useful ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Apr 28 2020, 04:21 AM
The code is hard to read.Please zip it and attach ...
rogermado Avatar
Posted By rogermado
Sun Apr 26 2020, 01:53 AM
@ExperimenterUK, thanks for your reply. You'll fin...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sat Apr 25 2020, 05:42 PM
Some simulators handle displays better than others...
rogermado Avatar
Posted By rogermado
Sat Apr 25 2020, 03:59 PM
Hello everyone, sorry in advance if i'm not in the...
PHANTOM28 Avatar
Posted By PHANTOM28
Fri Feb 28 2020, 10:25 AM
Hi.I hope you all can help me. I am relatively ne...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Feb 21 2020, 05:05 PM
ajay_bhargav Avatar
Posted By ajay_bhargav
Fri Feb 21 2020, 04:45 AM
Yes you can do that.1. Create a channel @Thingspea...
ananyagupta Avatar
Posted By ananyagupta
Thu Feb 20 2020, 03:58 AM
With regards to the particular characters sent to ...