Embedded system for a Ballbot robot