Thank you for responding.
I'm building a video switching unit. To choose between 5 video channels and just switch one of them to a DVD Recorder. It's monitoring nocturnal wild Hedgehog activityin a UK garden.
I've got 5 PIR Sensors which kick out +5 volts when a hedgehog passes by.
So for each binary pattern on PortA, a single relay attatched to the first 5 of PortB pins is switched.
So I need to set PortA to be inputs, PortB to be outputs then read portA, make a decision, set a relay and delay, then do it again.
Easy enough on paper but PBC code seems to use different commands to other PicBasics I've used and I got confused badly on setting up and reading PortA and defining variables.
Tim





Bookmarks