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
BarnaB

Barna

@Barna
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store
About
Posts
25
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • what is this?
    BarnaB Barna

    the code that I use with this does not work with the "non identified" sensor

    Hardware

  • what is this?
    BarnaB Barna

    yes, the covers are same, I have an another AM2301, which works, but it looks inside like this0_1513961409487_3.png

    Hardware

  • what is this?
    BarnaB Barna

    Hi,

    I have bought a AM2301 from ebay, it was ok, so I have ordered another 2pcs.
    But the new ones are not same, could you help me to identify what it is ?
    0_1513952519900_1.jpg 0_1513952525401_2.jpg
    thanks
    Barna

    Hardware

  • 💬 Easy/Newbie PCB for MySensors
    BarnaB Barna

    Hi Sundberg,

    I have read there could be some problem about radio connection if the temperature is ~0C or minus, I have met this issue so I will replace the existing 4.7µ capacitor with a bigger, e.g. ~20µ.
    The battery measurement contains a 0.1 uF capacitor, What do you think I do have to replace it with an another bigger one ?
    thanks

    Barna

    OpenHardware.io mysensors battery easy newbie pcb mysx

  • different information
    BarnaB Barna

    I have replaced the delay() by sleep() and every problem was resolved :)

    Domoticz

  • different information
    BarnaB Barna

    #define MY_DEBUG

    // Enable and select radio type attached
    #define MY_RADIO_NRF24
    //#define MY_RADIO_RFM69

    #include <MySensors.h>
    #include <SPI.h>
    #include <dht.h>

    #define CHILD_ID_HUM 14
    #define CHILD_ID_TEMP 15
    #define HUMIDITY_SENSOR_DIGITAL_PIN 5
    unsigned long SLEEP_TIME = 900000; // Sleep time between reads (in milliseconds)
    int BATTERY_SENSE_PIN = A0; // select the input pin for the battery sense point
    int oldBatteryPcnt = 0;

    dht DHT;
    float lastTemp;
    float lastHum;
    boolean metric = true;
    MyMessage msgHum(CHILD_ID_HUM, V_HUM);
    MyMessage msgTemp(CHILD_ID_TEMP, V_TEMP);

    void presentation()
    {
    // Send the sketch version information to the gateway
    sendSketchInfo("TemperatureAndHumidity DHT21", "1.1");

    // Register all sensors to gw (they will be created as child devices)
    present(CHILD_ID_HUM, S_HUM);
    present(CHILD_ID_TEMP, S_TEMP);

    metric = getControllerConfig().isMetric;
    }

    void setup()
    {
    Serial.println("DHT TEST PROGRAM ");
    Serial.print("LIBRARY VERSION: ");
    Serial.println(DHT_LIB_VERSION);

    // use the 1.1 V internal reference
    

    #if defined(AVR_ATmega2560)
    analogReference(INTERNAL1V1);
    #else
    analogReference(INTERNAL);
    #endif

    }

    void loop()
    {
    //-------------------- battery

    // get the battery Voltage
    int sensorValue = analogRead(BATTERY_SENSE_PIN);
    

    #ifdef MY_DEBUG
    Serial.println(sensorValue);
    #endif

    int batteryPcnt = sensorValue / 10;

    #ifdef MY_DEBUG
    float batteryV = sensorValue * 0.003363075;
    Serial.print("Battery Voltage: ");
    Serial.print(batteryV);
    Serial.println(" V");

    Serial.print("Battery percent: ");
    Serial.print(batteryPcnt);
    Serial.println(" %");
    

    #endif

    if (oldBatteryPcnt != batteryPcnt) {
        // Power up radio after sleep
        sendBatteryLevel(batteryPcnt);
        oldBatteryPcnt = batteryPcnt;
    }
    

    //-------------------- DHT

    // READ DATA
    Serial.print("DHT21, \t");
    int chk = DHT.read21(HUMIDITY_SENSOR_DIGITAL_PIN);
    switch (chk)
    {
    case DHTLIB_OK:
        Serial.print("OK,\t");
        break;
    case DHTLIB_ERROR_CHECKSUM:
        Serial.print("Checksum error,\t");
        break;
    case DHTLIB_ERROR_CONNECT:
        Serial.print("Connect error,\t");
        break;
    case DHTLIB_ERROR_ACK_L:
        Serial.print("Ack Low error,\t");
        break;
    case DHTLIB_ERROR_ACK_H:
        Serial.print("Ack High error,\t");
        break;
    default:
        Serial.print("Unknown error,\t");
        break;
    }
    // DISPLAY DATA
    Serial.print(DHT.humidity, 1);
    Serial.print(",\t");
    Serial.println(DHT.temperature, 1);
    
    send(msgTemp.set(DHT.temperature, 1));
    send(msgHum.set(DHT.humidity, 1));
    

    delay(SLEEP_TIME);
    }

    Domoticz

  • different information
    BarnaB Barna

    I have checked the node log, the Domonicz is correct, the node sends message every 30min, but why if 900000 = 15min ?

    Domoticz

  • different information
    BarnaB Barna

    The 5min summaries was new for me, thanks the info.
    But I do not understand if the node wakes up in every 15min, why the Domonicz receives data only by 30min only.

    Domoticz

  • different information
    BarnaB Barna

    Hi,
    Could you help me, what the problem is ?
    The log and detailed data time-stamps are not some.
    LOG:
    2017-12-09 22:27:01.131 (mysensor_gate) Temp + Humidity (Udvar)
    2017-12-09 22:27:01.131 (mysensor_gate) Temp + Humidity (Udvar)
    2017-12-09 22:57:03.681 (mysensor_gate) Temp + Humidity (Udvar)
    2017-12-09 22:57:03.681 (mysensor_gate) Temp + Humidity (Udvar)

    DATA:
    2017-12-09 22:00:00 63 1
    2017-12-09 22:05:00 63 1
    2017-12-09 22:10:00 63 1
    2017-12-09 22:15:00 63 1
    2017-12-09 22:20:00 63 1
    2017-12-09 22:25:00 63 1
    2017-12-09 22:30:00 59 0.7
    2017-12-09 22:35:00 59 0.7
    2017-12-09 22:40:00 59 0.7
    2017-12-09 22:45:00 59 0.7
    2017-12-09 22:50:00 59 0.7
    2017-12-09 22:55:00 59 0.7
    2017-12-09 23:00:00 56 0.8
    2017-12-09 23:05:00 56 0.8
    2017-12-09 23:10:00 56 0.8

    code:
    unsigned long SLEEP_TIME = 900000;
    send(msgTemp.set(DHT.temperature, 1));
    send(msgHum.set(DHT.humidity, 1));
    delay(SLEEP_TIME);

    The node must send data by 15min, Domonicz receives it by 30min, detailed data contains 5min data.
    Does the Domonicz feel 30min gap every 5min ?

    thanks

    Barna

    Domoticz

  • Easy/Newbie PCB for MySensors
    BarnaB Barna

    Hi Sundberg84,
    I have used this step up booster
    https://www.ebay.com/itm/181612513907?rmvSB=true

    but found this (2nd),
    https://www.ebay.com/itm/10Pcs-Mini-2-in-1-1-8V-5V-to-3-3V-DC-Step-Down-Step-Up-Converter-Power-For-Ardu/182793323053?hash=item2a8f54c22d:g:PJMAAOSwYL9ZzAXC
    It has lower noise, so I could connect the radio to the Mini. What do you think ?

    Hardware

  • Easy/Newbie PCB for MySensors
    BarnaB Barna

    Hi Sundberg84,
    What could you advise for battery powering (remove led and regulator too) if I would like to use Mini 5V and measure the battery level too ?
    thx

    Barna

    Hardware

  • Easy/Newbie PCB for MySensors
    BarnaB Barna

    @sundberg84 this is not normal buzz, stronger than before.
    I have used this source only: https://www.ebay.com/itm/mini-DC-DC-0-8-3-3V-to-DC-3-3V-Step-UP-Boost-Power-Module-For-Breadboard-Arduino-/281556288481?hash=item418e1003e1
    which another part could make the buzz ?
    yes, I use sleep
    sleep(1, CHANGE, SLEEP_TIME); SLEEP_TIME is 900000 , but the node does not wake up and send the battery status, only when door sensor changes.
    No, I have not removed the led and regulator, this is the testing period only :)

    Hardware

  • Easy/Newbie PCB for MySensors
    BarnaB Barna

    Hi Sundberg84,

    I have some v8 and now enough time for playing.
    I setup with v3.3 2xAA, booster, NRF24, simple door sensor or DHT.
    1-2 week and the batteries are discharged, I hear little buzz from the mini or other components.
    This is the 2nd built where I meet this problem.
    Do you have any idea what component is the failed ?
    thanks
    Barna

    Hardware

  • Easy/Newbie PCB for MySensors
    BarnaB Barna

    maybe this
    http://www.ebay.com/itm/2A-DC-DC-Boost-Step-up-Conversion-Module-MicroUSB-2V-24V-to-5V-28V-9V-12V-24V-/321928461470?hash=item4af46e7c9e:g:4mgAAOSwbdpWUq5p

    Hardware

  • Easy/Newbie PCB for MySensors
    BarnaB Barna

    I'm not profi, is my logic correct?
    general, not PBC related
    I could power the mini 5V with 9V and mini's regulator converts it to 5V.
    Mini could give power to radio by 5->3.3 regulator.
    I could measure the voltage without booster, but the booster is good to use the battery until it is possible ?

    Hardware

  • Easy/Newbie PCB for MySensors
    BarnaB Barna

    Hi sundberg84,
    Is it possible to use 5v mini + 9v battery with measurement ?
    I put an voltage regulator to booster place and power the radio from mini with 5-3.3 regulator ?
    What do you think ?

    I think I could use the 9V as source as raw, but it could be problematic because it is an battery, so I would like to measue it.

    thanks
    Barna

    Hardware

  • Easy/Newbie PCB for MySensors
    BarnaB Barna

    @sundberg84
    why is it problem technically, if I give boosted 3.3 to radio ?

    Hardware

  • Easy/Newbie PCB for MySensors
    BarnaB Barna

    @sundberg84
    1.
    with battery jumper the radio will get direct 2.6v and work until 1.9v
    arduino will get 3.3v via booster
    2.
    If I bypass the REG all of them will get 2.6v
    Is my thinking right ?

    Hardware

  • Easy/Newbie PCB for MySensors
    BarnaB Barna

    @sundberg84 I'm using battery with booster

    Hardware

  • Easy/Newbie PCB for MySensors
    BarnaB Barna

    @sundberg84 yes, I would like to use 2xAA. I have measured it, 2xAA's out is 2.6V, after booster it is 3.3 .
    My first tying was battery jumper, but I had was radio problems.
    After bypassed the volt reg part to give 3.3v.
    When you have mentioned this : "Set the jumper on "reg" and bypass the voltage converter with a wire." do you talk about the jumper which next to battery jumper or the 2nd? I have tried which is next to radio.
    I have a filling, it will be soldering or hw issue, because both has worked, and has not sometimes.
    thanks

    Hardware
  • Login

  • Don't have an account? Register

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