Author Topic: Project - auto on/off for an relay  (Read 2766 times)


  • Newbie
  • *
  • Posts: 1
    • View Profile
Project - auto on/off for an relay
« on: July 02, 2010, 02:56:23 PM »

I use an SBC65EC board with MXD2R. i want to monitor the temeperature into a room with an LM19 temperature senzor.
i made an javascript with a conversion formula to convert the Vo from the senzor into T (temperature) and now I need a script that when the temperature T, reaches, for example, at 27.5, the relay 1 (port B4) from MXD2R board to automaticaly go on ON state, and when, T, reach at 30, the relay to go on OFF state. And i dont know how to do it.

Can any one help me please?

I apologize for any spelling mistakes.