I would reduce the code of Receiver Program in this way:
Remember decoupling cap (10nF) on the pic and snubber diodes on relaysCode:start: serin GPIO.2,N2400,100,start,["abc"],w1 if w1=12 then zero if w1=56 then one if w1=90 then four if w1=34 then five goto start zero: toggle gpio.0 pause 2000 goto start one: toggle gpio.1 pause 2000 goto start four: toggle gpio.4 pause 2000 goto start five: toggle gpio.5 pause 2000 goto start END
Al.
Bookmarks