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.

How to use 433Mhz CRC ?

Status
Not open for further replies.

bianchi77

Advanced Member level 4
Advanced Member level 4
Joined
Jun 11, 2009
Messages
1,313
Helped
21
Reputation
44
Reaction score
20
Trophy points
1,318
Location
California
Visit site
Activity points
9,442
Guys,

How can I use 433Mhz properly ? do I need CRC ?
I tried to send "a" and "b" but it seems that it's sending continously even I'm not sending at all ?
I'm using terminal (PC) for transmitter and receiver is ATMEGA128 ...with UART .

Any ideas ?
thanks
 

Code:
int main(void)
{
	unsigned char cmd;
	
	DDRA = 0xFF;
	DDRD = 0xFF;
	DDRB = 0xFF;
	//PORTB = 0;
	usart_init(BAUD_PRESCALE);
	usart_pstr("Wireless Doorbell V.1.0 ");
	usart_crlf();
	
	
	lcd_init();
	
	lcd_cmd(0x01);
	
	lcd_string("  Doorbell V.1.0");
	lcd_cmd(0xC0);

     tone(150);
     _delay_ms(1000);
     tone(0);
	while(1)
    {
		cmd = usart_receive();
		
		if (cmd=='a')
		  {
			   _delay_ms(1000);
			   tone(150);
			   _delay_ms(1000);
			   tone(0);
			   _delay_ms(500);
               tone(250);
               _delay_ms(1000);
               tone(0);
 			   
			  lcd_cmd(0x01);
			  lcd_string("  Door 1!");
			  
			
			 
			
		  }
		  else if (cmd=='b')
		  {
			   _delay_ms(1000);
			   tone(350);
			   _delay_ms(1000);
			   tone(0);
			   _delay_ms(500);
			   tone(450);
			   _delay_ms(1000);
			   tone(0);
			   
			  lcd_cmd(0x01);
			  lcd_string("  Door 2!");
              _delay_ms(1000);
			
			  
		  }
		 
		  
		 
		  
			  
	  
		
        
    }
}
 
Last edited:

I don't have code for transmitter, I use PC and terminal software for transmitting.....Access Port..
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top