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
  1. Home
  2. My Project
  3. My Slim 2AA Battery Node
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

My Slim 2AA Battery Node

Scheduled Pinned Locked Moved My Project
498 Posts 71 Posters 342.4k Views 69 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A arnoldg

    Is there some one who have lying around several boards, who can share them with me.
    i'm from the netherlands, and for now i only need 5 to 6 boards, not 30 :)

    so i hope i could take over a couple from someone.

    AWIA Offline
    AWIA Offline
    AWI
    Hero Member
    wrote on last edited by
    #106

    @arnoldg send me a pm...

    1 Reply Last reply
    0
    • A arnoldg

      Is there some one who have lying around several boards, who can share them with me.
      i'm from the netherlands, and for now i only need 5 to 6 boards, not 30 :)

      so i hope i could take over a couple from someone.

      A Offline
      A Offline
      ar91
      wrote on last edited by
      #107

      @arnoldg said:

      Is there some one who have lying around several boards, who can share them with me.
      i'm from the netherlands, and for now i only need 5 to 6 boards, not 30 :)

      so i hope i could take over a couple from someone.

      Same here, anybody in US has 4 or 5 boards that i could buy?

      1 Reply Last reply
      0
      • dakkyD Offline
        dakkyD Offline
        dakky
        wrote on last edited by
        #108

        Anyone want to share some photos with sensors assembled?
        Any experiences how long this node will last? I have one DHT11 and one BH1750 onboard and will wake up the node every 5-15 Minutes.

        Greetings
        Dakky

        Controller: Raspberry Pi 2 :: Openhab2 :: with @TimO MySensors Binding
        Gateway: Arduino MEGA 2560 R3 :: W5100 :: Ethernet GW

        Software: MySensors 2.0development

        rsachocR 1 Reply Last reply
        0
        • N Offline
          N Offline
          nikos1671
          wrote on last edited by
          #109

          If I order the 10 pieces for 14$ how many sensor I can build? They mean 10 panels with 3 boards each one?

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kr0815
            wrote on last edited by kr0815
            #110

            yes, that´s 30 sensors you could build then

            1 Reply Last reply
            0
            • GertSandersG Offline
              GertSandersG Offline
              GertSanders
              Hardware Contributor
              wrote on last edited by
              #111

              @nikos1671 If you buy the proto pack you could get 9,10 or 11 boards. It could be different that exactly 10 boards. In my case I received 12 boards for my design, in another order I received 11 boards. My last order was 10 boards. But in any case you will be able to make more then 25 sensors. Plenty for a normal house.

              1 Reply Last reply
              0
              • dakkyD dakky

                Anyone want to share some photos with sensors assembled?
                Any experiences how long this node will last? I have one DHT11 and one BH1750 onboard and will wake up the node every 5-15 Minutes.

                Greetings
                Dakky

                rsachocR Offline
                rsachocR Offline
                rsachoc
                wrote on last edited by rsachoc
                #112

                @dakky said:

                Anyone want to share some photos with sensors assembled?
                Any experiences how long this node will last? I have one DHT11 and one BH1750 onboard and will wake up the node every 5-15 Minutes.

                Greetings
                Dakky

                I would like this too please! I'm trying to decide on which node to use as a motion sensor and temp/humidity sensor and would like to understand how I add a temp/humidty sensor to these and also the battery drain. And also, what temp/humidity sensors are we able to use with this node? I guess it ouputs max 3v, so does that mean the DHT11 and DHT22 are not able to be used here? Sorry for the newbie questions, I'm beginning to explore my options in relation to building my initial temp/humidity sensor and then a motion sensor.

                edit OK, so based on what m26872 said here (http://forum.mysensors.org/topic/2715/slim-node-as-a-mini-2aa-battery-pir-motion-sensor/5) I think that I can only use Si7021 or HTU21 sensors as this outputs around 3v? From reading the spec sheet of the DHT11 and 22 I see they need 3.7v, so I guess if I want to use those sensors I need this node (http://forum.mysensors.org/topic/486/my-2aa-battery-sensor)?

                m26872M 1 Reply Last reply
                0
                • rsachocR rsachoc

                  @dakky said:

                  Anyone want to share some photos with sensors assembled?
                  Any experiences how long this node will last? I have one DHT11 and one BH1750 onboard and will wake up the node every 5-15 Minutes.

                  Greetings
                  Dakky

                  I would like this too please! I'm trying to decide on which node to use as a motion sensor and temp/humidity sensor and would like to understand how I add a temp/humidty sensor to these and also the battery drain. And also, what temp/humidity sensors are we able to use with this node? I guess it ouputs max 3v, so does that mean the DHT11 and DHT22 are not able to be used here? Sorry for the newbie questions, I'm beginning to explore my options in relation to building my initial temp/humidity sensor and then a motion sensor.

                  edit OK, so based on what m26872 said here (http://forum.mysensors.org/topic/2715/slim-node-as-a-mini-2aa-battery-pir-motion-sensor/5) I think that I can only use Si7021 or HTU21 sensors as this outputs around 3v? From reading the spec sheet of the DHT11 and 22 I see they need 3.7v, so I guess if I want to use those sensors I need this node (http://forum.mysensors.org/topic/486/my-2aa-battery-sensor)?

                  m26872M Offline
                  m26872M Offline
                  m26872
                  Hardware Contributor
                  wrote on last edited by
                  #113

                  @rsachoc Yep, you got it right.

                  1 Reply Last reply
                  1
                  • dakkyD Offline
                    dakkyD Offline
                    dakky
                    wrote on last edited by dakky
                    #114

                    Arghls no DHT11 with this node? Dammit. But a step up converter should do it?

                    Controller: Raspberry Pi 2 :: Openhab2 :: with @TimO MySensors Binding
                    Gateway: Arduino MEGA 2560 R3 :: W5100 :: Ethernet GW

                    Software: MySensors 2.0development

                    1 Reply Last reply
                    0
                    • m26872M Offline
                      m26872M Offline
                      m26872
                      Hardware Contributor
                      wrote on last edited by m26872
                      #115

                      Humidity Sensor example
                      http://forum.mysensors.org/topic/3049/slim-node-si7021-sensor-example

                      (This post used to contain a not yet finished design by mistake. The link above now shows the correct finished project.)

                      AWIA 1 Reply Last reply
                      5
                      • m26872M Offline
                        m26872M Offline
                        m26872
                        Hardware Contributor
                        wrote on last edited by m26872
                        #116

                        Reed Switch example
                        With external 10M pull-up to save battery. The plastic foam is used instead of a fixed mount, for easy disassemble, reflash, battery renewal etc.
                        bild1.jpg
                        bild2.jpg
                        bild3.jpg
                        bild4.jpg
                        bild5.jpg
                        bild6.jpg

                        The Sketch

                        // EgSlimReed2
                        // By m26872, 2015-12-22
                        // Interrupt driven binary switch for Slim Node with Reed switch and external pull-up (10Mohm)
                        // Inspired by mysensors example:
                        // https://github.com/mysensors/Arduino/blob/master/libraries/MySensors/examples/BinarySwitchSleepSensor/BinarySwitchSleepSensor.ino
                        
                        #include <MySensor.h>
                        #include <SPI.h>
                        #include <Vcc.h>
                        
                        #define NODE_ID 5 //12 var senaste "reed-node"-id // 110    // Use static Node_ID  <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
                        #define SKETCH_NAME "EgSlimReed"
                        #define SKETCH_VERSION "2.0 2015-12-22"
                        #define SW_CHILD_ID 5
                        #define SW_PIN 3
                        #define BATTERY_REPORT_DAY 2   // Desired heartbeat interval when inactive. Maximum heartbeat/report interval is equal to this due to the dayCounter.
                        #define BATTERY_REPORT_BY_IRT_CYCLE 10  // Adjust this according to usage frequency.
                        #define ONE_DAY_SLEEP_TIME 86400000
                        #define VCC_MIN 1.9
                        #define VCC_MAX 3.3
                        
                        int dayCounter = 0;
                        int irtCounter = 0;
                        uint8_t value;
                        uint8_t sentValue=2;
                        bool interruptReturn=false;
                         
                        Vcc vcc;
                        MySensor gw;
                        MyMessage msg(SW_CHILD_ID, V_TRIPPED);
                        
                        void setup()  
                        {  
                          delay(100); // to settle power for radio
                          gw.begin(NULL,NODE_ID);
                          pinMode(SW_PIN, INPUT);
                          digitalWrite(SW_PIN, LOW);    // Disable internal pull-ups
                          gw.sendSketchInfo(SKETCH_NAME, SKETCH_VERSION);
                          gw.present(SW_CHILD_ID, S_DOOR);  
                        }
                        
                        void loop() 
                        {
                          if (!interruptReturn) { // Woke up by timer (or first run)
                        	dayCounter++; 
                        	if (dayCounter >= BATTERY_REPORT_DAY) {
                        		  dayCounter = 0;
                        		  sendBatteryReport();
                        	}
                          }
                          else {	// Woke up by pin change
                        	  irtCounter++;
                        	  gw.sleep(50);  	  // Short delay to allow switch to properly settle
                        	  value = digitalRead(SW_PIN);
                        	  if (value != sentValue) {
                        		 gw.send(msg.set(value==HIGH ? 1 : 0));
                        		 sentValue = value;
                        	  }
                        	  if (irtCounter>=BATTERY_REPORT_BY_IRT_CYCLE) {
                        		irtCounter=0;
                        		sendBatteryReport();
                        	  }
                          }
                        
                          // Sleep until something happens with the sensor,   or one sleep_time has passed since last awake.
                          interruptReturn = gw.sleep(SW_PIN-2, CHANGE, ONE_DAY_SLEEP_TIME);
                        
                        } 
                        
                        void sendBatteryReport() {
                        		  float p = vcc.Read_Perc(VCC_MIN, VCC_MAX, true);
                        		  int batteryPcnt = static_cast<int>(p);
                        		  gw.sendBatteryLevel(batteryPcnt);
                        }
                        
                        1 Reply Last reply
                        5
                        • m26872M Offline
                          m26872M Offline
                          m26872
                          Hardware Contributor
                          wrote on last edited by
                          #117

                          Motion sensor example
                          As already mentioned; more details to be found here.http://forum.mysensors.org/topic/2715/slim-node-as-a-mini-2aa-battery-pir-motion-sensor

                          20160102_001318.jpg

                          1 Reply Last reply
                          2
                          • dakkyD Offline
                            dakkyD Offline
                            dakky
                            wrote on last edited by
                            #118

                            do u add these photos and comments to openhardware.io ? they are quite helpful

                            Controller: Raspberry Pi 2 :: Openhab2 :: with @TimO MySensors Binding
                            Gateway: Arduino MEGA 2560 R3 :: W5100 :: Ethernet GW

                            Software: MySensors 2.0development

                            1 Reply Last reply
                            0
                            • m26872M m26872

                              Humidity Sensor example
                              http://forum.mysensors.org/topic/3049/slim-node-si7021-sensor-example

                              (This post used to contain a not yet finished design by mistake. The link above now shows the correct finished project.)

                              AWIA Offline
                              AWIA Offline
                              AWI
                              Hero Member
                              wrote on last edited by
                              #119

                              @m26872 I don't use any I2C pull-ups. All my Si7021/ SHT21 (GY-21) boards include the SDA/SCL pull-ups (and LDO voltage regulator/ level conversion).

                              m26872M rsachocR 2 Replies Last reply
                              0
                              • AWIA AWI

                                @m26872 I don't use any I2C pull-ups. All my Si7021/ SHT21 (GY-21) boards include the SDA/SCL pull-ups (and LDO voltage regulator/ level conversion).

                                m26872M Offline
                                m26872M Offline
                                m26872
                                Hardware Contributor
                                wrote on last edited by m26872
                                #120

                                @AWI
                                Oops, it makes me worried that I completely forgot that this project was in some test stage. Ldo and everything should probably be bypassed, but I wanted to test it first. Post edited. Thanks for noticing!

                                And sorry for everyone else if this caused any trouble.

                                (It also makes me a little worried about that I have too many ongoing projects right now. :confounded: )

                                1 Reply Last reply
                                0
                                • AWIA AWI

                                  @m26872 I don't use any I2C pull-ups. All my Si7021/ SHT21 (GY-21) boards include the SDA/SCL pull-ups (and LDO voltage regulator/ level conversion).

                                  rsachocR Offline
                                  rsachocR Offline
                                  rsachoc
                                  wrote on last edited by
                                  #121

                                  @AWI said:

                                  @m26872 I don't use any I2C pull-ups. All my Si7021/ SHT21 (GY-21) boards include the SDA/SCL pull-ups (and LDO voltage regulator/ level conversion).

                                  @m26872 said:

                                  @AWI
                                  Oops, it makes me worried that I completely forgot that this project was in some test stage. Ldo and everything should probably be bypassed, but I wanted to test it first. Post edited. Thanks for noticing!

                                  And sorry for everyone else if this caused any trouble.

                                  (It also makes me a little worried about that I have too many ongoing projects right now. :confounded: )

                                  Apologies again, so that I understand it, does that mean when adding the mentioned temp sensor nodes I need additional parts?

                                  m26872M 1 Reply Last reply
                                  0
                                  • rsachocR rsachoc

                                    @AWI said:

                                    @m26872 I don't use any I2C pull-ups. All my Si7021/ SHT21 (GY-21) boards include the SDA/SCL pull-ups (and LDO voltage regulator/ level conversion).

                                    @m26872 said:

                                    @AWI
                                    Oops, it makes me worried that I completely forgot that this project was in some test stage. Ldo and everything should probably be bypassed, but I wanted to test it first. Post edited. Thanks for noticing!

                                    And sorry for everyone else if this caused any trouble.

                                    (It also makes me a little worried about that I have too many ongoing projects right now. :confounded: )

                                    Apologies again, so that I understand it, does that mean when adding the mentioned temp sensor nodes I need additional parts?

                                    m26872M Offline
                                    m26872M Offline
                                    m26872
                                    Hardware Contributor
                                    wrote on last edited by
                                    #122

                                    @rsachoc My mistake and my apology. Unfortunatly I can't even finish and share the resluts from that humidity sensor in a while since I'm leaving for a few weeks holiday.

                                    Anyway
                                    @riataman Shows a mod of the GY-21 board in this post. He also link to a board without the LDO and level converter. In any case you wont need the two 4k7 pull-up in my pictures above, only if use the bare chip.

                                    1 Reply Last reply
                                    0
                                    • ahmedadelhosniA Offline
                                      ahmedadelhosniA Offline
                                      ahmedadelhosni
                                      wrote on last edited by
                                      #123

                                      What about using a hall effect sensor to detect magnet ?

                                      I have a door sensor using the same contact sensor, but I also have a hall effect sensor and I hope to test it soon. It is very small compared to the contact sensor.

                                      1 Reply Last reply
                                      0
                                      • S Offline
                                        S Offline
                                        sensorchecker
                                        wrote on last edited by
                                        #124

                                        Hello m26872,
                                        your project is great, and i will order tomorrow a set of PCBs.
                                        I've done a breadboard setup with the SI7021 according to your schematic and your sketch, which works flawlessly.
                                        (ATmega328P / SI7021 / NRF24L01 / 2xAA Battery / your 1Mhz bootloader / your Fuse Settings)

                                        Unfortunately I do not get the current consumption below 2mA.
                                        What to do to get the power consumption below 10uA and to increase the battery life on a couple of years ?
                                        Any help is appreciated...

                                        AWIA 1 Reply Last reply
                                        0
                                        • S sensorchecker

                                          Hello m26872,
                                          your project is great, and i will order tomorrow a set of PCBs.
                                          I've done a breadboard setup with the SI7021 according to your schematic and your sketch, which works flawlessly.
                                          (ATmega328P / SI7021 / NRF24L01 / 2xAA Battery / your 1Mhz bootloader / your Fuse Settings)

                                          Unfortunately I do not get the current consumption below 2mA.
                                          What to do to get the power consumption below 10uA and to increase the battery life on a couple of years ?
                                          Any help is appreciated...

                                          AWIA Offline
                                          AWIA Offline
                                          AWI
                                          Hero Member
                                          wrote on last edited by
                                          #125

                                          @sensorchecker A power consumption of 2mA is way out of range. Is your sensor entering sleep? Or an ftdi adapter still connected?

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          13

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

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