I have been trying to find a cheap and reliable way to detect if my bed is occupied so I can automate my house more. I have my blinds and lights automated but I didn't have a good way to prevent them from turning on or going up when we were still in bed. I experimented with various bed occupancy sensors but they were all not very reliable (they would deactivate when I rolled over and then lights would turn on- not good). I have been testing this sensor for almost two months and it has been working perfectly. In the future I plan to automate more things based on occupancy like turn on the coffee maker, silence certain voice prompts, change heating/cooling, etc.
@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.
Inso commented 8 years ago
May I ask why you did not "just" install an PIR to detect presence in bed?
petewill commented 8 years ago
@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.
Nicolas M. commented 8 years ago
@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.
petewill commented 8 years ago
@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.
Nicolas M. commented 8 years ago
@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.
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..
@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.
A forum thread is automatically created for each project and article in the OpenHardware/MySensors forum. To make comments here, you must have a separate forum user account.
Comment