# Droidputer

把 ESP32-S3 接上 Android 手机

Run open-source Cardputer apps on Android: plug an ESP32-S3 over USB-OTG and the phone is the screen, keyboard, GPS and flasher. Apps are rebuilt on demand from GitHub against a display/keyboard shim.

把 ESP32-S3 接上 Android 手机，运行 Cardputer 应用的显示与输入桥接器。

- id: fcavalcantirj-droidputer
- author: fcavalcantirj
- repository: https://github.com/fcavalcantirj/droidputer
- license: MIT
- shape: wide
- scenes: art
- boards: ESP32-S3, M5Stack Cardputer
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/fcavalcantirj-droidputer/
- html_zh: https://esp32gallery.com/zh/projects/fcavalcantirj-droidputer/
- json: https://esp32gallery.com/data/catalog/projects/fcavalcantirj-droidputer.json

## Hardware

ESP32-S3 / M5Stack Cardputer. Verify the exact board revision, wiring and power requirements in the upstream build guide.

ESP32-S3 / M5Stack Cardputer；请在上游构建文档中核对具体板型、供电与接线。

## English

```
An Android phone with an ESP32-S3 on an OTG cable takes the place of a Cardputer: the board runs the program, the phone supplies screen, a 4x14 keyboard, GPS and the flasher. Open-source Cardputer apps are recompiled unchanged against a patched M5GFX/M5Cardputer shim, which tees every pixel over the S3's native USB-Serial/JTAG and merges the phone's key and NMEA frames back into the app; apps drawing with TFT_eSPI get a second shim. The phone triggers the build, GitHub Actions runs it behind a small proxy, and the phone flashes the four parts itself. 15 apps are verified on a bare ESP32-S3 devkit; 44 of 79 app/target pairs build, 30 are refused by design, 5 wait for arduino-esp32 3.x. It needs Android 8+ with USB-OTG and the board's native USB port - a CH343 or CH9102 bridge never carries the link.
```

## 中文

```
一部 Android 手机插上 ESP32-S3，就顶替了一台 Cardputer：板子跑程序，屏幕、4x14 键盘、GPS 和烧录器都由手机提供。开源 Cardputer 应用不用改源码，只对着打过补丁的 M5GFX / M5Cardputer shim 重编，像素经 S3 原生 USB-Serial/JTAG 送到手机，手机的按键和 NMEA 语句再并回应用；用 TFT_eSPI 画图的应用另走一套 shim。手机发起编译，GitHub Actions 在代理后面跑，四个分区再由手机自己刷进去。裸 ESP32-S3 开发板上验证过 15 个应用；79 组应用与目标组合里 44 组能编译，30 组按设计拒绝，5 组在等 arduino-esp32 3.x。要求 Android 8 以上并支持 USB-OTG，板子必须走原生 USB 口，CH343、CH9102 这类桥接口接不通。
```
