Navigation

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

    Topics created by Bram81

    • Bram81

      ESP8266 gateway - Connection refused
      Domoticz • • Bram81  

      10
      0
      Votes
      10
      Posts
      6804
      Views

      hek

      @172pilot said: MY_CONTROLLER_IP_ADDRESS The Vera plugin does not support client mode and must handle the connection to the ESP.8266. So instead go to the Vera/mysensors-device/advanced tab and enter the ESPs ip number.
    • Bram81

      How to - Standalone node on esp8266 using wifi only - sketch problem
      Troubleshooting • • Bram81  

      12
      0
      Votes
      12
      Posts
      7481
      Views

      Lars Deutsch

      @bram81 Thank you so much ... I was nearly getting mad - without your "edit and the include esp8266wifi hint" I'd still be pulling out my beard in frustration !
    • Bram81

      Nodes only seen once with using I/O pin as power
      Troubleshooting • • Bram81  

      7
      0
      Votes
      7
      Posts
      2060
      Views

      Bram81

      @ericvdb Hi, yeah sorry for that. I only realised that when I took a closer look at your sketch because it gave me the check wires message.. Thanks a lot, I've now put the radio on a seperate pin too powering it down and let the radio reinitialize by using gw.begin(); in the void loop section. This is the final code now and it is working well! #include <SPI.h> #include <MySensor.h> #define CHILD_ID_LIGHT 0 #define LIGHT_SENSOR_ANALOG_PIN 1 #define MIN 300 // Liquid #define MAX 700 // Air int sensorPin = A0; // select the input pin for the potentiometer int sensorValue = 0; // variable to store the value coming from the sensor int power =4; int radio =5; MySensor gw; MyMessage msg(CHILD_ID_LIGHT, V_HUM); int lastLightLevel; void setup(){ pinMode(power, OUTPUT); digitalWrite(power, HIGH); pinMode(radio, OUTPUT); digitalWrite(radio, HIGH); delay (5000); Serial.begin(9600); gw.begin(); // Send the sketch version information to the gateway and Controller gw.sendSketchInfo("Mobile Sensor 1", "Kruiden"); // Register all sensors to gateway (they will be created as child devices) gw.present(CHILD_ID_LIGHT, S_HUM); digitalWrite(power, LOW); } void loop(){ // Turn sensor On digitalWrite(power, HIGH); // Turn Radio on digitalWrite(radio, HIGH); // read the value from the sensor: delay (5000); gw.begin(); sensorValue = analogRead(sensorPin); int lastsensorValue = sensorValue; Serial.println(sensorValue); int sendValue = map(sensorValue, 0, 842, 0, 100); gw.send( msg.set( sendValue ) ); // Turn sensor Off digitalWrite(power, LOW); // Turn radio off digitalWrite(radio, LOW); gw.sleep(3600000); }```
    • Bram81

      Help needed on a sketch...
      Domoticz • • Bram81  

      16
      0
      Votes
      16
      Posts
      4826
      Views

      Bram81

      Hi there, I'm having another sketch problem.. In order to try and save battery power on my moisture sensors I'm trying to use a IO pin as power by setting it high for some time, let the sensor take a measurement, send the results to the gateway, setting the IO pin low again, let the node go to sleep for some time . This works only one time, the node presents itself to the gateway, sends data but after that it's not seen again after the expected sleep time. My guess is that somehow after puting the IO pin low it doesn't come back up in a high state. The strange thing is that when I measure the current on the pins of my moisture sensor with a multimeter the current goes from 0 to aprox 4.27V in the given time, so actually that indicates the pin is going from high to low as needed, but somehow the radio doesn't come back up... This is my code: #include <SPI.h> #include <MySensor.h> #define CHILD_ID_LIGHT 0 #define LIGHT_SENSOR_ANALOG_PIN 1 #define MIN 300 // Liquid #define MAX 700 // Air int sensorPin = A0; // select the input pin for the potentiometer int sensorValue = 0; // variable to store the value coming from the sensor int power =4; MySensor gw; MyMessage msg(CHILD_ID_LIGHT, V_HUM); int lastLightLevel; void setup(){ pinMode(power, OUTPUT); digitalWrite(power, HIGH); delay(3000); Serial.begin(9600); gw.begin(); // Send the sketch version information to the gateway and Controller gw.sendSketchInfo("Mobile Sensor 1", "Kruiden"); // Register all sensors to gateway (they will be created as child devices) gw.present(CHILD_ID_LIGHT, S_HUM); delay (2000); } void loop(){ // read the value from the sensor: digitalWrite(power, HIGH); delay (5000); sensorValue = analogRead(sensorPin); delay(1000); int lastsensorValue = sensorValue; Serial.println(sensorValue); int sendValue = map(sensorValue, 0, 842, 0, 100); gw.send( msg.set( sendValue ) ); delay(10000); digitalWrite(power, LOW); delay (2000); gw.sleep(60000); } Does anyone have any clue..?
    • Bram81

      Domoticz crashes after more than one node being presented
      Domoticz • • Bram81  

      10
      0
      Votes
      10
      Posts
      5220
      Views

      MarkV

      I've done the above sudo rmmod w1_gpio, a couple reboots and at this moment it detects a unknown energie meter and isn't crashing So maybe some smart brains should have a look at this.....
    • Bram81

      How to add a sensor to the serial gateway
      Domoticz • • Bram81  

      25
      0
      Votes
      25
      Posts
      25589
      Views

      hek

      It has been merged now. Available here: https://github.com/mysensors/Arduino