Navigation

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

    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
    • RE: Radio doesn't work properly powered by 3.3V - only 5V

      @britcowboy

      What controller are you using ?

      posted in Troubleshooting
      mikemayers
      mikemayers
    • Fail Messages on Every MyS Sketch

      Hey guys,

      I went through two Arduino Uno today trying to figure out what is causing these fail messages below. It looks like any sketch I use on MY Sensor library , I'm getting this fail messages. What could be the problem?

      sensor started, id 3
      send: 3-3-1-0 s=255,c=0,t=17,pt=0,l=5,st=fail:1.4.1
      send: 3-3-1-0 s=255,c=3,t=6,pt=1,l=1,st=fail:1
      send: 3-3-1-0 s=255,c=3,t=11,pt=0,l=13,st=fail:Motion Sensor
      send: 3-3-1-0 s=255,c=3,t=12,pt=0,l=3,st=fail:1.0
      send: 3-3-1-0 s=1,c=0,t=1,pt=0,l=5,st=fail:1.4.1
      0
      send: 3-3-1-0 s=1,c=1,t=16,pt=0,l=1,st=fail:0

      posted in Bug Reports
      mikemayers
      mikemayers
    • RE: UI7

      @mjunqueira
      good to know you got Serial to worked.

      posted in Vera
      mikemayers
      mikemayers
    • RE: Radio doesn't work properly powered by 3.3V - only 5V

      @britcowboy

      Wait a minute... are you running your radio on 5vdc? Doesn't the spec say 1.9 ~ 3.6V? I'm actually having the same issue. I know it's something to do with the power but haven't really tried anything yet other than a 100uf cap. You know what, I'm going to try running mine at 5V and see if anything happen. And if it burns the radio I'm cool with that. The least I get some closure.

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

      @ferpando

      very nice setup. What pins are the Lux sensor wired to the Arduino? In the sketch, only pin A0 is defined but on wiring diagram A4 & A5 is used.

      posted in Hardware
      mikemayers
      mikemayers
    • RE: issues with light lux sensor and trinket pro

      I have the same question too... Pin A4 & A5 is not define in the sketch, but pin A0 is. How does the node know which pins to grab the values from? Are we not using Pin A4 & A5? and What happens to pin A0?

      posted in Vera
      mikemayers
      mikemayers
    • RE: Digital Volume Control

      @Sparkman

      Using the "Arduino to drive the button inputs on the DS1802 low and control" is probably what I'm going to do.

      My question is, how do I change the Arduino relay sketch to have the outputs turn ON when pushed and OFF when released? Right now its push once to turn ON and push again to OFF.

      @jeylites
      I was also going through your advice on MAX5486 . If I'm going with the above approach, I'm guessing MAX5486 will be sufficient right...? Will I need additional electronic for the outputs?

      posted in General Discussion
      mikemayers
      mikemayers
    • RE: Digital Volume Control

      @Sparkman

      Essentially, I'm looking to control the volume using push buttons or with My Sensor. Both options should be able to communicate with the volume UP, Down and Mute. I like the DS1802 that gives the flexibility to do both. But, since you say it's not standard serial interface and the MCP4131 will be an ideal choice. How can adapt similar feature on to MCP? Can the MCP be configured as PWM control using My Sensor Dimmer sketch?

      "The other option with the DS1802 is to simulate the pushbuttons using the pins of an Arduino."

      Are you suggesting connecting Arduino relays button actuator to the push buttons to simulate UP, Down and Mute. If so what kind of function should I add or remove from the sketch to have it turn ON the relay when the button is pushed and turn OFF relay when released. I think this will be the most low-tech method to go about that will get the job done without any tedious programming.

      Also, I was checking this project, linked below. If I can do something with this... I think it would work great.

      http://forum.mysensors.org/topic/936/backlit-dimmable-led-mirror-with-motion-sensor

      posted in General Discussion
      mikemayers
      mikemayers
    • RE: Digital Volume Control

      @AWI

      I think I'm going to take a while putting this together. I'm new to My Sensor & Programming. Do you have any sample that I can work with?

      posted in General Discussion
      mikemayers
      mikemayers
    • RE: Button Dimmable LED Actuator

      @Francois

      Thanks! This project just made my day!

      posted in General Discussion
      mikemayers
      mikemayers
    • RE: Digital Volume Control

      So I'm guessing is not something that could connect directly to My Sensor. I will need a secondary MCU doing serial and using PWM to control the output... is that right?

      posted in General Discussion
      mikemayers
      mikemayers
    • Button Dimmable LED Actuator

      Can a Button be included to Dimmable LED Actuator? Some thing like Relay Button Actuator... It will be great to have a softkey ON / OFF or hold on ON to dim up. etc

      posted in General Discussion
      mikemayers
      mikemayers
    • Digital Volume Control

      Hi everyone

      I'm new to My Sensor and Arduino. Just out of curiousty. Has anyone worked on a digital volume control using DS1802 Dual Audio Taper Potentiometer?

      http://datasheets.maximintegrated.com/en/ds/DS1802.pdf

      Is My Sensor equipped to do volume control?

      posted in General Discussion
      mikemayers
      mikemayers