Source: https://mokxi.com/learn/path/pocket-pet
Updated: 2026-11-20

All paths

# Build a pocket pet

A Tamagotchi-style pet on an OLED: a screen, buttons, stats, a clock and a memory, ending with Pip.

Arduino Uno R3 Free 6 lessons 4 h 3 chapters 1,260 XP Maker · Beginner +100 XP

0 of 6 done

Start the course free A face for your pet Build it as a kit Retails for about $37, free on Mokxi. Lesson plan for teachers

What you will build

## 3 projects, built step by step

6 lessons in 3 chapters, about 4 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.

Chapter 1 project

### Three buttons and a menu

SELECT, CONFIRM and CANCEL with no resistors to fit, a menu of six icons, and why a button needs debouncing.
Open it in the simulator

Chapter 2 project

### Growing up and going to bed

A clock that counts pet minutes, an egg that hatches, a baby that grows into a kid, and a pet that gets sleepy.
Open it in the simulator

Chapter 3 project

### Meet Pip

Everything together: hatching, feeding, two mini-games, cleaning up, medicine, sleep and a pet that remembers you.
Open it in the simulator

The map

## Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

## A home for a pet

A screen to live on and buttons to talk to it with.

Open 140 XP

### A face for your pet

Wake a 128x64 OLED over two wires, write on it, and draw a pixel-art egg from flash. The first thing any pet needs is somewhere to live.

0 of 4 steps

Start What is in it

Project Locked 280 XP

### Three buttons and a menu

SELECT, CONFIRM and CANCEL with no resistors to fit, a menu of six icons, and why a button needs debouncing.

0 of 4 steps

Chapter 2

## A life in numbers

Stats that fall, a clock that counts pet minutes, and growing up.

Locked 140 XP

### A pet made of numbers

Food, joy and rest that fall a little every pet minute on a millis() clock, and buttons that put them back.

0 of 4 steps

Project Locked 280 XP

### Growing up and going to bed

A clock that counts pet minutes, an egg that hatches, a baby that grows into a kid, and a pet that gets sleepy.

0 of 4 steps

Chapter 3

## Remember, then play

Save the pet in EEPROM, then meet the whole thing.

Locked 140 XP

### A pet that remembers you

Keep the pet in the Uno EEPROM as one struct with a magic number, save when something happens, and find it again after a reset.

0 of 4 steps

Project Locked 280 XP

### Meet Pip

Everything together: hatching, feeding, two mini-games, cleaning up, medicine, sleep and a pet that remembers you.

0 of 4 steps

Syllabus

## Every lesson in the course

All 6 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

### A home for a pet

- A face for your pet Wake a 128x64 OLED over two wires, write on it, and draw a pixel-art egg from flash. The first thing any pet needs is somewhere to live.
- Three buttons and a menu SELECT, CONFIRM and CANCEL with no resistors to fit, a menu of six icons, and why a button needs debouncing.

Chapter 2

### A life in numbers

- A pet made of numbers Food, joy and rest that fall a little every pet minute on a millis() clock, and buttons that put them back.
- Growing up and going to bed A clock that counts pet minutes, an egg that hatches, a baby that grows into a kid, and a pet that gets sleepy.

Chapter 3

### Remember, then play

- A pet that remembers you Keep the pet in the Uno EEPROM as one struct with a magic number, save when something happens, and find it again after a reset.
- Meet Pip Everything together: hatching, feeding, two mini-games, cleaning up, medicine, sleep and a pet that remembers you.

Kits

## Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

The kit for this course

### Pocket Pet Kit

An Uno, a little screen, three buttons and a piezo: a pet that grows, sleeps and remembers you.
Open the kit

Have a kit already?

### Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.
See every kit

Questions

## About Build a pocket pet

Is Build a pocket pet free?

Yes. All 6 lessons of Build a pocket pet are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need a real Arduino Uno R3?

No. Every lesson runs on a simulated Arduino Uno R3 with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.

How long does Build a pocket pet take?

About 4 hours: 6 lessons in 3 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

What will I build?

Each chapter ends in a project that puts it together: Three buttons and a menu, Growing up and going to bed and Meet Pip.

Where do I start?

With "A face for your pet", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.
