Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. SandeshHs94
    3. Posts
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by SandeshHs94

    • RE: writing a code for 2 relays with 2 buttons and actuators

      I'm so sorry for such late reply... the reason i wanted no for loop was to see how the code for that would turn out...

      I have a project in mind with requires maybe 2 switches and if one is turned on then regardless of the message coming from controller for the second light it should stay off...

      posted in Development
      SandeshHs94
      SandeshHs94
    • RE: writing a code for 2 relays with 2 buttons and actuators

      amazing.. thanks a lot but what about if i have to combine relayActuatorWithButton and
      relayActuator..
      do you have any code for that?
      and please explain what this line means and how it works..
      digitalWrite(message.sensor-1+RELAY_1, message.getBool()?RELAY_ON:RELAY_OFF);

      and how i can make the combination work without a for loop

      Thank you

      posted in Development
      SandeshHs94
      SandeshHs94
    • writing a code for 2 relays with 2 buttons and actuators

      i want to add two buttons and two relays, i dont understand on how to combine them.

      I am having trouble with the incomingMessage function. The relay with Actuator example works fine but it does not have a button, what if i want a button or if i have relays on non-consecutive pins.

      i tried writing two functions for incoming message and it was just a foolish idea and i'm stuck.

      how do i get it to work.. please help..

      posted in Development
      SandeshHs94
      SandeshHs94
    • Serial Gateway.. Help!!

      Guys,
      I am completely new to mysensors and to date i feel this is the best approach, i dont understand a few basics, please answer to these questions.(I want to use serial gateway)

      1)If i use arduino uno instead of mini/nano as given in sketch, should i be changing anything in the code given.

      2)If i ad any new sensor should i add anything in gateway code for it to receive data or send data.

      3)Can i add a sensor to gateway module itself.

      4)If i choose to write a new code which is not in examples, how can i do it. is there any programming guide.

      i would really appreciate if anyone can provide a complete guide link. I am sorry for such questions, i really need these answers.
      Thank you

      posted in General Discussion
      SandeshHs94
      SandeshHs94