Smart textiles + soft robotics · UW Global Innovation Exchange
Your neck needs different support on your back than on your side, but a pillow never changes when you roll over. Our team built one that maps where your head rests and reshapes itself with six soft actuators. I led product and the system experience, from the problem framing to the closed-loop design and the final pitch.
Problem
Pillows are static. Sleepers change position many times a night, and the right support changes with them.
Bet
Sense head pressure continuously across the whole surface, then push back zone by zone, all night, in a closed loop.
Built
A 160-cell embroidered pressure sensor, cast-silicone bellows actuators, and a dashboard that fuses pillow and Apple Watch data.
My part
Problem framing, the use flow and closed-loop system design, the data pipeline, the budget, and the story we pitched.
A fabric sensor to see the head, soft actuators to move the pillow, and software to make sense of both. Every number below comes from the team's repositories, the final deck and the hardware files.
Dates reconstructed from commit history and file timestamps in the Rhino, Grasshopper and embroidery working files.
Sleep quality depends heavily on pillow shape and on how often you change position. The pillow that holds your neck well on your back is wrong the moment you turn onto your side.
No existing pillow adapts in three dimensions to how a sleeper actually moves.Finding from our scan of smart pillows
What smart pillows offer today
SleePose was a team project in the MS in Technology Innovation program. With fabrication, firmware and software moving at once, my job was to keep everyone building toward the same night: one sleeper, one pillow, one loop.
Me
Product Lead and System Experience Designer
Framed the problem and scanned existing smart pillows. Designed the end-to-end use flow, the closed-loop system and the data pipeline. Owned the budget and bill of materials, and shaped the final story and deck.
Samar Khan
Dashboard and sensor firmware
Wrote the first XIAO ESP32-C3 sensor sketch and the Streamlit dashboard, including the HealthKit groundwork for a direct watch link.
Whole team
Fabrication and assembly
Stitched and wired the sensor matrix, printed molds, cast the bellows and assembled the pillow in the GIX prototyping lab.
I designed the experience around the sleeper doing almost nothing: put on the watch, switch the pillow on, lie down. Everything after that is the system's job.
What the control unit sees
Each cycle, the 160 readings become a map like this one. The control unit smooths it, finds where the head is resting and how it's turned, and decides which of the six zones to raise or lower. When the sleeper rolls over, the map shifts and the loop starts again.
Animation is illustrative, not recorded sensor data.
The sensor had to read pressure across the whole pillow and stay soft enough that you'd never feel it. We worked from rigid parts toward a fully textile sensor, proving the readout chain at each step before scaling up.
Iteration 1
Iteration 2
Iteration 3Designed digitally, stitched by machine
Row and column traces were drawn as separate layers in Inkscape with Ink/Stitch and exported to a Janome embroidery file. Every trace routes to one edge of the fabric so the whole matrix connects at a single seam. A Grasshopper definition generated the grid geometry.
Files: Sens1.jef, Grid.gh, drawing.svg
160 cells, a handful of pins. Reading every cell directly would need far more analog inputs than an ESP32-C3 has.
We multiplexed rows and columns so the board scans the matrix through a few ADC channels. The team listed it as one of the key lessons.




To push up on the pillow, we chose soft pneumatic bellows over air bladders, so each zone could rise and fall on its own. A hollow bellows can't come off a rigid core, so we used a lost-core method: cast the inside in soap, pour silicone around it, then melt the soap out.






Mold iterations: Actuator mold.gh to Actuator mold V5.gh, 9 May to 5 Jun 2025.
On demo day the layers came together: the sensing fabric, six bellows, the pneumatics that drive them and the foam that hides them. This is the working prototype as it ran.

Program · Budget
I tracked spend against a $350 materials budget. The biggest single line was nano carbon powder for printed sensing, more than the pump, valves and tubing combined.
$263.98of $350
| Item | Qty | Unit | Total |
|---|---|---|---|
| Nano carbon powderSensing | 1 | $74.99 | $74.99 |
| 3-way valvePneumatics | 8 | $4.00 | $32.00 |
| Foam cushionComfort | 1 | $24.24 | $24.24 |
| 2-way valvePneumatics | 8 | $2.95 | $23.60 |
| Memory foam topperComfort | 1 | $22.00 | $22.00 |
| TubesPneumatics | 8 | $2.50 | $20.00 |
| Ferric chlorideElectronics | 1 | $15.00 | $15.00 |
| Velostat sheetSensing | 3 | $4.95 | $14.85 |
| Spandex fabricComfort | 1 | $13.90 | $13.90 |
| ConnectorsPneumatics | 3 | $4.50 | $13.50 |
| Air pumpPneumatics | 1 | $6.95 | $6.95 |
| 1-way valvePneumatics | 1 | $2.95 | $2.95 |
| Total | $263.98 |
The front end is a single-page Streamlit app, pushed in the two days before demo day. It puts two data sources that never talk to each other on one clock, following the pipeline I mapped: sense, smooth, fuse, then show.
Source 1 · Apple Watch
The iOS app writes minute-by-minute health files to a shared Dropbox folder. The dashboard polls it every half second and takes the latest heart-rate row. Step count stands in for movement.
Source 2 · Pressure grid
The board streams the 3 × 3 grid at 115200 baud, one row per line. The app auto-detects common macOS serial ports and draws a white-to-red heatmap.




How it guesses the sleep stage
Stage detection is rule-based and readable on purpose. It looks at the last 10 samples and checks average movement and how much heart rate varies. Rules are checked in order.
The repo also holds groundwork for a direct link: a Swift HealthKit manager streaming over WebSocket, plus small relay servers. The Dropbox route ran the demo.
| Stage | Rule |
|---|---|
| Awake | Mean movement above 0.15 |
| Deep | HR std below 3 BPM and movement below 0.05 |
| Light | HR std below 5 BPM and movement below 0.1 |
| REM | Anything else |

Prints failed, silicone spilled, cure times ate days. Planning around that was half the program work: small proofs first, parallel tracks, and a demo that would still tell the story if one layer slipped.




Material
Conductive textiles and carbon paste kept sensors inside the pillow without making it rigid.
Embedded
Sensing can live in the actuator itself, not just on top of it.
Multiplexer
Scanning rows and columns cut the ADC channels the matrix needed.
Filtering
A Gaussian filter on the pressure map balanced responsiveness against noise.
Feedback
Watch and sensor data had to be synced, and PID tuning stopped the actuators oscillating.
I reran the dashboard and reread both repositories for this write-up. Here's what the evidence supports, kept separate from what the deck promised.
Cells fabricated in the embroidered 10 × 16 sensing matrix.
Grid streamed live from the board into the dashboard heatmap.
BPM as the wearer fell asleep, from a real Apple Watch export.
At the final presentation, 3 Jun 2025.
Bug found
The exported CSVs end each row with a trailing comma, which shifts every column by one. The lookup failed and the app quietly used simulated values. A two-line parsing fix restores real data; the captures above use it.
Placeholder
Breathing rate is always generated, and the latency and sampling-rate tiles are fixed text. A next version should label simulated values in the UI.
Scope
The app parses the 3 × 3 iteration-2 grid. The 10 × 16 matrix and the actuator loop appear in the deck and the hardware files, not in either repository.
A 3 × 3 grid end to end taught us more than a 160-cell matrix with nothing reading it. Small proofs kept the demo safe.
Cure times and failed prints decide the schedule. I planned in parallel tracks so one slip didn't stop the others.
Mixing real and generated values on one screen erodes trust. Label them, every time, even in a demo.
The best parts of SleePose live in a deck and in CAD files. A shared repo with the control code would make the next team faster.
Demo day · 3 June 2025
The final presentation and demo at UW's Global Innovation Exchange, where SleePose received an honorable mention.