Skip to content

Development

Discuss Arduino programming, library tips, share example sketches and post your general programming questions.
1.5k Topics 13.5k Posts

Subcategories


  • 56 578
    56 Topics
    578 Posts
    HJ_SKH
    Hi2All! Surprising is here. After about 24hours I refresh HA and suddenly my motion sensor was integrated. There is also second entity > battery : 0 , have to look deeper into that for understanding. Need to change little in the sketch, because don't want every short time 'no movement' so only when there is motion and maybe once a hour indication sensor is alive. Meantime I found 3 other good threats: https://forum.mysensors.org/topic/11200/finally-progress-evidence-based-radio-testing-method-and-capacitors https://forum.mysensors.org/topic/1664/which-are-the-best-nrf24l01-modules/27 https://forum.mysensors.org/topic/9550/build-a-reliable-power-supply-chain Very usefull for me also finally progress because of lacking time in the past. Great jobs are done here! Thanks for this all of you guys or girls!
  • ESP8266 as WiFi gateway & controller & node

    20
    3 Votes
    20 Posts
    16k Views
    breimannB
    @nikil511 and @Lendog I got it going to some extent, here's the serial monitor dump from the NodeMCU. I'm not sure what's happening, but it seems after a certain number of tries it dies, and won't reconnect to the wifi. Any ideas? ....WiFi Connected! IP: 192.168.0.7 0;0;3;0;9;gateway started, id=0, parent=0, distance=0 0;0;3;0;9;read: 5-5-0 s=10,c=1,t=1,pt=7,l=5,sg=0:16.0 Sensor:5;10;1;0;1;16.0 0;0;3;0;9;read: 4-4-0 s=11,c=1,t=0,pt=7,l=5,sg=0:20.0 Sensor:4;11;1;0;0;20.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=20.0&field2=2770 0;0;3;0;9;read: 5-5-0 s=11,c=1,t=0,pt=7,l=5,sg=0:23.0 Sensor:5;11;1;0;0;23.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=23.0&field2=2769 0;0;3;0;9;read: 5-5-0 s=10,c=1,t=1,pt=7,l=5,sg=0:16.0 Sensor:5;10;1;0;1;16.0 0;0;3;0;9;read: 4-4-0 s=11,c=1,t=0,pt=7,l=5,sg=0:20.0 Sensor:4;11;1;0;0;20.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=20.0&field2=2767 0;0;3;0;9;read: 4-4-0 s=10,c=1,t=1,pt=7,l=5,sg=0:17.0 Sensor:4;10;1;0;1;17.0 0;0;3;0;9;read: 5-5-0 s=11,c=1,t=0,pt=7,l=5,sg=0:23.0 Sensor:5;11;1;0;0;23.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=23.0&field2=2770 0;0;3;0;9;read: 4-4-0 s=11,c=1,t=0,pt=7,l=5,sg=0:20.0 Sensor:4;11;1;0;0;20.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=20.0&field2=2770 0;0;3;0;9;read: 4-4-0 s=10,c=1,t=1,pt=7,l=5,sg=0:17.0 Sensor:4;10;1;0;1;17.0 0;0;3;0;9;read: 5-5-0 s=10,c=1,t=1,pt=7,l=5,sg=0:16.0 Sensor:5;10;1;0;1;16.0 0;0;3;0;9;read: 4-4-0 s=11,c=1,t=0,pt=7,l=5,sg=0:20.0 Sensor:4;11;1;0;0;20.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=20.0&field2=2770 0;0;3;0;9;read: 5-5-0 s=11,c=1,t=0,pt=7,l=5,sg=0:23.0 Sensor:5;11;1;0;0;23.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=23.0&field2=2769 HTTP/1.1 200 OK Content-Type: text/html; charset=utf-8 Content-Length: 1 Connection: close Status: 200 OK X-Frame-Options: ALLOWALL Access-Control-Allow-Origin: * Access-Control-Allow-Methods: GET, POST, PUT, OPTIONS, DELETE, PATCH Access-Control-Allow-Headers: origin, content-type, X-Requested-With Access-Control-Max-Age: 1800 ETag: "cfcd208495d565ef66e7dff9f98764da" Cache-Control: max-age=0, private, must-revalidate X-Request-Id: 78d55d27-5e3b-44b8-a646-aa5621e2474a X-Runtime: 0.012198 X-Powered-By: Phusion Passenger 4.0.57 Date: Sat, 02 Sep 2017 12:47:14 GMT Server: nginx/1.9.3 + Phusion Passenger 4.0.57 00;0;3;0;9;read: 5-5-0 s=10,c=1,t=1,pt=7,l=5,sg=0:16.0 Sensor:5;10;1;0;1;16.0 0;0;3;0;9;read: 4-4-0 s=11,c=1,t=0,pt=7,l=5,sg=0:20.0 Sensor:4;11;1;0;0;20.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=20.0&field2=2770 0;0;3;0;9;read: 4-4-0 s=10,c=1,t=1,pt=7,l=5,sg=0:17.0 Sensor:4;10;1;0;1;17.0 0;0;3;0;9;read: 4-4-0 s=11,c=1,t=0,pt=7,l=5,sg=0:20.0 Sensor:4;11;1;0;0;20.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=20.0&field2=2770 0;0;3;0;9;read: 4-4-0 s=10,c=1,t=1,pt=7,l=5,sg=0:17.0 Sensor:4;10;1;0;1;17.0 0;0;3;0;9;read: 5-5-0 s=10,c=1,t=1,pt=7,l=5,sg=0:16.0 Sensor:5;10;1;0;1;16.0 0;0;3;0;9;read: 5-5-0 s=11,c=1,t=0,pt=7,l=5,sg=0:23.0 Sensor:5;11;1;0;0;23.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=23.0&field2=2770 0;0;3;0;9;read: 4-4-0 s=11,c=1,t=0,pt=7,l=5,sg=0:20.0 Sensor:4;11;1;0;0;20.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=20.0&field2=2769 0;0;3;0;9;read: 4-4-0 s=10,c=1,t=1,pt=7,l=5,sg=0:17.0 Sensor:4;10;1;0;1;17.0 0;0;3;0;9;read: 5-5-0 s=10,c=1,t=1,pt=7,l=5,sg=0:16.0 Sensor:5;10;1;0;1;16.0 0;0;3;0;9;read: 5-5-0 s=11,c=1,t=0,pt=7,l=5,sg=0:23.0 Sensor:5;11;1;0;0;23.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=23.0&field2=2770 HTTP/1.1 200 OK Content-Type: text/html; charset=utf-8 Content-Length: 2 Connection: close Status: 200 OK X-Frame-Options: ALLOWALL Access-Control-Allow-Origin: * Access-Control-Allow-Methods: GET, POST, PUT, OPTIONS, DELETE, PATCH Access-Control-Allow-Headers: origin, content-type, X-Requested-With Access-Control-Max-Age: 1800 ETag: "e369853df766fa44e1ed0ff613f563bd" Cache-Control: max-age=0, private, must-revalidate X-Request-Id: ca8837ac-4126-4cb9-a15c-79aba886bad6 X-Runtime: 0.062403 X-Powered-By: Phusion Passenger 4.0.57 Date: Sat, 02 Sep 2017 12:47:22 GMT Server: nginx/1.9.3 + Phusion Passenger 4.0.57 340;0;3;0;9;read: 4-4-0 s=11,c=1,t=0,pt=7,l=5,sg=0:20.0 Sensor:4;11;1;0;0;20.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=20.0&field2=2770 0;0;3;0;9;read: 4-4-0 s=11,c=1,t=0,pt=7,l=5,sg=0:20.0 Sensor:4;11;1;0;0;20.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=20.0&field2=2770 0;0;3;0;9;read: 4-4-0 s=10,c=1,t=1,pt=7,l=5,sg=0:17.0 Sensor:4;10;1;0;1;17.0 0;0;3;0;9;read: 5-5-0 s=11,c=1,t=0,pt=7,l=5,sg=0:23.0 Sensor:5;11;1;0;0;23.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=23.0&field2=2770 0;0;3;0;9;read: 4-4-0 s=10,c=1,t=1,pt=7,l=5,sg=0:17.0 Sensor:4;10;1;0;1;17.0 0;0;3;0;9;read: 5-5-0 s=10,c=1,t=1,pt=7,l=5,sg=0:16.0 Sensor:5;10;1;0;1;16.0 0;0;3;0;9;read: 5-5-0 s=11,c=1,t=0,pt=7,l=5,sg=0:23.0 Sensor:5;11;1;0;0;23.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=23.0&field2=2770 HTTP/1.1 200 OK Content-Type: text/html; charset=utf-8 Content-Length: 1 Connection: close Status: 200 OK X-Frame-Options: ALLOWALL Access-Control-Allow-Origin: * Access-Control-Allow-Methods: GET, POST, PUT, OPTIONS, DELETE, PATCH Access-Control-Allow-Headers: origin, content-type, X-Requested-With Access-Control-Max-Age: 1800 ETag: "cfcd208495d565ef66e7dff9f98764da" Cache-Control: max-age=0, private, must-revalidate X-Request-Id: 5ff4845e-b807-4398-ae11-fac634e2c2ec X-Runtime: 0.012793 X-Powered-By: Phusion Passenger 4.0.57 Date: Sat, 02 Sep 2017 12:47:27 GMT Server: nginx/1.9.3 + Phusion Passenger 4.0.57 00;0;3;0;9;read: 4-4-0 s=11,c=1,t=0,pt=7,l=5,sg=0:20.0 Sensor:4;11;1;0;0;20.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=20.0&field2=2770 0;0;3;0;9;read: 4-4-0 s=10,c=1,t=1,pt=7,l=5,sg=0:17.0 Sensor:4;10;1;0;1;17.0 0;0;3;0;9;read: 5-5-0 s=10,c=1,t=1,pt=7,l=5,sg=0:16.0 Sensor:5;10;1;0;1;16.0 0;0;3;0;9;read: 4-4-0 s=11,c=1,t=0,pt=7,l=5,sg=0:20.0 Sensor:4;11;1;0;0;20.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=20.0&field2=2770 0;0;3;0;9;read: 5-5-0 s=11,c=1,t=0,pt=7,l=5,sg=0:23.0 Sensor:5;11;1;0;0;23.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=23.0&field2=2770 0;0;3;0;9;read: 5-5-0 s=10,c=1,t=1,pt=7,l=5,sg=0:16.0 Sensor:5;10;1;0;1;16.0 0;0;3;0;9;read: 4-4-0 s=11,c=1,t=0,pt=7,l=5,sg=0:20.0 Sensor:4;11;1;0;0;20.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=20.0&field2=2770 0;0;3;0;9;read: 4-4-0 s=10,c=1,t=1,pt=7,l=5,sg=0:17.0 Sensor:4;10;1;0;1;17.0 0;0;3;0;9;read: 5-5-0 s=11,c=1,t=0,pt=7,l=5,sg=0:23.0 Sensor:5;11;1;0;0;23.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=23.0&field2=2770 0;0;3;0;9;read: 4-4-0 s=10,c=1,t=0,pt=7,l=5,sg=0:20.0 Sensor:4;10;1;0;0;20.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=20.0&field2=2770 0;0;3;0;9;read: 4-4-0 s=10,c=1,t=1,pt=7,l=5,sg=0:17.0 Sensor:4;10;1;0;1;17.0 0;0;3;0;9;read: 5-5-0 s=10,c=1,t=1,pt=7,l=5,sg=0:16.0 Sensor:5;10;1;0;1;16.0 0;0;3;0;9;read: 5-5-0 s=11,c=1,t=0,pt=7,l=5,sg=0:23.0 Sensor:5;11;1;0;0;23.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=23.0&field2=2768 0;0;3;0;9;read: 4-4-0 s=11,c=1,t=0,pt=7,l=5,sg=0:20.0 Sensor:4;11;1;0;0;20.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=20.0&field2=2769 0;0;3;0;9;read: 4-4-0 s=10,c=1,t=1,pt=7,l=5,sg=0:17.0 Sensor:4;10;1;0;1;17.0 0;0;3;0;9;read: 5-5-0 s=10,c=1,t=1,pt=7,l=5,sg=0:16.0 Sensor:5;10;1;0;1;16.0 0;0;3;0;9;read: 5-5-0 s=11,c=1,t=0,pt=7,l=5,sg=0:23.0 Sensor:5;11;1;0;0;23.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=23.0&field2=2770 0;0;3;0;9;read: 4-4-0 s=11,c=1,t=0,pt=7,l=5,sg=0:20.0 Sensor:4;11;1;0;0;20.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=20.0&field2=2770 HTTP/1.1 200 OK Content-Type: text/html; charset=utf-8 Content-Length: 1 Connection: close Status: 200 OK X-Frame-Options: ALLOWALL Access-Control-Allow-Origin: * Access-Control-Allow-Methods: GET, POST, PUT, OPTIONS, DELETE, PATCH Access-Control-Allow-Headers: origin, content-type, X-Requested-With Access-Control-Max-Age: 1800 ETag: "cfcd208495d565ef66e7dff9f98764da" Cache-Control: max-age=0, private, must-revalidate X-Request-Id: 7cfa0258-05fa-461d-af65-426cbcc0017b X-Runtime: 0.009982 X-Powered-By: Phusion Passenger 4.0.57 Date: Sat, 02 Sep 2017 12:47:39 GMT Server: nginx/1.9.3 + Phusion Passenger 4.0.57 00;0;3;0;9;read: 4-4-0 s=10,c=1,t=1,pt=6,l=5,sg=0:0000884101 Sensor:4;10;1;0;1;0000884101 0;0;3;0;9;read: 5-5-0 s=10,c=1,t=1,pt=7,l=5,sg=0:16.0 Sensor:5;10;1;0;1;16.0 0;0;3;0;9;read: 5-5-0 s=11,c=1,t=0,pt=7,l=5,sg=0:23.0 Sensor:5;11;1;0;0;23.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=23.0&field2=2770 0;0;3;0;9;read: 4-4-0 s=11,c=1,t=0,pt=7,l=5,sg=0:20.0 Sensor:4;11;1;0;0;20.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=20.0&field2=2769 0;0;3;0;9;read: 4-4-0 s=10,c=1,t=1,pt=5,l=5,sg=0:1099431936 Sensor:4;10;1;0;1;1099431936 0;0;3;0;9;read: 5-5-0 s=10,c=1,t=1,pt=7,l=5,sg=0:16.0 Sensor:5;10;1;0;1;16.0 0;0;3;0;9;read: 3-3-0 s=10,c=1,t=1,pt=7,l=5,sg=0:-0.0 Sensor:3;10;1;0;1;-0.0 0;0;3;0;9;read: 5-5-0 s=11,c=1,t=0,pt=7,l=5,sg=0:23.0 Sensor:5;11;1;0;0;23.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=23.0&field2=2769 0;0;3;0;9;read: 4-4-0 s=11,c=1,t=0,pt=6,l=5,sg=0:0000A04101 Sensor:4;11;1;0;0;0000A04101 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=0000A04101&field2=2770 0;0;3;0;9;read: 4-4-0 s=10,c=1,t=1,pt=7,l=5,sg=0:17.0 Sensor:4;10;1;0;1;17.0 0;0;3;0;9;read: 5-5-0 s=10,c=1,t=1,pt=7,l=5,sg=0:16.0 Sensor:5;10;1;0;1;16.0 0;0;3;0;9;read: 3-3-0 s=10,c=1,t=1,pt=7,l=5,sg=0:17.0 Sensor:3;10;1;0;1;17.0 0;0;3;0;9;read: 5-5-0 s=11,c=1,t=0,pt=7,l=5,sg=0:23.0 Sensor:5;11;1;0;0;23.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=23.0&field2=2770 0;0;3;0;9;read: 3-3-0 s=11,c=1,t=4,pt=7,l=5,sg=0:18.0 Sensor:3;11;1;0;4;18.0 0;0;3;0;9;read: 5-5-0 s=10,c=1,t=1,pt=7,l=5,sg=0:16.0 Sensor:5;10;1;0;1;16.0 0;0;3;0;9;read: 5-5-0 s=11,c=1,t=0,pt=7,l=5,sg=0:23.0 Sensor:5;11;1;0;0;23.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=23.0&field2=2770 0;0;3;0;9;read: 5-5-0 s=234,c=1,t=16,pt=7,l=5,sg=0:23.0 Sensor:5;234;1;0;16;23.0 0;0;3;0;9;read: 4-4-0 s=11,c=1,t=0,pt=7,l=5,sg=0:20.0 Sensor:4;11;1;0;0;20.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=20.0&field2=2770 0;0;3;0;9;read: 4-4-0 s=10,c=1,t=1,pt=7,l=5,sg=0:17.0 Sensor:4;10;1;0;1;17.0 0;0;3;0;9;read: 5-5-0 s=10,c=1,t=1,pt=7,l=5,sg=0:16.0 Sensor:5;10;1;0;1;16.0 0;0;3;0;9;read: 4-4-0 s=11,c=1,t=0,pt=7,l=5,sg=0:20.0 Sensor:4;11;1;0;0;20.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=20.0&field2=2770 0;0;3;0;9;read: 4-4-0 s=10,c=3,t=1,pt=7,l=5,sg=0:17.0 Sensor:4;10;3;0;1;17.0 0;0;3;0;9;read: 5-5-0 s=11,c=1,t=0,pt=7,l=5,sg=0:23.0 Sensor:5;11;1;0;0;23.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=23.0&field2=2770 0;0;3;0;9;read: 3-7-0 s=11,c=1,t=0,pt=7,l=5,sg=0:18.000 Sensor:3;11;1;0;0;18.000 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=18.000&field2=2770 0;0;3;0;9;read: 4-4-0 s=11,c=1,t=0,pt=7,l=5,sg=0:20.0 Sensor:4;11;1;0;0;20.0 connecting to api.thingspeak.com Requesting URL: /update?key=7BECYAJ5IYGYSIJ5&field1=20.0&field2=2769 0;0;3;0;9;read: 4-4-0 s=10,c=1,t=3,pt=7,l=5,sg=0:17.0 Sensor:4;10;1;0;3;17.0 0;0;3;0;9;read: 5-5-0 s=10,c=1,t=1,pt=7,l=5,sg=0:16.0 Sensor:5;10;1;0;1;16.0 0;0;3;0;9;read: 19-3-0 s=12,c=1,t=1,pt=7,l=5,sg=0:3597162945119403598 Exception (0): epc1=0x3041c95b epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000 ctx: cont sp: 3ffefb80 end: 3ffefe10 offset: 01a0 >>>stack>>> 3ffefd20: 3ffeeb34 3ffeeaa7 3ffeeaa0 402045f0 3ffefd30: 0000000c 00000001 00000001 00000007 3ffefd40: 00000005 00000000 3ffeeaf4 0000001b 3ffefd50: 00000000 00000000 0000003b 00000010 3ffefd60: 00000001 00000005 00000001 00000013 3ffefd70: 00000003 00000000 0000000c 000000e1 3ffefd80: 00000001 00000004 00000003 40202c18 3ffefd90: 41a00000 00000008 3ffefdb3 3ffeeaa0 3ffefda0: 3fffdad0 00000000 3ffeedd8 4020306e 3ffefdb0: 342e3332 0700a800 feefeffe feefeffe 3ffefdc0: feefeffe feefeffe feefeffe feefeffe 3ffefdd0: 00000014 feefeffe feefeffe feefeffe 3ffefde0: 00000000 00000000 00000001 3ffeede0 3ffefdf0: 3fffdad0 00000000 3ffeedd8 402077f8 3ffefe00: feefeffe feefeffe 3ffeedf0 40100718 <<<stack<<< ets Jan 8 2013,rst cause:2, boot mode:(3,7) load 0x4010f000, len 1384, room 16 tail 8 chksum 0x2d csum 0x2d v3de0c112 ~ld ⸮ ESP8266 Remote Temp Sensor Humidity: 21.00 % Temperature: 20.00 *C Heat index: 23.36 *C Connecting to OPTUS_70E4F0 ............................
  • Heatpump controller

    55
    0 Votes
    55 Posts
    26k Views
    bjacobseB
    @moskovskiy82 I certainly agree, I assume your comment actually was meant to Ispandy ;-)
  • Which is Fast way to store & interface data with SPIFFS ?

    1
    0 Votes
    1 Posts
    455 Views
    No one has replied
  • Help with sleeping door sensor

    5
    0 Votes
    5 Posts
    1k Views
    rvendrameR
    @ustredna , try changing this line: send(msg.set(value==HIGH)); by send(msg.set(value)); The same for msg2 line: send(msg2.set(value==HIGH)); to send(msg2.set(value)); And if you only need to update the GW on every 7 seconds (and not immediately), change the sleep: sleep( 7000 ) ; Hope it helps!
  • Motion/Relay sensor sketch help

    9
    0 Votes
    9 Posts
    8k Views
    mfalkviddM
    @Marco-MicrOchip-Acquadro Great. Maybe the relay example with button can help you get started. It works with MySensors 2.x.
  • GUVA-S12SD UV sensor sketch required

    2
    0 Votes
    2 Posts
    2k Views
    scalzS
    Hello, if you're new to MySensors: you can use the light sensor example, change the calculation for your sensor, and also change the msg type to UV. https://www.mysensors.org/build/light-lm393 or use and change directly the UV example https://www.mysensors.org/build/uv According to adafruit, your calc should look something like that: UVindex = (ADC reading * Sensor_VCC / 102.4) where Sensor_VCC in your case would be 3.3V. You might need to adapt for a variable voltage as it will follow the battery voltage. In case you have trouble, post your sketch.
  • help needed for getting started with arduino based sensor and Domoticz

    4
    0 Votes
    4 Posts
    1k Views
    P
    Thanks guys, that makes it clear for me...
  • Unable to get relay status from Domoticz

    13
    0 Votes
    13 Posts
    4k Views
    S
    @gohan Totally not updated. I did upload just now the @boots33 sketch in synch and it works. So it is my fault... But I cannot find! I re-start from fresh (err.. from boots sketch).
  • custom variable to domoticz to trigger scripts then reset...

    3
    0 Votes
    3 Posts
    1k Views
    B
    Cheers @gohan - I solved it in the end: First tried to set as a text sensor but changing the text on a sensor doesn't trigger an event in Domoticz (or at least I couldn't make it happen). Instead I present it as a light level sensor which can be used and is hidden away on a different tab in Domoticz....
  • RGB CHAINABLE GROVE LED

    4
    0 Votes
    4 Posts
    1k Views
    M
    i tried the fastled and the ChainableLED.h librarybut i'm a neewbe and it's hard for me to trabspose the examples!!
  • STM32F1* volunteer!

    2
    0 Votes
    2 Posts
    1k Views
    tekkaT
    @Bogus-Exception STM32 boards are supported in the latest 2.2.0-beta, make sure to use the most recent stm32duino board defs.
  • irrigation controller arduino mega doesn't work anymore

    4
    0 Votes
    4 Posts
    1k Views
    P
    I found the problem ... due to a defective sensor (light meter) the arduino could not initialize correctly. I think that is why it was calling back setup()
  • Get status of connection

    esp8266 sleep
    8
    0 Votes
    8 Posts
    3k Views
    B
    Sorry you are right. If you need to check "complete path" fetching time from controller is probably good way to do it.
  • how to setup and use vera variables through gateway?

    1
    0 Votes
    1 Posts
    497 Views
    No one has replied
  • How do I get multiple different mock barometers?

    53
    0 Votes
    53 Posts
    8k Views
    NeverDieN
    Fortunately, 1mbps seems to work, even if 2mbps doesn't.
  • Arduino make a Sound

    2
    0 Votes
    2 Posts
    753 Views
    Boots33B
    @Euromir The tone function will do that. I have used it in this project to register when the touch buttons are pressed. I have used a small piezo buzzer but i believe a speaker can also be used. It is very easy to use, just three parameters pinnumber,frequency,duration So to play a tone on pin 7 at 1200Hz for 60ms you would use tone(7, 1200, 60);
  • DailyTimer library for Arduino

    1
    3 Votes
    1 Posts
    528 Views
    No one has replied
  • 1 Votes
    19 Posts
    5k Views
    BulldogLowellB
    @dbemowsk said in MultiSensor - relays, temp, hum, PIR, gesture with various controller overrides: ... I think it is best to use compiler variables. They get rid of the needless use of variable storage space, even if the sketch is small. IMHO, program variables should be used for values that may/will change in your sketch The problem with using the #define directive for a constant is that they are not strongly typed. That is, suppose you are making a comparison, you may not realize that you are comparing a signed to unsigned number. You can see this if you compile this example with verbose on: #define LIMIT 6 const unsigned int limit = 6; void setup() { int myVar = 5; if(myVar > LIMIT){}; if(myVar > limit){}; } void loop() {} in C++, it is generally preferred to use the const keyword over a #define directive; both methods will store the "variable" in FLASH, saving SRAM as you pointed out. There is (of course) a lot of discourse on this topic (see Stack Overflow). So there are benefits to using #define. A #define at the top of a program does usually get seen by the programmer (or you, later on, after a hiatus) where they/you may not notice a regular definition on a quick glance #define sort of sticks out in the crowd. Perhaps that is why you see so much of the #define directive in Arduino programming.
  • MY_SIGNING_SIMPLE_PASSWD

    20
    0 Votes
    20 Posts
    3k Views
    AnticimexA
    @LuFi you are welcome. Hope it works out.
  • Arduino as Gateway via USB crash on PI

    6
    0 Votes
    6 Posts
    2k Views
    mfalkviddM
    @sineverba if you can, check with a multimeter that the usb hub grounds the different usb ports together. If it doesn't, that could be the cause.

25

Online

11.7k

Users

11.2k

Topics

113.0k

Posts