Marscat - The Ai Cat Born From Raspberry Pi

About the project

Let's explore the technology in Marscat!😸

Project info

Difficulty: Easy

Platforms: Raspberry PiElephant Robotics

Estimated time: 1 hour

License: GNU General Public License, version 3 or later (GPL3+)

Items used in this project

Hardware components

Raspberry Pi 3 Model B Raspberry Pi 3 Model B x 1

Software apps and online services

Elephant Robotics Marscat Elephant Robotics Marscat

Hand tools and fabrication machines

Python 3.6 Python 3.6 x 1



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.

What is a Raspberry Pi?

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.

MarsCat on CES 2020

MarsCat on CES 2020

MarsCat on CES 2020

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

MarsCat, a robot home companion for people, has the potential for scientific research of AI, robotics & Raspberry Pi. The company has released its open-source code on GitHub since the AI cat was created. With a built-in Raspberry Pi, MarsCat is going to be another carnival for geeks sunk into the Raspberry Pi world in the months to come because of its perfect conditions and the ideas to be a part of Raspberry Pi ecology.


Photo of Elephant Robotics

Elephant Robotics

Elephant Robotics is a technology firm specializing in the design and production of robotics, development and applications of operating system and intelligent manufacturing services in industry, commerce, education, scientific research, home and etc.


Leave your feedback...