Skip to content

Troubleshooting

Help! Everything just falls apart
2.7k Topics 21.5k Posts
  • My Loops are out of sync.

    2
    0 Votes
    2 Posts
    1k Views
    marceltrapmanM
    Hi, I edited your post to show the code as it should :) Remove ' i = i+1;'. It is obsolete. You already do this with 'i++' where you define your loop...
  • Soil Sensor analog values differ on Uno vs Pro Mini

    soil sensor uno pro mini
    28
    0 Votes
    28 Posts
    14k Views
    F
    thanks you very much work great !
  • IR Receiver does not read

    2
    0 Votes
    2 Posts
    855 Views
    Moshe LivneM
    @Moshe-Livne seems like a faulty breadboard.... ran out of dupont cables so used this cheap bbreadboard. will try again when I can get some more dupont cables...
  • Errors compiling example sketches with codebender!

    6
    0 Votes
    6 Posts
    2k Views
    Moshe LivneM
    @hek , after closing everything and reopening it works... go figure
  • Close but no cigar . . .

    8
    0 Votes
    8 Posts
    3k Views
    BulldogLowellB
    @Baran because the function exists in the MySensors library, you are likely having a conflict with the names. Post your entire sketch, then we can comment. I posted a function, not an entire sketch.
  • IR distance sensor with relay and repeater not working

    8
    0 Votes
    8 Posts
    3k Views
    F
    well.. i guess not..... It seems that its working for a short while. after that 1 of the relays does not respond anymore, when i set on relay on, both of the relays are going on? any help where my sketch is wrong? Floris // Example sketch showing how to control physical relays. // This example will remember relay state even after power failure. #include <MySensor.h> #include <SPI.h> #include <DistanceGP2Y0A21YK.h> #define CHILD_ID_DISTANCE 100 DistanceGP2Y0A21YK Dist; #define RELAY_1 3 // Arduino Digital I/O pin number for first relay (second on pin+1 etc) #define NUMBER_OF_RELAYS 2 // Total number of attached relays #define RELAY_ON 0 // GPIO value to write to turn on attached relay #define RELAY_OFF 1 // GPIO value to write to turn off attached relay MySensor gw; int numSensors=0; boolean receivedConfig = true; boolean metric = true; int distance; int lastDistance=0; int loopCounter=0; MyMessage msg(1,V_LIGHT); MyMessage msgdist(CHILD_ID_DISTANCE,V_DISTANCE); void setup() { Dist.begin(0); // Initialize library and add callback for incoming messages gw.begin(incomingMessage, AUTO, true); // Send the sketch version information to the gateway and Controller gw.sendSketchInfo("RelayDistanceRepeaterFloris", "1.0"); // Fetch relay status for (int sensor=1, pin=RELAY_1; sensor<=NUMBER_OF_RELAYS;sensor++, pin++) { // Register all sensors to gw (they will be created as child devices) gw.present(CHILD_ID_DISTANCE,S_DISTANCE); gw.present(sensor, S_LIGHT); // Then set relay pins in output mode pinMode(pin, OUTPUT); // Set relay to last known state (using eeprom storage) boolean savedState = gw.loadState(sensor); digitalWrite(pin, savedState?RELAY_ON:RELAY_OFF); gw.send(msg.set(savedState? 1 : 0)); } } void loop() { // Alway process incoming messages whenever possible gw.process(); static unsigned long lastTime = millis(); if (millis() - lastTime >= 5000UL) // update the distance every 5 seconds { distance = Dist.getDistanceCentimeter(); if (distance != lastDistance) { lastDistance = distance; gw.send(msgdist.set(distance)); } lastTime = millis(); } } void incomingMessage(const MyMessage &message) { if (message.type==V_LIGHT) { boolean relayState = message.getBool(); digitalWrite(message.sensor-1+RELAY_1, relayState?RELAY_ON:RELAY_OFF); gw.saveState(message.sensor, relayState); gw.send(msg.set(relayState? 1 : 0)); } }
  • Upload fail but port works

    12
    0 Votes
    12 Posts
    3k Views
    Moshe LivneM
    @hek yep - just downloaded it a few weeks ago.... oh well, i can get along with codebender.
  • st=fail???

    10
    0 Votes
    10 Posts
    5k Views
    bpairB
    Thanks for all the comments but it looks like the issue was actually my Asus RT-N66U router which has LAN-WAN firewall. When enabled it was doing wan traffic to my gateway but not allowing a response from my gateway out.
  • 0 Votes
    4 Posts
    1k Views
    R
    Erp... strike that. Looks like the MySensors nodes are working just fine. It's the interface to Home Assistant that seems to be buggy. I found the MYSController app to monitor the gateway directly, and I can see everything coming through from my sensors, serial connection or no. So, case closed here, but the search for the best controller to pair with my MySensors network goes on...
  • Bad range

    16
    0 Votes
    16 Posts
    8k Views
    n3roN
    @rickmontana83 YEAH!!!!! This has fixed my problem!! Now i have much better rage with my nodes :+1: Big THX!
  • EnergyMeterPulseSensor reporting incorrect power draw?

    8
    0 Votes
    8 Posts
    2k Views
    AWIA
    @twosh Glad it helped.. .I only learn the hard way myself
  • Reliability ?

    7
    0 Votes
    7 Posts
    2k Views
    BulldogLowellB
    @Sander-Teunissen said: @andriej said: Show the code. What code would you like to see ? (It is all very experimental anyway..) in addition to the radio noise possibility pointed out by @rvendrame , your code may be "blocking" and affecting good data transmission.
  • Multisensor PIR problem [solved]

    53
    0 Votes
    53 Posts
    23k Views
    BulldogLowellB
    @n3ro said: now its working. when i use PIN4 for DHT.:) :clap:
  • MQTT Sketch will not move to my Arduino Uno

    6
    0 Votes
    6 Posts
    2k Views
    bpairB
    Enabling SOFTSPI corrected the issue.
  • Making a sensor node to work even when the gateway is not available?

    9
    0 Votes
    9 Posts
    3k Views
    M
    And for the record, I've fixed a node ID for this sensor and it works locally, turning the lights on/off through the relay, even when the gateway is not reachable (out of range). I will open another thread to check what are the possible issues with this behavior.
  • Debug shows "Check Wires" but everything appears fine

    8
    0 Votes
    8 Posts
    2k Views
    B
    @Sparkman said: @Bradley-A Glad to hear you got it resolved. I'll have to avoid using 7133A's then :wink: What are the specs on the 7133A for max current? Are you using the regular radios or the ones with the PA? Cheers Al Off memory, I believe it was 20 or 30mA. I might have to pull up a spec sheet to double check, but that sounds about right. The 78L33A is 100mA, so definitely higher output. As I was sitting here thinking about it though, with the capacitor being on the output side (closest to NRF) it should have been able to handle higher bursts when the radio was trying to transmit should it have not? :confused:
  • This topic is deleted!

    Locked
    3
    0 Votes
    3 Posts
    17 Views
  • Radio setup give: "check wires"

    94
    0 Votes
    94 Posts
    60k Views
    otolosaO
    Hi everybpdy.....any news on this topic? my radio chips say NRF24L01+, however are detected as NRF24L01. Got 3 of em working perfectly on Uno and Nano...but on pro mini always gettin the f**n "check wires" message...the only difference is the regulator (I'm using arduino pro mini 5V), but i checked and radio is getin 3.3 as it should be.
  • Restricting Node Output Data to the Gateway

    4
    0 Votes
    4 Posts
    1k Views
    hekH
    Turn off DEBUG in MyConfig.h before compiling your gateway sketch.
  • Stuck with vrdude: verification error, first mismatch at byte 0x....

    3
    0 Votes
    3 Posts
    1k Views
    otolosaO
    replaced cable....worked once but switched to board usb ports (was using a usb hub)....and now its working fine!!!!! weird thing is.....already used usb hub with nanos and Uno...and all worked fine...only this (my first) pro mini having this issues Thanks you very much

18

Online

11.7k

Users

11.2k

Topics

113.0k

Posts