Humidity and Temp examples. Where are they?



  • Hi,

    in the Arduino IDE i am missing the Dallas Temperature examples and the humidity examples. I think everybody using it. Why is it not there?
    So confusing with all different libraries and versions for beginners.... Would be good if at least the examples are complete with the most used sketches.

    Or am i missing something?
    Cheeers
    ED


  • Mod

    @edsteve some of the examples require external libraries. The Arduino IDE can't handle one library (MySensors in our case) needing something from another library (the Dht library for example). So if the temperature example was included in MySensors, it would not work unless the user manually installed the Dht library. In some cases, such as with the Dht library, some versions are not compatible with the MySensors code. So in addition to knowing to install the Dht library manually, the user would also need to know the correct version of the library and how to install that exact version.

    The example sketch for the temperature sensor is available on the same page as the wiring guide for that sensor, https://www.mysensors.org/build/temp

    On that page are also instructions on how to get the correct version of the Dht library.


  • Hero Member

    @edsteve most of the examples that need other libraries are no longer included when you install Mysensors.
    If you have a look Here in the examples folder you will find what you need.

    Edit: oops you beat me to it @mfalkvidd 🙂



  • Okay. So that means all the MySensor examples in the Arduino IDE only use Mysensors.h and no external library.

    Thx for the info. That explains it.


  • Mod

    Always look at the includes in the beginning of the sketch, if you don't have that file in the library folder, you need to download the appropriate library and library manager will help you find it most of the time



  • where do we have to copy/paste the folder MysensorArduinoExemplesMaster ?
    thinks


  • Mod

    Just install mysensors library from library manager and the examples will be also showing in the arduino ide


  • Mod

    @gohan not for the MySensorsArduinoExamples.

    But I am not sure where to paste it.


  • Mod

    my best guess would be in Arduino\libraries\MySensors\examples if you want to see them in the Arduino Ide as examples under the MySensors section


  • Mod

    I think so too. To be clear, this is my guess:
    MySensorsArduinoExamples/libraries/* goes into Arduino/libraries/
    MySensorsArduinoExamples/examples/* goes into Arduino/libraries/MySensors/examples/



  • Again:
    Look at "MockMySensors" sketch in MySensors example library.
    All type of sensors has got presentation and sending or receiving function examples for them there.


 

447
Online

7.9k
Users

8.7k
Topics

93.7k
Posts