The Raspberry Pi platform is wonderful for learning coding and electronics. Pippy is a robot dog that helps you do some serious RPi coding. It comes with a 9DOF motion sensor and self-balancing function. This robot is capable of motion detection, color recognition, and tracking. It is sophisticated enough to adapt to different terrains with various gaits.
Pippy is an open source robot ready for Python programming. It has various safety features built-in (e.g. overcharge protection).