Navigation

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

    Topics created by msebbe

    • msebbe

      Vcc.h : no such file or directory
      Troubleshooting • • msebbe  

      2
      0
      Votes
      2
      Posts
      1959
      Views

      Yveaux

      @msebbe reinstall my vcc library: https://forum.mysensors.org/topic/186/new-library-to-read-arduino-vcc-supply-level-without-resistors-for-battery-powered-sensor-nodes-that-do-not-use-a-voltage-regulator-but-connect-directly-to-the-batteries
    • msebbe

      DD-WRT & Ethernetgateway
      Troubleshooting • • msebbe  

      3
      0
      Votes
      3
      Posts
      788
      Views

      mvader

      look into installing yamon3 on your dd-wrt I have 2 of the r7000 - great routers.
    • msebbe

      How to wire this?
      Troubleshooting • • msebbe  

      6
      0
      Votes
      6
      Posts
      2544
      Views

      msebbe

      Got delayed.. I had to order a IR reciver to find out my remote codes, didnt thought I would find them easily on the internet but nope!
    • msebbe

      MySensors plugin : Cannot send command - communications error
      Troubleshooting • • msebbe  

      4
      0
      Votes
      4
      Posts
      1213
      Views

      hek

      @msebbe said: Yes I recently updated my Vera Edge They probably changed something that affects the MySensors plugin or powering of the attached Arduino.
    • msebbe

      BH1750 and Sensebender
      Troubleshooting • • msebbe  

      3
      0
      Votes
      3
      Posts
      1408
      Views

      msebbe

      Ye, I tried that already but maybe I did something wrong.. I'll try it again.
    • msebbe

      RGB Light, cancel loop?
      Troubleshooting • • msebbe  

      11
      0
      Votes
      11
      Posts
      4133
      Views

      yugoos

      I made a ws2812 (neopixel) sketch not to long ago, maybe you can use some or all of the code. my loop only contains gw.process() for incomming messages (color, brightness, off). I made no loops for color shows because i'm not interested in that but is should not be to difficult to adapt the code, there is however a short colorwhipe (chaser) when changing the strip color #include <MySensor.h> #include <SPI.h> #include "Adafruit_NeoPixel.h" #define NUMPIXELS 4 // Number of connected pixels on a single datapin #define PIN 4 // Digital output pin #define NODE_ID AUTO //254 for testing purpose #define CHILD_ID 0 Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); long RGB_values[3] = {0,0,0}; MySensor gw; void setup() { gw.begin(incomingMessage, NODE_ID, false); gw.sendSketchInfo("RGB Node", "1.0"); gw.present(CHILD_ID, S_RGB_LIGHT); strip.begin(); strip.show(); // Update the strip, to start they are all 'off' } void loop() { gw.process(); } void incomingMessage(const MyMessage &message) { if (message.type==V_RGB) { // starting to process the hex code String hexstring = message.getString(); //here goes the hex color code coming from through MySensors (like FF9A00) long number = (long) strtol( &hexstring[0], NULL, 16); RGB_values[0] = number >> 16; RGB_values[1] = number >> 8 & 0xFF; RGB_values[2] = number & 0xFF; colorWipe(Color(RGB_values[0],RGB_values[1],RGB_values[2]), 60); } if (message.type==V_DIMMER) { strip.setBrightness(round((2.55*message.getInt()))); strip.show(); } if (message.type==V_LIGHT) { if (message.getInt() == 0) { strip.clear(); strip.show(); } } } void colorWipe(uint32_t c, uint8_t wait) { int i; for (i=0; i < strip.numPixels(); i++) { strip.setPixelColor(i, c); strip.show(); delay(wait); } } /* Helper functions */ // Create a 15 bit color value from R,G,B uint32_t Color(byte r, byte g, byte b) { uint32_t c; c = r; c <<= 8; c |= g; c <<= 8; c |= b; return c; } It's not the cleanest code but it works for me... have fun.
    • msebbe

      How to wire for battery level measure?
      Troubleshooting • • msebbe  

      8
      0
      Votes
      8
      Posts
      2719
      Views

      AWI

      @Cliff-Karlsson You could do just that. The voltage on the A0 pin will be around 1/3th of Vcc. If you swap the resistors 2/3th of Vcc.
    • msebbe

      Doorbell hack
      Troubleshooting • • msebbe  

      13
      0
      Votes
      13
      Posts
      4677
      Views

      msebbe

      @BulldogLowell said: and you cn try this: /* this is set up for a 4 pin recv unit GND DATA DATA VCC plug GND into D2, DATA into D3 and D4, and VCC into D5 */ #include <MySensor.h> #include <SPI.h> #include <Bounce2.h> #include <RCSwitch.h> RCSwitch mySwitch = RCSwitch(); #define CHILD_ID 3 #define VCC_PIN 5 // source 5V up to 40mA from this pin #define GND_PIN 2 // sink up to 40mA on this pin #define DATA_PIN 3 // external int 1 on Uno MySensor gw; const int bell = -251; // This is the value that my 433mhz doorbell sends out when button is pushed boolean tripped = false; unsigned long timerStart; // Change to V_LIGHT if you use S_LIGHT in presentation below MyMessage msg(CHILD_ID, V_TRIPPED); void setup() { gw.begin(); // 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(CHILD_ID, S_DOOR); // 433mhz Part pinMode(DATA_PIN, INPUT); // just leave D4 tristated pinMode(GND_PIN, OUTPUT); digitalWrite(GND_PIN, LOW); pinMode(VCC_PIN, OUTPUT); digitalWrite(VCC_PIN, HIGH); mySwitch.enableReceive(1); // Receiver on interrupt 1 => that is pin D3 } void loop() { if (mySwitch.available()) { tripped = (mySwitch.getReceivedValue() == bell); if (tripped) { gw.send(msg.set(true)); timerStart = millis(); Serial.println(F("Ding Dong!!")); } mySwitch.resetAvailable(); //<<<<<<<<<< I think you want this here... I looked at the library on GitHub } if (tripped && millis() - timerStart > 5000UL) { gw.send(msg.set(false)); Serial.println(F("no activity")); tripped = false; } } Hmm, still nothing. It seems to be the 433mhz reciver part that is not working.