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.
Preview only: on the toy, type the message on its phone page and tap Send.
Web preview · The real toy reads movement from a BMI160 / MPU6050.
Your board
Choose your display
4 FORMATSFirmware detects a BMI160 / MPU6050 at startup. This selection changes the wiring diagram.
Flash it. Start playing.
Connect your board with a USB data cable, click below, and select the ESP32 port in your browser.
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.
- Install the ESP32 core: in File → Preferences, add this Additional boards manager URL, then install this version in Boards Manager.
- 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
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.
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.
- 1Hold the onboard BOOT button for 2 seconds
Enable device Wi-Fi: TiltToy-xxxx
- 2Join Wi-Fi and open the device page
Password
tilttoy32· open 192.168.4.1 ↗ in your browser - 3Choose 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.