Smart textiles + soft robotics · UW Global Innovation Exchange

SleePose

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.

My role
Product Lead and System Experience Designer
Timeline
Apr to Jun 2025 · 6 weeks
Built
Textile sensor, soft actuators, live dashboard
Result
Honorable mention · demo video
The team assembling SleePose: a foam pillow with six circular cut-outs held over six blue silicone bellows on a base plate, with the relay board, pump, sensor wiring and a yellow 3D-printed enclosure on the bench
Working prototype · demo day, 3 Jun 2025

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.

Overview

Six weeks, three layers, one loop.

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.

160pressure cells in the final 10 × 16 textile matrix
6independent soft bellows actuators, one per zone
3sensing iterations, from rigid FSRs to embroidered velostat
5actuator mold versions modelled in Grasshopper
$264materials spent of a $350 budget, $86 left over
  1. 22 AprFirst signalOne pressure sensor read across two conductive threads on a XIAO ESP32-C3.
  2. 6 MayPillow modelledFull assembly in Rhino.
  3. 9 to 20 MayActuator moldsMold V1 to V3 in Grasshopper. Laser-cut enclosure panels.
  4. 29 MayElectrodesTop and bottom electrode patterns drawn.
  5. 1 JunMatrix stitched10 × 16 layout exported to embroidery. First Apple Watch export.
  6. 2 JunDashboard liveWatch and pressure data in one view.
  7. 3 JunDemo dayFinal presentation. Honorable mention.

Dates reconstructed from commit history and file timestamps in the Rhino, Grasshopper and embroidery working files.

ProblemMarket scan

Pillows are static. Sleepers aren't.

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

  • Up to 3 inflatable air zones, adjusted in coarse steps
  • A microphone that inflates when it hears snoring
  • A Bluetooth pump with about 8 hours of battery
  • Reacts to one symptom, not to position

What SleePose proposed

  • A pressure array that maps head orientation, sleep position and pressure points continuously
  • Six actuators, each reshaping one zone
  • Closed-loop control that keeps adjusting until morning
  • A sleep profile built from pillow data plus wearable data
Starting pointOwnership

A hardware build with a product owner.

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.

Problem framingMarket scanUse flowClosed-loop system designData pipelineBudget and BOMFinal pitch
System designUse flow

A loop that runs all night.

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.

  1. Power onThe sleeper wears an Apple Watch and switches the pillow on.
  2. CalibratePillow sensors and watch calibrate automatically.
  3. SettleThe sleeper lies down and finds a position.
  4. SenseThe pressure array samples at a 10 to 20 Hz design rate. The watch logs heart rate and movement.
  5. FuseThe control unit smooths the pressure map and combines it with watch data.
  6. ActuateBellows under each zone inflate or relax to adjust support.
  7. ReportSleep metrics go to the dashboard.
  8. RepeatMonitoring and adjustment continue until morning.

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.

10 × 16 matrix · illustrative, not sensor dataOn back
HardwareIteration

Three tries at a sensor you can sleep on.

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.

Round force-sensitive resistors wired to a breadboardIteration 1
Off-the-shelf FSRs. Proved the readout chain, but rigid and sparse inside a pillow.
Grey fabric with stitched conductive thread and alligator clipsIteration 2
Conductive thread + velostat, 3 × 3. Each crossing of stitched rows and columns becomes a pressure cell. The dashboard reads this version.
Pillow-sized fabric with embroidered traces folded back over a black velostat sheetIteration 3
Final 10 × 16 matrix. Machine-embroidered electrodes on pillow-sized fabric, velostat between the layers.
4discrete sensors on a breadboard
9cells, hand-stitched
160cells, machine-embroidered

Designed 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.

Row trace layout with 16 parallel traces routed to one edge
Row layer. 16 traces routed to one edge.
Column trace layout, an earlier denser draft
Column layer. An earlier, denser draft.
Top electrode pad pattern
Top electrode pad pattern.
Bottom electrode pattern set crosswise
Bottom electrode, set crosswise to the top.
HardwareSoft robotics

Silicone bellows, cast around soap.

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.

Cast blue bellows hanging in a laser-cut wooden jig above a yellow printed mold
Step 1Mold and soap core. The cast part hangs in a laser-cut jig.
Bellows hanging in an oven with a bowl underneath to catch melted soap
Step 2Soap melting. In the oven, the core drains into a bowl below.
Yellow 3D-printed mold halves, a soap core and a finished blue bellows
Step 3Capping. Printed mold halves and the end cap that seals the bellows.
Finished blue silicone bellows actuator, upright, with an air line
Finished actuator with its air line.
Finished bellows tilted, showing it flex
Soft by design. The bellows flexes and tilts under load.
Bellows with black carbon paste painted across its folds
Embedded sensing test. Carbon paste across the folds, to build a sensor into the actuator itself.

Mold iterations: Actuator mold.gh to Actuator mold V5.gh, 9 May to 5 Jun 2025.

PrototypeIntegrationBudget

Everything on one bench.

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.

Walkthrough. A pan across the assembled prototype, 3 Jun 2025.
Six blue silicone bellows on a base plate with air lines running to a relay board and pump, the foam pillow with circular cut-outs tilted up behind them
Under the pillow. Six bellows on the base plate, each on its own air line from the pump, valves and relay board. The foam lowers over them, one cut-out per bellows.
  1. Foam pillow with a cut-out over each actuator
  2. Six bellows fixed to a base plate
  3. Pump, valves, relays one air line per zone
  4. Sensor + XIAO board matrix wiring to the controller
  5. Printed housing 3D-printed, shown open
  6. Apple Watch heart rate and movement

Program · Budget

Built for $264.

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

Sensing and electronics$104.84
Pneumatics$99.00
Comfort layer$60.14
Left in budget$86.02
ItemQtyUnitTotal
Nano carbon powderSensing1$74.99$74.99
3-way valvePneumatics8$4.00$32.00
Foam cushionComfort1$24.24$24.24
2-way valvePneumatics8$2.95$23.60
Memory foam topperComfort1$22.00$22.00
TubesPneumatics8$2.50$20.00
Ferric chlorideElectronics1$15.00$15.00
Velostat sheetSensing3$4.95$14.85
Spandex fabricComfort1$13.90$13.90
ConnectorsPneumatics3$4.50$13.50
Air pumpPneumatics1$6.95$6.95
1-way valvePneumatics1$2.95$2.95
Total$263.98
SoftwareData fusionSignal processing

One screen for the watch and the pillow.

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

Watch→Health Auto Export→Dropbox CSV→Dashboard

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

Velostat grid→XIAO ESP32-C3→USB serial→Heatmap

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.

localhost:8501 · SleepPose
SleepPose dashboard with a control panel, live heart rate, movement, breathing and sleep stage, and three live signal charts
Live viewStart, Stop and Clear in the sidebar, with connection status for the watch and the board. The top row shows heart rate, movement, breathing rate and inferred sleep stage. The heart-rate trace replays a real night: it falls from 100 BPM to the mid 40s as the wearer falls asleep.
3 by 3 pressure heatmap with peak pressure location
Pressure map. The 3 × 3 grid scaled 1 to 2 V, with the peak cell called out. Values here are simulated; no sensor was attached for this capture.
FFT of heart rate next to bandpass filtered signals
Signal processing. An FFT of the heart-rate buffer beside two Butterworth bandpass filters: sleep rhythm (0.01 to 0.1 Hz) and breathing coupling (0.1 to 0.5 Hz).
Signal quality and algorithm performance metrics with a sleep stage bar chart
Performance view. SNR estimate, filter noise reduction, HR variability, a movement-based efficiency score and stage counts.

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.

StageRule
AwakeMean movement above 0.15
DeepHR std below 3 BPM and movement below 0.05
LightHR std below 5 BPM and movement below 0.1
REMAnything else
Dashboard idle state showing a numbered setup guide
Idle state as onboarding. Before Start is pressed, the page doubles as a setup guide: install Health Auto Export, check Dropbox sync, plug in the board, then start.
What brokeWhat we learned

Hardware fails in public.

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.

Resin printer vat with debris from a failed print
Failed resin print. A mold print broke partway, leaving debris in the vat.
Uncured white silicone spilled across a bench around open yellow mold halves
Silicone spill. Uncured silicone ran out around opened mold halves.
Three black lines of carbon paste on pink paper
Carbon paste trials. Conductive carbon traces tested on paper first.
White 3D-printed mechanical prototype with many radiating pegs
Mechanical study. A printed mechanism from the team's reflections on mechanical design.

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.

ResultsMeasured vs next

What we proved, and what's still a pitch.

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.

Measured160

Cells fabricated in the embroidered 10 × 16 sensing matrix.

Measured3 × 3

Grid streamed live from the board into the dashboard heatmap.

Measured100 → 46

BPM as the wearer fell asleep, from a real Apple Watch export.

RecognitionHonorable mention

At the final presentation, 3 Jun 2025.

Built and demonstrated

  • Three sensing iterations, ending in a 160-cell textile matrix
  • Cast-silicone bellows actuators, five mold versions
  • Dashboard fusing live pressure and watch data, with DSP and rule-based staging
  • Delivered $86 under a $350 budget

Bug found

Watch data fell back to simulation

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

Some numbers aren't measured

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 dashboard reads the prototype

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.

Reflection

What I'd tell the next team.

Prove the loop small, then scale it.

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.

Hardware sets the pace.

Cure times and failed prints decide the schedule. I planned in parallel tracks so one slip didn't stop the others.

Name what's simulated.

Mixing real and generated values on one screen erodes trust. Label them, every time, even in a demo.

Keep the work where the story is.

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.

Classmates gathered around the SleePose demo table A teammate lying on the SleePose pillow during the live demo

Demo day · 3 June 2025

See it running

The final presentation and demo at UW's Global Innovation Exchange, where SleePose received an honorable mention.