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
DdawmeD

Ddawme

@Ddawme
Unfollow Follow
About
Posts
13
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • In wall - PCB, (AC to DC 5v)
    DdawmeD Ddawme
    Hardware pcb inwall

    Hi all. I have been searching for a way to power nodes and stumbled across this project. My question is is this a viable and safe solution if I just recreate the ac-dc portion on perf board? In essence I want to create a good 5v power supply that can be hardwired into my home inside of an electrical box. Not necessarily in the wall but in less accessible places like attics and such.


  • 2 Reed Switches 1 Arduino Nano
    DdawmeD Ddawme
    Troubleshooting

    @mfalkvidd

    Sorry to leave you hanging for so long. Was finally able to start my troubleshooting of the node today. Turns out it did end up being a wiring issue, filed as "Technician Error". Rather than having both the reed switches share a common ground, I had one sensor grounding to the data pin of the other.


  • 2 Reed Switches 1 Arduino Nano
    DdawmeD Ddawme
    Troubleshooting

    @mfalkvidd thank you. I was disappointed when I sat how it formatted. I will check your suggestions today.


  • 2 Reed Switches 1 Arduino Nano
    DdawmeD Ddawme
    Troubleshooting

    Hoping for some help from the MySensors experts. Im running a home automation system using Domoticz as my controller and MySensors 2.0 Library for my nodes. I noticed the close proximity of my front door and my garage door and wanted to save a microcontroller and radio by having it handle the reed switches for both doors. First off I do not consider myself a coder Im much more of a hardware kind of guy. I ended up cobbling this sketch together by looking at an example I found in the forums and looking at the included binary switch sketch.

    My issue is when I open the front door, both the garage door and front door indicators on my Domoticz dashboard change state. When I open and close the garage door only the garage door indicator changes state. I suspect it has something to do with how the pin ID's are assigned but I just am not very strong in that department. Any help would be appreciated.

    /**

    • The MySensors Arduino library handles the wireless radio link and protocol
    • between your home built sensors/actuators and HA controller of choice.
    • The sensors forms a self healing radio network with optional repeaters. Each
    • repeater and gateway builds a routing tables in EEPROM which keeps track of the
    • network topology allowing messages to be routed to nodes.
    • Created by Henrik Ekblad henrik.ekblad@mysensors.org
    • Copyright (C) 2013-2015 Sensnology AB
    • Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors
    • Documentation: http://www.mysensors.org
    • Support Forum: http://forum.mysensors.org
    • This program is free software; you can redistribute it and/or
    • modify it under the terms of the GNU General Public License
    • version 2 as published by the Free Software Foundation.

    • DESCRIPTION
    • Simple binary switch example
    • Connect button or door/window reed switch between
    • digitial I/O pin 3 (BUTTON_PIN below) and GND.
    • http://www.mysensors.org/build/binary
      */

    // Enable debug prints to serial monitor
    #define MY_DEBUG

    // Enable and select radio type attached
    #define MY_RADIO_NRF24
    //#define MY_RADIO_RFM69

    #include <SPI.h>
    #include <MySensors.h>
    #include <Bounce2.h>

    #define CHILD_ID_1 3
    #define BUTTON_PIN_1 3 // Arduino Digital I/O pin for button/reed switch
    #define CHILD_ID_2 4
    #define BUTTON_PIN_2 4 // Arduino Digital I/O pin for button/reed switch

    Bounce debouncer1 = Bounce();
    Bounce debouncer2 = Bounce();

    int oldValue1=-1;
    int oldValue2=-1;

    // Change to V_LIGHT if you use S_LIGHT in presentation below
    MyMessage msg1(CHILD_ID_1,V_TRIPPED);
    MyMessage msg2(CHILD_ID_2,V_TRIPPED);

    void setup()
    {
    // Setup the button
    pinMode(BUTTON_PIN_1,INPUT);
    pinMode(BUTTON_PIN_2,INPUT);
    // Activate internal pull-up
    digitalWrite(BUTTON_PIN_1,HIGH);
    digitalWrite(BUTTON_PIN_2,HIGH);

    // After setting up the button, setup debouncer
    debouncer1.attach(BUTTON_PIN_1);
    debouncer1.interval(5);
    debouncer2.attach(BUTTON_PIN_2);
    debouncer2.interval(5);
    }

    void presentation() {
    // Register binary input sensor to gw (they will be created as child devices)
    // You can use S_DOOR, S_MOTION or S_LIGHT here depending on your usage.
    // If S_LIGHT is used, remember to update variable type you send in. See "msg" above.
    present(CHILD_ID_1, S_DOOR);
    present(CHILD_ID_2, S_DOOR);
    }

    // Check if digital input has changed and send in new value
    void loop()
    {
    {
    debouncer1.update();
    // Get the update value
    int value1 = debouncer1.read();

    if (value1 != oldValue1) {
      // Send in the new value
      send(msg1.set(value1==HIGH ? 1 : 0));
      oldValue1 = value1;
    

    }
    }

    {
    debouncer2.update();
    // Get the update value
    int value2 = debouncer2.read();

    if (value2 != oldValue2) {
      // Send in the new value
      send(msg2.set(value2==HIGH ? 1 : 0));
      oldValue2 = value2;
    

    }
    }
    }


  • Library 2.0 - No Humidity sketch
    DdawmeD Ddawme
    Troubleshooting

    @tlpeter I had not, thanks so much! I'm still a novice when it comes to GitHub, how do I download the files?


  • Library 2.0 - No Humidity sketch
    DdawmeD Ddawme
    Troubleshooting

    hmm... is it possible I somehow got an incomplete library? I only have 4 sketches that begin with D and none of them are that one.


  • Library 2.0 - No Humidity sketch
    DdawmeD Ddawme
    Troubleshooting

    I wanted to update all my sensor to the 2.0 library but Im noticing that the Humidity sketch seems to have been removed. Is this correct?


  • MySensors Library
    DdawmeD Ddawme
    Troubleshooting

    @tbowmo I deleted all the files and reinstalled the Arduino IDE. Placed the library as you said and everything works! Thanks and sorry for the inconvenience!


  • MySensors Library
    DdawmeD Ddawme
    Troubleshooting

    So first I tried placing the entire folder in ~/Arduino. No luck there. Then left that folder where it was and copied the Libraries folder from Arduino-Master into ~/Arduino/Libraries. No luck. Nothing was showing up under sketchbook either.

    I then placed the Arduino-Master in ~/sketchbook and that allowed me to see the library in the Arduino IDE but I still get the same error. I then copied the Library folder from Arduino-Master into ~/sketchbook/libraries and still came out with the same error. Im considering doing a fresh Arduino IDE install.

    Running Arduino IDE version 1.6.9 with the newest MySensors Library and Ubuntu 16.04


  • MySensors Library
    DdawmeD Ddawme
    Troubleshooting

    Hi Guys,

    I am struggling to import the MySensors library into Arduino IDE. I have spent the last two days googling and trying things to no avail. I am running Ubuntu 16.04.

    I have the Arduino IDE installed ant it is functional. I can upload one of the example codes to a Arduino MicroController and it works. I can even see the MySensors Library under sketchbook. The problem arises when i try and use any of the codes bundled in the MySensors library. When I try and verify the code I get the following error...

    Arduino: 1.6.9 (Linux), Board: "Arduino Nano, ATmega328"

    /home/dane/sketchbook/Arduino-master/libraries/MySensors/examples/HumiditySensor/HumiditySensor.ino:31:24: fatal error: MySensor.h: No such file or directory
    #include <MySensor.h>
    ^
    compilation terminated.
    exit status 1
    Error compiling for board Arduino Nano.

    Any help would be GREATLY appreciated.


  • Help with req id
    DdawmeD Ddawme
    Troubleshooting

    @sundberg84 sorry to be such a pain but I'm not understanding. Do I add that to the node sketch? When I do I get "null was not declared in this scope".

    Also looking at domoticz log is there a way to know for sure that domo and my gateway are communicating?

    Thanks in advance for your help!


  • Help with req id
    DdawmeD Ddawme
    Troubleshooting

    @sundberg84 where do I add this code? I'm having the same problem


  • Problems getting sensorID
    DdawmeD Ddawme
    Troubleshooting sensor sensorid

    @app-z.net where does this code need to be entered?

  • Login

  • Don't have an account? Register

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