Discussion in "Project Doubts" started by    Chinmay Das    Mar 11, 2009.
Sat Mar 21 2009, 12:23 am
#41
Can you point out where exactly?
Sat Mar 21 2009, 01:32 pm
#42
hello amit ,

now i find another thread in temp ckt just give a close look 2 ur ckt digram n d pic of ur project.

in d ckt digram given below you hv connected pin-11 to Vcc n Pin-4 to GND. but i checked the data sheet of LM324 n found dat Pin-4 must be connected 2 Vcc n Pin-11 to GND in order to active d IC. i hv no idea why u hd connected other i/p pin to GND, as seen 4m ur ckt digram.





Also u hv added a POT of 20k to ur ckt ,which is not mentioned in d ckt diagram. n der is no 1.5k reg in ur actual ckt.Is dat 20k pot is connected across pin1 n pin2 ?. i m wondering hw did ur ckt run wid worng connection.i request u pls chk d temp sensor ckt once again n post new ckt of it. This is the original pic of ur temp ckt.




[ Edited Sat Mar 21 2009, 01:51 pm ]
Sat Mar 21 2009, 03:04 pm
#43
can u tell me chinmay which codes u r using document one or corrected one . i think u should try it with the corrected one because it debugs perfectely by the keil and the document one does not debugg by the keil.i think amit might have used i20k ohm for controlling the sensitivity purpose of the sensor .and what about actuator message whether it is also responding the same way . and one more think i wanted to ask i.e eoc pin of adc is connected to uc at pin 3.3 which is high everytime ,so even if the conversion is not started or over end of conversion takes place.so i will prefer to u to check that and if u get the solution then please reply me as soon as possible.
waiting for ur reply !dance:-|
Sat Mar 21 2009, 04:37 pm
#44
AMIT SIR EOC should go high after conversion, but in programing it is high from the starting.

Sat Mar 21 2009, 04:39 pm
#45
I THINK SOME PROGRAM SHOULD BE WRITTEN TO CHECK THE EOC PIN THEN ONLY MAKE THE OE PIN HIGH .THAT MIGHT SOLVE THE CHINMAY PROBLEM OF NOT GETTING THE OUPUT WRT TO ENVIRONMENTAL EFFECT.
Sat Mar 21 2009, 04:45 pm
#46
PLEASE REPLY AS SOON AS POSSIBLE .
CHINMAY IF U UNDERSTAND THIS THEN AFTER GETING ANYTHING GIVE ME A MISSCALL.I WILL COME WITHIN 15 MIN ONLINE.EVEN ANYBODY WHO KNOW THIS PROBLEM CAN GIVE ME MISSCALL AT +919773408860.
WAITING FOR THE ANSWER EAGERLY. :-s
Sat Mar 21 2009, 05:04 pm
#47
CHECK WHAT AS TO HAPPEN
SO I THINK SOME PROGRAM SHOULD BE WRITTEN TO CHECK THE EOC PIN THEN ONLY MAKE THE OE PIN HIGH.BUT IN PROGRAM IT IS HIGH FROM FIRST
PROGRAM BELOW DESCRIPITON.

At a certain point of time, even though there is no conversion in progress the
ADC0809 is still internally cycling through 8 clock periods. A start pulse can occur any time
during this cycle but the conversion will not actually begin until the converter internally
cycles to the beginning of the next 8 clock period sequence. As long as the start pin is held
high no conversion begins, but when the start pin is taken low the conversion will start within
8 clock periods. The EOC output is triggered on the rising edge of the start pulse. It, too, is
controlled by the 8 clock period cycle, so it will go low within 8 clock periods of the rising
edge of the start pulse. One can see that it is entirely possible for EOC to go low before the
conversion starts internally, but this is not important, since the positive transition of EOC,
which occurs at the end of a conversion, is what the control logic is looking for. Once EOC
does go high this signals the interface logic that the data resulting from the conversion is
ready to be read. The output enable (OE) is then raised high.


PROGRAM

adcread:			;Initializing ADC
	;SENSOR 1
	MOV ADCDATA, #0FFH	; Data lines for input
	
	SETB EOC		; Make EOC i/p
	CLR ALE			; clearing ALE
	CLR START		; Make start high
	CLR OE			; Disable o/p
		
	CLR ADD_A		;A=0
	CLR ADD_B		;B=0	;Select IN4
	;CLR ADD_C		;C=0 (select IN0)
	ACALL delay	
	SETB ALE		;latching the address
	ACALL delay
	SETB START		;start conversion pulse
	ACALL delay
	CLR ALE			;ALE H-L transition
	CLR START		;START H-L transition

	SETB OE			;enable o/p
	ACALL delay		;
	
	MOV T_BUFFER, ADCDATA	;store adc data to buffer
	CLR OE			;disable o/p
	
	;SENSOR 2
	MOV ADCDATA, #0FFH	; Data lines for input
	
	SETB EOC		; Make EOC i/p
	CLR ALE			; clearing ALE
	CLR START		; Make start high
	CLR OE			; Disable o/p
		
	SETB ADD_A		;A=1
	CLR ADD_B		;B=0	Select IN5
	;CLR ADD_C		;C=0 (select IN0)
	ACALL delay	
	SETB ALE		;latching the address
	ACALL delay
	SETB START		;start conversion pulse
	ACALL delay
	CLR ALE			;ALE H-L transition
	CLR START		;START H-L transition

	SETB OE			;enable o/p
	ACALL delay		;
	
	MOV M_BUFFER, ADCDATA	;store adc data to buffer
	CLR OE			;disable o/p
	
	;SENSOR 3
	MOV ADCDATA, #0FFH	; Data lines for input
	
	SETB EOC		; Make EOC i/p
	CLR ALE			; clearing ALE
	CLR START		; Make start high
	CLR OE			; Disable o/p
		
	CLR ADD_A		;A=0
	SETB ADD_B		;B=1	Select IN6
	;CLR ADD_C		;C=0 (select IN0)
	ACALL delay	
	SETB ALE		;latching the address
	ACALL delay
	SETB START		;start conversion pulse
	ACALL delay
	CLR ALE			;ALE H-L transition
	CLR START		;START H-L transition

	SETB OE			;enable o/p
	ACALL delay		;
	
	MOV RH_BUFFER, ADCDATA	;store adc data to buffer
	CLR OE			;disable o/p
	
	;SENSOR 4
	MOV ADCDATA, #0FFH	; Data lines for input
	
	SETB EOC		; Make EOC i/p
	CLR ALE			; clearing ALE
	CLR START		; Make start high
	CLR OE			; Disable o/p
		
	SETB ADD_A		;A=1
	SETB ADD_B		;B=1	Select IN7
	;CLR ADD_C		;C=0 (select IN0)
	ACALL delay	
	SETB ALE		;latching the address
	ACALL delay
	SETB START		;start conversion pulse
	ACALL delay
	CLR ALE			;ALE H-L transition
	CLR START		;START H-L transition

	SETB OE			;enable o/p
	ACALL delay		;
	
	MOV L_BUFFER, ADCDATA	;store adc data to buffer
	CLR OE			;disable o/p
	

	RET


[ Edited Tue Mar 24 2009, 03:28 pm ]
Sat Mar 21 2009, 08:09 pm
#48
u r rite ricky , even i hv also noticed it, bt 4get 2 post abt it. well u hv clearly explained it here, i hope v will get a good response on it.

Also i found a major fault in ADC ckt , the 1pf capacitor i hv used in clk ckt for ADC was shoted . dats why ADC was nt getting perfect clock pulses...i solved it out. n finaly on LCD disply i m able 2 see real time reading i.e readings r changing every tim d cursor moving , bt i noticed dat values r vary in a large range... i.e at 1st instant temp: 53.6 c , Rh:98%....n next it shows temp: 82.9 C, Rh: 34%...lik dis..bt analog signals a perfect w.r.t environment. bt i hv chked my ADC at free running mode itz converting d analog signal to digital one with exact value...means itz nt fluctuating.so still i m hving jerk on dis.

can u tell me chinmay which codes u r using document one or corrected one . i think u should try it with the corrected one because it debugs perfectely by the keil and the document one does not debugg by the keil.


yes Ricky, me also found d same, i hv chk both d codes wid uCs.i got same result wid both codes on LCD, except d actuator msg. i think u know dat. i hv 3 uCs wid me now n burn 3 diff codes on it 4 testing purpose. For ur more references i m uplaoding again the codes i m using. 2 files. 1st one has no prob wid debugging , bt 2nd one has.der is also some change in intr codes b4 "main"(dis codes r 4m PDF)

Attachment



Oky do u know wht is d technical name of dat i20k pot(the blue part in temp ckt) . i m also thinking abt it to control d sensitivity of LM35, coz somwhr i found dat itz necessary to control d sensitivity of temp sensor even i also chk d datasheet on LM35. i try 2 find out dat part in local market, bt i dnt know d technical specification of it. so i cant explain at d shop wht i want exactly :-s.


[ Edited Sat Mar 21 2009, 08:26 pm ]
Sun Mar 22 2009, 10:11 pm
#49
codes
Attachment
Mon Mar 23 2009, 03:03 am
#50
ajay

pls give a close look all the posts on dis page, bcoz me n ricky17 has discussed abt no of things in detail...so v also need ur response on it.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Bobbyerilar
Thu Mar 28 2024, 08:08 am
pb58
Thu Mar 28 2024, 05:54 am
Clarazkafup
Thu Mar 28 2024, 02:24 am
Walterkic
Thu Mar 28 2024, 01:19 am
Davidusawn
Wed Mar 27 2024, 08:30 pm
Richardsop
Tue Mar 26 2024, 10:33 pm
Stevencog
Tue Mar 26 2024, 04:26 pm
Bernardwarge
Tue Mar 26 2024, 11:15 am