Navigation

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

    Topics created by kiesel

    • kiesel

      No merge into master in the last 5 years, should we use development?
      General Discussion • • kiesel  

      10
      0
      Votes
      10
      Posts
      57
      Views

      bgunnarb

      Well, my network with two handfulls of nodes in three different locations is still live and kicking! I agree that there does not seem to be a lot happening in the community. I'm running 2.4.0- alpha since this gives support for MQTT over TLS. Just managed today to create one more MQTT GW after reading a lot about support for ESP8266. You know, these things you do once per year and have to learn new each time. MySensors is the cheapest way I have found to create small sensor nodes etc. But now slowly running out of my supply of hardware. Well, time will tell...
    • kiesel

      Anybody got one / a few spare minimalist rfm69hw shields for wemos d1 mini?
      General Discussion • • kiesel  

      4
      0
      Votes
      4
      Posts
      22
      Views

      OldSurferDude

      Thanks for the offer @TheoL ! I have moved on to a differenct project. Also, a lesson that I have learned many times, "If it works, don't fix it!" -OSD
    • kiesel

      [mysensors] Not a valid message: invalid literal for int() with base 10: '\x00\x000'
      Development • • kiesel  

      3
      0
      Votes
      3
      Posts
      18
      Views

      kiesel

      Thanks, I'll keep this in mind if I decide to debug it. I realized that I am also tired of patching the gateway through to the doctor container inside an LXC so now I am looking at creating an esp gateway. Just need to check if I can find a pcb on here. Thanks again!
    • kiesel

      Tips/Tricks for placing sensors above doors?
      General Discussion • • kiesel  

      3
      0
      Votes
      3
      Posts
      26
      Views

      NeverDie

      In a previous house I had a wireless sensor that was cylindrical. I drilled a roughly 3/4" - 7/8" diameter hole in the doorframe and slide it in, so it wasn't at all visible when the door was closed. Because of the packaging and form factor, some exotic things, like that, are far easier to buy than build, though I suppose it would be within the grasp of someone with skills who was determined to make their own. Less exotic: if you made your sensor flat enough, you could hollow out the door molding and hide it inside of that. A properly designed door sensor could run off of a CR2032 coincell battery for 10+ years, so it's not such a wild idea.
    • kiesel

      WIP: My first PCB: Arduino Pro Mini + RFM69 small node (feedback wanted)
      My Project • • kiesel  

      5
      0
      Votes
      5
      Posts
      48
      Views

      kiesel

      @KevinT hmmm, that's really not the case atm. I just ordered the first batch and will report back once I assembled the first sensor. If it's an issue I'll rearrange the footprints. Thanks for the info!
    • kiesel

      Starting my PC with a 3.3v arduino pro mini?
      Development • • kiesel  

      15
      0
      Votes
      15
      Posts
      126
      Views

      kiesel

      So, I finally got this done and it works just like I want it to. I used my initial schematics (plus radio, of course) and this code: /** * The MySensors Arduino library handles the wireless radio link and protocol * between your home built sensors/actuators and HA controller of choice. * The sensors forms a self healing radio network with optional repeaters. Each * repeater and gateway builds a routing tables in EEPROM which keeps track of the * network topology allowing messages to be routed to nodes. * * Created by Henrik Ekblad <henrik.ekblad@mysensors.org> * Copyright (C) 2013-2015 Sensnology AB * Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors * * Documentation: http://www.mysensors.org * Support Forum: http://forum.mysensors.org * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2 as published by the Free Software Foundation. * ******************************* * * REVISION HISTORY * Version 1.0: Yveaux * * DESCRIPTION * This sketch provides an example of how to implement a humidity/temperature * sensor using a Si7021 sensor. * * For more information, please visit: * http://www.mysensors.org/build/humiditySi7021 * */ // Enable debug prints #define MY_DEBUG #define MY_OWN_DEBUG #ifndef MY_OWN_DEBUG //disable serial in production compile, potentially saves few uA in sleep mode #define MY_DISABLED_SERIAL #endif // Enable and select radio type attached #define MY_RADIO_RFM69 #define MY_IS_RFM69HW #define MY_RFM69_NEW_DRIVER #define MY_NODE_ID 5 #define CHILD_ID_TXT 0 #define OUTPIN 8 #include <MySensors.h> #define SKETCH_NAME "media_pc_switch" #define SKETCH_MAJOR_VER "1" #define SKETCH_MINOR_VER "0" static bool metric = true; MyMessage msgTxt(CHILD_ID_TXT, V_TEXT); void presentation() { // Send the sketch version information to the gateway and Controller sendSketchInfo(SKETCH_NAME, SKETCH_MAJOR_VER "." SKETCH_MINOR_VER); present(CHILD_ID_TXT, S_INFO); } void setup() { pinMode(OUTPIN, OUTPUT); // digitalWrite(OUTPIN, LOW); #ifdef MY_OWN_DEBUG Serial.print("Starting: "); #endif send(msgTxt.set("Ready")); } void receive(const MyMessage &msg) { uint16_t ms; Serial.print("Received a message: "); Serial.println(msg.getString()); send(msgTxt.set(msg.getString())); ms = msg.getUInt(); if (ms > 10000 || ms < 1){return;} send(msgTxt.set("Received")); Serial.println("Pulling pin high"); digitalWrite(OUTPIN, HIGH); Serial.print("Waiting for "); Serial.println(ms); delay(ms); Serial.println("Switching off"); digitalWrite(OUTPIN, LOW); Serial.println("Delaying a few seconds to ignore message resends."); send(msgTxt.set("Sleeping")); delay(10000); send(msgTxt.set("Ready")); } Now I can use this sequence in HA to start my PC even when the power was cut: wzimmer_ms_start_htpc: alias: Use mysensors node 5 to start the mediapc in the living room sequence: repeat: sequence: #don't run if htpc already running - condition: not conditions: - condition: state entity_id: binary_sensor.htpc state: 'on' #send start signal to mysensors - service: notify.mysensors data: target: "media_pc_switch 5 0" message: 1000 #wait for timeout seconds whether a message has been received - wait_for_trigger: - platform: state entity_id: sensor.media_pc_switch_5_0 to: "Received" timeout: '00:00:04' until: # Did it work? - condition: state entity_id: sensor.media_pc_switch_5_0 state: Received Thank you, @cabat for your help and your patience!!!
    • kiesel

      [SOLVED] Dropped node: arduino blinks only once
      Troubleshooting • • kiesel  

      5
      0
      Votes
      5
      Posts
      35
      Views

      TRS-80

      Yaay! Thanks for reporting back.
    • kiesel

      rfm69hw restarting when using plug on same multi-socket
      Troubleshooting • • kiesel  

      5
      0
      Votes
      5
      Posts
      38
      Views

      kiesel

      @mfalkvidd I plugged my soldering iron in and you were right, the problem reappears. I only have that one wall socket in thqt corner of the apartment so I can't plug the switch into another wall socket, unfortunately. Would one of those multi plugs work that come with an extra fuse to guard against lightning strike induced fluctuations? /edit: forgot to mention I am using the official charger for the pi 4. I'll try to find a different one.
    • kiesel

      mysensors integration freezes when it triggers switch.toggle
      Home Assistant • • kiesel  

      8
      0
      Votes
      8
      Posts
      58
      Views

      monte

      @kiesel interesting! But weird But why the power issue with one of the devices connected to HA breaks integration with Mysensors particularly?
    • kiesel

      IR Node resending last signal ca every 15 minutes
      Home Assistant • • kiesel  

      18
      0
      Votes
      18
      Posts
      142
      Views

      kiesel

      @electrik Thanks, I'll have a look at those updates. Do you mean the code I am using for my appdaemon app? I got everything I use from here: https://github.com/eifinger/appdaemon-scripts This is much cleaner and easier to understand than my code, but let me know if you want it anyway
    • kiesel

      IR Sensor only reading every other button press
      Development • • kiesel  

      7
      0
      Votes
      7
      Posts
      32
      Views

      skywatch

      @kiesel You are welcome! - We are all here to learn! As to my code, here is the thread with the problems I had and how I fixed them.... https://forum.mysensors.org/topic/10936/vs838-ir-receiver-led-anyone-got-it-working-with-mys?_=1582743282787 I am still tinkering around the edges and I expect a final version to be about a week away. It is mostly getting it all the way I want it now!
    • kiesel

      Battery: pro mini @ 1mhz vs booster
      Development • • kiesel  

      30
      0
      Votes
      30
      Posts
      163
      Views

      NeverDie

      @kiesel said in Battery: pro mini @ 1mhz vs booster: @zboblamont How do I know whether a booster introduces noise? I think so far I have been lucky with my three nodes because they work as expected. Or I don't know what to look for... If you wanted to play it safe (aka defensive programming), you could use your booster to charge a capacitor that's large enough to provide interim power, turn off the booster prior to doing your radio communications, and then turn the booster on again when you're done with tx/rx. That would effectively remove your booster from the equation as an interference source. Also, some boosters have a pass-through, so you can use your regular battery voltage for as long as it's high enough, and then when it no longer is, enable your booster, if that's what you want to do. Here's an example of one: https://www.openhardware.io/view/285/33v-Boost-Converter-with-Pass-Through For instance, CR2032's can have quite a voltage dip after volunteering some current, so this would be one way to keep wringing a useful voltage out of such a battery after its voltage may have temporarily dropped too low. Some of the ARM MCU chips include boost converters that can boost from as little as 0.5v....
    • kiesel

      script to convert serial to mqtt?
      Development • • kiesel  

      9
      0
      Votes
      9
      Posts
      69
      Views

      kiesel

      @Gerard-van-Seventer I am using appdaemon for my automation and I wouldn't want to install node red just for the conversion. Or are there automations that node red can that appdaemon can't?
    • kiesel

      serial gateway: !TSM:INIT:TSP FAIL
      Troubleshooting • • kiesel  

      3
      0
      Votes
      3
      Posts
      34
      Views

      kiesel

      @mfalkvidd Oh, I completely misunderstood then! I thought mysgw would interpret the serial input and then make it accessible to the controller. Thanks för clearing that up, I will give it a shot tomorrow.
    • kiesel

      Drawbacks to using a pro mini as a serial gateway?
      Development • • kiesel  

      6
      0
      Votes
      6
      Posts
      37
      Views

      electrik

      No just the Rx, TX and power should be enough.
    • kiesel

      rfm69hw on a raspberry pi 4, power issues
      Troubleshooting • • kiesel  

      2
      0
      Votes
      2
      Posts
      27
      Views

      kiesel

      So from what I can read here this might not be a power issue after all? This is the sketch I am using for the signal scanner: /* * The MySensors Arduino library handles the wireless radio link and protocol * between your home built sensors/actuators and HA controller of choice. * The sensors forms a self healing radio network with optional repeaters. Each * repeater and gateway builds a routing tables in EEPROM which keeps track of the * network topology allowing messages to be routed to nodes. * * Created by Henrik Ekblad <henrik.ekblad@mysensors.org> * Copyright (C) 2013-2019 Sensnology AB * Full contributor list: https://github.com/mysensors/MySensors/graphs/contributors * * Documentation: http://www.mysensors.org * Support Forum: http://forum.mysensors.org * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2 as published by the Free Software Foundation. * ******************************* * * REVISION HISTORY * Version 1.0 - tekka * * DESCRIPTION * ATC mode settings and signal report functions, on RFM69 and RFM95 nodes * */ // Enable debug prints #define MY_DEBUG #define MY_SIGNAL_REPORT_ENABLED #define MY_NODE_ID 3 // Enable and select radio type attached // RFM69 #define MY_RADIO_RFM69 #define MY_RFM69_NEW_DRIVER // ATC on RFM69 works only with the new driver (not compatible with old=default driver) #define MY_IS_RFM69HW //#define MY_RFM69_ATC_TARGET_RSSI_DBM (-70) // target RSSI -70dBm //#define MY_RFM69_MAX_POWER_LEVEL_DBM (10) // max. TX power 10dBm = 10mW // RFM95 //#define MY_RADIO_RFM95 //#define MY_RFM95_ATC_TARGET_RSSI_DBM (-70) // target RSSI -70dBm //#define MY_RFM95_MAX_POWER_LEVEL_DBM (10) // max. TX power 10dBm = 10mW #include <MySensors.h> // ID of the sensor child #define CHILD_ID_UPLINK_QUALITY (0) #define CHILD_ID_TX_LEVEL (1) #define CHILD_ID_TX_PERCENT (2) #define CHILD_ID_TX_RSSI (3) #define CHILD_ID_RX_RSSI (4) #define CHILD_ID_TX_SNR (5) #define CHILD_ID_RX_SNR (6) // Initialize general message MyMessage msgTxRSSI(CHILD_ID_TX_RSSI, V_CUSTOM); MyMessage msgRxRSSI(CHILD_ID_RX_RSSI, V_CUSTOM); MyMessage msgTxSNR(CHILD_ID_TX_SNR, V_CUSTOM); MyMessage msgRxSNR(CHILD_ID_RX_SNR, V_CUSTOM); MyMessage msgTxLevel(CHILD_ID_TX_LEVEL, V_CUSTOM); MyMessage msgTxPercent(CHILD_ID_TX_PERCENT, V_CUSTOM); MyMessage msgUplinkQuality(CHILD_ID_UPLINK_QUALITY, V_CUSTOM); void setup() { } void presentation() { // Send the sketch version information to the gateway and controller sendSketchInfo("ATC", "1.0"); // Register all sensors to gw (they will be created as child devices) present(CHILD_ID_UPLINK_QUALITY, S_CUSTOM, "UPLINK QUALITY RSSI"); present(CHILD_ID_TX_LEVEL, S_CUSTOM, "TX LEVEL DBM"); present(CHILD_ID_TX_PERCENT, S_CUSTOM, "TX LEVEL PERCENT"); present(CHILD_ID_TX_RSSI, S_CUSTOM, "TX RSSI"); present(CHILD_ID_RX_RSSI, S_CUSTOM, "RX RSSI"); present(CHILD_ID_TX_SNR, S_CUSTOM, "TX SNR"); present(CHILD_ID_RX_SNR, S_CUSTOM, "RX SNR"); } void loop() { // send messages to GW send(msgUplinkQuality.set(transportInternalToRSSI(_transportSM.uplinkQualityRSSI))); send(msgTxLevel.set(transportGetTxPowerLevel())); send(msgTxPercent.set(transportGetTxPowerPercent())); // retrieve RSSI / SNR reports from incoming ACK send(msgTxRSSI.set(transportGetSendingRSSI())); send(msgRxRSSI.set(transportGetReceivingRSSI())); send(msgTxSNR.set(transportGetSendingSNR())); send(msgRxSNR.set(transportGetReceivingSNR())); //to serial Serial.print("transportInternalToRSSI(_transportSM.uplinkQualityRSSI): "); Serial.println(transportInternalToRSSI(_transportSM.uplinkQualityRSSI)); Serial.print("transportGetTxPowerLevel(): "); Serial.println(transportGetTxPowerLevel()); Serial.print("transportGetTxPowerPercent(): "); Serial.println(transportGetTxPowerPercent()); Serial.print("transportGetSendingRSSI(): "); Serial.println(transportGetSendingRSSI()); Serial.print("transportGetReceivingRSSI(): "); Serial.println(transportGetReceivingRSSI()); Serial.print("transportGetSendingSNR(): "); Serial.println(transportGetSendingSNR()); Serial.print("transportGetReceivingSNR(): "); Serial.println(transportGetReceivingSNR()); Serial.println("Waiting"); // wait a bit wait(10000); } And this is how I compiled the gateway: ./configure --my-transport=rfm69 --my-rfm69-frequency=868 --my-gateway=mqtt --my-is-rfm69hw --extra-cxxflags="-DMY_RFM69_RST_PIN=29" --my-controller-ip-address=127.0.0.1 --my-mqtt-publish-topic-prefix=mysensors-out --my-mqtt-subscribe-topic-prefix=mysensors-in --my-mqtt-client-id=mysensorsgateway1 --my-mqtt-user=mysensors --my-mqtt-password=redacted --my-port=1883 Any ideas how I can test mysensors 2.2 with the raspberry pi 4? From what I understand that version of the pi isn't supported until version 2.4 alpha?
    • kiesel

      rfm69 gateway freezing on rpi 4
      Troubleshooting • • kiesel  

      5
      0
      Votes
      5
      Posts
      45
      Views

      mfalkvidd

      @kiesel the Pi gateway only supports the new driver. There is no way to compile it for the old driver.
    • kiesel

      Serial Monitor: Reversed question marks when on battery
      Troubleshooting • • kiesel  

      5
      0
      Votes
      5
      Posts
      30
      Views

      Yveaux

      @kiesel said in Serial Monitor: Reversed question marks when on battery: @Yveaux thanks, what could be the reason for them? Baud rate could be slightly off, or crappy connections,or .... And by xomms you mean Serial, not the rfm69, right? Correct
    • kiesel

      Arduino pro mini, rfm69 with 2 Reed switches on interrupts?
      Development • • kiesel  

      8
      0
      Votes
      8
      Posts
      54
      Views

      Sasquatch

      Just a thought. I would personally go for one child ID/sensor. "There is uncollected mail" indicator. Set it to true when small door is tripped, and set to false when big door in open.
    • kiesel

      [SOLVED] rfm69-node <-> rpi 4 gateway: !TSM:FPAR:NO REPLY
      Troubleshooting • • kiesel  

      6
      0
      Votes
      6
      Posts
      94
      Views

      mfalkvidd

      Great work @kiesel, thanks for reporting back.
    • kiesel

      Which battery measurement to use?
      Development • • kiesel  

      7
      0
      Votes
      7
      Posts
      445
      Views

      Sasquatch

      power consumption wise resistor-less method and running directly from LiFePo4(rechargeable 2.8-3.6V) or LiSoCl(3.6v non rechargeable) battery is best. Unless you remove regulator and USB/rs232 chip it's all wasting your time. @mfalkvidd said in Which battery measurement to use?: But if you get a "good" booster, the battery life will be more limited by the self-discharge of the battery than by the power usage of the node. Same goes for the non-boosted variant. Depending on battery chemistry, LiSoCl will last 15 years. with carefully designed MyS node you can get 10 years on single AA LiSoCL battery. Something like power meter pulse counter transmitting once every kWh.
    • kiesel

      EasyPCB and rfm69: Do I need a DC/DC step up booster
      Hardware • • kiesel  

      3
      0
      Votes
      3
      Posts
      487
      Views

      sundberg84

      @nagelc - correct, its possible to use without booster - but its harder depending on which sensor you use. If the sensors require minimum 3.3v it might be hard to do without booster, but there are several sensors managing down to 2v or so. The harder part of using EasyPCB without booster is that the BOD on atmega328 chip is normally set to 2.8v so when the battery goes below this the chip shuts down. So you have to edit the fuses and change BOD if you want to use it below 2.8v Everything mentioned here is described on openhardware.io - look for the section Battery without a step-up booster (advanced users)
    • kiesel

      Raspberry Pie 4, RFM69 - Noobie questions
      Hardware • • kiesel  

      1
      0
      Votes
      1
      Posts
      227
      Views

      No one has replied