Navigation

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

    Topics created by esawyja

    • esawyja

      Message is send twice
      Troubleshooting • • esawyja  

      27
      0
      Votes
      27
      Posts
      4924
      Views

      esawyja

      @core_c correction, after I typed and posted this, the serial log started again and it did send the message, this is weird 14026 MCO:SLP:MS=0,SMS=0,I1=1,M1=1,I2=255,M2=255 14032 MCO:SLP:TPD 14034 MCO:SLP:WUP=1 14047 TSF:MSG:SEND,11-11-0-0,s=7,c=1,t=38,pt=7,l=5,sg=0,ft=0,st=OK:0.85 14055 MCO:SLP:MS=3000,SMS=0,I1=1,M1=1,I2=255,M2=255 14059 MCO:SLP:TPD 14061 MCO:SLP:WUP=-1 14065 MCO:SLP:MS=2990,SMS=0,I1=1,M1=1,I2=255,M2=255 14071 MCO:SLP:TPD 14073 MCO:SLP:WUP=-1 14075 MCO:SLP:MS=2980,SMS=0,I1=1,M1=1,I2=255,M2=255 14082 MCO:SLP:TPD 14084 MCO:SLP:WUP=-1 14086 MCO:SLP:MS=2969,SMS=0,I1=1,M1=1,I2=255,M2=255 14092 MCO:SLP:TPD 14094 MCO:SLP:WUP=-1 14098 MCO:SLP:MS=2957,SMS=0,I1=1,M1=1,I2=255,M2=255 14102 MCO:SLP:TPD 14104 MCO:SLP:WUP=-1 14108 MCO:SLP:MS=2947,SMS=0,I1=1,M1=1,I2=255,M2=255 14114 MCO:SLP:TPD 14116 MCO:SLP:WUP=-1 14118 MCO:SLP:MS=2937,SMS=0,I1=1,M1=1,I2=255,M2=255 14125 MCO:SLP:TPD 14127 MCO:SLP:WUP=-1 14129 MCO:SLP:MS=2926,SMS=0,I1=1,M1=1,I2=255,M2=255 14135 MCO:SLP:TPD 14137 MCO:SLP:WUP=-1 14141 MCO:SLP:MS=2914,SMS=0,I1=1,M1=1,I2=255,M2=255 14145 MCO:SLP:TPD 14147 MCO:SLP:WUP=-1 14151 MCO:SLP:MS=2904,SMS=0,I1=1,M1=1,I2=255,M2=255 14157 MCO:SLP:TPD 14159 MCO:SLP:WUP=-1 14161 MCO:SLP:MS=2894,SMS=0,I1=1,M1=1,I2=255,M2=255 14168 MCO:SLP:TPD
    • esawyja

      Hardware design for 3.3V ProMini and 5v sensor
      Hardware • • esawyja  

      20
      0
      Votes
      20
      Posts
      8646
      Views

      Denverado

      @zboblamont Thanks for the advice. I have been looking for a circuit diagram of the sensor to determine how adjusting it could change the beam. I would love if the beam was not as wide.
    • esawyja

      Measuring and Reporting Battery Level
      Troubleshooting • • esawyja  

      3
      0
      Votes
      3
      Posts
      2141
      Views

      esawyja

      @sundberg84 aaah ok so across R2, thanks so much!
    • esawyja

      Detect Generator running
      Troubleshooting • • esawyja  

      5
      0
      Votes
      5
      Posts
      1465
      Views

      esawyja

      Thanks All, I got it sort of working using the original circuit with this sketch below, using another variable with last runstate, sorry my coding is shocking.,... #define MY_DEBUG #define MY_RADIO_RFM69 #define MY_RFM69_FREQUENCY RF69_433MHZ // Define for frequency setting. Needed if you're radio module isn't 868Mhz (868Mhz is default in lib) #define MY_IS_RFM69HW // Mandatory if you radio module is the high power version (RFM69HW and RFM69HCW), Comment it if it's not the case //#define MY_RFM69_NETWORKID 101 // Default is 100 in lib. Uncomment it and set your preferred network id if needed #include <MySensors.h> unsigned long SLEEP_TIME = 3600000; // Every hour Sleep time between reports (in milliseconds) #define DIGITAL_INPUT_SENSOR 3 // The digital input you attached your motion sensor. (Only 2 and 3 generates interrupt!) #define CHILD_ID 15 // Id of the sensor child int laststate=0; // Initialize motion message MyMessage msg(CHILD_ID, V_TRIPPED); void setup() { pinMode(DIGITAL_INPUT_SENSOR, INPUT); // sets the motion sensor digital pin as input } void presentation() { // Send the sketch version information to the gateway and Controller sendSketchInfo("Motion Sensor", "8.0"); // Register all sensors to gw (they will be created as child devices) present(CHILD_ID, S_MOTION); } void loop() { // Read digital motion value bool tripped = digitalRead(DIGITAL_INPUT_SENSOR) == LOW; if ( tripped==1) { laststate=1; Serial.print("Generator State = "); Serial.println(tripped); } if (( tripped==1 ) & (laststate==1)) { //Serial.println("Still Running"); delay(60000); } if (tripped==0) { laststate=0; Serial.println("Generator OFF"); //send(msg.set(tripped?"1":"0")); // Send tripped value to gw // Sleep until interrupt comes in on motion sensor. Send update every two minute. sleep(digitalPinToInterrupt(DIGITAL_INPUT_SENSOR), HIGH, SLEEP_TIME); } }
    • esawyja

      Sending Sensor data to Cloud with GSM module
      Development • • esawyja  

      8
      0
      Votes
      8
      Posts
      5161
      Views

      gohan

      Being gateway you don't need node ID
    • esawyja

      Log Parser
      Troubleshooting • • esawyja  

      3
      0
      Votes
      3
      Posts
      1693
      Views

      esawyja

      Brilliant, THANKS!
    • esawyja

      Saving to EEPROM
      Development • • esawyja  

      11
      0
      Votes
      11
      Posts
      2316
      Views

      AWI

      @esawyja sorry... Also for the first sentence? Use byte (uint8_t) for all variables you need to store..
    • esawyja

      Raspberry PI 3 - Serial Gateway failing with Serial - write failed: Resource temporarily unavailable
      Hardware • • esawyja  

      4
      0
      Votes
      4
      Posts
      1666
      Views

      gohan

      Consider using the ethernet gateway if you keep having trouble with the serial one
    • esawyja

      NRF24L01+PA+LNA with Raspberry PI 3
      Hardware • • esawyja  

      5
      0
      Votes
      5
      Posts
      5198
      Views

      esawyja

      Wow, yes I am, thanks a lot!!
    • esawyja

      NRF24L01+ vs RFM69
      Hardware • • esawyja  

      4
      0
      Votes
      4
      Posts
      2184
      Views

      alexsh1

      The comparison has been done many times - just browse the forum or google it. Basically, if you are looking for stability and range, I'd recommend going for rfm69 nrf24l01+ is great too, much cheaper, but be prepared to face (a) fake transceivers and hence RF issues (2) power issues (3) range issues. Sometimes, one has to spent a lot of time to make them work sadly.
    • esawyja

      PiDome - Waiting for gateway
      PiDome • • esawyja  

      5
      0
      Votes
      5
      Posts
      2200
      Views

      esawyja

      @hek Thanks will do
    • esawyja

      Nubie help please
      Troubleshooting • • esawyja  

      3
      0
      Votes
      3
      Posts
      1048
      Views

      esawyja

      Thanks so much, it does help a lot!!
    • esawyja

      What does it all mean?
      Troubleshooting • • esawyja  

      3
      0
      Votes
      3
      Posts
      1813
      Views

      esawyja

      Ha ha, thanks TimO, will try tonight