Author Topic: Analog input to trigger serial fixed message  (Read 707 times)

Travinder

  • Newbie
  • *
  • Posts: 13
Analog input to trigger serial fixed message
« on: October 19, 2009, 01:24:21 AM »
I might be missing something.  I have been poking around for about two hours now and can't seem to get done what I was hopping for.  Looking for an Analog input trigger to send a serial fixed message.  I am trying to have an LCD backlight change from input in an ambient light sensor.

jason

  • Administrator
  • Hero Member
  • *****
  • Posts: 502
    • ioBridge.com
Re: Analog input to trigger serial fixed message
« Reply #1 on: October 19, 2009, 02:36:20 PM »
You're absolutely right, there isn't a way to do this as far as I can see either.

There is a way to send an analog value to be displayed on LCD when a new value is pushed, but that only gets you half of what you need.
The way things are now, you could set it up to turn the backlight ON but not turn it back OFF again.

With so many combination of inputs and outputs, it's hard to know if we have covered everything.  Looks like we missed this one.  Thanks for bringing this up.  I'll see if this can be added.     
 

Jason Winters
ioBridge Developer

Travinder

  • Newbie
  • *
  • Posts: 13
Re: Analog input to trigger serial fixed message
« Reply #2 on: October 19, 2009, 09:55:13 PM »
Yeah, I got it to dim correctly but then realized I could not get it back when the state changed again....

Thanks

iobridge

  • Administrator
  • Hero Member
  • *****
  • Posts: 668
    • ioBridge Support
Re: Analog input to trigger serial fixed message
« Reply #3 on: October 24, 2009, 02:12:15 AM »
We have added this option to the Serial Actions.

Create a "Input to Serial Message" and select "Analog".

You will prompted with 3 options:

1) Send Every Analog value (that is currently how it works)
2) Less than or equal to [trigger]
3) Greater than or equal to [trigger]

Option 2 and 3 send serial messages when the conditions are met.

I created a real quick proof of concept. Analog light sensor auto-messaging it's value back to the server. When the value gets high it turns the LCD back light to dim and when it gets lower it sets the LCD back light to bright. Works like you expect it to.

Let's us know if you try it out and how it works for you.
ioBridge Support
Community Team

Travinder

  • Newbie
  • *
  • Posts: 13
Re: Analog input to trigger serial fixed message
« Reply #4 on: October 30, 2009, 10:18:29 PM »
Tried it out and it works great, exactly like I was thinking of.  Thanks