OpenCat is the open-source Arduino and Raspberry Pi-based quadruped robotic pet framework developed by Petoi, the maker of futuristic programmable robotic pets.
Inspired by Boston Dynamics' Big Dog, Dr. Rongzhong Li started the project in his dorm in 2016. After one year of R&D, he founded Petoi LLC and devoted all his resources to the startup. The goal is to foster collaboration in quadruped(four-legged) robotic research, education, and engineering development of agile and affordable quadruped robot pets, bring STEM concepts to the mass and inspire newcomers (including many kids and adults) to join the robotic AI revolution to create more applications.
The project is still a complex system only for skilled makers. Yet we want to share our design and work with the community by mass production and bring down the hardware and software costs. OpenCat has been deployed on Petoi's bionic palm-sized, realistic lifelike cute robot cat Nybble and high-performance robot dog Bittle. We now have established a production line and can ship these affordable robotic kits and accessories worldwide.
This project provides a base open-source platform to create amazing programmable gaits, locomotion, and deployment of inverse kinematics quadruped robots and bring simulations to the real world via C/C++/Python programming languages. Our users have deployed NVIDIA Issac simulations and reinforcement learning on our robots. Our users have also successfully deployed OpenCat on their DIY 3D-print robot pets.
We've successfully crowdfunded these two mini robot kits and shipped thousands of units worldwide. With our customized Arduino board and servos coordinating all instinctive and sophisticated movements(walking, running, jumping, backflipping), one can clip on various sensors to bring in perception and inject artificial intelligence capabilities by mounting a Raspberry Pi or other AI chips(such as Nvidia Jetson Nano) through wired/wireless connections. Please see Petoi FAQs for more info.
Also, Check out all of the OpenCat and Petoi robot user showcases.
OpenCat software works on both Nybble and Bittle, controlled by NyBoard based on ATmega328P. More detailed documentation can be found at the Petoi Doc Center.
To configure the board:
-
Download the repo and unfold. Remove the -main (or any branch name) suffix of the folder.
-
Open the file OpenCat.ino, select your robot and board version.
#define BITTLE //Petoi 9 DOF robot dog: 1x on head + 8x on leg
//#define NYBBLE //Petoi 11 DOF robot cat: 2x on head + 1x on tail + 8x on leg
//#define NyBoard_V0_1
//#define NyBoard_V0_2
#define NyBoard_V1_0
//#define NyBoard_V1_1
- Comment out
#define MAIN_SKETCH
so that it will turn the code to the board configuration mode. Upload and follow the serial prompts to proceed.
// #define MAIN_SKETCH
-
If you activate
#define AUTO_INIT
, the program will automatically set up without prompts. It will not reset joint offsets but calibrate the IMU. It's just a convenient option for our production line. -
Plug the USB uploader to the NyBoard and install the driver if no USB port is found under Arduino -> Tools -> Port.
-
Press the upload button (->) at the top-left corner in Arduino IDE.
-
Open the serial monitor of Arduino IDE. You can find the button either under Tools, or at the top-right corner of the IDE.
Set the serial monitor as no line ending and 115200 baud rate. The serial prompts:
Reset joint offsets? (Y/n)
Y
Input ‘Y’ and hit enter, if you want to reset all the joint offsets to 0.
The program will do the reset, then update the constants and instinctive skills in the static memory.
- IMU (Inertial Measurement Unit) calibration.
The serial prompts:
Calibrate the IMU? (Y/n):
Y
Input ‘Y’ and hit enter, if you have never calibrated the IMU or want to redo calibration.
Put the robot flat on the table and don't touch it. The robot will long beep six times to give you enough time. Then it will read hundreds of sensor data and save the offsets. It will beep when the calibration finishes.
When the serial monitor prints "Ready!", you can close the serial monitor to do the next step.
- Uncomment
#define MAIN_SKETCH
to make it active. This time the code becomes the normal program for the major functionalities. Upload the code.
#define MAIN_SKETCH
When the serial monitor prints "Ready!", the robot is ready to take your next instructions.
-
If you have never calibrated the joints’ offsets or reset the offsets in Step2, you need to calibrate them. If you boot up the robot with one side up, it will enter the calibration state automatically for you to install the legs. Otherwise, it will enter the normal rest state
-
You can use the serial monitor to calibrate it directly. Or you may plug in the Bluetooth dongle, and use the Petoi app (on Android/iOS) for a more user-friendly interface. The mobile app is available on:
- IOS: App Store
- Android: Google Play
You can refer to the calibration section in the user manual (https://bittle.petoi.com/6-calibration) and Guide for the Petoi App(https://docs.petoi.com/app-guide).
- you can use the infrared remote or other applications (such as the Petoi App, python, serial monitor ... etc.) to play with the robot (https://bittle.petoi.com/7-play-with-bittle).
For updates:
- star this repository to receive timely notifications on changes.
- visit www.petoi.com and subscribe to our official newsletters for project announcements. We also host a forum at petoi.camp.
- follow us on Twitter, Instagram, and YouTube channel for fun videos and community activities.
Advanced tutorials made by users
Review, open-box, and demos by users
The old repository for OpenCat is too redundant with large image logs and will be obsolete after adding compatibility notes in the documentation.