Discussion in "Project Doubts" started by    Chinmay Das    Mar 10, 2009.
Thu Oct 22 2009, 12:39 PM
@mohsin: ya i have simulated it on proteus ..it is working properly in the simulation..and since i am not using read lcd i have grounded it ...here is my code..this is only one part of it..actually i want to make a rolling display from right to left..this part of the code is just to display the text..i still have to write the scrolling part..
LCD_data equ P2    ;LCD Data port
LCD_D7   equ P2.7  ;LCD D7/Busy Flag
LCD_rs   equ P1.6  ;LCD Register Select

LCD_en   equ P1.7  ;LCD Enable


         mov   LCD_data,#38H  ;Function set: 2 Line, 8-bit, 5x7 dots
         clr   LCD_rs         ;Selected command register
        
         setb  LCD_en         ;Enable H->
L
         clr   LCD_en
         acall LCD_busy       ;Wait for LCD to process the command
         mov   LCD_data,#0FH  ;Display on, Curson blinking command
         clr   LCD_rs         ;Selected instruction register
         
         setb  LCD_en         ;Enable H->
L
         clr   LCD_en
         acall LCD_busy       ;Wait for LCD to process the command
         mov   LCD_data,#01H  ;Clear LCD
         clr   LCD_rs         ;Selected command register
         
         setb  LCD_en         ;Enable H->
L
         clr   LCD_en
         acall LCD_busy       ;Wait for LCD to process the command
         mov   LCD_data,#06H  ;Entry mode, auto increment with no shift
         clr   LCD_rs         ;Selected command register
        
         setb  LCD_en         ;Enable H->
L
         clr   LCD_en
         acall LCD_busy       ;Wait for LCD to process the command
                          ;Return from routine



LCD_busy:
         mov  r7,#50H
back:
         mov r6,#0FFH
         djnz r6,$
         djnz r7,back
         ret                  ;Return from busy routine


LCD_senddata:
         mov   LCD_data,A     ;Move the command to LCD port
         setb  LCD_rs         ;Selected data register
        
         setb  LCD_en         ;Enable H->
L
         clr   LCD_en
         acall LCD_busy       ;Wait for LCD to process the data
         ret                  ;Return from busy routine



LCD_sendstring:
         clr   a                 ;clear Accumulator for any previous data
         movc  a,@a+dptr         ;load the first character in accumulator
         jz    exit              ;go to exit if zero
         acall lcd_senddata      ;send first char
         inc   dptr              ;increment data pointer
         sjmp  LCD_sendstring    ;jump back to send the next character
exit:
         ret                     ;End of routine


mov   dptr,#my_string   ;my_string is the label where the string is stored
acall LCD_sendstring    ;Send string

my_string:
DB   "Mohak Jhaveri  Yuvek Mehta", 00H
end
Thu Oct 22 2009, 12:41 PM
@chinmay: i have verified my diagram with yours..i dont think there is a problem with my connections..
@mohsin: as u said that this is a very common problem...what are the most probable reasons why this could be happening..??
Thu Oct 22 2009, 04:23 PM
@ mohak

try pullup resistors in ur circuit

i think ur problem should be solved
Thu Oct 22 2009, 06:09 PM
the main reason behind this problem mohak is that the LCD does not get properly initialized due to proper or somewht loose connections....make sure that u r using pullup resistor if ur driving ur lcd through port 0. secondly try to use plug system for connecting ur lcd to port 0 rather than directly solding the wires....can u do one thing...post the snapshot of ur hardware cct of LCD and microcontroller...?
Fri Oct 23 2009, 11:31 AM
in your program you forgot to set the LCD address to 80H before displaying data. try to send 80H command to LCD and try again. If still it doesn't work then.

check reset circuit
check crystal
make sure your controller is working try to put a blink program.

secondly, see if your power supply is enough to run your circuit. check the drop using multimeter (check VCC).

NOTE: If your doubt is not related to this project, please try to post it in a new thread coz this thread is for GreenBee project.
Mon Oct 26 2009, 01:30 PM
according to this project i used soil moisture sensor and gave the input supply 5v

it is producing ground leakage current plllzz help


one thing more if the water level is different in greenhouse then how we can decide the soil moisture
Tue Oct 27 2009, 09:45 AM
did u follow the same circuit given in the report for soil moisture??? if yes then it should not cause such problem

and sorry i culd not understand ur second question... ....
Sun Nov 01 2009, 04:51 AM
@ m mohsin

I tried the same circuit but it doesn't work

can u explain me the working of 2N222n transistor

my second question is

if the land area where we have installed the soil moisture sensor is around 10 acres and there is different water content in different areas of soil then how we can decide what is the exact soil moisture sensor???/
Thu Nov 05 2009, 10:45 AM
well none of us who tried this project faced the problem in soil moisture sensor....and its working is well written in the project report that u downloaded.

secondly this project is designed as a sample device for the automation of small green house...u can expand it according to ur requirements...if u hace such a big land for green house then u can use more than one soil moisture sensors and divide the land into small portions and then program ur controller according to that division where u get the display some wht like "soil moisture of particular portion : ***"

Sun Nov 08 2009, 10:00 AM
hey..thanks a lot everyone..my project started working..:D

Get Social

Information

Powered by e107 Forum System

Conversation

Wed Mar 22 2017, 09:13 PM
ajay kumar
help me nokia lcd light
Wed Feb 22 2017, 06:14 AM
ChollyMo
Indeed, on the LCD tutorial, many missing Tables and figures !!
Wed Feb 22 2017, 06:06 AM
ChollyMo
I don't see any Table 3. I'm using Chrome.
Fri Feb 03 2017, 05:56 AM
irfan shaikh
hi, i want interface WS2811 pixel led using NUVOTON N79E352, but i dont know how to code it. can anyone help me or provide me sample coding for interfacing WS2811 PIXEL LED. THNX
Thu Jan 19 2017, 08:42 PM
abhays
Hi...i have made a circuit for interfacing PT100 with LM358 whose temperature is shown on the LCD...But the temperature is not getting incresed slowly ..a small change directly increses the temp...can any one help me
Thu Jan 19 2017, 04:27 PM
roba
send me alarm clock simulation using proteus software
Mon Jan 16 2017, 03:15 PM
Rutuja
How can we read notepad file using random acess file
Fri Jan 06 2017, 06:18 AM
muhammad Umar
i need cd4047 library file for protious please help me i s
ExperimenterUK
Wed Jan 04 2017, 09:01 PM
@Emin what is your site user name ?
Tue Jan 03 2017, 11:16 PM
Emin
Emin: I'm already a member since 2012 and entered repeatedly during period. But now it is impossible and obtaining a new registration is also failed. The same error message specifying that two e-mails i entered are different!. In fact thaey are the same. Now, what will be happen, what is your solution? Thanks..

Downloads

Comments

SAUnwin
Tue Mar 21 2017, 02:29 PM
letonarolikah
Mon Mar 20 2017, 11:21 AM
nerodear
Tue Mar 14 2017, 07:08 AM
XuZiling
Wed Feb 22 2017, 02:40 AM
diwakar_96
Thu Feb 16 2017, 02:40 PM
Helia
Thu Feb 09 2017, 09:59 AM
fasihaftab
Sat Jan 28 2017, 08:58 AM
jmunjr
Tue Jan 17 2017, 06:25 PM

Online

Guests: 87, Members: 0 ...

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

Members: 37804
Newest member: SAUnwin
Forum Activity
Deepakvaishu Avatar
Posted By Deepakvaishu
Fri Mar 24 2017, 05:22 AM
Hi,I got that we should use timer......But I am a ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Mar 23 2017, 09:14 PM
You have largely answered your own question.Use on...
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Mar 23 2017, 07:03 AM
I have looked at your code.I think you are confuse...
Deepakvaishu Avatar
Posted By Deepakvaishu
Thu Mar 23 2017, 05:34 AM
hello,I can type the letters now when the particul...
SAUnwin Avatar
Posted By SAUnwin
Tue Mar 21 2017, 02:55 PM
HI,There are two ways I'd tackle thiss.Key down on...
Deepakvaishu Avatar
Posted By Deepakvaishu
Mon Mar 20 2017, 08:24 AM
hello,I am using a keypad to type the text message...
Helia Avatar
Posted By Helia
Thu Mar 16 2017, 09:15 AM
hi.. the following code is not working on hardware...
ajay_bhargav Avatar
Posted By ajay_bhargav
Tue Mar 14 2017, 08:39 AM
ajay_bhargav Avatar
Posted By ajay_bhargav
Tue Mar 14 2017, 08:36 AM
Try to check the character set currently set in yo...
Deepakvaishu Avatar
Posted By Deepakvaishu
Thu Mar 09 2017, 05:14 AM
sim 300 gsm modem is not able to send the message ...