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. My Project
  3. How To - Doorbell Automation Hack

How To - Doorbell Automation Hack

Scheduled Pinned Locked Moved My Project
106 Posts 29 Posters 93.6k Views 26 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.
  • D Offline
    D Offline
    drock1985
    wrote on last edited by
    #38

    This is the output from Serial Monitor now on the doorchime controller.

    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    read: 0-0-255 s=255,c=3,t=4,pt=0,l=1,sg=0:8
    send: 8-8-0-0 s=255,c=0,t=17,pt=0,l=3,sg=0,st=ok:1.5
    send: 8-8-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
    read: 0-0-8 s=255,c=3,t=6,pt=0,l=1,sg=0:M
    id=8
    send: 8-8-0-0 s=255,c=0,t=17,pt=0,l=3,sg=0,st=ok:1.5
    send: 8-8-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
    read: 0-0-8 s=255,c=3,t=6,pt=0,l=1,sg=0:M
    sensor started, id=8, parent=0, distance=1
    send: 8-8-0-0 s=255,c=3,t=11,pt=0,l=16,sg=0,st=ok:Doorbell Monitor
    send: 8-8-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.0
    send: 8-8-0-0 s=1,c=0,t=3,pt=0,l=0,sg=0,st=ok:
    send: 8-8-0-0 s=0,c=0,t=1,pt=0,l=0,sg=0,st=ok:
    send: 8-8-0-0 s=0,c=1,t=16,pt=0,l=1,sg=0,st=ok:1
    send: 8-8-0-0 s=0,c=1,t=16,pt=0,l=1,sg=0,st=ok:1
    read: 0-0-8 s=1,c=1,t=2,pt=0,l=1,sg=0:1
    Incoming change for sensor:1, New status: 1
    send: 8-8-0-0 s=0,c=1,t=16,pt=0,l=1,sg=0,st=ok:1
    send: 8-8-0-0 s=0,c=1,t=16,pt=0,l=1,sg=0,st=ok:1
    read: 0-0-8 s=1,c=1,t=2,pt=0,l=1,sg=0:0
    Incoming change for sensor:1, New status: 0
    send: 8-8-0-0 s=0,c=1,t=16,pt=0,l=1,sg=0,st=ok:1
    send: 8-8-0-0 s=0,c=1,t=16,pt=0,l=1,sg=0,st=ok:1
    send: 8-8-0-0 s=0,c=1,t=16,pt=0,l=1,sg=0,st=ok:1
    send: 8-8-0-0 s=0,c=1,t=16,pt=0,l=1,sg=0,st=ok:1
    read: 0-0-8 s=1,c=1,t=2,pt=0,l=1,sg=0:1
    Incoming change for sensor:1, New status: 1
    send: 8-8-0-0 s=0,c=1,t=16,pt=0,l=1,sg=0,st=ok:1
    send: 8-8-0-0 s=0,c=1,t=16,pt=0,l=1,sg=0,st=ok:1

    My Projects
    2 Door Chime Sensor
    Washing Machine Monitor

    1 Reply Last reply
    0
    • T Offline
      T Offline
      timropp
      wrote on last edited by timropp
      #39

      So got my doorbell up and working. Here's the details: I used the mini RBoard and it's working out great.

      IMG_20151031_173120.jpg

      I soldered the cap directly onto the nrf board. Unfortunately, that board overhangs the A0 connections on the rboard (there's 2 pins there, one is the A0 pin and one is a ground). Thankfully, it only ACTUALLY covered the ground, so it was easy to work around. The brown wire in the photo is the wire I have connected to the A0 pin. The green wire is a temp wire I was connecting to the ground in the serial connections.

      In the doorbell, I cut away one of the panels over one of the resonant chambers since I saw that the module would fit in there perfectly. I then wired it up and tucked it away. I did lose a little volume since the chamber is filled rather than resonating, but it's worth it to have the doorbell notifying my Vera system. That can flash lights and so forth to notify us other ways - we couldn't usually hear the doorbell when downstairs anyway.

      IMG_20151031_183500.jpg

      Code wise, I used the original code above with just a couple minor changes. I set the doorbell_pin to A0, the relay_pin to 4, and the node_ID to auto. I also set it to act as a repeater since it's hardwired to power. Now that I have it working, I wish I'd changed the ringTime to a lower value since 7/10 of a second is way longer than the doorbell normally takes between the two notes, but it's not a big deal. Not worth pulling the board out, disconnecting it, reprogramming it, and reinstalling everything :-)

      VeraEdge UI7 with Mysensors ethernet gateway

      1 Reply Last reply
      1
      • T Offline
        T Offline
        timropp
        wrote on last edited by
        #40

        My wiring:

        I discovered that they ran 4 conductor wire from the transformer in the basement to this location. So I plugged a phone charger in near the transformer, cut the end off a USB cable, and connected the 5V and gnd wires from that USB cable to the spare 2 wires in the cable. So then there's 6 wires coming into the doorbell as shown here: 2 for 16VAC from the transformer, 2 for 5VDC from the phone charger, and 2 from the doorbell button. I then connected the 5V pair to the top pair of screw terminals in the photo on the rboard. They're the blue and green wires. The white wire in the top terminal is one side of the button, connecting to ground there. The second side of the button is the red wire going into the grey wire nut. The brown wire coming out of the nut connects to the A0 pin on the board. Finally, the 2 16VAC wires are red and white. The red goes over to the right terminal on the plunger mechanism. The white goes to the common terminal on the rboard's relay connections. Finally, a black wire connects the NO from the relay to the other side of the plunger.

        Hopefully that was all clear for anyone wanting to wire up their own!

        VeraEdge UI7 with Mysensors ethernet gateway

        1 Reply Last reply
        0
        • A Offline
          A Offline
          arjen
          wrote on last edited by
          #41

          Hello all,

          I'm trying to hook this doorbell sensor up, what I've found is that when I connect it, I must connect it to NC. The downside is that when I reset the Arduino, the doorbell keeps ringing until pin4 is pulled up. How can I change that in the sketch?
          Also I can ring it once, it rings and then it stops working. Connection to the gateway is lost and it won't ring either.
          been trying to fix it for 3 days now, but I can't seem to figure out what I've done wrong.
          Hooked up pin 4 to the input pin of the relay. The relay is directly powered by 5v coming from a usb hub with 2A.
          The Arduino is powered using the same 5V, with a regulator to the radio to give it 3.3V. Connected a 4.7uF cap directly on the radio.
          When I reset the arduino this comes to the gateway:

          0;0;3;0;9;read: 16-16-0 s=255,c=0,t=17,pt=0,l=3,sg=0:1.5
          0;0;3;0;9;read: 16-16-0 s=255,c=3,t=11,pt=0,l=16,sg=0:Doorbell Monito
          0;0;3;0;9;read: 16-16-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.0
          0;0;3;0;9;read: 16-16-0 s=1,c=0,t=3,pt=0,l=0,sg=0:
          0;0;3;0;9;read: 16-16-0 s=0,c=0,t=1,pt=0,l=0,sg=0:
          0;0;3;0;9;read: 16-16-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
          0;0;3;0;9;send: 0-0-16-16 s=255,c=3,t=8,pt=1,l=1,sg=0,st=fail:0
          

          I can connect perfectly to the gateway using MyMQTT on Android so I think it is failing on the side of the doorbell any help would be greatly appreciated!

          petewillP 1 Reply Last reply
          0
          • korttomaK Offline
            korttomaK Offline
            korttoma
            Hero Member
            wrote on last edited by
            #42

            For the NC problem change:

            #define RELAY_ON 1
            #define RELAY_OFF 0
            

            to:

            #define RELAY_ON 0
            #define RELAY_OFF 1
            
            • Tomas
            korttomaK 1 Reply Last reply
            0
            • A arjen

              Hello all,

              I'm trying to hook this doorbell sensor up, what I've found is that when I connect it, I must connect it to NC. The downside is that when I reset the Arduino, the doorbell keeps ringing until pin4 is pulled up. How can I change that in the sketch?
              Also I can ring it once, it rings and then it stops working. Connection to the gateway is lost and it won't ring either.
              been trying to fix it for 3 days now, but I can't seem to figure out what I've done wrong.
              Hooked up pin 4 to the input pin of the relay. The relay is directly powered by 5v coming from a usb hub with 2A.
              The Arduino is powered using the same 5V, with a regulator to the radio to give it 3.3V. Connected a 4.7uF cap directly on the radio.
              When I reset the arduino this comes to the gateway:

              0;0;3;0;9;read: 16-16-0 s=255,c=0,t=17,pt=0,l=3,sg=0:1.5
              0;0;3;0;9;read: 16-16-0 s=255,c=3,t=11,pt=0,l=16,sg=0:Doorbell Monito
              0;0;3;0;9;read: 16-16-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.0
              0;0;3;0;9;read: 16-16-0 s=1,c=0,t=3,pt=0,l=0,sg=0:
              0;0;3;0;9;read: 16-16-0 s=0,c=0,t=1,pt=0,l=0,sg=0:
              0;0;3;0;9;read: 16-16-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
              0;0;3;0;9;send: 0-0-16-16 s=255,c=3,t=8,pt=1,l=1,sg=0,st=fail:0
              

              I can connect perfectly to the gateway using MyMQTT on Android so I think it is failing on the side of the doorbell any help would be greatly appreciated!

              petewillP Offline
              petewillP Offline
              petewill
              Admin
              wrote on last edited by
              #43

              @arjen That's strange. You shouldn't need to connect it to NC. That means you are normally sending power to your doorbell unless it is rung. Are you sure you have the wires from your doorbell correct? You may want to double check them with a multimeter.

              My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

              1 Reply Last reply
              0
              • A Offline
                A Offline
                arjen
                wrote on last edited by
                #44

                Just to make sure I've took some photo's.
                When I take a multimeter and place it on the bottom two wires of the trafo I get zero rating. doorbel.jpg
                There is no difference between blue and red, neither does it make a difference if I change the wires in what ever way. Tried all possibilities I can think of.

                1 Reply Last reply
                0
                • hekH Offline
                  hekH Offline
                  hek
                  Admin
                  wrote on last edited by
                  #45

                  You know that it is AC current coming out of that power supply right?

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    arjen
                    wrote on last edited by
                    #46

                    Yeah i know. Does it matter? It's seperated by the relay from the rest right?
                    Or am I saying something stupid here.... :confused:

                    petewillP 1 Reply Last reply
                    0
                    • A arjen

                      Yeah i know. Does it matter? It's seperated by the relay from the rest right?
                      Or am I saying something stupid here.... :confused:

                      petewillP Offline
                      petewillP Offline
                      petewill
                      Admin
                      wrote on last edited by
                      #47

                      @arjen Can you post pictures of the rest of the wiring? It's still strange that you have to have it connected to normally closed. That is most likely why your doorbell is ringing when it's first powered on.

                      My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        arjen
                        wrote on last edited by
                        #48

                        Sure, no prob.
                        relay.jpg
                        This is the relay, at the moment a 6 port, didn't had a one port available.
                        The green wire is connected to IN1 on the relay and pin4 on the arduino.
                        back_print.jpg
                        the backside of the print. The bottom row 'S' is pin 9 on the arduino, 'M' and 'K' is pin3 and Ground to doorbellbutton.
                        front_print.jpg
                        front side. The brown and blue on the left are 5V to the relay, on the right red and blue are input doorbellbutton.

                        1 Reply Last reply
                        1
                        • korttomaK korttoma

                          For the NC problem change:

                          #define RELAY_ON 1
                          #define RELAY_OFF 0
                          

                          to:

                          #define RELAY_ON 0
                          #define RELAY_OFF 1
                          
                          korttomaK Offline
                          korttomaK Offline
                          korttoma
                          Hero Member
                          wrote on last edited by
                          #49

                          Did you try my suggestion?

                          @korttoma said:

                          For the NC problem change:

                          #define RELAY_ON 1
                          #define RELAY_OFF 0
                          

                          to:

                          #define RELAY_ON 0
                          #define RELAY_OFF 1
                          
                          • Tomas
                          1 Reply Last reply
                          0
                          • petewillP Offline
                            petewillP Offline
                            petewill
                            Admin
                            wrote on last edited by
                            #50

                            Yeah, try @korttoma's suggestion. If that doesn't work, can you post a pic of the relay connections (all)?

                            My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                            1 Reply Last reply
                            0
                            • D Offline
                              D Offline
                              drock1985
                              wrote on last edited by
                              #51

                              Huh, I have the same problem as @arjen is describing too, the only difference is i'm using a 2x raly vs. his 4. I don't have an issue with the relay being on, since my node is always powered on, the pull always goes high. Might just change it in the code/wiring though when I get the Arduino IDE working again.

                              Quick question: do you have the relay board powered by the Arduino, or another 5V source?

                              My Projects
                              2 Door Chime Sensor
                              Washing Machine Monitor

                              petewillP 1 Reply Last reply
                              0
                              • A Offline
                                A Offline
                                arjen
                                wrote on last edited by
                                #52

                                Made the changes to the sketch as suggested, and now I can connect it to NO.
                                Just to make sure I didn't made a mistake while soldering, used a fresh nano and made all connections again. In the sketch the changes still need to be made, however as far as i could test this morning all is working fine now!
                                Thanks for all the tips!

                                The relay is powered by the same powersource as the arduino (6 port powered usb hub 2A).

                                1 Reply Last reply
                                0
                                • D drock1985

                                  Huh, I have the same problem as @arjen is describing too, the only difference is i'm using a 2x raly vs. his 4. I don't have an issue with the relay being on, since my node is always powered on, the pull always goes high. Might just change it in the code/wiring though when I get the Arduino IDE working again.

                                  Quick question: do you have the relay board powered by the Arduino, or another 5V source?

                                  petewillP Offline
                                  petewillP Offline
                                  petewill
                                  Admin
                                  wrote on last edited by
                                  #53

                                  @drock1985 the relay should be powered by the same 5v power source as the Arduino but not from the arduino. It can draw too much power and cause issues when connected to the arduino.

                                  @arjen Great! I just noticed the selection pin (can't think of the correct name right now) on your relay. I wonder if switching that would allow you to use the original code as well as the NO connections?

                                  My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                                  1 Reply Last reply
                                  0
                                  • N Offline
                                    N Offline
                                    Newzwaver
                                    wrote on last edited by
                                    #54

                                    Excellent project, great work.. So I need to pick your mind.... I have a doorbell that can change music and volume. I hope to be able to fully control it by zwave using this app with Vera...Any ideas.....

                                    petewillP 1 Reply Last reply
                                    0
                                    • N Newzwaver

                                      Excellent project, great work.. So I need to pick your mind.... I have a doorbell that can change music and volume. I hope to be able to fully control it by zwave using this app with Vera...Any ideas.....

                                      petewillP Offline
                                      petewillP Offline
                                      petewill
                                      Admin
                                      wrote on last edited by
                                      #55

                                      @Newzwaver Hmm. I doubt this would work for you to fully control it but you may still be able to trigger it. How do you control it now? Through an app or something?

                                      My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                                      1 Reply Last reply
                                      0
                                      • Moshe LivneM Offline
                                        Moshe LivneM Offline
                                        Moshe Livne
                                        Hero Member
                                        wrote on last edited by
                                        #56

                                        Hello all - sorry I have been away for so long...
                                        This bring back memories http://forum.mysensors.org/topic/1620/mysensored-doorbell
                                        I wish I found a way of triggering the notification from the ring and not the other way around, as this way when something happen to your arduino the doorbell will not ring. Didn't happen yet - it works perfectly for 6 months but I would feel more relaxed if it was the other way around. Oh well...

                                        petewillP 1 Reply Last reply
                                        0
                                        • Moshe LivneM Moshe Livne

                                          Hello all - sorry I have been away for so long...
                                          This bring back memories http://forum.mysensors.org/topic/1620/mysensored-doorbell
                                          I wish I found a way of triggering the notification from the ring and not the other way around, as this way when something happen to your arduino the doorbell will not ring. Didn't happen yet - it works perfectly for 6 months but I would feel more relaxed if it was the other way around. Oh well...

                                          petewillP Offline
                                          petewillP Offline
                                          petewill
                                          Admin
                                          wrote on last edited by
                                          #57

                                          @Moshe-Livne Cool! You can look at it the other way around on the Arduino processing the ring issue you raised. I now have the ability to turn off the ring if I want to. So I guess there is some give and take :)

                                          My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

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