Navigation

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

    Topics created by Meister_Petz

    • Meister_Petz

      ESP8266gateway with sensor
      Hardware • • Meister_Petz  

      2
      0
      Votes
      2
      Posts
      37
      Views

      Graham

      Here is my code for doing something equivalent. You seem to have the pinMode line missing in setup() // Initialize motion message MyMessage msg(CHILD_ID, V_TRIPPED); void setup() { pinMode(MOTION_SENSOR_PIN, INPUT_PULLUP); // sets the motion sensor digital pin as input } void presentation() { // Present locally attached sensors here // Send the sketch version information to the gateway and Controller sendSketchInfo("Motion Sensor", "1.1"); // Register all sensors to gw (they will be created as child devices) present(CHILD_ID, S_MOTION); } boolean pinstate = false; void loop() { boolean newstate = (digitalRead(MOTION_SENSOR_PIN) == HIGH); if (newstate != pinstate) { if (newstate == true) { send(msg.set("1")); Serial.println("Motion Started"); pinstate = newstate; } else { send(msg.set("0")); Serial.println("Motion Stopped"); pinstate = newstate; } } }
    • Meister_Petz

      ESP8266 ... doesn't connect to sensors
      Troubleshooting • • Meister_Petz  

      3
      0
      Votes
      3
      Posts
      813
      Views

      Meister_Petz

      Good point! I use FHEM... the Gateway is connected... so FHEM maybe the Problem...
    • Meister_Petz

      Digital Poti on same Pins as NRF24L01+ how can I solve this?
      Development • • Meister_Petz  

      6
      0
      Votes
      6
      Posts
      2001
      Views

      Meister_Petz

      sorry... I'm blind... maybe I can change it here: int CS = 10; sorry again
    • Meister_Petz

      Serial Gateway 1.5 - LEDs not working any more
      Development • • Meister_Petz  

      3
      0
      Votes
      3
      Posts
      1513
      Views

      Johnny B Good

      Same problem here, very randomly only blink once when press reset button on node (or upload sketch) And something else... what about : #define MY_RANDOMSEED_PIN 7 // A7 - Pin used for random generation (do not connect anything to this) Must be pin 21 for A7 ?
    • Meister_Petz

      How to receive time?
      Development • • Meister_Petz  

      7
      0
      Votes
      7
      Posts
      4663
      Views

      LastSamurai

      @Meister_Petz Sometimes thats the most difficult problem Glad to have helped!
    • Meister_Petz

      Node is sending - but no reads....
      Development • • Meister_Petz  

      4
      0
      Votes
      4
      Posts
      1379
      Views

      Meister_Petz

      Ok, in addition, I found out, that everything works fine if I let nodes talk to the gateway directly. If the nodes are behind repeaters (I tried 3 different ones) they can send alright but they don't receive reads.
    • Meister_Petz

      Send a string as a value
      Development • • Meister_Petz  

      8
      0
      Votes
      8
      Posts
      3440
      Views

      Meister_Petz

      many thanks! I know it's easy for you - unfortunately not for me. That's why I'm here.
    • Meister_Petz

      Multisensor Multiactuator Sketch / Testboard - tested with FHEM Controller
      My Project • • Meister_Petz  

      6
      4
      Votes
      6
      Posts
      13604
      Views

      oscarc

      @marekd Thank you, it does help :
    • Meister_Petz

      TX RX ERR - LED for Sensors
      Hardware • • Meister_Petz  

      9
      0
      Votes
      9
      Posts
      4701
      Views

      AWI

      I use something similar mainly to show if messages are received. For this purpose I created a small class/ library to blink and time LED's. The class uses a similar syntax as Bounce2 for assigning and handling LED's attached to output pins. LedFlash. A code example: https://codebender.cc/sketch:85200
    • Meister_Petz

      PIN 12 broken .... Could I use another pin instead?
      Hardware • • Meister_Petz  

      3
      0
      Votes
      3
      Posts
      1298
      Views

      Meister_Petz

      Worked! Many Thanks
    • Meister_Petz

      How fast is a (void) loop?
      Development • • Meister_Petz  

      4
      0
      Votes
      4
      Posts
      1546
      Views

      petewill

      @Meister_Petz I use millis() for this exact thing and it has been working great for me for months. Here is an example of what I do: unsigned long DHTPreviousMillis = 0; // last time update. long DHTDelay = 120000; // interval at which to do something (milliseconds) //Delay temperature and humidity for the length of time of DHTDelay without stopping the whole program unsigned long DHTCurrentMillis = millis(); if(DHTCurrentMillis - DHTPreviousMillis > DHTDelay) { DHTPreviousMillis = DHTCurrentMillis; //do something here } See http://stackoverflow.com/questions/10773425/performing-a-function-after-x-time for more details on Millis delay Hope that helps.
    • Meister_Petz

      Sensor taking the status of a blinking led of an alarm system
      Development • • Meister_Petz  

      19
      0
      Votes
      19
      Posts
      6322
      Views

      Meister_Petz

      Nano - so VIN! Thanks!
    • Meister_Petz

      NRF24L01+ with external antenna - don't work
      Troubleshooting • • Meister_Petz  

      6
      1
      Votes
      6
      Posts
      2248
      Views

      Meister_Petz

      The power was the right hint! I solved it with a capacitator and a separate 3.3 V regulator. Now everything works perfectly. Many thanks!
    • Meister_Petz

      Relay & Sensor Battery powered
      Hardware • • Meister_Petz  

      6
      0
      Votes
      6
      Posts
      2259
      Views

      daulagari

      For the size and cost I think you better chose an AC powered device. Additional to the link posted by @m26872, @petewill just posted full instructions on how to build this on $8 Lamp (Outlet) "Smart Plug" Module