[C.CC USERS] Question about writing messages to serial port

James Brown james.brown4994 at gmail.com
Sat Dec 22 09:53:59 GMT 2012

Again many thanks.  I will work through this library now.


Here is the (nearly) completed code.  Thanks to the assistance I have had I
have made rapid progress after a slow start.


In words this is what it does.


Monitors the cat flap:  if my cat goes out, disarms.  Comes back in, rearms.

If the back door is opened, terminates the programme and indicates a

When armed, if PIR is detected, fires the sprayer valve.


Next steps will be:

-          A more elegant "bistable" for the flap.state process (i.e. not
relying on the PRI ALT, although this works fine)

-          Another lockout condition based on a timed flow monitor (to avoid
flood in case of a malfunction) which will drive a close off valve

-          Rewrite programme using approved styles


p.s.  I have found that digital.input crashes my arduino uno if using any
pin other than 2 or 3.  Hence my own monitor.pin proc. I will have a look at
what is going on here.




From: jadudm at gmail.com [mailto:jadudm at gmail.com] On Behalf Of Matt Jadud
Sent: 22 December 2012 01:04
To: James Brown
Subject: Re: [C.CC USERS] Question about writing messages to serial port


Hi James,

serial.write.string(TX0, "Hello*n")




The occamdocs for the Plumbing modules should be reasonably up-to-date.







On Fri, Dec 21, 2012 at 6:28 PM, James Brown <james.brown4994 at gmail.com>


On arduino, how do I write a message out to the serial port so that it
appears in the occplug screen?  Would be useful for debugging.

James Brown

users mailing list
users at concurrency.cc


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.concurrency.cc/pipermail/users/attachments/20121222/5cb1fd16/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Cat13.occ
Type: application/octet-stream
Size: 3821 bytes
Desc: not available
URL: <http://lists.concurrency.cc/pipermail/users/attachments/20121222/5cb1fd16/attachment.obj>

More information about the users mailing list