Author Topic: Action based on received serial value  (Read 647 times)

Ollie

  • Newbie
  • *
  • Posts: 19
Action based on received serial value
« on: November 29, 2009, 11:11:30 AM »
I have a cistern water level sensor connected to an Arduino that, when polled serially via Xbee connected to the serial smart board on an ioBridge module, returns a numeric value based on the water level.

I would like to use the new Actions available in the latest firmware to poll the Arduino ever 30 min or so and have an event occur if the value is too low (like send an email or shut off the pump).   The problem is that there doesn't appear to be a way to act on a received serial value.   Is this possible or is it something that can be added (easily, I hope) to the next firmware release?  Maybe I am going about this the wrong way.


nick

  • Full Member
  • ***
  • Posts: 174
Re: Action based on received serial value
« Reply #1 on: November 29, 2009, 07:34:37 PM »
I can think of two approaches:
1. If your Arduino has analog outputs, have the Arduino write the value to an analog output and connect that to an analog input on the ioBridge.  Then you can use ioBridge actions.

2. If you have a website, have your arduino use the serial web services api to call a page on your website.  That page invokes a widget that does the action you want.