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. 💬 Bed Occupancy Sensor

💬 Bed Occupancy Sensor

Scheduled Pinned Locked Moved OpenHardware.io
mpr121capacitiveoccupancybedtouch
21 Posts 12 Posters 8.4k Views 7 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.
  • petewillP petewill

    @RJ_Make said:

    I get away with a lot of stuff, but there is no way my wife would let me do this..

    I have my sensors under a mattress pad (which is below the sheets) so she never even sees the sensors even when the sheets are changed. You just need to do it when she is away. ;)

    Why did you turn off the YT comments?

    Strange, it says they are allowed. Are you not able to comment?

    0_1459516299216_upload-842ffb97-5e2d-4628-85f1-1bc574e6bb17

    RJ_MakeR Offline
    RJ_MakeR Offline
    RJ_Make
    Hero Member
    wrote on last edited by
    #9

    @petewill Seems to be working this morning.. :scream:

    RJ_Make

    1 Reply Last reply
    0
    • TmasterT Offline
      TmasterT Offline
      Tmaster
      wrote on last edited by Tmaster
      #10

      Realy cool project. Its very usefull ,but in my opinion,all this wires in a bed will cause problems in home:P how far it detect capacitance? if it was mounted on bed plataform would be acceptable (for wifes). OR use a load cell(20 to 100kgs maybe) on one of the foots of bed plataform

      i'm a arduino fan .Even sometimes don't undestanding how to use it :P

      petewillP 1 Reply Last reply
      0
      • OitzuO Offline
        OitzuO Offline
        Oitzu
        wrote on last edited by
        #11

        Oh i see its now on hackaday also. http://hackaday.com/2016/04/17/are-you-in-bed/ :clap:

        1 Reply Last reply
        1
        • TmasterT Tmaster

          Realy cool project. Its very usefull ,but in my opinion,all this wires in a bed will cause problems in home:P how far it detect capacitance? if it was mounted on bed plataform would be acceptable (for wifes). OR use a load cell(20 to 100kgs maybe) on one of the foots of bed plataform

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

          @Tmaster Sorry, I must have missed your comment. I think it probably detects around .5 inches. Maybe a little more. We have it under a mattress pad so wires are hidden and undisturbed when changing the sheets. I'd be interested in hearing how the load cells go. I vaguely remember reading that they start to lose their ability to detect if they are under constant weight. I'm not sure if that was just for detecting minor changes though. It may still work to pick up a body. :)

          @Oitzu Cool! Thanks for sharing.

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

          1 Reply Last reply
          0
          • franzelareF Offline
            franzelareF Offline
            franzelare
            wrote on last edited by
            #13

            if you run domoticz or an other home automation system, adding a time in bed script could be a next level
            https://www.domoticz.com/forum/viewtopic.php?f=23&t=15502

            1 Reply Last reply
            1
            • D Offline
              D Offline
              diamantmatch
              wrote on last edited by
              #14

              i have tried making the MPR talk to arduino, but i could not find the right library for your code.. what lib are you using? the adafruit one just spews out errors..

              petewillP 1 Reply Last reply
              0
              • D diamantmatch

                i have tried making the MPR talk to arduino, but i could not find the right library for your code.. what lib are you using? the adafruit one just spews out errors..

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

                @diamantmatch It's the BareConductive library https://github.com/BareConductive/mpr121 (see the comments in the code for more info)

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

                1 Reply Last reply
                0
                • N Offline
                  N Offline
                  Nicolas M.
                  wrote on last edited by
                  #16

                  @petewill
                  Did you try to use the "virtual 13th pin" of the MPR121? It can be used to have the MPR121 automatically combine the values of (for example) the first four pins and was specifically designed to handle proximity detection instead of touch.
                  I wonder if this could theoretically cut down on the necessary calculations.

                  petewillP 1 Reply Last reply
                  0
                  • N Nicolas M.

                    @petewill
                    Did you try to use the "virtual 13th pin" of the MPR121? It can be used to have the MPR121 automatically combine the values of (for example) the first four pins and was specifically designed to handle proximity detection instead of touch.
                    I wonder if this could theoretically cut down on the necessary calculations.

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

                    @Nicolas-M. I never tried it. I looked into it but didn't use it because I wanted to use the same device to monitor both sides of the bed. I have wondered this on occasion as well. It would be worth looking into if you decide to build one.

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

                    1 Reply Last reply
                    0
                    • N Offline
                      N Offline
                      Nicolas M.
                      wrote on last edited by
                      #18

                      @petewill Ah okay, understandable. I thought about the pros and cons of using two MPR121, since they are extremely cheap (1-2$?), but it would mean more cables, so it would only be worth it if it improves accuracy. I finished rebuilding your setup a few hours ago but didn't have time yet to test it much, maybe I'll build the "virtual 13th pin"-variant aswell if I find the time.

                      petewillP 1 Reply Last reply
                      0
                      • N Nicolas M.

                        @petewill Ah okay, understandable. I thought about the pros and cons of using two MPR121, since they are extremely cheap (1-2$?), but it would mean more cables, so it would only be worth it if it improves accuracy. I finished rebuilding your setup a few hours ago but didn't have time yet to test it much, maybe I'll build the "virtual 13th pin"-variant aswell if I find the time.

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

                        @Nicolas-M. Yeah, they are definitely cheap. I can't remember why I wanted to do one. I guess because it was working and there was less to do.
                        One thing I would change is I wouldn't use the copper tape any more. I have found that it gets damaged (cracked/separated) rather easily. I have actually switched to a stranded copper wire (18ga I think) that I have removed from the housing and spread out flat. I make sure it's overlapping itself in somewhat of crisscross pattern. That way if one of the wires breaks it still will make connection with other wires. Hopefully that makes sense.

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

                        1 Reply Last reply
                        0
                        • I Offline
                          I Offline
                          Inso
                          wrote on last edited by
                          #20

                          May I ask why you did not "just" install an PIR to detect presence in bed?

                          petewillP 1 Reply Last reply
                          0
                          • I Inso

                            May I ask why you did not "just" install an PIR to detect presence in bed?

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

                            @Inso Unless there is another use for a PIR that I'm not aware of, a PIR will detect motion and when I'm sleeping I'm not doing much moving. :) With this sensor it knows when I'm in bed so the lights don't turn on and the blinds don't go up. Hopefully that makes sense.

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

                            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.1k

                            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