Bed_Data
Concept: Create a bedAPI to control log sleep, and have a smart house system that can adjust ambiance sleep settings.
Content: FSR matrix, camera tracking, light, temperature, and noise sensors to log bed data.
Context: Your room.
Initial thoughts: We wanted to create an under mattress sensor system to detect weight shifts during sleep without the use of a camera.
Figure 1. Diagram of installation
Figure 2. Diagram of system flow.
If you want to build your own Bed_Data, you have to follow these are the hardware that you need:
FSR matrix (DIY) (72)
Camera (1)
Photocell (1)
Thermistor (1)
Microphone (1)
Arduino (1)
Terminals (12)
CD4067 (6)
Resistors (72)
Wires
We used force sensors matrix(6*12) to detect pressure on the bed. We are looking for places on the bed that you apply your force on. We are trying to understand how your bed sees you while you are sleeping.
Figure 3. Wires, force sensors and the bed
Figure 4. Force sensors
Figure 5. Terminals, sensors, wires, Arduino, multiplexers
We used terminals (with 8 inputs) to connect each line of sensor. Then on the other side, we used ribbon cables to connect terminals to multiplexer breadboard. Then we connected the sensor wires to CD4067 as our multiplexers. There is a good documentation by Tom Igoe.
Figure 6. Photocell and thermistor
We add temperature and photocell to understand what is going on in the environment. These sensors are giving us temperature and amount of light in the room. We connected all of these sensors to multiplexers and multiplexers to Arduino. Then we used Arduino code from Tom Igoe’s multiplexer example . We used 115200 boudrate for our serial communication.
Then we collect all the values in processing. We also add a webcam from the ceiling and used processing to get images. We mapped force sensor values on image to show force on different parts of the bed. Values from the force sensors are changing the transparency values of the rectangles (which represents force sensors).
We also used the microphone from the camera to get the noise level of the environment. We displayed temperature, lights values and time on the right side of the image.
Processing sketch kept taking snapshots from the processing application each 20 seconds. Then made a stop motion video of these images.
Figure 7. Bed_Data interface.
Feel free to contact us: info@beddata.com






