Home Creators Posts Import Register Favorites Logout

Content

If you were to take a look through my Kickstarter backer history or (the sorts of targetted ads I get on Facebook), you'll see that I'm a sucker for cute little "robot companions" - Cozmo, Vector, Loona, Eilik, Ortomi, ....  the thing they all have in common is very expressive eye animations on a small OLED display, which allows them to communicate being angry, sad, happy, etc. etc. 

I've seen a few software libraries that attempt to recreate this on an Arduino/ESP32, but they generally do so using pre-rendered frames of animation. That's a very slow and expensive technique on an tiny embedded microprocessor; you'll likely run out of memory before you'd saved even a few full frames of animation.

Then, I found one library by Luis Llamas that used a completely programmatic technique - drawing each eye based on blending variables for each expression. Perfect! The only problem was, I couldn't actually get it to work on real hardware :(

Anyway, fast-forward a few months, and I'm happy to announce my own rewritten version of the "esp32-eyes" repository, which you're welcome to try out. Attached video shows a little demo of how to adjust the weight of three different behaviours, as well as control the look direction and blink with a little joypad.

You can find the library here: https://github.com/playfultechnology/esp32-eyes

Or, you can try an online simulator (which runs at potato FPS): https://wokwi.com/projects/378211314328869889

On the subject of exciting robot tech, I'll be travelling to Tokyo at the end of the week, so I probably won't be responding to any contacts for a short while - do please nag me when I get back if you need support with anything!

Comments

No comments found for this post.