Control a fan from sleep position
i was tired of waking up at 3 am either sweaty or freezing. Task: The user implemented a sleep-position-based fan control system using a Raspberry Pi home server running the MediaPipe pose vision model. The system detects whether limbs are exposed (indicating heat) or curled (indicating cold) and triggers a remote button pusher to physically toggle the fan. The author acts as the primary operator, monitoring the system's performance and addressing issues like blanket interference.; tools: custom-built or unnamed agent. Human role: The original post does not say how a person stayed involved.; limitations: Prerequisites include a Raspberry Pi, MediaPipe software, and a physical remote button pusher. The system has known limitations with blanket occlusion, requiring ongoing tuning. Integration uncertainty exists regarding how robustly the vision model distinguishes between blanket-covered limbs and exposed skin without specific training data..
Tools
custom-built or unnamed agent
Published on Agent Work Atlas:
Overview
i was tired of waking up at 3 am either sweaty or freezing.
Workflow
The user implemented a sleep-position-based fan control system using a Raspberry Pi home server running the MediaPipe pose vision model. The system detects whether limbs are exposed (indicating heat) or curled (indicating cold) and triggers a remote button pusher to physically toggle the fan. The author acts as the primary operator, monitoring the system's performance and addressing issues like blanket interference.
Reported result
The system successfully automates fan control based on real-time sleep posture detection. However, the author explicitly notes that the current version struggles with blanket detection, indicating incomplete reliability. No quantitative metrics on sleep quality improvement or error rates are provided in the source.
Human role
The original post does not say how a person stayed involved.
Limitations
Prerequisites include a Raspberry Pi, MediaPipe software, and a physical remote button pusher. The system has known limitations with blanket occlusion, requiring ongoing tuning. Integration uncertainty exists regarding how robustly the vision model distinguishes between blanket-covered limbs and exposed skin without specific training data.
Try it
I want to build a prototype for a sleep-position-based fan controller. I have a Raspberry Pi 4, a USB camera, and a smart plug or button pusher. Please guide me through setting up MediaPipe Pose on the Pi. Write a Python script that captures video frames, analyzes limb positions (specifically checking if arms/legs are extended vs. curled), and sends a GPIO signal or HTTP request to toggle the fan. Include a 'dry run' mode that logs decisions without actually switching the fan, so I can verify accuracy against my own sleep patterns for one night. If the script detects a blanket covering the limbs, it should log a warning rather than making a decision. Provide the code and a checklist for hardware connections.
Source reports are not independently verified. Publication date is the catalog publication date, not the original article date.