Navigation

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

    Posts made by chuckconnors

    • RE: 💬 Infrared Sender and Receiver

      @Reza said:

      this module ( ir transmitter ) is weak in transmit . for more than 2 or 3 meter distance dont work . also for less than 1 meter we must direct connection exactly.
      i think this is related to power or noise or problem of module ?!
      can you guidance me ?

      I'm thinking of building this but am concerned about limited range. I'd like it to work 10ft/3m. Can someone confirm that this does not work at these distances? If so, is there a way to increase the range?

      posted in Announcements
      chuckconnors
      chuckconnors
    • RE: ATtiny supported?

      @tlustoch said:

      Any progress? I like to build simple low-power temperature sensor based on attiny85 but cannot compile mysensors sketch if attiny85 set as a processor 😞

      I've switched over to the ESP8266 runing ESPEasy firmware. Very cheap and very easy to use.

      posted in Hardware
      chuckconnors
      chuckconnors
    • RE: Can't compile Humidity sketch 2.0 .. What DHT library do I need?

      @sundberg84 said:

      @chuckconnors - BMP180 or Bmp280 for example.

      Those appear to be atmospheric pressure sensors. Looking for humidity sensors other than the DHT11/DHT22.

      posted in General Discussion
      chuckconnors
      chuckconnors
    • RE: Can't compile Humidity sketch 2.0 .. What DHT library do I need?

      @sundberg84 said:

      @AWI probably because its mentioned in the build page? But i agree - I now know as well there is better out there.

      Can you tell me what better sensors are out there? These DHT11's I have vary wildly with regards to relative humidity.

      posted in General Discussion
      chuckconnors
      chuckconnors
    • OpenHAB not assigning node id

      I just built two new Humidity/Temp/Motion sensors. I'm using OpenHAB 1.3.8 with Mysensors 1.5.1

      I can see that things are working okay in Arduino IDE:

      req id
      send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
      sensor started, id=255, parent=0, distance=1
      req id
      send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
      req id
      send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
      req id
      send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
      req id
      send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
      req id
      send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
      0
      req id
      send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
      req id
      send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
      T: 80.60
      req id
      send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
      H: 40.00
      
      

      Netcat to my ethernet gateway shows this:

      root@debian#  nc 192.168.0.99 5003
      255;255;3;0;3;
      255;255;3;0;3;
      255;255;3;0;3;
      255;255;3;0;3;
      255;255;3;0;3;
      255;255;3;0;3;
      255;255;3;0;3;
      255;255;3;0;3;
      

      OpenHAB is receiving information from my other Mysensors nodes and those values update. I am not seeing anything in the logs about the new sensors not being assigned. It's like it's not seeing them.

      Can anyone help?

      posted in OpenHAB
      chuckconnors
      chuckconnors
    • RE: Can't compile Humidity sketch 2.0 .. What DHT library do I need?

      @tbowmo said:

      @chuckconnors

      if you look at the "examples" repository, it both examples folder, and libraries that should work with the enclosed examples. Copy the library, that you want to use, to Arduino/libraries/... and the example to Arduino/... and try to compile them.

      HOLY SMOKES! I totally missed the libraries directory. Thank you and sorry for the troubles.

      posted in General Discussion
      chuckconnors
      chuckconnors
    • RE: Can't compile Humidity sketch 2.0 .. What DHT library do I need?

      @AWI said:

      @chuckconnors this is what I found as a working example on my system. I still don't understand why the DHT keeps being so popular. There are much better temp/hum sensors around..... But anyway, this one should work.

      Installation
      ------------
      
      Place the [DHT][download] library folder in your `<arduinosketchfolder>/libraries/` folder. You may need to create the `libraries` subfolder if its your first library. Restart the Arduino IDE. 
      
      [download]: https://github.com/markruys/arduino-DHT/archive/master.zip "Download DHT library"
      [example]: https://github.com/markruys/arduino-DHT/blob/master/examples/DHT_Test/DHT_Test.pde "Show DHT example"
      [header]: https://github.com/markruys/arduino-DHT/blob/master/DHT.h "Show header file"```
      

      Thanks for the reply. I'm pretty sure that's one of the ones I tried. I ended up finding an old install I had and copied the library from there and it's working now.

      posted in General Discussion
      chuckconnors
      chuckconnors
    • RE: Can't compile Humidity sketch 2.0 .. What DHT library do I need?

      Can someone please look at their libraries and tell me which one I need to use? Apparently installing Arduino IDE does not install this library by default and all the ones I've tried have failed. I don't see any documentation on which one to use.

      I've got a handful of sensors built but I can't program them until I get this resolved. I really appreciate your time and help. Thanks!

      posted in General Discussion
      chuckconnors
      chuckconnors
    • Can't compile Humidity sketch 2.0 .. What DHT library do I need?

      I'm trying to compile the Humidity sketch 2.0 and am getting an error. Here's the sketch I'm using:

      https://raw.githubusercontent.com/mysensors/MySensorsArduinoExamples/master/examples/HumiditySensor/HumiditySensor.ino

      /**
       * 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.
       *
       *******************************
       *
       * REVISION HISTORY
       * Version 1.0 - Henrik EKblad
       * 
       * DESCRIPTION
       * This sketch provides an example how to implement a humidity/temperature
       * sensor using DHT11/DHT-22 
       * http://www.mysensors.org/build/humidity
       */
       
      // Enable debug prints
      //#define MY_DEBUG
      
      // Enable and select radio type attached
      #define MY_RADIO_NRF24
      //#define MY_RADIO_RFM69
      
      #include <SPI.h>
      #include <MySensors.h>  
      #include <DHT.h>  
      
      #define CHILD_ID_HUM 0
      #define CHILD_ID_TEMP 1
      #define HUMIDITY_SENSOR_DIGITAL_PIN 3
      unsigned long SLEEP_TIME = 30000; // Sleep time between reads (in milliseconds)
      
      DHT dht;
      float lastTemp;
      float lastHum;
      boolean metric = true; 
      MyMessage msgHum(CHILD_ID_HUM, V_HUM);
      MyMessage msgTemp(CHILD_ID_TEMP, V_TEMP);
      
      void setup()  
      { 
        dht.setup(HUMIDITY_SENSOR_DIGITAL_PIN); 
      
        metric = getConfig().isMetric;
      }
      
      void presentation()  
      { 
        // Send the Sketch Version Information to the Gateway
        sendSketchInfo("Humidity", "1.0");
      
        // Register all sensors to gw (they will be created as child devices)
        present(CHILD_ID_HUM, S_HUM);
        present(CHILD_ID_TEMP, S_TEMP);
      }
      
      void loop()      
      {  
        delay(dht.getMinimumSamplingPeriod());
       
        // Fetch temperatures from DHT sensor
        float temperature = dht.getTemperature();
        if (isnan(temperature)) {
            Serial.println("Failed reading temperature from DHT");
        } else if (temperature != lastTemp) {
          lastTemp = temperature;
          if (!metric) {
            temperature = dht.toFahrenheit(temperature);
          }
          send(msgTemp.set(temperature, 1));
          #ifdef MY_DEBUG
          Serial.print("T: ");
          Serial.println(temperature);
          #endif
        }
        
        // Fetch humidity from DHT sensor
        float humidity = dht.getHumidity();
        if (isnan(humidity)) {
            Serial.println("Failed reading humidity from DHT");
        } else if (humidity != lastHum) {
            lastHum = humidity;
            send(msgHum.set(humidity, 1));
            #ifdef MY_DEBUG
            Serial.print("H: ");
            Serial.println(humidity);
            #endif
        }
        
        sleep(SLEEP_TIME); //sleep a bit
      }
      

      The error I'm getting is this:

      
      Arduino: 1.6.6 (Windows 7), Board: "Arduino Pro or Pro Mini, ATmega328 (3.3V, 8 MHz)"
      
      C:\Users\User\Documents\Arduino-new\sketch_jul17e\sketch_jul17e.ino:39:19: fatal error: DHT.h: No such file or directory
      
       #include <DHT.h>  
      
                         ^
      
      compilation terminated.
      
      exit status 1
      Error compiling.
      
      

      I noticed a case sensitive issue so I changed DHT.h to dht.h and I get a bit further but then hit an error on line:

      DHT dht;
      
      

      I changed that to dht dht; and get a bit further still:

      Arduino: 1.6.6 (Windows 7), Board: "Arduino Pro or Pro Mini, ATmega328 (3.3V, 8 MHz)"
      
      C:\Users\User\Documents\Arduino-new\sketch_jul17e\sketch_jul17e.ino: In function 'void setup()':
      
      sketch_jul17e:55: error: 'class dht' has no member named 'setup'
      
         dht.setup(HUMIDITY_SENSOR_DIGITAL_PIN); 
      
             ^
      
      C:\Users\User\Documents\Arduino-new\sketch_jul17e\sketch_jul17e.ino: In function 'void loop()':
      
      sketch_jul17e:72: error: 'class dht' has no member named 'getMinimumSamplingPeriod'
      
         delay(dht.getMinimumSamplingPeriod());
      
                   ^
      
      sketch_jul17e:75: error: 'class dht' has no member named 'getTemperature'
      
         float temperature = dht.getTemperature();
      
                                 ^
      
      sketch_jul17e:81: error: 'class dht' has no member named 'toFahrenheit'
      
             temperature = dht.toFahrenheit(temperature);
      
                               ^
      
      sketch_jul17e:91: error: 'class dht' has no member named 'getHumidity'
      
         float humidity = dht.getHumidity();
      
                              ^
      
      exit status 1
      'class dht' has no member named 'setup'
      
      

      As you've probably guessed, I'm just trying things to see if I can get it to work. I'm guessing it's a library thing and could use some guidance as to what library I should be using. Thanks!

      posted in General Discussion
      chuckconnors
      chuckconnors
    • RE: Codebender motion sketch compile error

      @tbowmo Sorry. I was unclear. I don't mind using the Arduino IDE on my windows machine, but I don't know how to install the correct libraries to use the legacy code. Either that or is there a temp/humidity example sketch for 2.0? I can't find one in the code examples and I don't know what needs to be modified from the older version to make it work with 2.0. Just changing the include name is not enough.

      posted in General Discussion
      chuckconnors
      chuckconnors
    • RE: Codebender motion sketch compile error

      @tbowmo Still very unclear how this works. I'm assuming that codebender is self contained and that I should be able to use it to upload code to my arduino . I understand that this may be outdated, but it should still work right?

      At this point I'm just trying to find some way to upload a temp/humidity sketch to my node and I'm having a heck of time getting things working.

      I don't really care if I use 2.0 or an older version, but I'm not seeing a 2.0 example of the temp/humidity sketch. Does one exist?

      posted in General Discussion
      chuckconnors
      chuckconnors
    • RE: Codebender examples don't match Arduino library examples?

      @tbowmo Thanks for the reply. I'm still a newbie with all this. I think that I have 2.0 installed but most of the code examples I see or have used in the past are not 2.0 . Can you tell me how to install the older library and get rid of the newer one?

      Basically I'd just like to be able to upload the code I've used before to the new nodes.

      posted in General Discussion
      chuckconnors
      chuckconnors
    • Codebender examples don't match Arduino library examples?

      Hey guys.. I'm having a good bit of confusion. I'm trying to get a combination temperature/humidity/motion sensor node going and am running into all kinds of road blocks. I've downloaded the Arduino library and am able to compile and upload example files without problems.

      I do not see the humidity/temp sketch listed in the examples (perhaps it's named in a different way?). I tried copying the example from the build page and it won't compile. I see that it tries to include like this

      #include <MySensor.h>  
      

      where the example sketches include like this:

      #include <MySensors.h>  
      

      I'm not a programmer but I have built some of these sensors successfully in the past and would like to add a few more sensors. Can someone tell me what I'm doing wrong and also possibly link to a working example of the humidity temp node?

      posted in General Discussion
      chuckconnors
      chuckconnors
    • RE: Codebender motion sketch compile error

      @hek said:

      That's strange... did you clone the sketch together with library? Are you having some old MySensors version in your account?

      I'm back at this and am totally confused. I thought that the codebender site would have the updated MS code and examples. Do I need to do something specifically to get it to work with my account? I'm trying to upload the humidity sensor sketch and am getting this error:

      
      (sketch file) HumiditySensor.ino:40:5: error: no matching constructor for initialization of 'DHT'
      
      DHT dht;
          ^
      (library file) DHT/DHT.h:31:3: note: candidate constructor not viable: requires at least 2 arguments, but 0 were provided
        DHT(uint8_t pin, uint8_t type, uint8_t count=6);
        ^
      (library file) DHT/DHT.h:23:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 0 were provided
      class DHT {
            ^
      

      I do have the Arduino IDE installed but it seems to be all messed up. I'm trying to uninstall it and get it working again. I'm not sure how I munged it up but I have no way to upload MS stuff. Any help is greatly appreciated. I only have a small window of time to work on these side projects so any help is really appreciated.

      posted in General Discussion
      chuckconnors
      chuckconnors
    • RE: 💬 Easy/Newbie PCB for MySensors

      @sundberg84 Thanks. Another dumb question: What is the difference between the RAW ad the PWR pads and when should I use one rather than the other?

      posted in OpenHardware.io
      chuckconnors
      chuckconnors
    • RE: 💬 Easy/Newbie PCB for MySensors

      Another real quick question. I have a simple sensor using a DHT11. I have this connected to D3 for signal and power and ground from the right holes. I'm getting an error saying it can't read temp/hum from the DHT. That set up should be right though? I also have a 4.7k ohm resistor in the board for D3 (that's the pin, right?).

      posted in OpenHardware.io
      chuckconnors
      chuckconnors
    • RE: "Washing machine ended" sensor

      @Moshe-Livne Thanks for posting this. I definitely plan on trying this for my washer but am curious if you think that it would work for the dryer as well. Is the SW-420 sensitive enough to be able to detect the more subtle movement of the dryer?

      posted in My Project
      chuckconnors
      chuckconnors
    • RE: 💬 Easy/Newbie PCB for MySensors

      @sundberg84
      @BastienVH said:

      @sundberg84 said:

      If you use the FTDI connector, make sure its the 3.3v and connect it to Gnd/Pwr on the PCB and not Arduino FDTI connector.
      You could just exclude those pins and connect a battery directly and use that as power and the FDTI as programmer/serial debug only

      Bat or Reg is nessecary!
      See this picture for battery use: https://www.openhardware.io/view/4/EasyNewbie-PCB-for-MySensors
      https://www.openhardware.io/uploads/568ed84b60aa3f8965fbf095/image/3.jpg
      All components in the image is needed (except battery measurment).
      If you dont want to use booster you need to bypass that one with a wire/jumper (or set the jumper on REG instead of BAT but that kills the logic).

      The battery doesnt "need" the 0,1uF but see here:https://www.mysensors.org/build/battery
      "The tap point could be bypassed with a 0.1 uF capacitor to keep the noise level low, at this otherwise high impedance point. "

      Hi. I've been using this board with 5V power from cell chargers and it works great. I'm trying to make my first battery sensor and am a bit confused (again) as to what is necessary. I'm powering using 2 AA batteries. I've cut the right side off the board so I'm obviously not using the measuring portion, but the above bit about the booster leaves me confused. Can someone answer:

      • I connect via the PWR and GND pads right?
      • Do I jumper BAT or REG?
      • Do I need to do anything else to get this to work?

      I tried to program using battery in but was using the ground from the ftdi connector. I could not get this to work. I'm thinking that this was a major problem and that I should have used the battery ground. That's the right approach right?

      posted in OpenHardware.io
      chuckconnors
      chuckconnors
    • RE: Codebender motion sketch compile error

      @hek said:

      That's strange... did you clone the sketch together with library? Are you having some old MySensors version in your account?

      To be honest, I have no idea. I was trying to run it directly from the sensor information page from the build link. I do have an account, but I have no idea if I have an old version. I guess I'll have to investigate my account and see if I can update/uninstall the old version.

      posted in General Discussion
      chuckconnors
      chuckconnors
    • Codebender motion sketch compile error

      I'm trying to use codebender to upload the default motion sensor node to my Arduino and am getting this compile error:

      In file included from (library file) MySensor/MyGateway.cpp:12:
      (library file) MySensor/MyGateway.h:39:28: error: use of undeclared identifier 'DEFAULT_CE_PIN'
      
                      MyGateway(uint8_t _cepin=DEFAULT_CE_PIN, uint8_t _cspin=DEFAULT_CS_PIN, uint8_t _inclusion_time = 1, uint8_t _inclusion_pin = 3, uint8_t _rx=6, uint8_t _tx=5, uint8_t _er=4);
                                               ^
      
      

      Can someone tell me how to get around this?

      posted in General Discussion
      chuckconnors
      chuckconnors
    • RE: Hacking a generic motion detector light

      @Sparkman said:

      That is true, but it does make for a clean install and is also UL approved.

      Yes to both of those. The UL Approved portion was in the back of mind in regards to this project already. I wish I had an unlimited amount of funds!

      posted in Hardware
      chuckconnors
      chuckconnors
    • RE: Hacking a generic motion detector light

      @Sparkman said:

      @chuckconnors An Aeotec Micro Switch should work as it can sense 120v from the motion sensor to control the relay. I was looking to do that myself.

      Cheers
      Al

      Right, it's the cost that gets me. $40 x 3 = a whole lot of Arduinos and parts 🙂

      posted in Hardware
      chuckconnors
      chuckconnors
    • RE: Hacking a generic motion detector light

      @Sparkman said:

      @chuckconnors This may give you some info: https://www.handymanhowto.com/how-to-wire-a-motion-activated-floodlight-with-an-insteon-in-linelinc-relay/

      Cheers
      Al

      Thanks for this. Yes, it does shed some light on what to expect:

      Motion sensor wires – all operate at 120VAC

      Bummer. I was hoping not to have to deal with mains voltage. So now I'd have to be able to tie in a relay for controlling the light ON/OFF from the node (5V signal to 120V), some way to sense the 120V signal from the motion sensor, and an AC->DC transformer to power the node. This is making the project less appealing.

      I don't have an Insteon controller and the device in the article doesn't come up at Amazon so I'm not sure if it's still available. Perhaps I could do this with Z-wave but I was hoping for a DIY solution to keep things on the cheap as I'd need to do this for three separate lights.

      posted in Hardware
      chuckconnors
      chuckconnors
    • Hacking a generic motion detector light

      I've been thinking about trying to modify a generic motion detector light (eg https://www.amazon.com/Heath-Zenith-HZ-5411-WH-Motion-Security/dp/B00002N7FP/ref=sr_1_4?ie=UTF8&qid=1466779296&sr=8-4&keywords=motion+detector+light) to be controllable with Mysensors and am curious if anyone has any experience with these types of devices.

      I'd like to be able to:

      • Detect when motion is sensed and send that to the gateway (motion node)
      • Be able to send a command to turn the light on/off by sending a signal (relay node)
      • Allow the motion detector light to operate as it normally would if the Mysensors controller is not available

      I have not purchased a device to test this with so I'm unsure what to expect. I'm hoping that these lights are converting the mains voltage to DC. If this is the case then I may be able to power the Arduino from that DC voltage and tap into the signal line for the motion detection portion. I'm also guessing that in taping into the signal line that I can 'fake' a motion event by replicating what's done by the motion sensor on the unit by replicating that with the Arduino similar to what the relay node does.

      I'm making a lot of assumption without having a device to see what is going on so I'm posting to see if anyone has poked around with a similar device. Another big sticking point is that I would like the motion detector light to look stock so I'm hoping that I'll be able to tuck the Arduino and radio into the electrical box that the light is mounted to.

      Any thoughts on what I might expect in doing this and/or any advice?

      posted in Hardware
      chuckconnors
      chuckconnors
    • RE: Troubleshoot ethernet gateway

      Found the problem. Bad connection to router. I am now able to interact with it. Ping did work as did netcat. Thanks again.

      posted in General Discussion
      chuckconnors
      chuckconnors
    • Troubleshoot ethernet gateway

      I built an ethernet gateway a while back and it works great. I've been having sporadic issues with OpenHAB not being able to read from it or something similar. Is there an easy way to snoop on the traffic of the ethernet gateway? Will it respond to a ping? Can I view messages sent/received via netcat on Linux?

      posted in General Discussion
      chuckconnors
      chuckconnors
    • RE: 💬 Easy/Newbie PCB for MySensors

      @sundberg84 I'm about to make an aliexpress order and would like to get some voltage regulators. I scanned through the post but didn't see a BoM. Can you please tell me the part number for the voltage regulator used?

      posted in OpenHardware.io
      chuckconnors
      chuckconnors
    • RE: 💬 Easy/Newbie PCB for MySensors

      @sundberg84 I was able to use your marked up image to successfully build two nodes without problem. Thanks again for the help with hooking things up and for providing the board for purchase as well. I was able to build the whole thing in about 10 minutes even with my limited soldering abilities.

      The only gripe I have is that one of my boards had a hole for the 4.7uF cap that wasn't completely drilled out. It was easy enough to just solder to the nearby ground. This is a dirtyboards quality control issue. I'm hoping not to see this on any of my other boards. I guess I'll have to inspect them before adding the components for future nodes.

      All the best to you!

      posted in OpenHardware.io
      chuckconnors
      chuckconnors
    • RE: Codebender compilation error with Relay Actuator sketch

      @hek Thanks for fixing this. I just used the arduino ide on my computer but plan to use codebender for future projects.

      posted in Troubleshooting
      chuckconnors
      chuckconnors
    • Codebender compilation error with Relay Actuator sketch

      I was able to successfully upload the blink sketch on this page http://www.mysensors.org/about/arduino using codebender api without problem. I'm trying to upload the Mysensors Relay Actuator from http://www.mysensors.org/build/relay but I get a message saying 'There was an error compiling' . Can someone tell me if this is an issue with codebender api or if it's something on my end? Is there a way to view the error?

      posted in Troubleshooting
      chuckconnors
      chuckconnors
    • RE: 💬 Easy/Newbie PCB for MySensors

      @sundberg84 A picture is worth a 1000 words! Thanks for taking the time to do this for me. I don't have the 0.1uF or 10uF caps available but will order and add them. My real problem is that I am limited in the components I have on hand and have to order them so it takes a while (plus I'm anxious to work on this!).

      posted in OpenHardware.io
      chuckconnors
      chuckconnors
    • RE: 💬 Easy/Newbie PCB for MySensors

      @sundberg84 Thanks for the information. So the 5V source goes to RAW input and this goes to the RAW jumper on the left portion of the board. I need to jump that to complete the connection to get RAW power to the Arduino, right? From there it looks like the 3.3V connects to the 4.7uF cap and the power on the radio so I'm assuming once RAW power is supplied to the Arduino that I'd start getting 3.3V output from the 3.3V pin on the Arduino. Am I reading the traces wrong?

      Thanks again

      posted in OpenHardware.io
      chuckconnors
      chuckconnors
    • RE: 💬 Easy/Newbie PCB for MySensors

      @sundberg84 said:

      @chuckconnors Well, it is possible... you can always hard wire/bypass stuff with wires... its possible.
      See @BastienVH for minimun req. 3.3v. In bat. operations you feed the radio directly from batteries - less noice and radio can handle down to 0.9V (i think) so its not a problem. You need the booster for sensors and arduino requiers 3.3v to run. You can also feed 3.3v directly to VCC on the PCB if you have that regulated. Then you can just add jumper to reg.

      If you tell me exactly what you want to do i can help you and explain what you need and how to wire it. With your setup now like you described and you run that on 3v batteries it will be dead within a week.

      If you want battery power - you should go with 3.3v arduino (advantage: last longer)
      If you have regulated 5v (like from a phone charger) use 5v arduino (advantage: smaller PCB)

      @sundberg84 I just got my boards in and am hoping to hook things up this weekend for a simple Temp/Humidity node with a DHT11. The plan is to provide 5V input from an old phone charger. I'd like to wire this directly to the arduino via the GND PWR pads at the top. What jumper do I need to set for this?

      Can I just power the radio through the 4.7uF cap via the 3.3V and ground pads on the left side of the board via some wires? Does the radio already have a ground coming from the ground on the arduino? I'm assuming that power would be coming from the arduino regulator. Will this set up work?

      Thanks again for your patience.

      posted in OpenHardware.io
      chuckconnors
      chuckconnors
    • RE: 💬 Easy/Newbie PCB for MySensors

      @sundberg84 Thanks for the clarification. I took a look at the board images and I see what you mean. Forgive me again for trying your patience, but could you be so kind as to tell me what the minimum required components are for using this board with a 3.3V Arduino?

      Currently I'm only using the Arduino, radio, radio capacitor, power supply (battery or 5V ), and whatever sensors required for that node. This worked out well using the standard hookups as the radio was being powered by the Arduino and the radio is guaranteed the correct voltage via the built in regular on the Arduino, but as you've mentioned this isn't an option with your board. Do I need to include the battery caps and regulator? Again, I'm a novice and I can follow the traces on the top side of the board using the silkscreen labels as a guide but it's a bit harder to follow on the unlabeled bottom side. Do most of you guys use the 5V Arduino?

      posted in OpenHardware.io
      chuckconnors
      chuckconnors
    • RE: 💬 Easy/Newbie PCB for MySensors

      @sundberg84 Thanks for the reply. Please forgive my ignorance, but can you explain what happens if you connect power via the FTDI pins? Wouldn't it still power the chip and radio?

      Should I supply the 5V/GND from the FTDI interface to the VCC/GND pads on the bottom left side of the board?

      posted in OpenHardware.io
      chuckconnors
      chuckconnors
    • RE: 💬 Easy/Newbie PCB for MySensors

      Please excuse the questions, but you did say this is for Newbies, right? 🙂

      I'm planning on using this with the 3.3v Arduino with battery power once things are debugged. I see above that you say to power from the battery input rather than the FTDI pins. Is that for 5V and 3.3V? Also, what is the resistor labeled D3 Res Temp/Hum used for?

      posted in OpenHardware.io
      chuckconnors
      chuckconnors
    • RE: How can I control a servo with Mysensors? Automatic cat feeder

      I'm thinking of building the final device using a spring loaded hinge that is normally used to keep doors closed. I see that some can be adjusted to slow the opening speed. This would be helpful in keeping the box from opening too fast.

      I think a solenoid would be a better fit for this project than the servo but I know nothing about them. The idea would be that the solenoid would hold the lid closed but retract when power is supplied and the pin would allow the box to open using the power of the hinges. Can anyone make a suggestion for a low cost DC server? All the ones I'm seeing have very little movement (1mm - 5mm). I'd think I'd want something closer to 0.5" .

      posted in General Discussion
      chuckconnors
      chuckconnors
    • RE: How can I control a servo with Mysensors? Automatic cat feeder

      Good point. I've got a feeling that the rubber bands won't last. I also had to add a weight to keep the box from tipping over.

      I may just go with something similar to what @sundberg84 posted. This should buy me a few weekends of rest before it starts failing but now I know I can come up with something to solve the problem.

      posted in General Discussion
      chuckconnors
      chuckconnors
    • RE: How can I control a servo with Mysensors? Automatic cat feeder

      Here's the cardboard prototype proof-of-concept video:

      Youtube video

      posted in General Discussion
      chuckconnors
      chuckconnors
    • RE: How can I control a servo with Mysensors? Automatic cat feeder

      @mfalkvidd thanks for the help. That's definitely what I needed to know!

      I've gotten the 1.0 version working but my range from the gateway is an issue I'm trying to resolve. For now it's basically a spring loaded (rubber band actually) cardboard box but it does work. I'm planning on building a version out of wood once I get some some time.

      posted in General Discussion
      chuckconnors
      chuckconnors
    • How can I control a servo with Mysensors? Automatic cat feeder

      Hey guys. Our cat is our alarm clock and I'm trying to solve that. Every morning she demands to be fed around 6am weekends included. My goal is to fix that problem with an automatic cat feeder.

      I'm trying to figure out a way to control a little microservo that I want to use to trigger a springloaded hinged door. The servo gets power and moves 90 degrees. When this happens the door springs open and the cat can get the food.

      I've written the bit that moves the servo to open and also back to closed position. I need to trigger these actions using MySensors. I'm guessing the best way is to use the relay sketch, but I'm at a loss as to how to modify it. I'm not a programmer so the coding for this sketch is a little foreign to me.

      Can someone explain how the relay sketch can be modified? I would like it to run the 'open door with servo' portion when the relay would be energized, and the 'close door with servo' portion when the relay would be idle.

      Any help is greatly appreciated. In fact, our whole household thanks you for helping us sleep in!!

      posted in General Discussion
      chuckconnors
      chuckconnors
    • Smallest sized Arduino for Mysensors

      I'm looking for the smallest sized Arduino that will run the Mysensors code for a simple binary switch. I did see talk of the ATiny85 but did not see where anyone was able to get it to work stable. Is there a small off-the-shelf solution?

      posted in Hardware
      chuckconnors
      chuckconnors
    • RE: Problems on reboot

      I'm on UI5 as well. I'm using usb/parasite power. You're saying apply 5V via a pin? Perhaps I could try a powered USB hub? I'm thinking I'll be adding a USB stick soon for logging anyway.

      posted in Troubleshooting
      chuckconnors
      chuckconnors
    • RE: Problems on reboot

      😀 ..... but seriously ... Is the network gateway more stable with Vera?

      posted in Troubleshooting
      chuckconnors
      chuckconnors
    • RE: Binary sensor expanded help

      Much cleaner! I'll give it a go soon. Thanks for all the help!

      posted in Development
      chuckconnors
      chuckconnors
    • RE: Problems on reboot

      I'm having this exact same problem. UI5 with a Nano. Is there anything that can be done about this? Would I have an easier time converting to a network gateway?

      posted in Troubleshooting
      chuckconnors
      chuckconnors
    • RE: Binary sensor expanded help

      That would be great. Thanks for the push in the right direction.. I'm about to connect it to the alarm wires!

      posted in Development
      chuckconnors
      chuckconnors
    • RE: Binary sensor expanded help

      Thanks for the help again. I think I have something working. Could definitely use some help cleaning it up though:

      #include <SPI.h>
      #include <MySensor.h>
      #include <Bounce2.h>
      
      #define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
      
      #define SLEEP_TIME 600000 // Sleep time between reads (in milliseconds)
      #define STABILIZATION_TIME 500 // Let the sensor stabilize 0.5 seconds before reading
      
      const int SENSORS[] = {3,4,5,6,7,8}; // Remove the pins that you don't want to use
      #define N_ELEMENTS(array) (sizeof(array)/sizeof((array)[0]))
      
      MySensor gw;
      
      Bounce debouncer_1 = Bounce();
      Bounce debouncer_2 = Bounce();
      Bounce debouncer_3 = Bounce();
      Bounce debouncer_4 = Bounce();
      Bounce debouncer_5 = Bounce();
      Bounce debouncer_6 = Bounce();
      
      int oldValue_1 =-1;
      int oldValue_2 =-1;
      int oldValue_3 =-1;
      int oldValue_4 =-1;
      int oldValue_5 =-1;
      int oldValue_6 =-1;
      
      
      
      
      MyMessage button_messages[N_ELEMENTS(SENSORS)];
      
      void setup()
      {
        gw.begin();
      
        for (int sensor = 0; sensor < N_ELEMENTS(SENSORS); sensor++) {
          button_messages[sensor].sensor = sensor + 1; // Battery uses child ID 0 so sensors start at 1
          button_messages[sensor].type = V_TRIPPED;
          delay(250);
          gw.present(sensor + 1, S_DOOR);
        }
        for (int i = 0; i < N_ELEMENTS(SENSORS); i++) {
      
          pinMode(SENSORS[i], INPUT);
          digitalWrite(SENSORS[i], HIGH);
      
          switch (1+i)
          {
            case 1:
              debouncer_1.attach(SENSORS[i]);
              debouncer_1.interval(5);
              break;
            case 2:
              debouncer_2.attach(SENSORS[i]);
              debouncer_2.interval(5);
              break;
            case 3:
              debouncer_3.attach(SENSORS[i]);
              debouncer_3.interval(5);
              break;
            case 4:
              debouncer_4.attach(SENSORS[i]);
              debouncer_4.interval(5);
              break;                        
            case 5:
              debouncer_5.attach(SENSORS[i]);
              debouncer_5.interval(5);
              break;        
            case 6:
              debouncer_6.attach(SENSORS[i]);
              debouncer_6.interval(5);
              break;        
          }
        }
      }
      
      void loop()
      {
      
       for (int sensor = 0; sensor < N_ELEMENTS(SENSORS); sensor++) 
        {
              int num = 1+sensor;
          // Get the update value
          switch (num) 
          {
            case 1:
              {
                debouncer_1.update();
                int value_1 = debouncer_1.read();
                if (value_1 != oldValue_1) {
                 // Send in the new value
                 gw.send(button_messages[sensor].set(value_1==HIGH ? 1 : 0)); 
                 Serial.print("Switch 1=");
                 Serial.println(value_1);
                 oldValue_1 = value_1;
                }
                break;
              }
            case 2:
              {
                debouncer_2.update();
                int value_2 = debouncer_2.read();
                if (value_2 != oldValue_2) {
                 // Send in the new value
                 gw.send(button_messages[sensor].set(value_2==HIGH ? 1 : 0)); 
                 Serial.print("Switch 2=");
                 Serial.println(value_2);
                 oldValue_2 = value_2;
                }
                break;
              }
            case 3:
              {
                debouncer_3.update();
                int value_3 = debouncer_3.read();
                if (value_3 != oldValue_3) {
                 // Send in the new value
                 gw.send(button_messages[sensor].set(value_3==HIGH ? 1 : 0)); 
                 Serial.print("Switch 3=");
                 Serial.println(value_3);
                 oldValue_3 = value_3;
                }
                break;
              }
            case 4:
              {
                debouncer_4.update();
                int value_4 = debouncer_4.read();
                if (value_4 != oldValue_4) {
                 // Send in the new value
                 gw.send(button_messages[sensor].set(value_4==HIGH ? 1 : 0)); 
                 Serial.print("Switch 4=");
                 Serial.println(value_4);
                 oldValue_4 = value_4;
                }
                break;
              }
            case 5:
              {
                debouncer_5.update();
                int value_5 = debouncer_5.read();
                if (value_5 != oldValue_5) {
                 // Send in the new value
                 gw.send(button_messages[sensor].set(value_5==HIGH ? 1 : 0)); 
                 Serial.print("Switch 5=");
                 Serial.println(value_5);
                 oldValue_5 = value_5;
                }
                break;
              }
            case 6:
              {
                debouncer_6.update();
                int value_6 = debouncer_6.read();
                if (value_6 != oldValue_6) {
                 // Send in the new value
                 gw.send(button_messages[sensor].set(value_6==HIGH ? 1 : 0)); 
                 Serial.print("Switch 6=");
                 Serial.println(value_6);
                 oldValue_6 = value_6;
                }
              break;
              }
            }
        }
      
      
      
        
      }
      
      posted in Development
      chuckconnors
      chuckconnors
    • RE: Binary sensor expanded help

      Thank you for taking the time to help. Unfortunately I'm more of hacker than a programmer. I understand what you are saying about making the message a global, but I don't know exactly how to accomplish it. I tried to just force it like this:

      MyMessage msg(1,V_TRIPPED);
      MyMessage msg(2,V_TRIPPED);
      MyMessage msg(3,V_TRIPPED);
      MyMessage msg(4,V_TRIPPED);
      MyMessage msg(5,V_TRIPPED);
      MyMessage msg(6,V_TRIPPED);
      

      but that did not work. Also, I do understand using an array would clean things up a bit but I'd like to get it working in this basic format first then work on refining it. Thanks again.

      posted in Development
      chuckconnors
      chuckconnors
    • RE: Binary sensor expanded help

      Thanks for the advice. I did have the variable declared as:

      MyMessage msg(ZONE_1+i,V_TRIPPED);
      

      but it's quite possible that I'm doing that wrong. I tried changing it to your version and I get the same error.

      I'm very excited to get this working but am so in the dark when it comes to actual programming. I appreciate any help you guys can give to get this thing running finally.

      posted in Development
      chuckconnors
      chuckconnors
    • RE: Binary sensor expanded help

      Wow. It's been two years since I've visited this. At any rate. I'm trying to update to the latest mysensors version and am running into an issue. I've used the binary sensor as a base but I'm pretty sure that I'm doing something wrong. Here's the code I'm trying to use:

      
      #include <MySensor.h>
      #include <SPI.h>
      #include <Bounce2.h>
      
      #define ZONE_1  3  // Arduino Digital I/O pin for button/reed switch
      #define NUMBER_OF_ZONES 6
      
      MySensor gw;
      
      Bounce debouncer_1 = Bounce();
      Bounce debouncer_2 = Bounce();
      Bounce debouncer_3 = Bounce();
      Bounce debouncer_4 = Bounce();
      Bounce debouncer_5 = Bounce();
      Bounce debouncer_6 = Bounce();
      
      int oldValue_1 =-1;
      int oldValue_2 =-1;
      int oldValue_3 =-1;
      int oldValue_4 =-1;
      int oldValue_5 =-1;
      int oldValue_6 =-1;
      
      void setup()  
      {  
        gw.begin();
      
      
        for (int i=0; i<NUMBER_OF_ZONES;i++) 
        {
         // Setup the button
          pinMode(ZONE_1+i,INPUT);
          // Activate internal pull-up
          digitalWrite(ZONE_1+i,HIGH);
          MyMessage msg(ZONE_1+i,V_TRIPPED);
          
        
        // After setting up the button, setup debouncer
            switch (1+i) 
            {
            case 1:
              debouncer_1.attach(ZONE_1);
              debouncer_1.interval(5);
              break;
            case 2:
              debouncer_2.attach(ZONE_1+i);
              debouncer_2.interval(5);
              break;
            case 3:
              debouncer_3.attach(ZONE_1+i);
              debouncer_3.interval(5);
              break;
            case 4:
              debouncer_4.attach(ZONE_1+i);
              debouncer_4.interval(5);
              break;
            case 5:
              debouncer_5.attach(ZONE_1+i);
              debouncer_5.interval(5);
              break;
            }
        
        // 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.
        
        gw.present(ZONE_1+i, S_DOOR); 
        delay(1000);
       }
      
      }
      
      
      //  Check if digital input has changed and send in new value
      void loop() 
      {
      for (int i=0; i<NUMBER_OF_ZONES;i++) 
        {
          int num = 1+i;
          // Get the update value
          switch (num) 
          {
            case 1:
              {
                debouncer_1.update();
                int value_1 = debouncer_1.read();
                if (value_1 != oldValue_1) {
                 // Send in the new value       
                 gw.send(msg.setSensor(ZONE_1+i).set(value_1==HIGH ? 1 : 0));
                 oldValue_1 = value_1;
                }
                break;
              }
            case 2:
              {
                debouncer_2.update();
                int value_2 = debouncer_2.read();
                if (value_2 != oldValue_2) {
                 // Send in the new value
                 gw.send(msg.setSensor(ZONE_1+i).set(value_2==HIGH ? 1 : 0));
                 oldValue_2 = value_2;
                }
                break;
              }
            case 3:
              {
                debouncer_3.update();
                int value_3 = debouncer_3.read();
                if (value_3 != oldValue_3) {
                 // Send in the new value
                 gw.send(msg.setSensor(ZONE_1+i).set(value_3==HIGH ? 1 : 0));
                 oldValue_3 = value_3;
                }
                break;
              }
            case 4:
              {
                debouncer_4.update();
                int value_4 = debouncer_4.read();
                if (value_4 != oldValue_4) {
                 // Send in the new value
                gw.send(msg.setSensor(ZONE_1+i).set(value_4==HIGH ? 1 : 0));
                 oldValue_4 = value_4;
                }
                break;
              }
            case 5:
              {
                debouncer_5.update();
                int value_5 = debouncer_5.read();
                if (value_5 != oldValue_5) {
                 // Send in the new value
                 gw.send(msg.setSensor(ZONE_1+i).set(value_5==HIGH ? 1 : 0));
                 oldValue_5 = value_5;
                }
                break;
              }
            case 6:
              {
                debouncer_6.update();
                int value_6 = debouncer_6.read();
                if (value_6 != oldValue_6) {
                 // Send in the new value
                 gw.send(msg.setSensor(ZONE_1+i).set(value_6==HIGH ? 1 : 0));
                 oldValue_6 = value_6;
                }
              break;
              }
            }
      
      
           
        }
      } 
      

      When I try to compile I get this error:

      Arduino: 1.6.6 (Windows 7), Board: "Arduino/Genuino Uno"
      
      Warning: platform.txt from core 'MySensors AVR based boards' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Consider upgrading this core.
      WARNING: Category '' in library UIPEthernet is not valid. Setting to 'Uncategorized'
      C:\Users\User\Documents\Arduino\alarm\alarm.ino: In function 'void loop()':
      
      alarm:118: error: 'msg' was not declared in this scope
      
                  gw.send(msg.setSensor(ZONE_1+i).set(value_1==HIGH ? 1 : 0));
      
                          ^
      
      alarm:129: error: 'msg' was not declared in this scope
      
                  gw.send(msg.setSensor(ZONE_1+i).set(value_2==HIGH ? 1 : 0));
      
                          ^
      
      alarm:140: error: 'msg' was not declared in this scope
      
                  gw.send(msg.setSensor(ZONE_1+i).set(value_3==HIGH ? 1 : 0));
      
                          ^
      
      alarm:151: error: 'msg' was not declared in this scope
      
                 gw.send(msg.setSensor(ZONE_1+i).set(value_4==HIGH ? 1 : 0));
      
                         ^
      
      alarm:162: error: 'msg' was not declared in this scope
      
                  gw.send(msg.setSensor(ZONE_1+i).set(value_5==HIGH ? 1 : 0));
      
                          ^
      
      alarm:173: error: 'msg' was not declared in this scope
      
                  gw.send(msg.setSensor(ZONE_1+i).set(value_6==HIGH ? 1 : 0));
      
                          ^
      
      exit status 1
      'msg' was not declared in this scope
      

      I'm guessing it's a syntax error but I'm having trouble trying to format it correctly. I'm a hacker not a programmer so any help would be most appreciated! Thanks

      posted in Development
      chuckconnors
      chuckconnors
    • RE: ATtiny supported?

      I've seen a few posts about the ATtiny and it seems that perhaps someone has gotten it to work (http://forum.mysensors.org/topic/2129/battery-attiny85-door-window-wireless-sensor) though I'm not certain.

      I'd really like to use these cheap chips for motion sensors and relay controllers for some sirens. Can anyone confirm or deny that these actually work?

      posted in Hardware
      chuckconnors
      chuckconnors
    • Help needed to extend binary sensor to multiple switches

      Hey guys. What a wonderful project you've got going on. I've managed to build a temp/humidity/pressure sensor and have been toying with the binary sensor. I was able to create the binary sensor just fine, but now I'd like to extend it to multiple switches on the same node.

      I am not a programmer so I really am just playing around with things and trying to get it to work. I have eight switches that I would like to monitor and am afraid that it would be pretty inefficient to test each switch individually. Is there an easy way to test all switches as a binary number, compare it to the previous value read and then trigger whatever switches have changed. I'm not sure if that even makes sense but would love to see any suggestions and/or code to accomplish something like this.

      Any help is greatly appreciated. Thanks again.

      posted in Development
      chuckconnors
      chuckconnors
    • RE: Binary sensor expanded help

      @mikeones Oh, okay.. That makes sense. Are you using any resistors with your switches or are you using just the switches?

      posted in Development
      chuckconnors
      chuckconnors
    • RE: Binary sensor expanded help

      Thanks Mikeones! I will try it out. I do have one question though. You seem to be setting all pins based on ZONE_1 variable, correct? So you would be using pins 14-19 for your input? Shouldn't ZONE_1 be set to 3 to use pins 3-8? Again, I am totally new so maybe I'm looking at it wrong. I am using a nano if that makes a difference.

      posted in Development
      chuckconnors
      chuckconnors
    • Binary sensor expanded help

      I've tried the binary sensor with a switch and it works great. I would like to expand this to incorporate a few more switches, but I am not sure what the best approach would be. I have tried copying portions of the code and changing variable names and almost have things working okay (debouncing acts weird), but I know my method is no very effective. I have very little experience with programming on the arduino and would appreciate some advice on what to do or where to look for help.

      posted in Development
      chuckconnors
      chuckconnors