I though I'd share this little robot project I've recently got in almost-finished state.
It uses the MPU-6050 6 axis IMU sensor to stay balanced on two wheels. The sensor fusion / orientation calculation is entirely done on the ESP8266 in Q16.16 fixed point number format. I'm using a WEMOS D1 mini board.
The software is built on the non-OS SDK, making good use of the excellent libesphttpd to communicate with a HTML5 / JavaScript control UI via a WebSocket.
This has been a pretty challenging and rewarding project!
I've written a writeup / blog-post on it:
https://flannelhead.github.io/projects/espway.html
Code and schematic on GitHub:
https://github.com/flannelhead/espway