Navigation

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

    mikemayers

    @mikemayers

    0
    Reputation
    23
    Posts
    584
    Profile views
    0
    Followers
    1
    Following
    Joined Last Online
    Website http:// Location Germany

    mikemayers Follow

    Best posts made by mikemayers

    This user hasn't posted anything yet.

    Latest posts made by mikemayers

    • RE: Battery Sensor / Voltage Monitor

      @stamag That depends on the kind of controller employed.

      There is no plugin for Vera according to @hek .

      S_VOLTAGE has not been implemented on vera (someone needs to create the device-files).

      But I don't think you need to present anything at all. The Battery level is added to the Node-device which is automatically created.

      posted in General Discussion
      mikemayers
      mikemayers
    • RE: Motion and lux meters combined in a single device

      @AWI
      @jeylites

      This is what I have done....moved "gw.sleep" to the end.

      #include <MySensor.h>  
      #include <SPI.h>
      
      unsigned long SLEEP_TIME = 120000; // Sleep time between reports (in milliseconds)
      #define DIGITAL_INPUT_SENSOR 3   // The digital input you attached your motion sensor.  (Only 2 and 3 generates interrupt!)
      #define INTERRUPT DIGITAL_INPUT_SENSOR-2 // Usually the interrupt = pin -2 (on uno/nano anyway)
      #define CHILD_ID 31   // Id of the sensor child
      #define LED_PIN 5
      
      
      MySensor gw;
      // Initialize motion message
      MyMessage msg(CHILD_ID, V_TRIPPED);
      
      void setup()  
      {  
        gw.begin();
      
        // Send the sketch version information to the gateway and Controller
        gw.sendSketchInfo("Motion Sensor", "1.0");
      
        pinMode(DIGITAL_INPUT_SENSOR, INPUT);      // sets the motion sensor digital pin as input
        
        pinMode(LED_PIN, OUTPUT); 
        
        
        // Register all sensors to gw (they will be created as child devices)
        gw.present(CHILD_ID, S_MOTION);
        
        
        
      }
      
      void loop()    
       { 
      
        // Read digital motion value
        
        boolean tripped = digitalRead(DIGITAL_INPUT_SENSOR) == HIGH;
        Serial.println(tripped);
        gw.send(msg.set(tripped?"1":"0"));  // Send tripped value to gw 
      
      
        if (tripped){    // from the "Blink" example sketch :-) 
        digitalWrite(LED_PIN, HIGH);   // turn the LED on (HIGH is the voltage level)
         delay(100);        // wait for a second
        digitalWrite(LED_PIN, LOW);  // turn the LED off by making the voltage LOW
        delay(100);
            
         // Sleep until interrupt comes in on motion sensor. Send update every two minute. 
        gw.sleep(INTERRUPT,CHANGE, SLEEP_TIME); 
        
        
        }
        
         }
      
      posted in Hardware
      mikemayers
      mikemayers
    • RE: Motion and lux meters combined in a single device

      @AWI I did as you say on gw and it did turn on the LED when motion is triggered, but the motion remained ON even after the set duration. I think, it's creating a continues loop.

      posted in Hardware
      mikemayers
      mikemayers
    • RE: Motion and lux meters combined in a single device

      @jeylites

      Thank you!
      It seems to be working I think..... Question: When motion is triggered there is no activity on the LED, but when the motion is turned OFF the LED blinks once. Is it suppose to do that? I was wondering if could it be the other way, blink LED when there's motion and OFF LED when there's no motion. Can that be done? What do I have to change to have it do that? Thanks again guys!

      posted in Hardware
      mikemayers
      mikemayers
    • RE: Digital Volume Control

      Hey guys, I didn't hear from you. Just wondering how I could go about changing the sketch to push to on and how do you connect the Arduino to the switches? Thanks.

      posted in General Discussion
      mikemayers
      mikemayers
    • RE: Motion and lux meters combined in a single device

      @AWI said:

      You could either use the output from the motion sensor directly to operate the LED

      I didn't know you could do that. Should I include a resistor in series? For the Adruino pin, do you have a sample code?

      posted in Hardware
      mikemayers
      mikemayers
    • RE: Array Relay Button Actuator

      @jeylites

      Just tested this sketch and it works. Thank for the effort.

      posted in General Discussion
      mikemayers
      mikemayers
    • RE: Motion and lux meters combined in a single device

      is it posible to add an LED indicator to tells there's motion. If so what has to be done?

      posted in Hardware
      mikemayers
      mikemayers
    • Array Relay Button Actuator

      Hello everyone,

      Has anyone done an Array Relay Button Actuator?

      posted in General Discussion
      mikemayers
      mikemayers
    • RE: Motion and lux meters combined in a single device

      @ferpando got it!

      posted in Hardware
      mikemayers
      mikemayers