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->
         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->
         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->
         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->
         clr   LCD_en
         acall LCD_busy       ;Wait for LCD to process the command
                          ;Return from routine

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

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

         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
         ret                     ;End of routine

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

DB   "Mohak Jhaveri  Yuvek Mehta", 00H
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


Powered by e107 Forum System


Mon Aug 05 2019, 08:09 PM
@Ismail ..post in forum, give details
Mon Aug 05 2019, 05:33 PM
Ismail balghmi
Hello. Please I won't download
Wed Jul 24 2019, 01:47 AM
@BUSTER123 Please post in the forum
Tue Jul 23 2019, 07:13 PM
hello! newbie here. i am kind of a guy who hates using ready - made existing libraries, so this helped a lot as i was trying to control and write to a character lcd display. however, i can't figure out how to set the cursor position. for example, i want to set it to the 5th column in the first row, so position 5. so according to the table, i am sending 10000101 on the 8 data lines of the lcd (register select pulled low). the cursor does not move there however. and i cant move the cursor left or right too. is it something wrong that i am doing? thank you.
Thu Jul 11 2019, 08:55 PM
@ramos https://www.theengineeringprojects.com/2017/09/l298-motor-driver-library-proteus.html
Thu Jul 11 2019, 08:44 PM
@praveen123. Can you give a link to the project ?
Thu Jul 11 2019, 05:47 PM
buenos dias alguien podria ayudarme necesito saber como descargar la libreria del l298n para proteus
Thu Jul 11 2019, 12:11 PM
anyone can help me
Thu Jul 11 2019, 12:11 PM
i need source code for 8051 -smart trolley rfid
Thu Jul 11 2019, 12:10 PM



Sat Aug 17 2019, 03:41 AM
Wed Aug 07 2019, 10:35 AM
Sat Aug 03 2019, 01:16 PM
Mon Jul 29 2019, 07:39 AM
Wed Jul 24 2019, 04:44 AM
Sun Jul 21 2019, 12:41 AM
Fri Jul 19 2019, 11:31 AM
Fri Jul 19 2019, 07:36 AM


Guests: 42, Members: 0 ...

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

Members: 38086
Newest member: jualanled
Forum Activity
nick@IT Avatar
Posted By [email protected]
Wed Aug 07 2019, 10:38 AM
I am trying to execute USSD codes through my GSM m...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Jul 28 2019, 08:55 PM
An LM339 may not be fast enough for reliable SPI ...
sakibnaz Avatar
Posted By sakibnaz
Sun Jul 28 2019, 06:40 AM
Hi All.I need to connect my MCU with an external S...
ExperimenterUK Avatar
Posted By ExperimenterUK
Wed Jul 24 2019, 10:42 PM
Your unit is communicating, so I assume the GPS si...
ExperimenterUK Avatar
Posted By ExperimenterUK
Wed Jul 24 2019, 10:32 PM
Have you read this ?http://www.8051projects.net/wi...
manu8193 Avatar
Posted By manu8193
Wed Jul 24 2019, 04:57 AM
any one tell me the explaination and 'c' code for ...
3AAPC Avatar
Posted By 3AAPC
Sun Jul 21 2019, 12:51 AM
3AAPC Avatar
Posted By 3AAPC
Sun Jul 21 2019, 12:47 AM
With the GPS antenna in the outdoors, I use the ub...
ameya123 Avatar
Posted By ameya123
Fri Jul 19 2019, 07:42 AM
Hello,Please share 8051 Assembly language code for...
figureyang Avatar
Posted By figureyang
Fri Jul 05 2019, 04:37 AM
here is the source code prepared for you download ...