# Sleep Number Remote

用 ESP32 Cheap Yellow Display 通过蓝牙控制 Sleep Number 床。

Touchscreen Sleep Number bed remote for the ESP32 Cheap Yellow Display, over local Bluetooth

用 ESP32 Cheap Yellow Display 通过蓝牙控制 Sleep Number 床。

- id: giladfr-sleepnumberremote
- author: giladfr
- repository: https://github.com/giladfr/SleepNumberRemote
- license: MIT
- shape: wide
- scenes: art
- boards: ESP32
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/giladfr-sleepnumberremote/
- html_zh: https://esp32gallery.com/zh/projects/giladfr-sleepnumberremote/
- json: https://esp32gallery.com/data/catalog/projects/giladfr-sleepnumberremote.json

## Hardware

ESP32-class board. Verify the exact board revision, display, power source and wiring in the upstream build guide.

ESP32 类开发板；请在上游构建文档中核对具体板型、屏幕、供电与接线。

## English

```
Five screens replace the phone app for a Sleep Number bed with a Fuzion base: pose presets for either sleeper or both, firmness per side, head and foot sliders with a light and a stop, pairing and settings, and a diagnostics page. The board is an ESP32-2432S028R Cheap Yellow Display, with a 2.8-inch 320x240 ILI9341 panel and XPT2046 resistive touch, in a screwless 3D-printed case. It talks to the bed directly over Bluetooth with no account, cloud or Wi-Fi, sending bamkey text commands framed as fUzIoN plus length plus CRC32, after bonding gives it a session id. The screen dims after 30 s and then turns off and drops Bluetooth so the SleepIQ app on a phone can connect. Older i8 and 360 beds on the MCR protocol are not supported; some boards ship with an ST7789 panel instead and need a driver change.
```

## 中文

```
五块界面替代了手机 App：左右两侧或两人同用的姿势预设、各自硬度、床头床尾滑杆加灯光和停止、配对与设置、以及一页诊断。硬件是 ESP32-2432S028R，也就是常说的 Cheap Yellow Display，2.8 英寸 320x240 的 ILI9341 加 XPT2046 电阻触摸，外壳 3D 打印、不用螺丝。它绕开账号、云端和 WiFi，直接用蓝牙跟床通信：绑定后拿到 session id，发的指令是 fUzIoN 加长度加 CRC32 封装的 bamkey 文本命令。屏幕 30 秒后变暗，再按设置的超时关闭并释放蓝牙，好让手机上的 SleepIQ 连进去。老的 i8 和 360 床用的是 MCR 协议，不支持；有些同型号板子装的是 ST7789 屏，要改驱动。
```
