Skip to content

Troubleshooting

Help! Everything just falls apart
2.7k Topics 21.5k Posts
  • LDR measurement help

    3
    0 Votes
    3 Posts
    1k Views
    M
    i'll give that a try... thx
  • [Error] Dimmable LED With Rotary Encoder

    2
    0 Votes
    2 Posts
    692 Views
    hekH
    What error do you get in your local IDE?
  • RFX meter water in domoticz

    2
    0 Votes
    2 Posts
    3k Views
    hekH
    Maybe better to ask on the Domoticz forum if the water meter is a supported device.
  • Energy Monitoring

    5
    0 Votes
    5 Posts
    3k Views
    Cliff KarlssonC
    Sorry for spamming but I solved the problem. The Original sketch was fine. I removed the radio and resoldered it (RFM69W) And then everything was Ok. There must have been some bad connecton as the sketch sent 3x greeting message.
  • 0 Votes
    9 Posts
    2k Views
    Steve CasterS
    @fets I am good :) Thank for the support :)
  • RGB Light, cancel loop?

    11
    0 Votes
    11 Posts
    4k Views
    Y
    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.
  • How to wire for battery level measure?

    8
    0 Votes
    8 Posts
    3k Views
    AWIA
    @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.
  • Strange trable SerialGateway on China Arduino Nano

    9
    0 Votes
    9 Posts
    8k Views
    DwaltD
    @awarm Sorry this is ten months late....but your capacitor's polarity is reversed. [image: 1443923702801-mega.jpg]
  • Battery level report in MQTT?

    4
    0 Votes
    4 Posts
    2k Views
    T
    Hi Johan, I have been trying to get the MQTTClient gateway running a few months back but gave up..... Can you share the final sketch you used?
  • This topic is deleted!

    3
    0 Votes
    3 Posts
    43 Views
  • Help!!! How do i install the bootloader in to sketch?

    1
    0 Votes
    1 Posts
    696 Views
    No one has replied
  • Motion & Relay Sensor issue

    interrupt sleep issue multisensor motion sensor relay
    10
    0 Votes
    10 Posts
    6k Views
    hekH
    @dias I want a code with 2 relays and 2 pir You got to get started coding then :) If you bump into problem you can ask questions here.
  • Completely lost on how this works :(

    3
    0 Votes
    3 Posts
    1k Views
    G
    Thanks for the tip. That serial debug really helped. I can see the data being send and received to the ethernet gateway. Telnet to the ethernet gateway on port 5003 and I can then see some data when I press a button. This leads me to believe its a problem my domoticz. Will keep digging. Update: I installed mysensors controller and its working perfectly now! Node and sensor picked up. When I press the button it registers on the controller! Woo hooo! :)
  • Basic commands for MySensors?

    2
    0 Votes
    2 Posts
    750 Views
    hekH
    MYSController is good when debugging. There are numerous examples to get inspired from on the main site (or /examples if you've downloaded the library).
  • only 1 device found while including sensor

    7
    0 Votes
    7 Posts
    3k Views
    P
    I have the exact same issue. No matter what I do this sketch only creates one device. [image: 1443805043928-arduino_temp.png] How did you solve that problem?
  • Help with the Serial Gateway sketch

    4
    0 Votes
    4 Posts
    2k Views
    SparkmanS
    @johntech Glad to hear. Cheers Al
  • Requesting a sensor value from a different node?

    15
    0 Votes
    15 Posts
    10k Views
    Lawrence HelmL
    did anyone convert this succesfully? I'm having some problems, this would make a great example build :) I looked at other ones like "node to node " but something simple like this would be great to start building from..
  • Can't program Arduino Nano Compatible modules

    usb-serial port arduino nano
    4
    0 Votes
    4 Posts
    2k Views
    AndurilA
    @ndiwan you can check what kind of usb interface chip your nano clone uses: look at the bottom side of your nano, there should be only one chip. If it is a ch340 you will need the drivers given by Al.
  • Is there anyway to have Ethernet Gateway set to DHCP for IP address?

    13
    0 Votes
    13 Posts
    6k Views
    D
    Back up and running temporarily when Arduino uno and serial gateway. Looking forward to the update for DHCP.
  • Compiling MYSBootloader errors [solved]

    9
    0 Votes
    9 Posts
    4k Views
    Y
    I'm happy to report that my fresh compliled bootloader is working on my network settings. I have used Mysensors 1.4 library and included 1.4 mysensors and mysensors/utilities folders in the default makefile as aditional CFLAGS -I parameters tested tonight using a nano i found in one of the quadcopters ;) working like a charm cheers, yuri P.S. changed the subject to [solved]

10

Online

11.7k

Users

11.2k

Topics

113.1k

Posts