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
  1. Home
  2. OpenHardware.io
  3. 💬 Very narrow and minimal switch node

💬 Very narrow and minimal switch node

Scheduled Pinned Locked Moved OpenHardware.io
mysensorsbinary switchesi2cnrf24l01
66 Posts 19 Posters 25.9k Views 16 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.
  • alexsh1A alexsh1

    @Dylano said:

    @GertSanders

    This option with a pir...
    or a magnet sensor.

    This is more a reed sensor. For PIR the size is just not right IMHO.
    Given that it sleeps most of the time, the battary life should be excellent.
    I do not know, maybe @GertSanders has got more comments?

    GertSandersG Offline
    GertSandersG Offline
    GertSanders
    Hardware Contributor
    wrote on last edited by GertSanders
    #48

    @alexsh1 with a switch (reed or mechanical) i see a consumption of around 5micro amperes in sleep mode. 2 AAA should last minimum a year. We will see as my node is only started last week.

    A small PIR sensor is possible, see the "small AA project" and the mini PIR example.

    http://forum.mysensors.org/topic/2715/slim-node-as-a-mini-2aa-battery-pir-motion-sensor

    No idea what lifetime to expect there.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      TimO
      Hero Member
      wrote on last edited by
      #49

      I've just ordered a batch of these. Really cool, I can't wait to receive them. Thanks for the great work!

      1 Reply Last reply
      0
      • B Offline
        B Offline
        Bolliebol
        wrote on last edited by
        #50

        YES, my first is working. More to make. In my home now: "Big brother is watching you" Placed my first at the door of the refrigerator ;-)

        @GertSanders, you write:
        powering something with low consumption
        You can set both pins D2 and D3 of the processor to OUTPUT, do not mount the pull up resistors, do not activate the internal PullUPs, and by setting one of the pins to HIGH and the other to LOW you can power something. You will need to take care that a maximum of 20mA is consumed, as this is the recommended maximum amperage the pins of the atmega328 can drive or source.

        Sure not to mount the pull up resistors. But how do de-activate the internal PullUPs, and by setting one of the pins to HIGH and the other to LOW.

        Can you explain in "jip en Janneke/suske en wiske" language how to. With the help of this site I made my first one:
        https://forum.mysensors.org/topic/3018/tutorial-how-to-burn-1mhz-8mhz-bootloader-using-arduino-ide-1-6-5-r5

        GertSandersG 1 Reply Last reply
        0
        • B Bolliebol

          YES, my first is working. More to make. In my home now: "Big brother is watching you" Placed my first at the door of the refrigerator ;-)

          @GertSanders, you write:
          powering something with low consumption
          You can set both pins D2 and D3 of the processor to OUTPUT, do not mount the pull up resistors, do not activate the internal PullUPs, and by setting one of the pins to HIGH and the other to LOW you can power something. You will need to take care that a maximum of 20mA is consumed, as this is the recommended maximum amperage the pins of the atmega328 can drive or source.

          Sure not to mount the pull up resistors. But how do de-activate the internal PullUPs, and by setting one of the pins to HIGH and the other to LOW.

          Can you explain in "jip en Janneke/suske en wiske" language how to. With the help of this site I made my first one:
          https://forum.mysensors.org/topic/3018/tutorial-how-to-burn-1mhz-8mhz-bootloader-using-arduino-ide-1-6-5-r5

          GertSandersG Offline
          GertSandersG Offline
          GertSanders
          Hardware Contributor
          wrote on last edited by
          #51

          @Bolliebol
          You need to use these instructions:

          void setup()
          {
          pinMode(2, OUTPUT);
          digitalWrite(2, HIGH);
          pinMode(3, OUTPUT);
          digitalWrite(2, LOW);

          // this makes pin 2 the "plus" side and pin 3 the "minus" side.

          // Connect your low power consuming thing between these two pins as if they are battery pins.

          // If you need to power off the device, just do

          digitalWrite(2,LOW);

          }

          1 Reply Last reply
          0
          • NeverDieN Offline
            NeverDieN Offline
            NeverDie
            Hero Member
            wrote on last edited by
            #52

            To anyone wanting to build this project: take note that it uses machine pin female headers to seat the mcu. Ordinary female headers won't make a good enough connection with the legs of the atmega328.

            1 Reply Last reply
            0
            • Carl HC Offline
              Carl HC Offline
              Carl H
              wrote on last edited by
              #53

              Hi, I have finally receive your narrow board.. I try with a Si7021 sensor (the GY-21 ebay version) and I have no success. But with your other board, because I have your 2 other board version (ac/dc board and the small battery one) it's working with no problem. The difference I think is the first board without external crystal. After reading in forum, I think with Slim board version, i'm not the first with this problem. Did you test your board with si7021 sensor, or can you give my a clue ?? Thanks

              alexsh1A 1 Reply Last reply
              0
              • Carl HC Carl H

                Hi, I have finally receive your narrow board.. I try with a Si7021 sensor (the GY-21 ebay version) and I have no success. But with your other board, because I have your 2 other board version (ac/dc board and the small battery one) it's working with no problem. The difference I think is the first board without external crystal. After reading in forum, I think with Slim board version, i'm not the first with this problem. Did you test your board with si7021 sensor, or can you give my a clue ?? Thanks

                alexsh1A Offline
                alexsh1A Offline
                alexsh1
                wrote on last edited by
                #54

                @Carl-H did you have an error message? Providing logs would also help. Which address and library did you use for this sensor please?

                Carl HC 1 Reply Last reply
                0
                • alexsh1A alexsh1

                  @Carl-H did you have an error message? Providing logs would also help. Which address and library did you use for this sensor please?

                  Carl HC Offline
                  Carl HC Offline
                  Carl H
                  wrote on last edited by
                  #55

                  @alexsh1 I use the this lib: https://github.com/LowPowerLab/SI7021 My board freeze when initialize with begin function.

                  I can't have the error exactly because this board don't have any FTDI connection. But the same atmega328p chip with other board, it's working !! I think again is it because the board use internal oscillator.

                  alexsh1A GertSandersG 2 Replies Last reply
                  0
                  • Carl HC Carl H

                    @alexsh1 I use the this lib: https://github.com/LowPowerLab/SI7021 My board freeze when initialize with begin function.

                    I can't have the error exactly because this board don't have any FTDI connection. But the same atmega328p chip with other board, it's working !! I think again is it because the board use internal oscillator.

                    alexsh1A Offline
                    alexsh1A Offline
                    alexsh1
                    wrote on last edited by
                    #56

                    @Carl-H if your atmega328p programmed to use the internal oscillator, I do not think this would cause a problem with Si7021.

                    You most likely need to assemble the same on the breadboard and connect the FTDI - I would be a simple error. Once I had a problem with Si7021 using a different address to the one in the library. Took me a while to troubleshoot.
                    Without logs, this is a pure guess unfortunately

                    1 Reply Last reply
                    0
                    • Carl HC Carl H

                      @alexsh1 I use the this lib: https://github.com/LowPowerLab/SI7021 My board freeze when initialize with begin function.

                      I can't have the error exactly because this board don't have any FTDI connection. But the same atmega328p chip with other board, it's working !! I think again is it because the board use internal oscillator.

                      GertSandersG Offline
                      GertSandersG Offline
                      GertSanders
                      Hardware Contributor
                      wrote on last edited by
                      #57

                      @Carl-H
                      Did you order the latest version of the slim board ? It has solderjumpers you need to use if you want the SCL/SDA pins connected.
                      If there is no solderbridge on either solderpad, the D2, SDA and SCL of the atmega are not connected. This board also requires the fuses of the atmega to be set to internal oscillator as there is no external crystal.

                      Carl HC 1 Reply Last reply
                      0
                      • GertSandersG GertSanders

                        @Carl-H
                        Did you order the latest version of the slim board ? It has solderjumpers you need to use if you want the SCL/SDA pins connected.
                        If there is no solderbridge on either solderpad, the D2, SDA and SCL of the atmega are not connected. This board also requires the fuses of the atmega to be set to internal oscillator as there is no external crystal.

                        Carl HC Offline
                        Carl HC Offline
                        Carl H
                        wrote on last edited by Carl H
                        #58

                        @GertSanders Yes I used the version 1.1 and yes I connect the jumper pad correctly.

                        After some hard test, I found the problem, is it my solder or a bad batch of SMD NRF24L01 :( I explain my problem, I make a good solder of the SMD NRF24L01, I put power on the board for testing it and is it working for 2-3 loop because I open the led (d6) on each loop. After 2-3 loop the board is freezing. After I check again the solder and some pin of the SMD NRF24L01+ is shorted (check with my multi-meter). I can explain why, is it my skill of soldering or a bad batch of SMD NRF24lL01+. I test with 5 different and always the same, after power it.. it will shorted some pin. I make my order on this ebay store: http://www.ebay.ca/itm/401054727893?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

                        GertSandersG 1 Reply Last reply
                        0
                        • Carl HC Carl H

                          @GertSanders Yes I used the version 1.1 and yes I connect the jumper pad correctly.

                          After some hard test, I found the problem, is it my solder or a bad batch of SMD NRF24L01 :( I explain my problem, I make a good solder of the SMD NRF24L01, I put power on the board for testing it and is it working for 2-3 loop because I open the led (d6) on each loop. After 2-3 loop the board is freezing. After I check again the solder and some pin of the SMD NRF24L01+ is shorted (check with my multi-meter). I can explain why, is it my skill of soldering or a bad batch of SMD NRF24lL01+. I test with 5 different and always the same, after power it.. it will shorted some pin. I make my order on this ebay store: http://www.ebay.ca/itm/401054727893?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

                          GertSandersG Offline
                          GertSandersG Offline
                          GertSanders
                          Hardware Contributor
                          wrote on last edited by
                          #59

                          @Carl-H
                          Those modules should be OK. Soldering this radio is indeed very tricky.

                          Carl HC 1 Reply Last reply
                          0
                          • GertSandersG GertSanders

                            @Carl-H
                            Those modules should be OK. Soldering this radio is indeed very tricky.

                            Carl HC Offline
                            Carl HC Offline
                            Carl H
                            wrote on last edited by
                            #60

                            @GertSanders Thanks... after practice and practice and practice again... I have now 4 narrow board working with si7021 sensor... I need to put my solder tip very high and use alot of flux.. :)

                            1 Reply Last reply
                            0
                            • T Offline
                              T Offline
                              tlustoch
                              wrote on last edited by
                              #61

                              Hi, if external reset is not needed, why you do not short /RESET pin 1 directly to Vcc to avoid resets in noisy environments?

                              GertSandersG 1 Reply Last reply
                              0
                              • T Offline
                                T Offline
                                tlustoch
                                wrote on last edited by
                                #62

                                Another question: Is OTA sketch upload possible?

                                GertSandersG 1 Reply Last reply
                                0
                                • T tlustoch

                                  Hi, if external reset is not needed, why you do not short /RESET pin 1 directly to Vcc to avoid resets in noisy environments?

                                  GertSandersG Offline
                                  GertSandersG Offline
                                  GertSanders
                                  Hardware Contributor
                                  wrote on last edited by
                                  #63

                                  @tlustoch
                                  Good point, will add that to version 1.2 (if I ever find the time :-))

                                  1 Reply Last reply
                                  0
                                  • T tlustoch

                                    Another question: Is OTA sketch upload possible?

                                    GertSandersG Offline
                                    GertSandersG Offline
                                    GertSanders
                                    Hardware Contributor
                                    wrote on last edited by
                                    #64

                                    @tlustoch
                                    Not possible as there is no flash memory on the board. It was never the intention to update these nodes after their initial programming.

                                    T 1 Reply Last reply
                                    0
                                    • GertSandersG GertSanders

                                      @tlustoch
                                      Not possible as there is no flash memory on the board. It was never the intention to update these nodes after their initial programming.

                                      T Offline
                                      T Offline
                                      tlustoch
                                      wrote on last edited by
                                      #65

                                      @GertSanders
                                      have you considered https://www.mysensors.org/about/ota MYSBootloader? It is announced to work without flash.

                                      GertSandersG 1 Reply Last reply
                                      1
                                      • T tlustoch

                                        @GertSanders
                                        have you considered https://www.mysensors.org/about/ota MYSBootloader? It is announced to work without flash.

                                        GertSandersG Offline
                                        GertSandersG Offline
                                        GertSanders
                                        Hardware Contributor
                                        wrote on last edited by
                                        #66

                                        @tlustoch
                                        The node is a very simple one. So I never considered boot loaders, as the node would not need changing sketches during it's lifetime. I have boot loading functionality on my other designs, this one is a minimal board. Any extra chip would beat the purpose of the word "minimal".
                                        It's a dumb node for a reason :-)

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


                                        12

                                        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
                                        • MySensors
                                        • OpenHardware.io
                                        • Categories
                                        • Recent
                                        • Tags
                                        • Popular