Discussion in "Project Help" started by    firoz3321    Jan 7, 2010.
Fri Jan 08 2010, 10:23 pm
#11
In the Project there are 4 lines displayed on the LCD when the project is switched ON.

I want some 9 lines to be displayed.

What do i need to modify ?

Is there any time delay of 5 secs ?

Please reply ....

The above post is also not replied ..


please sir
Sat Jan 09 2010, 01:26 pm
#12
hello coolmirza,
sorry for posting in this thread
sir i also doing the project of greenbee, as you told for doing this project step by step
so i doing as such
1-sir i interface lm35 + lm324 with resistor values [Rfeedback=20k, Rin(-)=10k], so the gain of op-amp is 3.
but in the project report given by das sir in this forum, it is saying that the gain is 5.
2-if i use this value [Rfeedback=20k, Rin(-)=5k], then by calculation the gain is 5, but the ckt outputs only the gain of 4.
i attach both the ckt configuration. plz see it.

plz sir solve my problem as soon as possible.
sir sorry again for using this thread
sir answer me in this thrtead or my thead [GREENBEE(lcd not shows the msg.....)], sir i have also other problems in my thread plz see my thread & solve my problems.
thak you sir
waiting for your quick response

Attachment
Sat Jan 09 2010, 04:23 pm
#13
which version of Proteus u r using?
Sat Jan 09 2010, 04:36 pm
#14
p7.4 sp3
Sat Jan 09 2010, 04:40 pm
#15
anuj.deos dont post ur doubts here i think its better to use ur own thread it will help u and us to understand ur problem. I hope u will not do this next time
and one thing u have to acknowledge STAY CALM WHILE DOING UR PROJECT
u will find better results.
Tue Jan 12 2010, 08:13 pm
#16
Can some one confirm me about the SENSOR i mentioned ???
Please
Tue Jan 12 2010, 11:06 pm
#17
@firoz3321
Check datasheets of both sensors and compare their characteristics. and find any changes needed.

and regarding this

In the Project there are 4 lines displayed on the LCD when the project is switched ON.

I want some 9 lines to be displayed.

What do i need to modify ?

Is there any time delay of 5 secs ?

Please reply ....

The above post is also not replied ..


please sir

firoz3321



I am not able to understand what exactly are you asking..
Wed Jan 13 2010, 01:15 pm
#18
Ajay Sir,

thank you for the reply,
in the mean time i managed to succeed a little with the code.
But i have a few doubts.

Original CODE consists of these functions:

line_1: ;Displaying initialisation message
MOV A, #080H ;cursor at line 1, position 0
ACALL comnwrt ;call command subroutine
ACALL lcddelay ;give LCD some time
MOV DPTR, #init1 ;address of line 1 of initialisation message
repeat1:
CLR A
MOVC A, @A+DPTR ;moving the data to accumulator
JZ line_2
ACALL datawrt ;call data display routine
ACALL lcddelay ;give LCD some time
INC DPTR ;increment address
SJMP repeat1


line_2:
MOV A, #0C0h ;cursor at line 2, position 0
ACALL comnwrt ;call command subroutine
ACALL lcddelay ;give LCD some time

MOV DPTR, #init2 ;address of line 2 of initialisation message
repeat2:
CLR A
MOVC A, @A+DPTR ;moving the data to accumulator
JZ line_3
LCALL datawrt ;call data display routine
LCALL lcddelay ;give LCD some time
INC DPTR ;increment address
SJMP repeat2 ;jump to label repeat2


line_3: ;Displaying initialisation message
MOV A, #080H ;cursor at line 1, position 0
ACALL comnwrt ;call command subroutine
ACALL lcddelay ;give LCD some time
MOV DPTR, #init3 ;address of line 1 of initialisation message
repeat3:
CLR A
MOVC A, @A+DPTR ;moving the data to accumulator
JZ line_4
ACALL datawrt ;call data display routine
ACALL lcddelay ;give LCD some time
INC DPTR ;increment address
SJMP repeat3

line_4:
MOV A, #0C0h ;cursor at line 2, position 0
ACALL comnwrt ;call command subroutine
ACALL lcddelay ;give LCD some time

MOV DPTR, #init4 ;address of line 2 of initialisation message
repeat4:
CLR A
MOVC A, @A+DPTR ;moving the data to accumulator
JZ exit
LCALL datawrt ;call data display routine
LCALL lcddelay ;give LCD some time
INC DPTR ;increment address
SJMP repeat4 ;jump to label repeat4

exit:
MOV A, #01h ;clear LCD
LCALL comnwrt
LCALL lcddelay ;give LCD some time

RET




And the correxponding lines to be displayed are:

init1: DB " Welcome to ", 0
init2: DB "Project GreenBee", 0
init3: DB "Initialising the", 0
init4: DB "Sensors...", 0








[ Edited Wed Jan 13 2010, 01:16 pm ]
Wed Jan 13 2010, 01:17 pm
#19


I want these lines to be displayed:

init1: DB " Welcome to ", 0
init2: DB "Project GreenBee ", 0
init3: DB " A Project by ... ", 0
init4: DB "Chandra Sekhar ", 0
init5: DB "Ravi Kiran ", 0
init6: DB "Paul Raj ", 0
init7: DB "Feroze Mohamed ", 0
init8: DB " ", 0
init9: DB "Initialising the ", 0
init10: DB "Sensors... ", 0




So i modified the calling functioons as followed:

line_1: ;Displaying initialisation message
MOV A, #080H ;cursor at line 1, position 0
ACALL comnwrt ;call command subroutine
ACALL lcddelay ;give LCD some time
MOV DPTR, #init1 ;address of line 1 of initialisation message
repeat1:
CLR A
MOVC A, @A+DPTR ;moving the data to accumulator
JZ line_2
ACALL datawrt ;call data display routine
ACALL lcddelay ;give LCD some time
INC DPTR ;increment address
SJMP repeat1


line_2:
MOV A, #0C0h ;cursor at line 2, position 0
ACALL comnwrt ;call command subroutine
ACALL lcddelay ;give LCD some time
MOV DPTR, #init2 ;address of line 2 of initialisation message
repeat2:
CLR A
MOVC A, @A+DPTR ;moving the data to accumulator
JZ line_3
LCALL datawrt ;call data display routine
LCALL lcddelay ;give LCD some time
INC DPTR ;increment address
SJMP repeat2 ;jump to label repeat2


line_3: ;Displaying initialisation message
MOV A, #080H ;cursor at line 1, position 0
ACALL comnwrt ;call command subroutine
ACALL lcddelay ;give LCD some time
MOV DPTR, #init3 ;address of line 1 of initialisation message
repeat3:
CLR A
MOVC A, @A+DPTR ;moving the data to accumulator
JZ line_4
ACALL datawrt ;call data display routine
ACALL lcddelay ;give LCD some time
INC DPTR ;increment address
SJMP repeat3

line_4:
MOV A, #0C0h ;cursor at line 2, position 0
ACALL comnwrt ;call command subroutine
ACALL lcddelay ;give LCD some time

MOV DPTR, #init4 ;address of line 2 of initialisation message
repeat4:
CLR A
MOVC A, @A+DPTR ;moving the data to accumulator
JZ line_5
LCALL datawrt ;call data display routine
LCALL lcddelay ;give LCD some time
INC DPTR ;increment address
SJMP repeat4 ;jump to label repeat4

line_5: ;Displaying initialisation message
MOV A, #080H ;cursor at line 1, position 0
ACALL comnwrt ;call command subroutine
ACALL lcddelay ;give LCD some time
MOV DPTR, #init5 ;address of line 1 of initialisation message
repeat5:
CLR A
MOVC A, @A+DPTR ;moving the data to accumulator
JZ line_6
ACALL datawrt ;call data display routine
ACALL lcddelay ;give LCD some time
INC DPTR ;increment address
SJMP repeat5


line_6:
MOV A, #0C0h ;cursor at line 2, position 0
ACALL comnwrt ;call command subroutine
ACALL lcddelay ;give LCD some time

MOV DPTR, #init6 ;address of line 2 of initialisation message
repeat6:
CLR A
MOVC A, @A+DPTR ;moving the data to accumulator
JZ line_7
LCALL datawrt ;call data display routine
LCALL lcddelay ;give LCD some time
INC DPTR ;increment address
SJMP repeat6 ;jump to label repeat2


line_7: ;Displaying initialisation message
MOV A, #080H ;cursor at line 1, position 0
ACALL comnwrt ;call command subroutine
ACALL lcddelay ;give LCD some time
MOV DPTR, #init7 ;address of line 1 of initialisation message
repeat7:
CLR A
MOVC A, @A+DPTR ;moving the data to accumulator
JZ line_8
ACALL datawrt ;call data display routine
ACALL lcddelay ;give LCD some time
INC DPTR ;increment address
SJMP repeat7

line_8:
MOV A, #0C0h ;cursor at line 2, position 0
ACALL comnwrt ;call command subroutine
ACALL lcddelay ;give LCD some time

MOV DPTR, #init8 ;address of line 2 of initialisation message
repeat8:
CLR A
MOVC A, @A+DPTR ;moving the data to accumulator
JZ line_9
LCALL datawrt ;call data display routine
LCALL lcddelay ;give LCD some time
INC DPTR ;increment address
SJMP repeat8 ;jump to label repeat4

line_9:
MOV A, #080h ;cursor at line 1, position 0
ACALL comnwrt ;call command subroutine
ACALL lcddelay ;give LCD some time

MOV DPTR, #init9 ;address of line 1 of initialisation message
repeat9:
CLR A
MOVC A, @A+DPTR ;moving the data to accumulator
JZ line_10
ACALL datawrt ;call data display routine
ACALL lcddelay ;give LCD some time
INC DPTR ;increment address
SJMP repeat9 ;jump to label repeat4

line_10:
MOV A, #080h ;cursor at line 1, position 0
ACALL comnwrt ;call command subroutine
ACALL lcddelay ;give LCD some time
MOV DPTR, #init10 ;address of line 1 of initialisation message
repeat10:
CLR A
MOVC A, @A+DPTR ;moving the data to accumulator
JZ exit
LCALL datawrt ;call data display routine
LCALL lcddelay ;give LCD some time
INC DPTR ;increment address
SJMP repeat10 ;jump to label repeat4

exit:
MOV A, #01h ;clear LCD
LCALL comnwrt
LCALL lcddelay ;give LCD some time

RET





Now the lines displayed on the SIMULATION (Proteus) is not as i expected.

I want the screen to be cleared every time. The lines are overlapping over the other.
and the LAST LINE "Sensors..." is not displayed in the 2nd line,instead its overlapping over the first line "Initialising the".


I'm sorry about my bad english. Hope i'm clear with my doubt.
Wed Jan 13 2010, 01:20 pm
#20
As i mentioned in my previous posts, i dont know coding.
i just copied the first 4 functions and modified them accordingly.

But the display is not good.

And sir, when i compare the data sheets of the sensors, what am i supposed to check for ?

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Michailqfh
Fri Mar 29 2024, 01:53 am
Bobbyerilar
Thu Mar 28 2024, 08:08 am
pb58
Thu Mar 28 2024, 05:54 am
Clarazkafup
Thu Mar 28 2024, 02:24 am
Walterkic
Thu Mar 28 2024, 01:19 am
Davidusawn
Wed Mar 27 2024, 08:30 pm
Richardsop
Tue Mar 26 2024, 10:33 pm
Stevencog
Tue Mar 26 2024, 04:26 pm