nagufever WROTE:i mean turning on/off LM35 & LDR using RF remote to draw and close the curtain using DC motor.Then, i want to open and close directly the curtain from the RF transmitter.That's why asking which part of PR16Tx and Rx PIC source code i need to modify in order for it to function properly?
I don't get what your flow. Wireless the LM35 or wireless the push button? You need to understand that code and write for your own. Nobody will help for full code, just help for the concept and idea.
nagufever WROTE:RF push button to activate LM35.Can you give me syntax to write the code for transmitter and receiver section?
#define PB RA0
unsigned char DATA
if(PB==0) DATA=DATA&0b11111110; //clear bit 0
else DATA=DATA|00000001; //set bit 0
send_uart(DATA);
if(RCIF==1) DATA=RCREG;
if(DATA==0x00) temperature=0;
else if(DATA==0x01) temperature=read_a2d(0);
nagufever WROTE:RF push button to enable/disable LDR with relay(receiver).Can you give me syntax to write the code for transmitter and receiver section?
Users browsing this forum: No registered users and 1 guest