Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] project in distress..

Status
Not open for further replies.
RC2 is connected to a piezo buzzer , how do i turn on the buzzer to warn if the temperature is more than 27 ?
 

need to set the frequency to make the sound a continuos one
 

oh i solved this buzzer issue already thanks

- - - Updated - - -

yup that is my final codes..
 

the urls links u gave cant open at all.
perhaps you can screenshot it and give it to me ?
 

hey jayanth , just a question of doubt .

why
Code:
WriteCmdXLCD(0xC0);

is start from line 2 .

and
Code:
WriteCmdXLCD(0x80);

is start from line 1.

How do you know ?

- - - Updated - - -

hey jayanth , just a question of doubt .

why
Code:
WriteCmdXLCD(0xC0);

is start from line 2 .

and
Code:
WriteCmdXLCD(0x80);

is start from line 1.

How do you know ?
 

They are the address of 1st row 1st column and 2nd row and 2nd column. Google for HD44780 compatible datasheet and see the commands for different LCD operations.
 
Last edited:

hi jayanth ,
Code:
if(LastTemp > 26)  //If the value of LastTemp is more than 26 but not inclusive of 26
		{
			PORTB = 0XFF;/*PORTB which is the LEDS(RBO,RB1,RB2,RB3) will light up
						   to give a warning to the user that the temperature is getting too warmed , 
						   even if i connect a Fan controller to the RB4,RB5,RB6 
						   or RB7 and the aboved conditons are met , the fan will turn on by itself 
						   without using a pushbutton*/  
		}
		else if (LastTemp <= 26) //If the value of LastTemp is less than and inclusive of 26
		{
				PORTB=0X00;/*PORTB which is the LEDS(RBO,RB1,RB2,RB3) will NOT light up , 
							 as the above conditions are met , LEDs will be off and 
							 Fan will be off as well*/	
		}

How can i modify this code to make the fan stop immediately once it hits 25 deg c and even if it hit 27 deg c it will not turn on but will wait for 10 seconds of clearance before turning on the fan?

Super urgent thanks
 


Code C - [expand]
1
2
3
4
5
6
7
if(LastTemp >= 25) {
         PORTB = 0x00;
}
else if(LastTemp  >= 27) {
             Delay_ms(10);
             PORTB = 0xFF;
}

 

Hey jayanth , I have got back my project results . Thanks to you , I scored very well...
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top