Skip to content

My Project

Show off and share your great projects here! We love pictures!
961 Topics 13.4k Posts
  • combining button with dht11 issue

    2
    0 Votes
    2 Posts
    1k Views
    el tigroE
    sorted works a treat now. My bad, used a sketch I had tinkered with in the past. sketches melded now. Finished sketch below for them that might need. The sketch is for domestic light swith. #define MY_NODE_ID 5 #define MY_DEBUG #define MY_RADIO_NRF24 #include <SPI.h> #include <MySensors.h> #include <Bounce2.h> #include <DHT.h> #define DHT_DATA_PIN 7 #define CHILD_ID 3 #define BUTTON_PIN 3 #define SENSOR_TEMP_OFFSET 0 #define CHILD_ID_TEMP 1 Bounce debouncer = Bounce(); static const uint64_t UPDATE_INTERVAL = 5000; static const uint8_t FORCE_UPDATE_N_READS = 2; float lastTemp; unsigned long interval = 5000; unsigned long previousMillis = 0; uint8_t nNoUpdatesTemp; int oldValue = -1; bool metric = true; MyMessage msg(CHILD_ID, V_LIGHT); MyMessage msgTemp(CHILD_ID_TEMP, V_TEMP); DHT dht; void presentation() { sendSketchInfo("kitchen Lights", "1.1"); present(CHILD_ID, S_LIGHT); present(CHILD_ID_TEMP, S_TEMP); metric = getConfig().isMetric; } void setup() { pinMode(BUTTON_PIN, INPUT); digitalWrite(BUTTON_PIN, HIGH); debouncer.attach(BUTTON_PIN); debouncer.interval(5); dht.setup(DHT_DATA_PIN); if (UPDATE_INTERVAL <= dht.getMinimumSamplingPeriod()) { Serial.println("Warning: UPDATE_INTERVAL is smaller than supported by the sensor!"); } } void loop() { debouncer.update(); int value = debouncer.read(); if (value != oldValue) { send(msg.set(value == HIGH ? 1 : 0)); oldValue = value; } unsigned long currentMillis = millis(); if ((unsigned long)(currentMillis - previousMillis) >= interval) { dht.readSensor(true); float temperature = dht.getTemperature(); if (isnan(temperature)) { Serial.println("Failed reading temperature from DHT!"); } else if (temperature != lastTemp || nNoUpdatesTemp == FORCE_UPDATE_N_READS) { lastTemp = temperature; if (!metric) { temperature = dht.toFahrenheit(temperature); } nNoUpdatesTemp = 0; temperature += SENSOR_TEMP_OFFSET; send(msgTemp.set(temperature, 1)); #ifdef MY_DEBUG Serial.print("T: "); Serial.println(temperature); #endif } else { nNoUpdatesTemp++; } previousMillis = millis(); } }
  • Schneider Electric WISERJLPM200

    2
    0 Votes
    2 Posts
    903 Views
    RedguyR
    I implemented this with a schneider PM9C using modbus which works fine Zigbee is just transport, shouldnt be to hard to translate.. You need the manual to see what data it provides, which i couldnt find online. The model you specified has been of the market for some years.
  • RS485 Stress test

    34
    7 Votes
    34 Posts
    13k Views
    R
    @AWI I have access to the necessary most modules and electronic components in my city . so if you have idea for this told me and i am ready to test .
  • My projects with mysensors on my house

    11
    5 Votes
    11 Posts
    5k Views
    L
    I have a 0.4mm nozzle. I can print with a 100 microns resolution with this one 😉
  • Ultrasonic essential Oil diffuser

    11
    7 Votes
    11 Posts
    9k Views
    fifipil909F
    Hi, It's hard to say right now. It can be interesting to know how do you control the On/Off. Those Ceramic caps don't like to be used without any liquid and can be damaged very quickly if there are dry. But normally there is a build in switch off circuit if no liquid is detected. Can you tell me more how to you modify the electronic to control it with Mysensors ?
  • IKEA Spöke/Spoke(ghost)

    3
    4 Votes
    3 Posts
    4k Views
    F
    @Yveaux Thanks. I used alcohol to put the silicone back. I have add that information in the post
  • Sensbender Micro BinaryDoorSensor

    3
    0 Votes
    3 Posts
    1k Views
    T
    The library for SI7021 is missing. You'll find it here: https://github.com/mysensors/MySensorsArduinoExamples
  • Module "Fil Pilote" for french heaters

    1
    0 Votes
    1 Posts
    667 Views
    No one has replied
  • Slim Node Si7021 sensor example

    137
    6 Votes
    137 Posts
    65k Views
    miljumeM
    @Eawo Domoticz groups sensors after the order you present them in, see: https://forum.mysensors.org/topic/5132/ds18b20-ans-sht31-d-show-up-as-combined-sensors-on-domoticz/15 I send every 5 minutes and check the value before so that I only send if the value has changed I have been running my sensor for nearly 2 months now and battery level has only decreased 1-2% Make sure you use 1 MHz bootloader
  • Rfm69 and that pesky antenna

    8
    0 Votes
    8 Posts
    6k Views
    rmtuckerR
    Thank you everyone for your input on this. Eventually i just used a piece of wire 82mm long and bent it over and stuck it out of one of the slots in the housing. Crude i know but the initial results are promising. The Gateway is in one corner of the house upstairs and i placed the sensor in the opposite diagonal corner downstairs in the house through a guess of 4 brick walls and the sensor is reporting an Rssi of -65db ti -70db. Shame Rssi can not be presented in Domoticz properly yet (Having to use a dummy sound sensor to visualise it) as mysensors has no way of handling it yet!. I will be conducting more range tests but the change from NRF24 was well worth it (No more deadspots in the house).
  • How to mill a PCB at Home!

    11
    6 Votes
    11 Posts
    7k Views
    Martin TellblomM
    Hi all, Just bought a little CNC + Laser engraver machine that I'm going to use for PCB milling and have some questians for the experienced users. @Frank-Herrmann will your Chillipeppr code work on all arduino/gcode based CNC routers? Any other free software like BamCam for use will small projects? What cutting bits are you using for PCB milling?
  • Measuring battery

    5
    0 Votes
    5 Posts
    3k Views
    meanmrgreenM
    @sundberg84 Will look into that, i have a UNO lying around aswell so prehaps ill experiment with the bootloader burning eventually.
  • My own board (50mm x 30mm)

    133
    1 Votes
    133 Posts
    94k Views
    GertSandersG
    @alexsh1 Indeed, there is a solderpad near to the D2 pin which needs to be closed (connected) to allow the IRQ signal to go to D2, so one can use the radio
  • LIVOLO alike switch mod

    3
    0 Votes
    3 Posts
    2k Views
    mfalkviddM
    https://forum.mysensors.org/topic/5719/livolo-eu-switch-mysensors-integration might be useful
  • RFID Garage door opener

    2
    0 Votes
    2 Posts
    1k Views
    mfalkviddM
    @vlad1 welcome to the MySensors community! Who are you asking? About which project are you asking? Can you post a link to it? If you mean this project, the code is right there in the first post.
  • ORP/PH Node

    1
    3 Votes
    1 Posts
    870 Views
    No one has replied
  • water meter pulse

    3
    0 Votes
    3 Posts
    1k Views
    AvvillensA
    Thank you Sundberg84, Actually I was not planning in using any controller but upgrading the already available hardware and firm if necessary. The fastest opton would be replicating a 2 way unit in the ones I got but that would reduce the fun. This would be the only option if functionality is based in the firmware :(
  • Temperature from Lexibook ASM30 sensor with Arduino

    3
    0 Votes
    3 Posts
    1k Views
    sgriponS
    I started integrating MySensors with my system. MySensors allows me an easy integration with Domoticz. However, I still use RF433 modules because they are cheaper. I plan to add RF433 nodes with the help of VirtualWire library. My first step is available: integration of remote light switched Chacon DI.O : https://wiki.sgripon.net/doku.php/add_chacon_di.o_remote_control_support_in_domoticz
  • Mysensors TFT LCD Display

    1
    2 Votes
    1 Posts
    4k Views
    No one has replied
  • Multiple buildings - two gateways or repeaters?

    6
    0 Votes
    6 Posts
    3k Views
    N
    Edit: Found this in the forums. Is it still relevant or did 1.6.15/16 solve the issue? https://forum.mysensors.org/topic/4680/mysensors-2-0-ethernet-gateway-atmega-w5100-restart-all-time/3 I've setup the UNO with the default sketch and made the changes to make it a separate gateway. I'm seeing the following on repeat. I've tried a few changes here or there to no success. Serial output shows: IP: 192.168.4.35 0;255;3;0;9;Attempting MQTT connection... 0;255;3;0;9;MQTT connected 0;255;3;0;9;Sending message on topic: mysensors-outb/0/255/0/0/18 0;255;3;0;9;Message arrived on topic: mysensors-inb/3/255/3/0/6 0;255;3;0;9;!TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=6,pt=0,l=1,sg=0,ft=0,st=NACK:I 0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.1.0 0;255;3;0;9;TSM:INIT 0;255;3;0;9;TSF:WUR:MS=0 0;255;3;0;9;TSM:INIT:TSP OK 0;255;3;0;9;TSM:INIT:GW MODE 0;255;3;0;9;TSM:READY:ID=0,PAR=0,DIS=0 0;255;3;0;9;MCO:REG:NOT NEEDED Mosquitto log shows: 1483156702: New connection from 192.168.4.35 on port 1883. 1483156702: New client connected from 192.168.4.35 as mygateway2 (c1, k15, u'pi'). 1483156717: Socket error on client mygateway2, disconnecting. Any ideas?

19

Online

11.7k

Users

11.2k

Topics

113.1k

Posts