Hello Andy,

Andy>>Anyone fancy helping me with the project, I am sure for some this is like very easy, for me its a nightmare and I really would welcome some help.<<

Andy, if you go to compilespot.com, you can use the latest version of PBP. You are limited to 900 bytes, but with 900 bytes, that is PLENTY for your project...

If you are receiving that ASCII string via Serial... its even easier...

Use your Serial in command and set the "check str" to your SERIN as your "ASCII" string.

something like this...

Var="N";
Loop:
SERIN portx,N2400,[“ASCII”],Var,
if Var<>"N" Gosub turnonroutine.
goto Loop

turnonroutine:
Var="N"
PortX=1 'turn on that light
pause 1000 'pause 1 second
Portx=0 'turn if off
return


SERIN2 has a timer too, that could be very useful. I do not know what you will receive after the ASCII string... Maybe nothing? If so, you can still use the SERIN, and load up a array to check for your ASCII sequence.

Dwayne