MarsCat - The AI Cat Born From Raspberry Pi

MarsCat - The AI Cat Born From Raspberry Pi


Raspberry Pi is a series of small single-board computers(SBCs) developed in the United Kingdomby the Raspberry Pi Foundation in association with Broadcom.

The Raspberry Pi project originally leaned towards the promotion of teaching basic computer science in schools and in developing countries.

The original model became more popular than anticipated, selling outside its target market for uses such as robotics.

MarsCat, an AI robot cat created by Elephant Robotics, is powered by Raspberry PI 3 B(wifi)-Quad-Core ARM Cortex-A53 CPU, 1GB ARM. The API includes Type C (Data Transmission), DC JACK (Charging Cable Interface), HDMI. Learn More

Based on the open-source Raspberry PI, Marscat is able to conduct secondary developments according to geeks' novelty ideas.

Followings are the tutorial and Python scripts for further developments based on a Raspberry Pi, which is the basis for MarsCat research.



  • Connect monitor, mouse, keyboard
  • Connections: Wifi, ssh, vnc, etc

Account: pi Password: raspberry

  • Disable auto-start function before programming:
cd ~/marsai
  • Enable the auto-start function:
cd ~/marsai

Download the API
cd ~
git clone
cd marscatAPI
Basic Movements
# file: move/
# See this file for more functions

import movement

mv = movement.MoveMent()
mv.set_walk(step = 2, speed = 0.7)

Touch Test

# file: sensor/

import touch

tc = touch.Touch()

Demonstrate Eyes

# file: eye/

import eyedisplay

eyes = eyedisplay.EyeDisplay()
eyes.display_eye(ball_num = 1, lid_num = 1, ball_type = 'eye_ball', dx = 0, dy = 0)

ball_num --> int:
# Eyeball size
lid_num --> int:
# Eyelid size
ball_type --> str:
[eye_ball, ball, face, flip, heat, hug, teaser, voice,
low_power, charging, dizzy, bowlorhungry, sleep
high_temperature, hw_error]
# To select which folder the picture comes from
# eye/eyeball/
dx,dy --> int:
# Coordinates of eyeball
# (0, 0) in the middle

Play Sound
# file: sound/

import catsound

s = catsound.CatSound()

Image Recognition
# file: vision/

import vision_base

vision = vision_base.Vision()

It can recognize faces, blue balls, matching cat-friendly sticks and matching QR codes.
Voice Recognition
# file: voice/

import voice_base

Select VoiceRecognizes Language
# file: voice/ 28
def speak_config(self):
language = "Chinese"

Voice Wake up
Wake up words:
# file: voice/ 142row

# file: voice/ 152row
if ff:
Wake up successfully and enter listening mode

The files in voice/corpus/*.dic contain all the recognized words in three languages.

Testing Process




Leave a comment

Please note, comments must be approved before they are published

What are you looking for?