≈ esp32 / tilt toy
Phone setup ↗

SMALL DEVICE. BIG PLAY.

A little toy.
Moves with you.

Add a display and a sensor. Turn your ESP32 into a pocket toy that plays with every tilt and shake.

DIY POCKET PLAYGROUNDv0.1.4ESP32 / C3 / C6 · BMI160 / MPU6050

Try it before you build it

WEB PREVIEW
240 × 240 / GC9A01
ROLL +0°LIQUIDPITCH +0°
Water colour
Drag on the screen to stir
Colour theme

Web preview · The real toy reads movement from a BMI160 / MPU6050.

FLIP from Ten Minute Physics ↗ · MIT license

Build your little playground

USB INSTALLER
01

Your board

ESP32-C6 SuperMiniFlash 4 MB · USB data cable
✓

02

Choose your display

4 FORMATS

Firmware detects a BMI160 / MPU6050 at startup. This selection changes the wiring diagram.

03

Flash it. Start playing.

Checking firmware…

Connect your board with a USB data cable, click below, and select the ESP32 port in your browser.

Flash over USB with desktop Chrome / Edge.Open this page over HTTPS or localhost to flash.

Experimental · All profiles compile · Physical display testing is still needed.

Edit the code in Arduino IDE+

One .ino file for the selected board and display, with all project code inside. The flash button above needs no setup; use this when you want to change the code.

  1. Install the ESP32 core: in File → Preferences, add this Additional boards manager URL, then install this version in Boards Manager.
  2. Install these libraries in Library Manager:
    • Choose these in the Tools menu:
    • Open the .ino (Arduino IDE offers to create its sketch folder), click Upload, then open Serial Monitor at 115200.

    If the upload says "No serial data received": hold BOOT, press and release RST, release BOOT, then upload again. Upload Speed 115200 can also help.

    Show code+
    See the components and wiring↓
    No port, or a blank display?+

    Try a USB data cable, close Serial Monitor, and hold BOOT while plugging in USB. Release BOOT and try flashing again.

    Modules may need different inversion or SPI settings; change them from the device web page. An offset ST7735 image or an SH1106 OLED needs an adjusted profile and a new build.

    The installer offers installation and erase options. Erasing flash deletes saved settings.

    CONNECT THE LITTLE THINGS

    See every part. Connect every pin.

    Click a wire or connection to see both pins. Scroll the diagram sideways on mobile.

    Headers follow common board and module layouts. If your module has a different pin order, follow its printed labels.

    Use modules compatible with 3.3V power and logic. Connect all grounds together.

    Display module reference ↗

    AFTER THE FIRST FLASH

    Every mode. One little device.

    Choose modes and settings from your phone, then turn off Wi-Fi and keep playing.

    1. 1
      Hold the onboard BOOT button for 2 seconds

      Enable device Wi-Fi: TiltToy-xxxx

    2. 2
      Join Wi-Fi and open the device page

      Password tilttoy32 · open 192.168.4.1 ↗ in your browser

    3. 3
      Choose a mode, save, and turn off Wi-Fi

      Adjust water level, sensitivity, rotation, and BMI160 / MPU6050 gyro calibration.
      Tap BOOT to change modes. Wi-Fi turns off after 3 minutes.
      No Wi-Fi? Open the Serial Monitor at 115200 to see the button, Wi-Fi, and reset messages.