Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
OldSurferDudeO

OldSurferDude

@OldSurferDude
Unfollow Follow
About
Posts
271
Topics
25
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Error compiling under Trixie for Raspberry PI 3B+
    OldSurferDudeO OldSurferDude
    Troubleshooting

    @ricorico94 said:

    Failed to request GPIO line

    Looks like the library for the GPIO isn't working. Try to get it working with Raspberry Pi OS


  • Measuring bedroom light without adding light from the sensor
    OldSurferDudeO OldSurferDude
    General Discussion

    Removing light as a cause for poor sleep is just a first step. In taking that first step, I would take overnight measurements in 27 places in the room and compare the graphs. Yes, it would take about a month to collect the data. At the same time, though, you could take sound and temperature measurements.

    Each morning the sleeper would log how good the sleep was. Diet and exercise are important to sleep and the sleeper should log these, too. Screen time is another important factor, as well as stress during the day. Drugs (including alcohol) should be noted. Some supplements, such as B6 at night, will affect sleep.

    Yes, this is a lot of work that takes a lot of motivation, patience and diligence. The alternative is have a professional sleep study done.

    Either way, anticipate a lifestyle change.

    be well


  • ESP32 projects: When do you move from breadboard to a custom PCB?
    OldSurferDudeO OldSurferDude
    My Project

    I generally agree with @nagelc. The nano-computer being used is irrelevant. The quantity of devices being built is the biggest factor for me. This is what I did when I made ten of my "Universal Light Switch".

    I accidentally did something that turned out to be quite the boon. This project uses and ESP-12F (ESP8266) It has 8 holes on each side of the board. My the distance between the two rows of holes on the board were a smidge narrower than that of the ESP-12F. Instead of soldering the ESP-12F directly to the board, I put pins in the board. This effectively created a low-insertion-force connector between the board and the ESP-12F. Thus I could easily remove the module for reprogramming if OTA failed. I had brought out Tx, Rx GND, GPIO0 and RST for this purpose, but this was a lot easier in the long run. On the downside, I found that if you remove and replace the same board several times that the contact material can be worn off. At this point, I solder the module to the pins.

    Second would be how much experimenting I would be doing. For example, I was trying to use ultra-sonics to measure the amount of water in a barrel. I went through a number of sensors, so on the PCB I brought out I2C, SPI, and some I/O pins. (Ultra sonic didn't work for me and I ended up with a float gauge) Also bring out points where noise filter capacitors would be helpful.

    For the 1-off, (Low Cost Energy Meter LCEM), I used an Elegoo PCB breadboard. I soldered wirewrap wire between points and super-glued the wire to the board.

    I usually use a solderless breadboard first for making sure the core circuitry works (processor, power supply, etc.) I'm not a fan of these because the "spring-loading" wears out pretty quick and you'll tear your hair out trying to fix what was working yesterday (I'm bald).

    On a tangent, another issue is the choice of the nano computer. I find that for basic sensors (on/off, relay, temperature, etc.) an Arduino Nano with an nRF14 radio talking to MySensors gateway to be cost effective and robust. An Arduino Nano with no radio as a gateway can provide I/O to a PC. The ESP devices are great, having built-in WiFi and easy OTA. My experience shows two downsides, though. With their sensitive 3.3V I/O, they can't take much abuse. My Asus router can only handle about 25 WiFi connections (devices losing connection and cannot reconnect until another device loses connection), so a lot of devices could be problematic. My LCEM uses an Arduino Nano.

    Home Assistant (HA) has an offshoot called ESPHome. My experience with ESPHome, and HA in general, is that the learning curve is quite steep and the implementation is not as straight forward as MySensors. I do find it a great platform for collecting and analyzing data. There is an HA "MySensors Integration" to which MySensors devices can send data.

    Please share with the community the your experience as you move forward with your project. What projects are you thinking about doing?


  • Suddenly after an HA update i get no sensor data anymore
    OldSurferDudeO OldSurferDude
    Home Assistant

    I have seen this, too, on my MQTT gateway. Try putting a wait() (not delay) after sending each datum. Start with 1000mS, even 5000mS, and work your way down to find what is optimal for your set up.


  • Pinging other MySensors fans
    OldSurferDudeO OldSurferDude
    General Discussion

    I check here a few times a week to see if there is someone that needs help. I think this is a great platform and I want to keep it alive.

    "Is there anybody out there?"

    -OSD


  • Suddenly after an HA update i get no sensor data anymore
    OldSurferDudeO OldSurferDude
    Home Assistant

    The HA forum has a lot of helpful people, though there is a small cadre of people that are a little arrogant. Thicken your skin and ignore them.


  • Suddenly after an HA update i get no sensor data anymore
    OldSurferDudeO OldSurferDude
    Home Assistant

    I use old/refurbished pc's desktop or laptop. 4GB RAM is do-able, but 8GB is better. 500GB disk is fine, even 128GB. 4 CPU cores is good, too.

    I install ubuntu linux on the machine. Then I install Virtual Box

    HA has the installation instructions on how to install HAOS into the virtual box. Use half your memory and CPUs

    You have to tunnel your USB port into the Virtual Machine (VM) ... The USB has to be plugged in when you do the VM configuration.

    I have several dongles on mine: USB/serial for MySensors Serial Gateway, Sonoff Z-Wave, Sonoff Zigbee.

    I recently discovered why my one Zigbee device wasn't working ... the dongle fell off the USB extension cable (necessary on Z-Wave, too, to minimize RF interference)


  • Suddenly after an HA update i get no sensor data anymore
    OldSurferDudeO OldSurferDude
    Home Assistant

    Let us know how you are doing as you progress.

    Are you running HA on the RPi 3? There have been many reports of HA bloating to beyond the capabilities of the RPi. If this is the case, you'll have to install HA on another computer.

    I run HA in a virtual box which runs under the Ubuntu OS on a refurbished PC. (You can use an old laptop, too.) I believe that you can run HA on a PC "bare metal" too. If you have to go that route, we can help you.


  • Home Assistant Green Controller with Sensebender gateway?
    OldSurferDudeO OldSurferDude
    Hardware

    Glad to help. Cursing is pretty much required, especially if you've done something stupid.


  • Radiation Patter for NRF24L01?
    OldSurferDudeO OldSurferDude
    Hardware

    I can't help you with a radiation pattern. I have put all the radios vertical and have been satisfied with the results


  • nRF24Doctor
    OldSurferDudeO OldSurferDude
    My Project transmission delays compare modules power consumption radio quality doctor range gateway location diagnose nrf24 radio

    I see that the the nRFDoctor has a menu. Perhaps one of the menu items has to be selected?


  • nRF24Doctor
    OldSurferDudeO OldSurferDude
    My Project transmission delays compare modules power consumption radio quality doctor range gateway location diagnose nrf24 radio

    @ben999 said:

    mentions

    I suspect that the library has been included in the Arduino repository. I used the IDE library manager to install it.

    @ben999 said:

    At that point did you upload that sketch to a nano+nrf for testing ?

    I haven't done any hardware testing. I'll leave that for you.

    @ben999 said:

    "mklink" thing is specific to Windows right ?

    Yes, mklink.bat is for Windows only. This script is the linux equivalent.

    # assumes the existence of the folder shared in the current directory.
    cd nRF24DoctorNode
    ln -s ../shared shared
    cd ..
    cd nRF24DoctorGateway
    ln -s ../shared shared
    cd ..
    

  • nRF24Doctor
    OldSurferDudeO OldSurferDude
    My Project transmission delays compare modules power consumption radio quality doctor range gateway location diagnose nrf24 radio

    I'm thrashing on this, too, so I downloaded it and I compiled it.

    Downloading:

    1. From the web page I clicked on [Code] and then downloaded the zip file.
    2. I extracted the zip file to my Arduino directory.
    3. In a dos box (command line) I changed to Arduino\nRFDoctor-master
    4. I executed the batch program mklink.bat which created symbolic links in both nRF24DoctorGateway and nRF24DoctorNode to their sister directory shared. This is needed so that the compiler can find the project specific libraries, eg RadioConfig.h

    Then I opened nRF24DoctorNode in the Arduino IDE 2.3.10

    When first compiling, there were many libraries required which I installed.

    After all the libraries were installed, the code had the compiler check a value and if it was incorrect, it threw an error. When the line #define _LCDML_DISP_cfg_max_rows 2 was added to the the library LCDMenuLib2.h at line 42, the error no longer occurred. (Was this a good thing? Perhaps the line should have gone just before the error check?) This library is found in the directory Arduino\libraries\LCDMenuLib2\src

    Subsequently The compiler recommend changing the line 28 of CharLcdMenu.ino (tmp = LCDML.MENU_getObj()->getChild(LCDML.MENU_getScroll());) to tmp = LCDML.MENU_getRootObj()->getChild(LCDML.MENU_getScroll());

    After that, the code compiled.


  • None nnn Node in Home Assistant
    OldSurferDudeO OldSurferDude
    Home Assistant home assistant nrf5 nrf52832 node

    Home Assistant is my controller. It runs in a virtualbox under linux on a refurbished PC. On that same computer I run an MQTT broker (not using HA's)

    My gateway, which uses MQTT for transport, runs on an RPi zero 2W running Raspberry Pi OS. It also controls my irrigation relays.

    I also have a serial gateway which has no radio network which is its own node for "pushing" the buttons on a remote control. This gateway essentially gives a PC digital IO.


  • None nnn Node in Home Assistant
    OldSurferDudeO OldSurferDude
    Home Assistant home assistant nrf5 nrf52832 node

    Yeah, you need the sketch name.

    I found that wait() was required pretty much after every send. I don't why exactly, I suspect the the send commands were overrunning the previous send command.


  • nRF24Doctor
    OldSurferDudeO OldSurferDude
    My Project transmission delays compare modules power consumption radio quality doctor range gateway location diagnose nrf24 radio

    I vaguely remember that the RF24_PA_[power level] was given a different name. to something different. Basically the power level is 0,1,2, or 3 (MIN, LOW, HIGH, or MAX). see docs

    To get it to compile, put this (a hack) line in
    #define RF24_PA_LOW 1
    before line 47
    #include "shared/RadioConfig.h"
    or before
    radio.setPALevel(RF24_PA_LOW);

    I had forgotten about this. Maybe the problem is that that power level is set to low. I see in RadioConfig.h it's set to LOW. This is done because the two radios could be close to one another and they would overdrive the other if they're set to MAX

    Another thought (my little gray cells are not firing on all cylinders) It seems to me that line 47
    #include "shared/RadioConfig.h"
    should be after line 59
    #include <MySensors.h>
    because the MySensors library is where the PA variables are set.

    I hope my rambling here hasn't further complicated the issue.


  • nRF24Doctor
    OldSurferDudeO OldSurferDude
    My Project transmission delays compare modules power consumption radio quality doctor range gateway location diagnose nrf24 radio

    @ben999

    @ben999 said:

    very basic sketch

    My guess is that because you're not using the LCD in the basic sketch that talking to the LCD is causing radio interference.

    To test this theory and assuming you have the LED connected, the LCD code could be replaced with flash-code code.

    My technique for doing this replacement is to use compiler directives to remove the LCD code and add flash-code code.

    To remove the LCD code, create a new compiler flag
    #define LCD_ENABLE
    Surround all LCD code with

    #ifdef LCD_ENABLE
    ...
    #endif
    

    Then comment out the definition line which disables the LCD.

    Create another new compiler flag
    #define FC_PIN 4
    and comment out both the compiler directives that create TRIGGER_PIN and LED_PIN

    At the point in the existing code where the LCD is to display the quality, put a call to your new routine, This call will pass the quality number to the code that generates a flash code. So this new code can be easily disabled, surround your code with:

    #ifndef FC_PIN
    ...
    #endif
    

    Yes, I make a huge assumption that you understand this (compiler directives, flash-code, etc.). If you don't, I, or others, can help out, but you'd learn more if you did it on your own.


  • Hello all!
    OldSurferDudeO OldSurferDude
    General Discussion

    The nRF24 is good for short distances ~10m. That distance can be extended because nodes can also be a repeater to the gateway.

    I'm using an RPi zero 2W for my gateway (which is also my irrigation controller.) Can you reach your greenhouse with WiFi? This may work for you.

    I'd look at the RFnano that has the nRF24 integrated. It costs about more than a Nano and nRF24 separately, but what you gain is no wiring and no wiring failures.

    I tried to used this moisture sensor and it corroded within a year. DHT-12 (digital humidity and temperature) can be off as much as 4°C per the specs and suffers from the same corrosion challenge.

    Speaking of corrosion, be sure to "paint" all your electronics with electrical lacquer sealer (but not on the sensors)

    You have to consider how you're going to power your sensors. I'm not a big fan of batteries because you have to jump through a lot of hoops to get the most out of the batteries. On the flip side, you'll have to run 5V to all your sensors. This is my [pathetic] attempt at a remote soil sensor


  • Hello all!
    OldSurferDudeO OldSurferDude
    General Discussion

    What are you looking to monitor and/or control @robert-fletcher?


  • Home Assistant Green Controller with Sensebender gateway?
    OldSurferDudeO OldSurferDude
    Hardware

    There is a collection of techniques that can reduce energy consumption of the Nano. (eg, remove power applied LED) I've read about µA's during sleep periods.

    The ESP-12F clearly achieves this and can be a MySensors by adding a radio. Note that if WiFi is not disabled, savings are probably lost because the WiFi is energy hungry. This would have me leaning towards MySensors rather than ESPHome.

    My experience tells me that the Nano is more durable than the ESP.

    Another tip: If you're going to put your sensor in a harsh environment, after you have assembled it, "paint" it with electrical lacquer.

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular