free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

Rickey's World :: Discussion Forums :: Project Development :: Project Help
 
<< Previous thread | Next thread >>
GreenBee Project
Go to page   <<      
Moderators: Ajay Bhargav, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph, ExperimenterUK, DavesGarage
Author Post
firoz3321
Mon Apr 26 2010, 08:19AM
 User Offline
Registered Member #24995
Joined: Thu Jan 07 2010, 05:12AM

Posts: 132
Thanked 3 times in 3 posts
CODE:
;DISPLAYING SENSOR 2: SOIL MOISTURE

MOV A, #'S' ;display letter S
LCALL datawrt ;call display subroutine
LCALL lcddelay ;give LCD some time
MOV A, #'M' ;display letter M
LCALL datawrt ;call display subroutine
LCALL lcddelay ;give LCD some time
MOV A, #':' ;display : symbol
LCALL datawrt ;call display subroutine
LCALL lcddelay   ;give LCD some time

MOV A, M_BUFFER  ;move sensor data from buffer to accumulator
CJNE A, #67h, dry
dry:
JNC optimum
MOV MOIST_LEVEL, #1     ;Store level in a buffer (for threshold check)
MOV A, #'D' ;display D
LCALL datawrt ;call display subroutine
LCALL lcddelay ;give LCD some time
MOV A, #'r' ;display r
LCALL datawrt ;call display subroutine
LCALL lcddelay ;give LCD some time
MOV A, #'y' ;display y
LCALL datawrt ;call display subroutine
LCALL lcddelay ;give LCD some time
MOV A, #' ' ;display space
LCALL datawrt ;call display subroutine
LCALL lcddelay ;give LCD some time
MOV A, #' ' ;display space
LCALL datawrt ;call display subroutine
LCALL lcddelay ;give LCD some time

SJMP moist_over
optimum:         ;normal condition
MOV A, M_BUFFER  ;move sensor data from buffer to accumulator
CJNE A, #78h, disp_opt
disp_opt:
JNC slurry
MOV MOIST_LEVEL, #2     ;Store level in a buffer (for threshold check)
MOV A, #'O' ;display O
LCALL datawrt ;call display subroutine
LCALL lcddelay ;give LCD some time
MOV A, #'p' ;display p
LCALL datawrt ;call display subroutine
LCALL lcddelay ;give LCD some time
MOV A, #'t' ;display t
LCALL datawrt ;call display subroutine
LCALL lcddelay ;give LCD some time
MOV A, #' ' ;display space
LCALL datawrt ;call display subroutine
LCALL lcddelay ;give LCD some time
MOV A, #' ' ;display space
LCALL datawrt ;call display subroutine
LCALL lcddelay ;give LCD some time
SJMP moist_over

slurry:
MOV MOIST_LEVEL, #3     ;Store level in a buffer (for threshold check)
MOV A, #'E' ;display E
LCALL datawrt ;call display subroutine
LCALL lcddelay ;give LCD some time
MOV A, #'x' ;display x
LCALL datawrt ;call display subroutine
LCALL lcddelay ;give LCD some time
MOV A, #'c' ;display c
LCALL datawrt ;call display subroutine
LCALL lcddelay ;give LCD some time
MOV A, #'e' ;display e
LCALL datawrt ;call display subroutine
LCALL lcddelay ;give LCD some time
MOV A, #'s' ;display s
LCALL datawrt ;call display subroutine
LCALL lcddelay ;give LCD some time

moist_over: RET


#67h, dry
#78h, opt
Beyond this its Excess

Use the same procedure to calsulate the voltage ...
Its clear in the code...
Did you even read the code and try to understand ?




Regards,
Feroze
My Blog
Back to top

SRINIDHI ACHARYA
Mon Apr 26 2010, 11:02AM
 User Offline
Registered Member #27715
Joined: Fri Apr 16 2010, 10:00AM

Posts: 26
Thanked 0 times in 0 posts
i have read the code and understood it..
it was just this analog to digital conversion part thats confusing me..


the point is 67h =103dec =2.06V

78h=120dec=2.4V

the document gave the value above 3.5 to be excess.. and thats the reason why i asked..


Back to top

firoz3321
Mon Apr 26 2010, 12:48PM
 User Offline
Registered Member #24995
Joined: Thu Jan 07 2010, 05:12AM

Posts: 132
Thanked 3 times in 3 posts
Well the Documentation is verymuch different...

Instead of blindly going through the present code, you can just see the voltage levels in DRY,OPT and EXCESS conditions and thus modify them...

The Light conditions wont work so exact to your conditions. So you just check the voltage levels for different light conditions and modify the code so ou dont have to worry later ...

Regards,
Feroze
My Blog
Back to top

acid
Mon May 24 2010, 04:47PM
 User Offline
Registered Member #28443
Joined: Mon May 24 2010, 04:42PM

Posts: 1
Thanked 0 times in 0 post
hello there.. i just started this project. i found both of the 2 types of sensor fo humidity..
but i would like to ask you, ise there any type of moisture sensor or i have to make it??? if yes can you provide me any plans or tips??? thanks anyway

acid
Back to top

firoz3321
Mon May 24 2010, 11:58PM
 User Offline
Registered Member #24995
Joined: Thu Jan 07 2010, 05:12AM

Posts: 132
Thanked 3 times in 3 posts
The Moisture sensor needs to be made by yourself, Its not any big circuit, Go to the downloads section , you can find the Complete schematics and documentation.
The Moisture sensor is the eaisest part and there shouldnt be any problem.
Any further doubts can be clarified here.
Good Luck

Regards,
Feroze
My Blog
Back to top

Go to page   <<       

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

© 2010 Rickey's World

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems