Hi, I am having RF modules operating a switch only when button is pressed AND as long as the button is pressed on the Tx. I am using 12F635.
Problem is that the PIC LATCHES when I go beyond lets say 5 meters. When I come near and press the second button on the Tx the latch opens and it starts behaving fine.
RF Modules have a range of greater than 100 Meters. I can't figure out WHY is this happening?
I need urgent help on this please. Thanks
Code:main: Receiver code serin gpio.2,N2400,100,stop,["p34"],b if b=24 then gpio.1=1 if b=54 then gpio.0=1 goto main stop: gpio.1=0 gpio.0=0 goto main Transmitter code main: if gpio.0=1 then serout gpio.5,N2400,["p34",54] : pause 5 : low gpio.0 : endif if gpio.1=1 then serout gpio.5,N2400,["p34",24] : pause 5 : low gpio.1 : endif





Bookmarks