Skip to content

Troubleshooting

Help! Everything just falls apart
2.7k Topics 21.5k Posts
  • Cannot remotely reboot a node

    3
    0 Votes
    3 Posts
    3k Views
    C
    I did not realize that sample is for battery powered node. Now it works fine, thank you for the advice!
  • Combine PIR, relay, distance and gas sensors

    7
    0 Votes
    7 Posts
    4k Views
    rvendrameR
    What happens when you add the relay? Only the relay does not obey, or the pir/dist stop too? What do you get in serial monitor?
  • Decoding / converting IR-codes

    6
    0 Votes
    6 Posts
    4k Views
    Moshe LivneM
    @twosh What i meant is that the base units are stateless, non memoryless. that means that you will not get commands like "one degree up" as the unit does not broadcast back its state so the remote can't figure out what the current settings are. the remote always sends absolute states. that means that it sends very long strings of commands... on a side note, there is a cool device called broadlink rm2 (you can find it on ali). it works brilliantly, but.... there is always but. the protocol to talk with the device is proprietary and encrypted and it only works from mobile phones. the app, unfortunately, needs the most absurd set of permissions i have ever seen in my life.
  • Uno sensor works, no pro-mini connection

    3
    0 Votes
    3 Posts
    1k Views
    R
    At the risk of stating the obvious, you either have a hardware issue or a software issue. Given that things work with the other software faulty wiring seems unlikely. That leaves software. If the same sketch works with an UNO node you can probably rule out resource constraints -- both boards have the same processor and memory. I'd still keep an eye toward any dynamically allocated resources. Dynamic memory management on a system this constrained (and hard to debug) is always hit or miss. I try to avoid it if at all possible. That leaves the probable cause as something that you're misusing that for some reason happens to work on the uno because the hardware is more forgiving, or randomly works for some reason beyond your control (compiler, linker, avrdude baud, etc.). I'd go back and double check each API call to make sure you are certain that you're passing the correct values. You might want to post your sketch code so others can browse, too. We might see something you've overlooked.
  • Same value from 2 different placed DS18B20

    2
    0 Votes
    2 Posts
    1k Views
    BulldogLowellB
    @Hausner send: 41-41-33-0 s=0,c=1,t=0,pt=7,l=5,st=ok:27.0 send: 41-41-33-0 s=1,c=1,t=0,pt=7,l=5,st=ok:24.1 Even though you are converting to floats, these sensors still return integers, so you may be seeing the (not so obvious) limitations of the precision of the sensors. the numbers (if different) are close, so you should put a heat source near one (hair dryer?) to get them to be at a much bigger differential. Or return fahrenheit for one of the two like this: if (i == 0) { float temperature = static_cast<float>(static_cast<int>sensors.getTempCByIndex(i)* 10.) / 10.; } else { float temperature = static_cast<float>(static_cast<int>sensors.getTempFByIndex(i)* 10.) / 10.; } So you can really see what's happening.
  • This topic is deleted!

    3
    0 Votes
    3 Posts
    464 Views
  • Can't build librf24-bcm on Banana Pi

    12
    0 Votes
    12 Posts
    6k Views
    J
    I just had another look at this. There is an nrf24 library for the banana pi: https://github.com/bearpawmaxim/librf24-sunxi/tree/master/src The raspberry gateway must be ported to this lib. Doesn't look to complicated.
  • How to connect arduino nano to 2.8 tft

    2
    0 Votes
    2 Posts
    5k Views
    SparkmanS
    @Maracus-Scott There are a lot of different flavors of TFT screens available with different pinout requirements. A lot of these come as shields for the Arduino UNO but can be hooked up to a Nano as well. If you need one that uses fewer pins, here's an example of one as a shield: https://www.adafruit.com/products/1651 and one as a breakout: http://www.adafruit.com/products/1770. Cheers Al
  • Soil Moisture analog input question

    soil moisture
    3
    0 Votes
    3 Posts
    3k Views
    G
    Here is the sketch if anyone can help out. #include <SPI.h> #include <MySensor.h> #define CHILD_ID_LIGHT 0 #define LIGHT_SENSOR_ANALOG_PIN 1 #define NODE_ID 9 int BATTERY_SENSE_PIN = A2; // select the input pin for the battery sense point unsigned long SLEEP_TIME = 30000; // Sleep time between reads (in milliseconds) MySensor gw; MyMessage msg(CHILD_ID_LIGHT, V_LIGHT_LEVEL); int lastLightLevel; int oldBatteryPcnt = 0; void setup() { // use the 1.1 V internal reference //analogReference(INTERNAL); gw.begin(NULL, NODE_ID, false); // Send the sketch version information to the gateway and Controller gw.sendSketchInfo("Soil_Moist_Sensor_grb", "1.15"); // Register all sensors to gateway (they will be created as child devices) gw.present(CHILD_ID_LIGHT, S_LIGHT_LEVEL); } void loop() { int lightLevel = (1023-analogRead(LIGHT_SENSOR_ANALOG_PIN))/10.23; Serial.println(lightLevel); if (lightLevel != lastLightLevel) { gw.send(msg.set(lightLevel)); lastLightLevel = lightLevel; } // get the battery Voltage int sensorValue = analogRead(BATTERY_SENSE_PIN); Serial.println(sensorValue); // 1M, 470K divider across battery and using internal ADC ref of 1.1V // Sense point is bypassed with 0.1 uF cap to reduce noise at that point // ((1e6+470e3)/470e3)*1.1 = Vmax = 3.44 Volts // 3.44/1023 = Volts per bit = 0.003363075 - changed without ref volt float batteryV = sensorValue * 0.00305734; int batteryPcnt = sensorValue / 10; Serial.print("Battery Voltage: "); Serial.print(batteryV); Serial.println(" V"); Serial.print("Battery percent: "); Serial.print(batteryPcnt); Serial.println(" %"); if (oldBatteryPcnt != batteryPcnt) { // Power up radio after sleep gw.sendBatteryLevel(batteryPcnt); oldBatteryPcnt = batteryPcnt; } gw.sleep(SLEEP_TIME); }
  • unable to compile for ATmega168 16M 5v

    6
    0 Votes
    6 Posts
    4k Views
    H
    Hi guys I've been banging on the wall for hours. Thank´s a lot, this is a major set back "for now" i'll order new arduino in a minute. All though something is concerning me. Compiling the RelayActuator or the RelayOutlet with out the FTDI connected the compiling message still appears, using Arduino 1.6.4, via Codebender it gives the lack of space or error compiling. Arduino 1.6.4 message " LowPower.cpp:823: error: 'SLEEP_MODE_EXT_STANDBY' was not declared in this scope lowPowerBodOn(SLEEP_MODE_EXT_STANDBY); " The motion sensor doesn't fit as well. I'm using http://www.mysensors.org/build/motion Thanks again
  • 3 Votes
    9 Posts
    11k Views
    D
    @marceltrapman when you change the BAUD rate setting in the source/config file to something lower/other you can also use 3.3V Arduinos as (Serial)Gateway. Of cause your controller needs also to be told about the lower BAUD rate. Check out http://wormfood.net/avrbaudcalc.php?postbitrate=9600&postclock=8 for an overview of Clockspeeds (usually 8MHz for 3.3V and 16MHz for 5V types) and coresponding BAUD rates.
  • Where do you find IR code ?

    6
    0 Votes
    6 Posts
    5k Views
    Sebastien Vayrette-GavardS
    @Sparkman, hero member I get it now. Thank you!
  • Vera Plugin UI7 / DallasTemperatureSensor Sketch

    3
    0 Votes
    3 Posts
    1k Views
    S
    @Dwalt Hi, When I added the device to the Vera it is registered as node 0:0 and appears as a temperature sensor. As you suggest, I've deleted the device, and included for a second time, with the same results. To be safe, I EPROM cleared both the gateway and the sensor, and re-uploaded the sketches to the devices with the same results when including again. Hopefully somebody can point me in the right direction. Thanks Steve
  • No heartbeat with Arduino Micro + nRF2401

    vector41 nrf2401 hangs micro
    5
    0 Votes
    5 Posts
    2k Views
    hekH
    @dehakuran Sorry to say that I haven't got any ATmega32u4 to test on. But in the github/development branch it is possible to create different hardware profiles. Currently we've only implemented one for the ATmega328p.
  • How to sleep the Arduino but still have it respond to the Vera?

    23
    1 Votes
    23 Posts
    13k Views
    T
    I'm back to choosing between no sleep, and the sleep(); function posted above. I can't get gw.sleep(); to work with either one or two interrupts, with or without declaring interrupts(); and/or attachInterrupt();. I'm ready to try more stuff if anyone got any ideas, but with my own limited understanding of both hardware in general and arduino in particular it feels like I'm running on fumes here. :o Thanks everyone for your contribution, and @hek - you've done a great job with MySensors! :clap:
  • Relay with button example sketch, works...but not as expected

    15
    0 Votes
    15 Posts
    5k Views
    R
    wow thanks for all the suggestions guys! sorry for the slow reply, this is the first time iv actually been able to sit at my computer since i posted, if only we didnt have to work to pay bills id be here all day...ahhh if only..... anyway! Yes i am using a pushbutton not a rocker switch so i would need it to only do something on the down press and ignore the upward contact on the release of the button. Ill try changing the script as explained above and see what that does, (as you have probably guessed by now my arduino tinkering only covered the first 10 or so lessons in the basic tutorial, then i went off and only looked up specific coding for the small projects i was working on....and most of which i have forgotten as i haven't used them for a long time :( need to brush up on what i should already know i guess) anyway i shall post results as soon as i try out the suggestions. i think you all get what im trying to achieve here! thanks again,
  • newbie: ethernet gw and first sensor

    8
    0 Votes
    8 Posts
    2k Views
    O
    oh no - got it :-) I bought some 4.7 uF capacitors today and now everything works fine arghhhh but thanks for your help!
  • Request for help building a 433Mhz sender node

    10
    1 Votes
    10 Posts
    4k Views
    C
    The simple Chinese ones yes. I have, it seems to work and the code already contains a nointerrupt/interrupt to avoid echo's.
  • Looped Repeater

    9
    0 Votes
    9 Posts
    3k Views
    M
    Yes and yes. first lever repeater should have id 0. All my nodes have static repeater or gateway id. Now i don't have loops after restart gateway.
  • Is there a way of seeing what the gateway is doing on rpi?

    5
    0 Votes
    5 Posts
    2k Views
    Moshe LivneM
    @Andreas-Maurer Forgot about wireshark! thanks, thats what i needed

14

Online

11.7k

Users

11.2k

Topics

113.1k

Posts