Navigation

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

    sburlot

    @sburlot

    10
    Reputation
    11
    Posts
    399
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online
    Website Burlot Location Switzerland

    sburlot Follow

    Best posts made by sburlot

    • RE: What did you build today (Pictures) ?

      @dbemowsk 🙂
      It's a Raspberry 3, with a cheap 480x320 screen, and a Python+PyGame script.

      Start of my script comes from this script
      Temp+Humidity comes from mySensors SenseBender Micro via NodeRed/MQTT
      Solar power comes from my inverter via a script (also MQTT)
      Weather from WeatherUnderground

      0_1520784994213_screenshot.jpg

      posted in General Discussion
      sburlot
      sburlot
    • Sensebender Micro reports V_HUM > 100

      Since 2 weeks, my outdoor sensor, a Sensebender Micro with a NRF24L01+, stopped reporting values to Domoticz at night, then resumed during the day.

      Here the temperature goes around 0C with 100% RH.

      After trying to add a capacitor (10uF, then changed to a 100uF), I reflashed the Sensebender, installed the latest gateway on my Raspi gateway, still no luck.

      Then, running the gateway with the debug flag, I noticed that the sensor reported humidity > 100%. And Domoticz doesn't store this value. (Why?)

      TSF:MSG:READ,1-1-0,s=1,c=1,t=0,pt=7,l=5,sg=0:2.7
      TSF:MSG:READ,1-1-0,s=2,c=1,t=1,pt=2,l=2,sg=0:100
      TSF:MSG:READ,1-1-0,s=1,c=1,t=0,pt=7,l=5,sg=0:3.0
      TSF:MSG:READ,1-1-0,s=2,c=1,t=1,pt=2,l=2,sg=0:101
      TSF:MSG:READ,1-1-0,s=1,c=1,t=0,pt=7,l=5,sg=0:3.4
      TSF:MSG:READ,1-1-0,s=2,c=1,t=1,pt=2,l=2,sg=0:101
      TSF:MSG:READ,1-1-0,s=1,c=1,t=0,pt=7,l=5,sg=0:3.5
      TSF:MSG:READ,1-1-0,s=2,c=1,t=1,pt=2,l=2,sg=0:101
      

      So if your sensor doesn't report values to your controller, check that the values are within a valid range.

      For now, I've put some Kapton tape on the Sensebender Micro, so the side in contact with the box is insulated. We'll see how it works.

      I've read all the posts on the forum, there aren't a lot of explanation on how design an outdoor enclosure, so I'll appreciate any hints!

      I'll try nail polish, as seen on this video: How to Waterproof Electronics by GreatScott!

      Hope this post will save you some time diagnosing a non-responding sensor.

      posted in Hardware
      sburlot
      sburlot
    • RE: What did you build today (Pictures) ?

      I built a GPIO interface for the Raspberry PI using @GertSanders PCB (link)
      I ordered the PCB via OSH Park, successfully soldered 2 and my setup is now much cleaner without these jumper cables.
      For the second one, I soldered the NRF directly on the PCB (just because I wanted to gain some height), and everything works flawlessly.

      Big thank to @GertSanders for his PCB!

      Mandatory Pic

      My gateway runs mysgw, Mosquitto and Node-Red.

      In the back is my Raspberry Dashboard displaying the weather, info from my solar installation and the sensors MQTT messages.

      posted in General Discussion
      sburlot
      sburlot
    • RE: 💬 Sensebender Micro

      Beware that the Si7021 can return a RH value < 0 or > 100, and Domoticz will not store it. Clamp the humidity to a valid range to avoid losing values.

      Lately, my Sensebender reported values of 101-104 during the night. Took me some time to understand why Domoticz complained it didnt receive any values.
      It received these values, but didnt like them.

      See section 5.1.1 of the Si7021 datasheet says:
      Due to normal variations in RH accuracy of the device as described in Table 4, it is possible for the measured value of %RH to be slightly less than 0 when the actual RH level is close to or equal to 0. Similarly, the measured value of %RH may be slightly greater than 100 when the actual RH level is close to or equal to 100. This is expected behavior, and it is acceptable to limit the range of RH results to 0 to 100%RH in the host software by truncating values that are slightly outside of this range.

      posted in OpenHardware.io
      sburlot
      sburlot
    • RE: Cannot run MySensors on RPI 3

      @kkanedaa said in Cannot run MySensors on RPI 3:

      gcc -MT build/drivers/Linux/log.o -MMD -MP -DMY_RADIO_NRF24 -DMY_GATEWAY_LINUX -DMY_GATEWAY_MQTT_CLIENT -DMY_DEBUG -DLINUX_SPI_SPIDEV -DMY_MQTT_CLIENT_ID="mygateway1" -DMY_MQTT_SUBSCRIBE_TOPIC_PREFIX="mysensors-in" -DMY_MQTT_PUBLISH_TOPIC_PREFIX="mysensors-out" -DMY_CONTROLLER_IP_ADDRESS=192,168,xx,166 -Ofast -g -Wall -Wextra -I. -I./core -I./drivers/Linux -I./drivers/SPIDEV -c drivers/Linux/log.c -o build/drivers/Linux/log.o

      I dont know if it's important, but your configure didn't detect the BCM chip for SPI?
      Did you enable SPI via raspi-config (or /boot/config.txt) ?

      posted in Troubleshooting
      sburlot
      sburlot
    • RE: Combine a controller and a gateway in a raspberry pi

      I use a Raspberry 3 that is a MySensors MQTT Gateway, a Domoticz Controller, a Mosquitto Broker and Node-Red. The Raspi has more power than needed. I even had InfluxDB+Grafana on this same Raspberry.

      The NRF24L01+ is connected directly to the pins. I have ordered a PCB to mount the NRF, but I haven't found the time to install it.

      The PCB:
      https://www.openhardware.io/view/17/Raspberry-Pi2-GPIO-interface-for-NRF24L01

      posted in General Discussion
      sburlot
      sburlot

    Latest posts made by sburlot

    • RE: What did you build today (Pictures) ?

      @dbemowsk 🙂
      It's a Raspberry 3, with a cheap 480x320 screen, and a Python+PyGame script.

      Start of my script comes from this script
      Temp+Humidity comes from mySensors SenseBender Micro via NodeRed/MQTT
      Solar power comes from my inverter via a script (also MQTT)
      Weather from WeatherUnderground

      0_1520784994213_screenshot.jpg

      posted in General Discussion
      sburlot
      sburlot
    • RE: What did you build today (Pictures) ?

      I built a GPIO interface for the Raspberry PI using @GertSanders PCB (link)
      I ordered the PCB via OSH Park, successfully soldered 2 and my setup is now much cleaner without these jumper cables.
      For the second one, I soldered the NRF directly on the PCB (just because I wanted to gain some height), and everything works flawlessly.

      Big thank to @GertSanders for his PCB!

      Mandatory Pic

      My gateway runs mysgw, Mosquitto and Node-Red.

      In the back is my Raspberry Dashboard displaying the weather, info from my solar installation and the sensors MQTT messages.

      posted in General Discussion
      sburlot
      sburlot
    • RE: Cannot run MySensors on RPI 3

      @kkanedaa said in Cannot run MySensors on RPI 3:

      gcc -MT build/drivers/Linux/log.o -MMD -MP -DMY_RADIO_NRF24 -DMY_GATEWAY_LINUX -DMY_GATEWAY_MQTT_CLIENT -DMY_DEBUG -DLINUX_SPI_SPIDEV -DMY_MQTT_CLIENT_ID="mygateway1" -DMY_MQTT_SUBSCRIBE_TOPIC_PREFIX="mysensors-in" -DMY_MQTT_PUBLISH_TOPIC_PREFIX="mysensors-out" -DMY_CONTROLLER_IP_ADDRESS=192,168,xx,166 -Ofast -g -Wall -Wextra -I. -I./core -I./drivers/Linux -I./drivers/SPIDEV -c drivers/Linux/log.c -o build/drivers/Linux/log.o

      I dont know if it's important, but your configure didn't detect the BCM chip for SPI?
      Did you enable SPI via raspi-config (or /boot/config.txt) ?

      posted in Troubleshooting
      sburlot
      sburlot
    • RE: Combine a controller and a gateway in a raspberry pi

      I use a Raspberry 3 that is a MySensors MQTT Gateway, a Domoticz Controller, a Mosquitto Broker and Node-Red. The Raspi has more power than needed. I even had InfluxDB+Grafana on this same Raspberry.

      The NRF24L01+ is connected directly to the pins. I have ordered a PCB to mount the NRF, but I haven't found the time to install it.

      The PCB:
      https://www.openhardware.io/view/17/Raspberry-Pi2-GPIO-interface-for-NRF24L01

      posted in General Discussion
      sburlot
      sburlot
    • RE: How to add a serial device to use in node-red

      I tried (/dev/ttyUSB20 being the port used and created by the MySensors Gateway):

      sudo socat PTY,link=/dev/ttyUSB21,mode=666,group=dialout,raw PTY,link=/dev/ttyUSB20,mode=666,group=dialout,raw
      

      (I found that Domoticz needs the port to be ttyUSB*).

      I connected Domoticz to a MySensors Gateway USB on port /dev/ttyUSB21
      And Node-RED to /dev/ttyUSB20

      But nothing worked: Domoticz did not see new data arrive and Node-RED didnt receive anything. I tried rebooting (and redo the socat dance), nothing happened.

      I suppose my non-understanding of socat is the main cause of this failure.

      So, I took the plunge and moved to a MySensors MQTT gateway. I had to reflash my sensors with a fixed unit_id (not sure if it's still a requirement), and voila.

      Now I can play with Node-RED and try other controllers in parallel of Domoticz.

      Thanks for the help.

      posted in Node-RED
      sburlot
      sburlot
    • RE: How to add a serial device to use in node-red

      Hi,

      I had the same problem: I have a serial GW on the PI that outputs data on /tty/USB20, and is used by Domoticz.

      I want to test MQTT via node-red, so I need to read this serial port from node-red.

      I tried:

      sudo socat PTY,link=/dev/ttyS81,mode=666,group=dialout,raw PTY,link=/dev/ttyUSB20,mode=666,group=dialout,raw
      

      But nothing appears on ttyS81: I tried with

      sudo screen /dev/ttyS81 115200
      

      and of course on node-red, I set up a node that reads from ttyS81 and outputs to debug: the serial port is opened successfully, but nothing appears on debug.

      If I use

      sudo screen /dev/ttyUSB20 115200
      

      I can see some data coming

      I'm no expert with socat (I learned its existence via this forum post), so any help is appreciated.

      Thanks,
      Stephan

      posted in Node-RED
      sburlot
      sburlot
    • RE: Sensebender Micro reports V_HUM > 100

      @gohan I live in Switzerland, but perhaps my place has more humidity than normal.

      It's not silly problems we're working on, we're learning all the time!

      posted in Hardware
      sburlot
      sburlot
    • RE: Sensebender Micro reports V_HUM > 100

      I agree, 100% is a lot, but I had a look to weatherunderground and there's a Netatmo weather station near my house that reports an average of 95% humidity, with a maximum of 100%. So my measure may not be this wrong.

      I'll test with another sensor tonight (or move on, I spent 3 evenings on this)

      posted in Hardware
      sburlot
      sburlot
    • RE: 💬 Sensebender Micro

      Beware that the Si7021 can return a RH value < 0 or > 100, and Domoticz will not store it. Clamp the humidity to a valid range to avoid losing values.

      Lately, my Sensebender reported values of 101-104 during the night. Took me some time to understand why Domoticz complained it didnt receive any values.
      It received these values, but didnt like them.

      See section 5.1.1 of the Si7021 datasheet says:
      Due to normal variations in RH accuracy of the device as described in Table 4, it is possible for the measured value of %RH to be slightly less than 0 when the actual RH level is close to or equal to 0. Similarly, the measured value of %RH may be slightly greater than 100 when the actual RH level is close to or equal to 100. This is expected behavior, and it is acceptable to limit the range of RH results to 0 to 100%RH in the host software by truncating values that are slightly outside of this range.

      posted in OpenHardware.io
      sburlot
      sburlot
    • RE: Sensebender Micro reports V_HUM > 100

      Hi,

      I saw your post, but i'm using the Sensebender Micro and the Si7021 sensor is on the main board. Hard to just let the sensor exposed to the outside world.

      My Kapton tape insulation didnt work, I'll try to clamp the RH value.

      The Si7021 datasheets explains why this happens:

      Due to normal variations in RH accuracy of the device as described in Table 4, it is possible for the measured value of %RH to be slightly less than 0 when the actual RH level is close to or equal to 0. Similarly, the measured value of %RH may be slightly greater than 100 when the actual RH level is close to or equal to 100. This is expected behavior, and it is acceptable to limit the range of RH results to 0 to 100%RH in the host software by truncating values that are slightly outside of this range.

      posted in Hardware
      sburlot
      sburlot