Airmouse
SkillDev toolsUse this skill when the user asks to start an air mouse, IMU mouse, or pointer control from device motion. The script reads BMI270 samples through imu, runs quaternion pose mapping, and sends relative mouse reports through blehid.
Use Airmouse in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add Airmouse and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the Airmouse skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; Ahel provides instructions and does not run this skill.
No other account needed.
Add Ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
About this skill
ESP-Claw Skills Lab
What this skill tells your AI
The instructions your AI receives, as published by espressif/esp-claw-skills-lab in skills/air_mouse/SKILL.md and read by Ahel’s review.
Use this skill when the user asks to start an air mouse, IMU mouse, or pointer
control from device motion. The script reads BMI270 samples through imu,
runs quaternion pose mapping, and sends relative mouse reports through ble_hid.
On the LCD, the screen is split horizontally:
- Top half press/hold → mouse right button down until release
- Bottom half press/hold → mouse left button down until release
- Mid strip (divider) → scroll wheel: swipe left = wheel up, swipe right = wheel down
Quick double-taps on left/right zones are timed for host double-click (HID down/up before UI redraw).
A trackball-style icon (from the provided SVG) is drawn near the center; LEFT/RIGHT labels sit on the left side of the screen (rotated 90° CCW).
Start Airmouse (async, long-running)
Prefer async so the loop keeps running until cancelled:
{"path":"{CUR_SKILL_DIR}/scripts/start_air_mouse.lua","args":{"name":"esp-claw-airmouse"},"timeout_ms":0,"name":"air_mouse"}
Use lua_run_script_async (or router run_script with "async": true).
timeout_ms: 0 means run until cancelled.
Script Args Schema
{
"type": "object",
"properties": {
"name": {
"type": "string",
"default": "esp-claw-airmouse",
"description": "BLE HID advertised name (max 29 bytes)"
},
"interval_ms": {
"type": "integer",
"default": 10,
"minimum": 1,
"description": "IMU poll period in milliseconds"
},
"gain": {
"type": "number",
"default": 20,
"description": "Cursor sensitivity gain applied to UV deltas"
},
"dead_x": {
"type": "number",
"default": 0.05,
"description": "UV deadzone on X"
},
"dead_y": {
"type": "number",
"default": 0.05,
"description": "UV deadzone on Y"
},
"max_dx": {
"type": "integer",
"default": 20,
"minimum": 1,
"maximum": 127
},
"max_dy": {
"type": "integer",
"default": 20,
"minimum": 1,
"maximum": 127
}
}
}
Recommended Flow
- Start the script async with the schema above.
- Pair the host with the advertised BLE HID name.
- After
connected, tilt/point the device to move the cursor. - Short-tap LCD top/bottom for right/left click (double-tap supported); hold/drag for press-and-hold. Swipe on the mid divider: left = scroll up, right = scroll down.
- Stop with
lua_stop_jobusing job nameair_mousewhen finished.
Signals
- GitHub stars
- 34
- Forks
- 17
- Last commit
- Sep 2026
Advanced
- Item type
- skill
- Key
air-mouse- Source
- github.com/espressif/esp-claw-skills-lab
github.com/espressif/esp-claw-skills-lab