Navigation

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

    Posts made by icebob

    • RE: A tiny BME node - BME280 on ATtiny85

      @fabyte awesome job. I'm working something similar. Could you share your main program code?

      posted in My Project
      icebob
      icebob
    • RE: 110v-230v AC to Mysensors PCB board

      @tomkxy I'm using this one: http://hu.farnell.com/multicomp/mcvz1206m050agt/varistor-multilayer-4vac-0402/dp/2462756

      posted in Hardware
      icebob
      icebob
    • RE: My Gateway

      Good job!

      posted in My Project
      icebob
      icebob
    • RE: Serial Gateway w/ MQTT using nodeJS

      @barduino Thx, good job!

      posted in Development
      icebob
      icebob
    • RE: Gas Sensor Problem

      Use V_LEVEL

      MyMessage msgSmoke(CHILD_ID_SMOKE, V_LEVEL); 
      
      posted in Troubleshooting
      icebob
      icebob
    • RE: OpenHardware.io

      Good job. I found a bug. I can't select the link in the BOM list. Google Chrome v47

      posted in Announcements
      icebob
      icebob
    • RE: 110v-230v AC to Mysensors PCB board

      Hi,

      I now received PCBs from DirtyPCB. I'm searching components (but not from China sellers).
      Can I use this varistor on the AC side?: http://uk.farnell.com/multicomp/mcsr391k10ds/varistor-60j-250vrms/dp/1856880
      And on the DC side?: http://uk.farnell.com/multicomp/mcvz1206m050agt/varistor-multilayer-4vac-0402/dp/2462756

      Thanks in advance!

      posted in Hardware
      icebob
      icebob
    • RE: Test of Step-Up-Modules (sparkfun, Pololu & china-module) / any other?

      @scalz: thank you for you calculation. It's interesting. I will measure it if I receive the MCP16251.

      posted in Hardware
      icebob
      icebob
    • RE: 3 in 1 incl battery monitor

      @the-cosmic-gate Nothing special. I made a big sketch, which contains 7-8 sensors (DHT, Si7021, MQ-2/9, PIR, Door magnet, Light, battery) reading code because I would like to upload the same sketch to all nodes and configurate it on controller side, which sensors is on the node and need to read.
      But currently I reached the limit with I2C includes, so I need to think over this solution.

      posted in My Project
      icebob
      icebob
    • RE: Test of Step-Up-Modules (sparkfun, Pololu & china-module) / any other?

      @ericvdb Sorry, I read somethingh wrong 🙂

      posted in Hardware
      icebob
      icebob
    • RE: Test of Step-Up-Modules (sparkfun, Pololu & china-module) / any other?

      On my custom node PCB, I will use MCP16251 chip to boost supply to 3.3V.
      http://ww1.microchip.com/downloads/en/DeviceDoc/25173A.pdf

      By docs, If I use it from one AA battery (1.5V), the efficiency is ~80%, consumes ~14uA. I think it is not bad.

      posted in Hardware
      icebob
      icebob
    • RE: Test of Step-Up-Modules (sparkfun, Pololu & china-module) / any other?

      @ericvdb great observation. But this board is not an MCP1702, because MCP1702 is a voltage regulator IC

      posted in Hardware
      icebob
      icebob
    • RE: 3 in 1 incl battery monitor

      @the-cosmic-gate sorry, I'm working a big complex sketch, I can't share my code currently.

      posted in My Project
      icebob
      icebob
    • RE: Riots

      Yes, the controller is in the cloud. Mama board is just a gateway device http://www.riots.fi/p/mama-riots.html
      In this case, you need live internet connection to check the sensor data.

      posted in General Discussion
      icebob
      icebob
    • RE: Riots

      Nothing extra solution.

      http://www.riots.fi/p/riots-core.html

      Riots Core contains:

      • Atmel ATmega328P MCU
      • RGB LED
      • nRF24L01+ radio module

      Maybe they will use mySensors for communication? 🙂

      posted in General Discussion
      icebob
      icebob
    • Riots

      I found now. Riots on KickStarter. RF based battery powered mini IoT Arduino compatible devices. Similar crowfunding IoT project like what we are doing here in this forum.
      It seems they want to power with button-cell battery. I'm curious they will be able to solve this low power problem (it's contiuous problem in this forum) or will need to change the battery monthly 🙂

      posted in General Discussion
      icebob
      icebob
    • RE: 3 in 1 incl battery monitor

      Currently I'm developing my boards, so there is no live device/sensor in my home. But in the future I plan to make a custom controller, and it will turn on/off the PIR sensors on the nodes, depending on the house is armed or not. So if I'm at home, PIR sensor won't watching. (It's just a plan for the present)

      posted in My Project
      icebob
      icebob
    • RE: 3 in 1 incl battery monitor

      @ericvdb http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2680&dDocName=en545243. It's specified for PIC, but I select SLEEP mode in every cycle, so I can use for any uC.

      @carlierd: I have no extra secret. If I measure 3-4 sensor and every values is changed, the loop time is 100ms. Best case is 10-20ms (if every sensors is unchanged). I'm not using delay in the loop.

      posted in My Project
      icebob
      icebob
    • RE: 3 in 1 incl battery monitor

      @the-cosmic-gate Now I measured my dev circuit (Arduino Nano from China (cutted power led and desoldered regulator) + DHT22 + PIR + Battery measure resistor divider) and in gw.sleep (with 1 interrupt for PIR) the power comsumption is ~90uA.
      DSC_9591_rs.jpg
      It wakes up every minutes, measuring and sending (~100ms and 5 - 20mA).
      So 100ms with 20mA and 59900ms with 0.09mA. The average current is 120uA and with 2 AA battery it is about 2 years.
      ardu_batt.png

      posted in My Project
      icebob
      icebob
    • RE: 3 in 1 incl battery monitor

      Yes, I can.

      This is the definition of message for battery level:

      // Battery sensor (A0)
      #define CHILD_ID_BATTERY 199
      #define BATTERY_SENSOR_ANALOG_PIN 0
      MyMessage msgBattery(CHILD_ID_BATTERY, V_VOLTAGE);
      

      And this is the sender function:

      // 1M, 470K divider across battery and using internal ADC ref of 1.1V
      // Sense point is bypassed with 0.1 uF cap to reduce noise at that point
      // ((1e6+470e3)/470e3)*1.1 = Vmax = 3.44 Volts
      // 3.44/1023 = Volts per bit = 0.003363075
      #define VBAT_PER_BITS 0.003363075
      #define VMIN 1.9  // Battery monitor lower level. Vmin_radio=1.9V
      #define VMAX 3.00  // Vmin<Vmax<=3.44
      #define VCC_CORRECTION (3.4 / 3.33)
      int lastBatteryLevel;
      
      bool sendBatteryLevel(bool force = false) {
        int value = analogRead(BATTERY_SENSOR_ANALOG_PIN);
      
        float batVoltage  = value * VBAT_PER_BITS / VCC_CORRECTION;
        int batLevel = static_cast<int>(((batVoltage-VMIN)/(VMAX-VMIN))*100.);
        if (batLevel != lastBatteryLevel || force) {
          gw.sendBatteryLevel(batLevel);
          gw.send(msgBattery.set(batVoltage, 2));
          
          lastBatteryLevel = batLevel;
        }
        return true;
      }```
      posted in My Project
      icebob
      icebob
    • RE: 3 in 1 incl battery monitor

      In Domoticz you can see the battery level in Setup->Devices.
      domi_batt_level.png
      If you would like to see on a chart, you have to send the battery level or voltage to the controller as a sensor value too. After it, you can see as this:
      domi_batt_chart.png

      posted in My Project
      icebob
      icebob
    • RE: Cheap power supply enclosure ?

      I'm searching same enclosures, but what I found are very ugly and expensive.

      http://www.voelkner.de/products/294193/Steckergehaeuse-mit-Steckdose-Stg15.html
      https://www.conrad.de/de/stecker-gehaeuse-53-x-67-x-110-abs-schwarz-strapubox-sg-422-1-st-522910.html
      http://www.reichelt.de/Plug-Housings/2/index.html?&ACTION=2&LA=2&GROUPID=3357

      posted in Enclosures / 3D Printing
      icebob
      icebob
    • RE: DevDuino v2.2 with EEPROM

      The power comsumption is 30uA in sleep (not connected additional sensor just the MCP9700).

      posted in Hardware
      icebob
      icebob
    • RE: DevDuino v2.2 with EEPROM

      @Oleg-Greengo thank you! It's working!

      I modified the code and it's working on DevDuino v2.2
      https://codebender.cc/sketch:203114

      posted in Hardware
      icebob
      icebob
    • RE: DevDuino v2.2 with EEPROM

      @hek Thanks. I'm waiting for 1.6.

      posted in Hardware
      icebob
      icebob
    • RE: DevDuino v2.2 with EEPROM

      Ok, now it's working. I changed CE and CS in MyConfig.h. I thought I can redefine the values in the sketch file too.

      posted in Hardware
      icebob
      icebob
    • RE: DevDuino v2.2 with EEPROM

      @Dwalt I'm using v1.5 so I added CE, CS define lines below MySensors.h include line

      posted in Hardware
      icebob
      icebob
    • DevDuino v2.2 with EEPROM

      Hi,

      Are there anybody, who could use the RF on this board with mySensors?
      http://www.seeedstudio.com/wiki/DevDuino_Sensor_Node_V2.2_(ATmega_328)

      I ordered one from this board and yesterday received. Firstly I couldn't upload sketch, but I found out the RX and TX pin label swapped on the board. After it, I could upload a sketch from here:
      https://codebender.cc/sketch:54782?referrer=gregl

      But the CE and CS pins moved to 7 and 6 (I changed it in the sketch) . But after boot, I got radio fail error on serial port.

      posted in Hardware
      icebob
      icebob
    • RE: Are Chinese power supply chargers that dangerous to use ?

      @ahmedadelhosni thank you for you explanation. I won't use it.

      posted in Hardware
      icebob
      icebob
    • RE: Are Chinese power supply chargers that dangerous to use ?

      Hi,
      3 weeks ago I ordered some $0.99 USB power supply from Aliexpress: http://www.aliexpress.com/item/Hot-5V-2A-Travel-Convenient-EU-Plug-Wall-USB-Charger-Adapter-For-Samsung-galaxy-S5-S4/32362543740.html

      Today arrived. I opened and I think it is not bad, isn't it?

      DSC_8553.JPG
      DSC_8555.JPG
      DSC_8554.JPG

      posted in Hardware
      icebob
      icebob
    • RE: Multisensor_PIR_DHT_LDR_Battery

      @n3ro ohh, it's great. Which PIR are you using?

      posted in My Project
      icebob
      icebob
    • RE: Multisensor_PIR_DHT_LDR_Battery

      @n3ro Yes, you can. The sleep function has a return value. If it is < 0, timer is timed out. Otherwise it waked up by interrupt.

      I'm working on a same multi sensor PCB with batteries. The PIR consumes 150uA. So you can reduce consume if your search a low power PIR sensor. Like this: http://forum.mysensors.org/topic/2387/low-power-pir-breakout-board-for-mysensors-and-evaluation/6
      @scalz said it consumes only ~24uA.

      posted in My Project
      icebob
      icebob