Bed Occupancy Sensor

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.

Here is the How To video:

Here is the wiring diagram: ![enter image description here](https://www.openhardware.io//uploads/56fc30cde081eca322f51738/image/Fritzing Bed Occupancy Wiring.png "enter image title here")

Images

Source Code

NameSize# Downloads
BedOccupancySensor.ino9.16 kB7161

Bill of Material

QtyValueDevicePackagePartsDescriptionMFMPNAliexpress or ebay link
11.99Arduino Pro Minihttp://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&pub=5575069610&toolid=10001&campid=5337433187&customid=&icep_item=200914924969&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lg
12.09MPR121http://www.ebay.com/itm/MPR121-Breakout-V12-Capacitive-Touch-Sensor-Controller-Module-I2C-Keyboard-DX-/271721473633?hash=item3f43dca661:g:jdQAAOSwyZ5Unqs6
11.00NRF24L01+http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&pub=5575069610&toolid=10001&campid=5337433187&customid=&icep_item=400594940658&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lg
20.024.7k Resistorshttp://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&pub=5575069610&toolid=10001&campid=5337433187&customid=&icep_item=251425842791&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lg
11.98Copper Tapehttp://www.ebay.com/sch/i.html?_from=R40&_trksid=p2047675.m570.l1313.TR0.TRC0.H0.X5mm+X+30m+1+Roll+EMI+Copper+Foil+Shielding+Tape+Conductive+Self+Adhesive+Barrie.TRS5&_nkw=5mm+X+30m+1+Roll+EMI+Copper+Foil+Shielding+Tape+Conductive+Self+Adhesive+Barrier&_sacat=0
2Free?USB Cables
20.06LEDshttp://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&pub=5575069610&toolid=10001&campid=5337433187&customid=&icep_item=141364331524&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lg
10.054.7uF Capacitorhttp://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&pub=5575069610&toolid=10001&campid=5337433187&customid=&icep_item=321142501923&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lg

Gateways

Sensors & Actuators

Comments