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. πŸ’¬ Wall Switch Insertable Node

πŸ’¬ Wall Switch Insertable Node

Scheduled Pinned Locked Moved OpenHardware.io
contest2017rfm69atsha204amysensorslonglifeswitchbatterycoincell
37 Posts 15 Posters 16.7k 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
    KoreshK
    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
      jeremushkaJ
      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
        KoreshK
        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
          jeremushkaJ
          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
            KoreshK
            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
              jeremushkaJ
              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
                Y
                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
                  Sefi NinioS
                  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
                    Y
                    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
                      Sefi NinioS
                      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
                        Y
                        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
                          M
                          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
                            KoreshK
                            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
                              KoreshK
                              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

                              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                              With your input, this post could be even better πŸ’—

                              Register Login
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              18

                              Online

                              12.4k

                              Users

                              11.2k

                              Topics

                              113.4k

                              Posts


                              Copyright 2025 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