A microcontroller-based back-end framework for a functional AI robot written in C