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 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..
Tue Jan 03 2017, 11:15 PM
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

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
sarfrosh92
Sun Jan 15 2017, 09:18 AM
Deepakvaishu
Wed Jan 11 2017, 10:25 AM
rana_jee773
Sat Dec 10 2016, 11:22 AM

Online

Guests: 0, Members: ...

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

Members: 37801
Newest member: XuZiling
Forum Activity
XuZiling Avatar
Posted By XuZiling
Wed Feb 22 2017, 02:46 AM
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon Feb 20 2017, 09:52 PM
The syntax should be like thisREC READ :"number w...
diwakar_96 Avatar
Posted By diwakar_96
Sat Feb 18 2017, 11:25 AM
Helia Avatar
Posted By Helia
Fri Feb 17 2017, 08:02 AM
The syntax should be like thisREC READ :"number w...
Helia Avatar
Posted By Helia
Fri Feb 17 2017, 04:20 AM
This is the proteus simulation and the code.. we a...
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Feb 16 2017, 05:56 PM
HiThis is what we get on the lcd when we burn the ...
Helia Avatar
Posted By Helia
Thu Feb 16 2017, 04:37 PM
HiThis is what we get on the lcd when we burn the ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Feb 14 2017, 06:11 PM
Thank you when we send a message the message is no...
Helia Avatar
Posted By Helia
Tue Feb 14 2017, 06:18 AM
Thank you when we send a message the message is no...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sat Feb 11 2017, 09:22 PM
I made a few changes to make programming easier.Re...