Let a sleep pose trigger a fan
They built a Raspberry Pi setup that watches sleeping posture and flips a fan on or off with a remote button pusher.
- What they did
- They ran a MediaPipe pose model on a Raspberry Pi home server with a camera aimed at the sleeping person. The system checked body position in real time and sent commands to a button-pushing device: an outstretched arm or leg meant fan on, while curled arms meant fan off. The person set the pose rules and installed the hardware.
- How it went
- The fan can switch itself overnight without waking the user. It still has trouble when blankets obscure the body, and work is ongoing to improve that.
- Tips
- Start with a test mode that only logs detected poses before tying it to any physical control. Expect bed covers to make pose detection less reliable.
Try it yourself with Claude Code
Help me build a [Raspberry Pi model] setup with a camera that watches for my sleeping pose using a pose-detection model. I want it to log detections first, then, only after I approve, trigger a [fan / relay / smart plug / remote button pusher] when it sees [pose A] and switch it off when it sees [pose B]. Write the code, hardware steps, and a safe test mode that does not control anything yet. Stop and ask for confirmation before enabling any action that could power on, power off, send, or submit anything.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Track exercise and eating logs in separate sheets
A developer made an agent that saves workout and nutrition updates from chat into different spreadsheets and can later review them.
Centralize control of a connected house
An agent explored a home network, decoded several device interfaces, and assembled one place to run the whole house.
Build a tutoring loop that tests, teaches, and retests
Hugh Shbalz set up an agent to assess students, create lessons for weak spots, and check mastery again afterward.
Pull school dates from emails and flyer photos
A family organizer can turn forwarded school messages and flyer images into calendar entries and reminders.
Delegate server, contract, and inbox tasks to one agent
A self-made agent handled server fixes, invoice replies, provider chats, contract cleanup, and a GDPR request from one place.
Draft tailored job materials before you apply
A commenter had an agent prepare role-specific CVs and cover letters so they could review and edit before submitting applications.