Automatic Room light Controller with Visitor Counter (AT89S52)
Fri Mar 07 2008, 11:32 am
See,there has to be some way to tell if a person has entered the room or left it,so that the visitor count could be correspondingly incremented or decremented.If only one sensor were used there would be no way to tell if an interruption occured due to a person entering or going out(and you can't have one sensor for incoming and one for outgoing since the entry&exit door is common).
So you use 2 sensors(say a,b) and look for the sequence of interruption.If sequence is a,b then increment counter.If seq is b,a then decrement counter.I haven't seen the code but probably should be like this.
The 33ohms resistor is used for limiting the current into the infrared diode.
So you use 2 sensors(say a,b) and look for the sequence of interruption.If sequence is a,b then increment counter.If seq is b,a then decrement counter.I haven't seen the code but probably should be like this.
The 33ohms resistor is used for limiting the current into the infrared diode.
Fri Mar 07 2008, 09:05 pm
can i some how forward u the code n can u tell me if its kinda correct or not?????
coz whn i debug it.. its giving me warning of "data space memory overlap"
because of tat the project is not working...
nothing seems to work!!! the hardware is working so please can u help me out..
if u can??? if u dont mind????
coz of that the seven segment display doesnt work as its memory is overlapping
please.. can u help out with the code???
does it matter instead of 89s52 i use 89c51???
coz whn i debug it.. its giving me warning of "data space memory overlap"
because of tat the project is not working...
nothing seems to work!!! the hardware is working so please can u help me out..
if u can??? if u dont mind????
coz of that the seven segment display doesnt work as its memory is overlapping
please.. can u help out with the code???
does it matter instead of 89s52 i use 89c51???
[ Edited Fri Mar 07 2008, 11:02 pm ]
Sat Mar 08 2008, 10:02 am
I explained you the working after looking at the code. So the order is correct.
can you tell me which compiler you are using and can you please copy paste those errors so i get a better view of where the problem lies.
and yes you can use 89C51 if code fits in it and make sure there is no special things like storing count in code memory going on.
can you tell me which compiler you are using and can you please copy paste those errors so i get a better view of where the problem lies.
and yes you can use 89C51 if code fits in it and make sure there is no special things like storing count in code memory going on.
Sat Mar 08 2008, 10:42 am
can i email u the code???? if u dont mind?? plus the screen shot of the error to ur email???
its its alright with u????
i understood the working itself its not a problem.. its just error n stuff!! so just i will email u the code and the screen shot of the error.. the warning the message...
its its alright with u????
i understood the working itself its not a problem.. its just error n stuff!! so just i will email u the code and the screen shot of the error.. the warning the message...
Sat Mar 08 2008, 10:54 am
this is the error its saying and im using keil
so tats y nothing seems to work.. and there might be a problem with
the seven segment code n the checking of the sensors...
so can help me out
thankz you...
so tats y nothing seems to work.. and there might be a problem with
the seven segment code n the checking of the sensors...
so can help me out
thankz you...
Sat Mar 08 2008, 11:26 am
use RIDE instead of keil, coz the code is written for RIDE controller by raisonance.
you can download a free evaluation version from http://raisonance.com/
you can download a free evaluation version from http://raisonance.com/
Mon Mar 17 2008, 06:47 pm
hello sir
sir i have tried to download tat program but it keeps crashing...
i dont knw y??? can u please.. tell me the version to download??
the program just crashes!!! w/o even entering the project!!
is it possible to convert this code to keil supported code???
coz ride is not working?? if possible can u tell me the changes please it will be really
helpful if u can quide me doing the changes in the program so it can work.. we have our
submission of this project next week thank you very much..
sir i have tried to download tat program but it keeps crashing...
i dont knw y??? can u please.. tell me the version to download??
the program just crashes!!! w/o even entering the project!!
is it possible to convert this code to keil supported code???
coz ride is not working?? if possible can u tell me the changes please it will be really
helpful if u can quide me doing the changes in the program so it can work.. we have our
submission of this project next week thank you very much..
[ Edited Mon Mar 17 2008, 07:08 pm ]
Mon Mar 17 2008, 11:13 pm
yes its possible But you need to do test to check its working.. 95% it will work...
you need to change this part of code..
to
Try it and tell me..
you need to change this part of code..
DSEG ; This is internal data memory ORG 20H ; Bit adressable memory BITS: DS 1 UP BIT BITS.0 DWN BIT BITS.1 COUNT: DS 1 SPEED: DS 1 VALUE_1: DS 1 VALUE_2: DS 1 VALUE_3: DS 1 COUNTER: DS 1 STACK: DS 1 ; Stack begins here CSEG ; Code begins here
to
;DSEG ; This is internal data memory ; Remove above line UP BIT 0H DWN BIT 1H COUNT EQU 30H SPEED EQU 31H VALUE_1 EQU 32H VALUE_2 EQU 33H VALUE_3 EQU 34H COUNTER EQU 35H STACK EQU 50H ; Stack begins here ;CSEG ; Code begins here ;Remove the above line
Try it and tell me..
Tue Mar 18 2008, 12:52 am
so i will run the program.. and let u knw by tomorrow.. asap
ok.. thanz alot..
but can there be any other changes??? if so can u please check it out??
and tell me.. it wiould be really helpful if u can..
thank you..
thanks alot for the updated code.. thanks you.. :mad
ok.. thanz alot..
but can there be any other changes??? if so can u please check it out??
and tell me.. it wiould be really helpful if u can..
thank you..
thanks alot for the updated code.. thanks you.. :mad
Tue Mar 18 2008, 02:30 am
just try compiling the program.. if you get any error then tell me.. will wait for your input.
Powered by e107 Forum System