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. OpenHardware.io
  3. πŸ’¬ Wall Switch Insertable Node
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

πŸ’¬ Wall Switch Insertable Node

Scheduled Pinned Locked Moved OpenHardware.io
contest2017rfm69atsha204amysensorslonglifeswitchbatterycoincell
37 Posts 15 Posters 11.5k Views 17 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.
  • KoreshK Offline
    KoreshK Offline
    Koresh
    Contest Winner
    wrote on last edited by
    #18

    0_1491475913461_IMG_2017-04-06_131348.jpg
    Board works with nrf24 too :wink:

    S 1 Reply Last reply
    3
    • KoreshK Koresh

      0_1491475913461_IMG_2017-04-06_131348.jpg
      Board works with nrf24 too :wink:

      S Offline
      S Offline
      Samuel235
      Hardware Contributor
      wrote on last edited by
      #19

      @Koresh - Do you happen to have a link for the JST connectors? I can't seem to find any at a reasonable price at the moment. And the male side too, if you don't mind me asking :)

      MySensors 2.1.1
      Controller - OpenHAB (Virtual Machine)
      Gateway - Arduino Mega MQTT Gateway W5100

      KoreshK 1 Reply Last reply
      0
      • S Samuel235

        @Koresh - Do you happen to have a link for the JST connectors? I can't seem to find any at a reasonable price at the moment. And the male side too, if you don't mind me asking :)

        KoreshK Offline
        KoreshK Offline
        Koresh
        Contest Winner
        wrote on last edited by
        #20

        @Samuel235 said in πŸ’¬ Wall Switch Insertable Node:

        @Koresh - Do you happen to have a link for the JST connectors? I can't seem to find any at a reasonable price at the moment. And the male side too, if you don't mind me asking :)

        The price depends on a batch size. You can try to ask any supplier on ali for 100-200 pcs and may be price will be reasonable :)

        1 Reply Last reply
        1
        • W Offline
          W Offline
          Wavemaker
          wrote on last edited by
          #21

          This looks great. I would be interested to purchase assembled units. Question: any idea what would the cost approximately? And CE certification is that something for the very long term or doable in the near future?

          1 Reply Last reply
          0
          • markjgabbM Offline
            markjgabbM Offline
            markjgabb
            wrote on last edited by
            #22

            ^ +1 absolutely....i would back this

            1 Reply Last reply
            0
            • KoreshK Offline
              KoreshK Offline
              Koresh
              Contest Winner
              wrote on last edited by
              #23

              Unfortunately I can't open my ebay shop right now. While I'm trying to open it, you can buy this board here: https://www.ebid.net/eu/for-sale/arduino-ide-compatible-coincell-powered-switch-controller-rfm69cw-433-mhz-radio-156694971.htm

              1 Reply Last reply
              1
              • KoreshK Offline
                KoreshK Offline
                Koresh
                Contest Winner
                wrote on last edited by Koresh
                #24

                I've prepared several kits for true soldering amateurs :wink:
                0_1496003714688_DSC05694.jpg

                0_1496003724729_DSC05698.jpg

                0_1496003750490_DSC05701.jpg

                1 Reply Last reply
                3
                • jeremushkaJ Offline
                  jeremushkaJ Offline
                  jeremushka
                  wrote on last edited by
                  #25

                  Which kind of switches can we plug? normally losed or any kind of light switches already installed in the house?

                  KoreshK 1 Reply Last reply
                  0
                  • jeremushkaJ jeremushka

                    Which kind of switches can we plug? normally losed or any kind of light switches already installed in the house?

                    KoreshK Offline
                    KoreshK Offline
                    Koresh
                    Contest Winner
                    wrote on last edited by
                    #26

                    @jeremushka We can use any switches\buttons with this board. So you can use both ON/OFF and momentary switches.

                    jeremushkaJ 1 Reply Last reply
                    0
                    • KoreshK Koresh

                      @jeremushka We can use any switches\buttons with this board. So you can use both ON/OFF and momentary switches.

                      jeremushkaJ Offline
                      jeremushkaJ Offline
                      jeremushka
                      wrote on last edited by
                      #27

                      @Koresh interesting. What about the battery life? how did you optimize your code in order to have at least battery life 1 year ?

                      KoreshK 1 Reply Last reply
                      0
                      • jeremushkaJ jeremushka

                        @Koresh interesting. What about the battery life? how did you optimize your code in order to have at least battery life 1 year ?

                        KoreshK Offline
                        KoreshK Offline
                        Koresh
                        Contest Winner
                        wrote on last edited by
                        #28

                        @jeremushka
                        There are no problems with battery drain in this circuit. The MCU sleeps between buttons action. Any changes of button state cause rising edge on the interrupt pin and intterruption routine calling (both of open and close events). We check buttons state only during interuption routine. If you use ON-OFF buttons each of buttons in closed state will increase current consumption by ~3uA. Which is not very critical ;)

                        jeremushkaJ 1 Reply Last reply
                        0
                        • KoreshK Koresh

                          @jeremushka
                          There are no problems with battery drain in this circuit. The MCU sleeps between buttons action. Any changes of button state cause rising edge on the interrupt pin and intterruption routine calling (both of open and close events). We check buttons state only during interuption routine. If you use ON-OFF buttons each of buttons in closed state will increase current consumption by ~3uA. Which is not very critical ;)

                          jeremushkaJ Offline
                          jeremushkaJ Offline
                          jeremushka
                          wrote on last edited by
                          #29

                          @Koresh indeed 3uA is nothing. However, the light can always be on or off if the circuit has some problems. Because no action on light switch will be possible.

                          Y 1 Reply Last reply
                          0
                          • jeremushkaJ jeremushka

                            @Koresh indeed 3uA is nothing. However, the light can always be on or off if the circuit has some problems. Because no action on light switch will be possible.

                            Y Offline
                            Y Offline
                            yury
                            wrote on last edited by
                            #30

                            @jeremushka said in πŸ’¬ Wall Switch Insertable Node:
                            " if the circuit has some problems"

                            Could please elaborate more on your findings? Did you notice any bugs in the code or in schematics?

                            1 Reply Last reply
                            0
                            • Sefi NinioS Offline
                              Sefi NinioS Offline
                              Sefi Ninio
                              wrote on last edited by
                              #31

                              Hello @yury and @Koresh ,

                              I am not sure how to connect the switch in the wall to this board.
                              My house has Gewiss switches, but J1-J4 expects 2 wires - so I am not sure how they connect... Can you help?

                              Thanks!

                              Y 1 Reply Last reply
                              0
                              • Sefi NinioS Sefi Ninio

                                Hello @yury and @Koresh ,

                                I am not sure how to connect the switch in the wall to this board.
                                My house has Gewiss switches, but J1-J4 expects 2 wires - so I am not sure how they connect... Can you help?

                                Thanks!

                                Y Offline
                                Y Offline
                                yury
                                wrote on last edited by yury
                                #32

                                @Sefi-Ninio

                                Hi Sefi,

                                if you like to put some additional extra switch somewhere you can use this funny way:

                                https://www.youtube.com/watch?v=-vJRF8ByBZU&feature=youtu.be

                                if you like to use the one in the wall, this way may work for you:

                                In both ways you need to have something that receives signal from the switch - a relay node.

                                3 easy steps as usual ))))

                                1. Π‘onnect any connector (J1-J4) to a switch terminals and glue them together with self adhesive or Velcro or glue gun....
                                1
                                1

                                2. Connect wires from the wall together. Now you power up the Relay node which controls a bulb in the ceiling.
                                2

                                3. Install the switch and the switch node back into the wall.
                                3

                                let me know if it is clear for you. I mean the Relay node part.

                                safety first - power down the switch before removing it.

                                1 Reply Last reply
                                0
                                • Sefi NinioS Offline
                                  Sefi NinioS Offline
                                  Sefi Ninio
                                  wrote on last edited by
                                  #33

                                  Hey @yury , thanks for the reply!
                                  The pictures were very helpful :)

                                  Does this board come flashed with the alternate bootloader that supports OTA updates?

                                  Y 1 Reply Last reply
                                  0
                                  • Sefi NinioS Sefi Ninio

                                    Hey @yury , thanks for the reply!
                                    The pictures were very helpful :)

                                    Does this board come flashed with the alternate bootloader that supports OTA updates?

                                    Y Offline
                                    Y Offline
                                    yury
                                    wrote on last edited by
                                    #34

                                    @Sefi-Ninio said in πŸ’¬ Wall Switch Insertable Node:

                                    Hey @yury , thanks for the reply!
                                    The pictures were very helpful :)

                                    Does this board come flashed with the alternate bootloader that supports OTA updates?

                                    yes, comes with dualoptiboot. but the code is very basic and sends to sleep right after button pressed. So need some additional code to keep it awake to wait for OTA to receive.

                                    1 Reply Last reply
                                    0
                                    • M Offline
                                      M Offline
                                      mardah
                                      Hardware Contributor
                                      wrote on last edited by
                                      #35

                                      Would it be possible to skip the 74HC86D and use a pin change interrupt instead? And still support on/off switches?

                                      KoreshK 2 Replies Last reply
                                      0
                                      • M mardah

                                        Would it be possible to skip the 74HC86D and use a pin change interrupt instead? And still support on/off switches?

                                        KoreshK Offline
                                        KoreshK Offline
                                        Koresh
                                        Contest Winner
                                        wrote on last edited by
                                        #36

                                        @mardah
                                        If you want to routine only one switch. Otherwise you should use this schematic or any other variant.

                                        1 Reply Last reply
                                        0
                                        • M mardah

                                          Would it be possible to skip the 74HC86D and use a pin change interrupt instead? And still support on/off switches?

                                          KoreshK Offline
                                          KoreshK Offline
                                          Koresh
                                          Contest Winner
                                          wrote on last edited by
                                          #37

                                          @mardah oh... you mean pin change system, not extint. You can use it of course.

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


                                          16

                                          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