Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
mehrdad.silataniM

mehrdad.silatani

@mehrdad.silatani
About
Posts
17
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Error compiling - ATSHA204.h not Found
    mehrdad.silataniM mehrdad.silatani

    Very comprehensive and prompt reply !!! :+1: I will follow your steps today and update you on the outcome.
    Thank you so much for your help.

    Troubleshooting

  • DHT sensor for Mysensors V2
    mehrdad.silataniM mehrdad.silatani

    @sundberg84 Fantastic ! It worked very well ! Thanks for quick response !

    General Discussion

  • Error compiling - ATSHA204.h not Found
    mehrdad.silataniM mehrdad.silatani

    Ok, I tired the steps as explained and everything seems to be working.

    [Some Observations]:

    1. Strangely, I had Arduino version 1.7 which did not have "Manage Libraries" button in the sketch tab at all. So I uninstalled it and installed the 1.6.11 version and then I found the "Manage Libraries" and successfully installed the "mysensors" library. I also compiled and uploaded some example sketches to my Arduino nano!

    2. In the video of the demonstration of how to start with my sensors (made by petewill), it says to locate an example named "SerialGateway", but in my library it is named "GatewaySerial", are they the same thing ?

    3. I would really appreciate if I can have some sort of tutorials on how to start using the wifi modules, or put simple, how to get the best out of mysensors.org ? At the moment, I have all the components but yet to find out how I can really utilise the "mysensors.org" capability.

    Again, thank you so much for all your help !

    Cheers,
    Mehrdad

    Troubleshooting

  • Error compiling - ATSHA204.h not Found
    mehrdad.silataniM mehrdad.silatani

    Thank you so much for your elaborate explanations ! It really cleared up some questions I had in mind, especially about the Arduino versions !

    Also, I did not know that "Mysensors" is run entirely by volunteers! I will try to become one of those useful volunteers that helps others (like you :) ) rather than coming up with questions all the time ;) :)

    Troubleshooting

  • DHT + Relay Sketch
    mehrdad.silataniM mehrdad.silatani

    @mfalkvidd Thank you so much for your comment. I already checked the link you send me and it is very insightful but I guess I am still too beginner to find my solution from those explanations.

    Since you asked about missing functions, I couldn't find any description on " C_SET".

    Also if you don't mind I would like to ask for your help to understand some of the functions used in my code. These are the functions I am not fully understanding;

    • "send(msgHum.set(humidity, 1))"
      What is the action of that number "1" after the payload (i.e. humidity)? can it be any number ?

    • "send(msgRlay.set(state?RELAY_ON:RELAY_OFF),2)"
      I fully understand up to the part of "send(msgRlay.set" but what happens in "state?RELAY_ON:RELAY_OFF" and also again what is that number "2" at the end doing ?( I randomly typed 2) .... I suspect, in "state?RELAY_ON:RELAY_OFF" it asks the Arduino that which state is true and use that, is that correct?

    • "send(msgRlay.set(state?RELAY_ON:RELAY_OFF), true)"
      What is the "true" at the end of the line doing?

    • "wait(2000, C_SET, V_STATUS)"
      This is where I came across the "C_SET"

    • "state = (bool)message.getInt()"
      I can guess that this line is trying to extract the information of the relay state from the received msg, but I really don't know what is the breakdown of the logic in it (e.g. does adding (bool) at the front of the message.getInt() means only accept boolean type data ? .... )

    • "debouncer.update()"
      I really dont quite get what happens in this line ...

    Sorry for asking too many questions :) .. I am really loving to work with "mysensors" and I am trying to make sure I understand what happens in my codes :)

    Troubleshooting

  • DHT + Relay Sketch
    mehrdad.silataniM mehrdad.silatani

    @mfalkvidd WOW ! I am blown away by your detailed answers !!! Nothing is more satisfying than plain answers to puzzling questions :smile: Thank you so so much !!!

    Meanwhile, by using my "MYSController". I figured out that the sketch is reporting right values as you pointed out before;

    0_1473586525559_upload-00eadcf7-e899-40cc-b362-dec912d2442b

    So what I did was to check my "mysensors.json" ... I noticed there are traces of my old sensor node still embedded in the "mysensors.json". So I deleted the file and let the HA to create a new one from scratch ! and then Volla ! HA started to recognise the sensors and switch separately !

    0_1473586257481_upload-f6491b85-7e83-44a3-9259-c554518b47eb

    I know everyone here are helping and volunteers, but I thought I will just share my suggestion with you wonderful people, I think it would be invaluable to mysensors users to be able to refer to a language reference page similar to the arduino's website; "https://www.arduino.cc/en/Reference/HomePage"

    Again, THANK YOU so much for your elaborated answers !

    Cheers,
    Mehrdad

    Troubleshooting

  • Should I modifymy IDE once I am changing from Arduino Nano to ProMini ?
    mehrdad.silataniM mehrdad.silatani

    @sundberg84 The whole system is currently working on 5V adapter which is fed to the RAW port of Promini and then I am powering the sensor from "Vcc" port.

    Anyway, I checked the voltage across the DHT11 sensor and my voltmeter shows 4.98 V. So I dont think the power is the problem ...I think this has been flagged before by other people as well, See-> (https://forum.mysensors.org/topic/1894/pro-mini-is-giving-a-frequent-time-out-on-dth11-read-out/9)

    I even tried two different Pro mini boards ! still no luck !

    Troubleshooting
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular