Skip to content
  • 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
meanmrgreenM

meanmrgreen

@meanmrgreen
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store
About
Posts
48
Topics
5
Shares
0
Groups
0
Followers
1
Following
0

Posts

Recent Best Controversial

  • Which 3D modelling software do you prefer for 3D printing *and* CNC?
    meanmrgreenM meanmrgreen

    I've been tinkering with 3d printing for about a year now and never had any experience before.

    Tried most softwares out there that are free and seem to allways comeback to fusion 360.

    For slicing I like slic3r PE in the free tier, even tho its interface looks dated it has some very nice features and handles material/printing profiles really great.

    But if u want an all in one package it's simplify 3d. Even tho you don't get the same control as slic3r and it doesn't handle material profiles as good.

    It has a clean interface, great gcode preview and a few killer features like custom supports (yes there are other slickers with this aswell) and multi processing that lets you switch profiles anywhere in the print or model.

    Yes it's a big price now days for a piece of software. But if you are going to use it alot it is well worth it's price.

    Enclosures / 3D Printing

  • 💬 In Wall AC/DC Pcb (with Relay) for MySensors (SMD)
    meanmrgreenM meanmrgreen

    https://photos.app.goo.gl/JBIVogCZMp0mOCVh2

    I must have been drunk when I ordered this. Any idea what I have ordered? I ordered thru dirtypcbs somehow.

    Does look a little bit like this PCB but not really. Have I found a early version and drunk ordered 10 of em?

    OpenHardware.io switch in-wall relay acdc hlk-pm01

  • Distance Sensor with long range (8-10 meters) ?
    meanmrgreenM meanmrgreen

    Extension cord it is!

    Hardware

  • Distance Sensor with long range (8-10 meters) ?
    meanmrgreenM meanmrgreen

    Just started my project of monitoring the water level in our water tank. I have bought that waterproof sensor from the hardware guide but it only reports around 2 meters in testing.

    Problem is that i have about 8 meters down to the water level so i either need to lengthen the cable to the sensor by about 6-7 meters down the hole or find another sensor to do the job.

    Any idea? this will not be battery powered so no issues there.

    Hardware

  • Windows GUI/Controller for MySensors
    meanmrgreenM meanmrgreen

    @tekka
    How about I'f i replace my serial with a Ethernet gw?

    Do not want my pc running all the time. Just to debug

    Controllers myscontroller mysbootloader

  • Windows GUI/Controller for MySensors
    meanmrgreenM meanmrgreen

    Ok this might be a realy stupid question but im what you call a "nuub" ;)

    If i want to monitor my current setup (serial gateway on a pi3) on windows/mint. Do i build another gateway and plug it in the pc?

    Sorry if i missed the instructions on this

    Controllers myscontroller mysbootloader

  • Building a few repeaters "just in case" bad idea?
    meanmrgreenM meanmrgreen

    @sundberg84

    Yeah trial and error I guess. I have an outlet outside that I could put a repeater in so i might start with that one.

    And caps are on all my nodes so far ;)

    General Discussion

  • 'getConfig' was not declared in this scope (V2.1.1) - FIXED
    meanmrgreenM meanmrgreen

    Thank you :)
    Where can you find these changes?

    Troubleshooting

  • Building a few repeaters "just in case" bad idea?
    meanmrgreenM meanmrgreen

    Heres the deal
    I dont live in a giant house but the walls of the house are pretty thick (inside around 30cm and the outside walls are around 45-50cm) the outside are mostly made of wood, have one wall around my heatersystem that is concrete.

    I spent days debugging a masterpiece of a mailbox / light sensor that was battery powered and when it finaly was soldered and working as i wanted i happely strolled down to the mailbox (around 50 meters from the house) to install the thing..

    Aaaand lost contact, rebooted, walked 10 meters up, rebooted, 10 meters up and so on until i basicly where at the otherside of the wall to my gateway.

    So i searched for the solution and found repeaters!
    So far i have built 2 of them and placed em togheter with nonsleeping PIRs. And i think they are working, no idea how to tell if they actualy are repeating anything.

    The plan is too build a few more in the house and atleast 1 outside where i have power, just to be safe that the range is optimal around the house and a bit outside of the house.
    But i read a post in here about repeater looping problems and such so is it a bad idea to install extras even tho it might not be needed?

    General Discussion

  • Office plant monitoring
    meanmrgreenM meanmrgreen

    I need to check my node. It Constantly shows 80-90%. Have switched forks and plant same number. If I pull it out of the dirt it gets to 0%

    Using only the fork no board in the middle with the alternate current sketch.

    My Project

  • Multiple child values after trying different sketches?
    meanmrgreenM meanmrgreen

    I rebooted domoticz and it got the right values for the childs :)

    Domoticz

  • Multiple child values after trying different sketches?
    meanmrgreenM meanmrgreen

    alt text

    Any tips of geting rid of unwanted values from the child's here?

    Have been debugging and experimenting with a lot of different sketches and I finally got it to work. But old values are still in there.

    Domoticz

  • A beginners question
    meanmrgreenM meanmrgreen
    /**
     * 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 - Henrik Ekblad
     * 
     * DESCRIPTION
     * Motion Sensor example using HC-SR501 
     * http://www.mysensors.org/build/motion
     *
     */
    //Enable Repeater
    #define MY_REPEATER_FEATURE
    
    // Enable debug prints
    #define MY_DEBUG
    
    // Enable and select radio type attached
    #define MY_RADIO_NRF24
    //#define MY_RADIO_RFM69
    
    #include <SPI.h>
    #include <MySensors.h>
    #include <DHT.h>
    
    unsigned long SLEEP_TIME = 120000; // Sleep time between reports (in milliseconds)
    #define DIGITAL_INPUT_SENSOR 2   // The digital input you attached your motion sensor.  (Only 2 and 3 generates interrupt!)
    #define DHT_DATA_PIN 4
    #define CHILD_ID_MOT 1   // Id of the sensor child
    #define CHILD_ID_HUM 0
    #define CHILD_ID_TEMP 2
    
    // Set this offset if the sensor has a permanent small offset to the real temperatures
    #define SENSOR_TEMP_OFFSET 0
    
    // Sleep time between sensor updates (in milliseconds)
    // Must be >1000ms for DHT22 and >2000ms for DHT11
    static const uint64_t UPDATE_INTERVAL = 120000;
    
    // Force sending an update of the temperature after n sensor reads, so a controller showing the
    // timestamp of the last update doesn't show something like 3 hours in the unlikely case, that
    // the value didn't change since;
    // i.e. the sensor would force sending an update every UPDATE_INTERVAL*FORCE_UPDATE_N_READS [ms]
    static const uint8_t FORCE_UPDATE_N_READS = 10;
    
    float lastTemp;
    float lastHum;
    uint8_t nNoUpdatesTemp;
    uint8_t nNoUpdatesHum;
    bool metric = true;
    
    // Initialize motion message
    MyMessage msg(CHILD_ID_MOT, V_TRIPPED);
    MyMessage msgHum(CHILD_ID_HUM, V_HUM);
    MyMessage msgTemp(CHILD_ID_TEMP, V_TEMP);
    DHT dht;
    
    void presentation()  {
      // Send the sketch version information to the gateway and Controller
      sendSketchInfo("PIR_DHT_REPEATER", "1.0");
    
      // Register all sensors to gw (they will be created as child devices)
      present(CHILD_ID_MOT, S_MOTION);
      present(CHILD_ID_HUM, S_HUM);
      present(CHILD_ID_TEMP, S_TEMP);
    
      metric = getConfig().isMetric;
    }
    
    void setup()  
    {  
      pinMode(DIGITAL_INPUT_SENSOR, INPUT);      // sets the motion sensor digital pin as input
      
      dht.setup(DHT_DATA_PIN); // set data pin of DHT sensor
      if (UPDATE_INTERVAL <= dht.getMinimumSamplingPeriod()) {
      Serial.println("Warning: UPDATE_INTERVAL is smaller than supported by the sensor!");
      } 
      // Sleep for the time of the minimum sampling period to give the sensor time to power up
      // (otherwise, timeout errors might occure for the first reading)
      wait(dht.getMinimumSamplingPeriod());
    }
    
    void loop()     
    {     
      // Read digital motion value
      boolean tripped = digitalRead(DIGITAL_INPUT_SENSOR) == HIGH; 
          
      Serial.println(tripped);
      send(msg.set(tripped?"1":"0"));  // Send tripped value to gw 
      // Force reading sensor, so it works also after wait()
      dht.readSensor(true);
      // Get temperature from DHT library
      float temperature = dht.getTemperature();
      if (isnan(temperature)) {
        Serial.println("Failed reading temperature from DHT!");
      } else if (temperature != lastTemp || nNoUpdatesTemp == FORCE_UPDATE_N_READS) {
        // Only send temperature if it changed since the last measurement or if we didn't send an update for n times
        lastTemp = temperature;
        if (!metric) {
          temperature = dht.toFahrenheit(temperature);
        }
        // Reset no updates counter
        nNoUpdatesTemp = 0;
        temperature += SENSOR_TEMP_OFFSET;
        send(msgTemp.set(temperature, 1));
    
        #ifdef MY_DEBUG
        Serial.print("T: ");
        Serial.println(temperature);
        #endif
      } else {
        // Increase no update counter if the temperature stayed the same
        nNoUpdatesTemp++;
      }
    
      // Get humidity from DHT library
      float humidity = dht.getHumidity();
      if (isnan(humidity)) {
        Serial.println("Failed reading humidity from DHT");
      } else if (humidity != lastHum || nNoUpdatesHum == FORCE_UPDATE_N_READS) {
        // Only send humidity if it changed since the last measurement or if we didn't send an update for n times
        lastHum = humidity;
        // Reset no updates counter
        nNoUpdatesHum = 0;
        send(msgHum.set(humidity, 1));
        
        #ifdef MY_DEBUG
        Serial.print("H: ");
        Serial.println(humidity);
        #endif
      } else {
        // Increase no update counter if the humidity stayed the same
        nNoUpdatesHum++;
      }
    
      // wait until interrupt comes in on motion sensor. Send update every two minute.
      wait(SLEEP_TIME);
    }
    
    
    
    
    General Discussion

  • A beginners question
    meanmrgreenM meanmrgreen

    this is it.

    https://create.arduino.cc/editor/meanmrgreen/e7e0219e-139a-4e89-88da-e02f0864e9c6/preview

    not sure of link worksge. on phone atm. will paste it from comp later if its not working.

    General Discussion

  • A beginners question
    meanmrgreenM meanmrgreen

    @mfalkvidd

    Hmm i have a combined sketch of the pir and dht example that works fine on a node that Can Sleep for a bit and interrupt with change on the pir.

    But if i take that sketch and change the Sleep with interrupt to a wait(sleep_time) the pir is not registrering movement between wait Times'.

    FIf i remove the wait alltoghter the pir is reporting the status every ms instead with the result that the dht can't read the temp!

    General Discussion

  • A beginners question
    meanmrgreenM meanmrgreen

    About to built a dht / pir / repeater.
    Since i cant Sleep it do i need to change all sleep with wait?

    In the dht example there is a Sleep to let the sensor settle before Reading. Should this be a wait instead then?

    General Discussion

  • Waterproof Lux Sensor
    meanmrgreenM meanmrgreen

    This is what i did, the box should be the mailbox right now but aprently i need to build a few relay nodes aswell.

    0_1485270266959_ljus.JPG image url)

    Hardware

  • Waterproof Lux Sensor
    meanmrgreenM meanmrgreen

    @rnollen

    I am about to set a lux sensor outside any day now (as soon as the debugging is complete that is).
    And i am going to place the board inside a glassjar, drill a hole in the top and seal the cables using a gluegun or similar.

    Should be waterproof then right?

    Hardware
  • Login

  • Don't have an account? Register

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