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

Sun Apr 30 2017, 05:49 AM
Lijin G Varghese
Can u send me the circuit diagram for Program to interface GSM Module with 8051 microcontroller (AT89C51) using PC and LCD
Sun Apr 30 2017, 05:48 AM
Lijin G Varghese
Program to interface GSM Module with 8051 microcontroller (AT89C51) using PC and LCD
Fri Apr 28 2017, 03:47 PM
SANDEEP T S
I need pcb wizard 3.5 version kindly send valid link of yours
Fri Apr 28 2017, 03:46 PM
SANDEEP T S
I need pcb wizard 3.5 version
ExperimenterUK
Mon Apr 17 2017, 11:56 PM
Sorry..We had a problem with registration.Confirmation emails were not sent.Please re-register
Thu Apr 13 2017, 07:29 PM
Piyush Aughad
I want circuit & program for radar detection using Microcontroller 8051
Tue Apr 11 2017, 03:27 AM
Shabbir Ahmed
Hi Ajay ....hope you and your family all will be fine are you working on andriod aplications if yes then plz reply me
Sun Apr 09 2017, 06:33 PM
ATHULYA NAIR
Dear Sir, I need to know what are the complexity for programming in 8051 Microcontroller for three phase inverter?
Sun Apr 09 2017, 06:32 PM
ATHULYA NAIR
Dear Sir,
Sun Apr 09 2017, 04:43 AM
Rohit chandra joshi
Sir I need ur help urgently.i am trying to make pc controlled led scrolling display using 8051.when i am trying to generate hex file of the code that is given by pratik suthar.it gives the error Target not created Limit:0800h I am using keil uvision4 software. Even i have tried to burn the given hex file that is atteched with the code but my led are not glowing. Pls help me sir .i struck in this problem from last month and till now i am not able to short out the problem. Pls suggest me to solve the problem.mail me at [email protected] Thanks

Downloads

Comments

anshulece
Fri Apr 28 2017, 03:43 PM
Masoooud
Tue Apr 25 2017, 06:57 PM
BOuissal
Mon Apr 24 2017, 02:46 PM
tranhunga
Mon Apr 24 2017, 01:11 AM
Suslik
Sun Apr 23 2017, 09:26 AM
soumk
Sun Apr 23 2017, 06:22 AM
Vavachi1996
Tue Apr 18 2017, 08:01 PM
yasmine
Tue Apr 18 2017, 03:10 PM

Online

Guests: 66, Members: 0 ...

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

Members: 37814
Newest member: anshulece
Forum Activity
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon May 01 2017, 12:42 AM
Sorry, that doesn't sound "normal".I think a re-in...
Deepakvaishu Avatar
Posted By Deepakvaishu
Fri Apr 28 2017, 11:18 AM
Yes proteus is loaded ,with all projects.....Once ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Apr 28 2017, 05:06 AM
Does Proteus load at all ?Does it only crash on c...
Deepakvaishu Avatar
Posted By Deepakvaishu
Wed Apr 26 2017, 06:59 AM
hello...I am getting an error when I am trying to ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Apr 18 2017, 10:52 PM
Thanks for the comment.Glad you got it working.
Deepakvaishu Avatar
Posted By Deepakvaishu
Tue Apr 18 2017, 06:19 AM
Thank you very much...Today I got the output for a...
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Apr 06 2017, 05:38 PM
Is it initially assigned as '0', and then when the...
Deepakvaishu Avatar
Posted By Deepakvaishu
Thu Apr 06 2017, 07:55 AM
hello,Thanks for the attachment.I have gone throug...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sat Mar 25 2017, 09:49 PM
I have attached code showing one method you could ...
Deepakvaishu Avatar
Posted By Deepakvaishu
Sat Mar 25 2017, 07:59 AM
I am using Keil and 8051 microcontroller