Skip to the content
2 layers80.3 × 67.7 mmTamagotchi, the printed circuit board in 3D

A custom bear-style case tamagotchi. Made by 17 y/o Heona Liu. This was my first full on hardware project, so I'm pretty proud of myself.

Size
80.3 × 67.7 mm
Copper layers
2
Thickness
1.6 mm
Parts
10
Nets
20
Pads
62
Tracks, vias
41, 0
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
15 Jun 2026
Updated
21 Jun 2026

Overview

Tamagotchi is an open-source printed circuit board by heonaliu, from the heonaliu/bear-magotchi repository on GitHub, published under the MIT licence. It is a 2-layer board of 80.3 × 67.7 mm with 10 parts on 20 nets, routed with 41 tracks and 0 vias.

It is built around the HS96L03W2C03 and SUN-12095-5VPA7.6. Its parts include 3 switches and 2 ICs. It belongs with the ESP32 and RISC-V boards of this library.

Main components

2

README

README.md

🌸 Bearmagotchi

A custom bear-style case tamagotchi. Made by 17 y/o Heona Liu. This was my first full on hardware project, so I'm pretty proud of myself. Every step was a learning process: from KiCad interface, PCB routing, OnShape building, to coding with Arduino IDE for firmware and designing a zine.

This tamagotchi has 3 stats: hunger, energy, and happiness! You can play around with the different levels by using the buttons, each mapped to different functions. This was built by following TaniWankenobi's tamagotchi PCB tutorial. All 4 faces on the bearmagotchi are custom drawn!

Why I Built This Project

I built this project because I have absolute 0 experience with hardware and wanted to learn! I find it so exciting to be able to design physical products! I'm more of a software person so working with hardware isn't easy for me. I procrastinated a lot because I was intimidated at first by hardware and its complexities, but I finally got the discipline and perseverance to start and finish this project. Throughout this project, I encountered many challenges and learning experiences, all which allowed me to further broaden my understanding of hardware and CAD. I also like cute things so this was a perfect project to build.

It took many trial and errors like learning how to solve DRC errors, rerouting, and being very confused at some points.

Overview of how it works

Bearmagotchi was built with Seeed Studio XIAO ESP32-C3 and a custom PCB built with KiCad. OnShape was used to build the case design. Arduino IDE was used to code the button's functions with the OLED screen. There are three switches that you can press, which change the status of the pet's happiness, energy, and hungriness!

Key Parts Used:

Case Showcase

TopTop Side View
BottomExploded View

PCB & Routing

TopTop Routing Layer
BottomBottom Routing Layer
Both

Schematic

Bill of Materials -- BOM:

ItemDescriptionValueLCSC PartQtyMOQTotal PriceLinks
BatteryCell battery to powerBattery_Cell--11$3.37Purchase Link
BuzzerBuzzer for audio1207-P6.5MMC49246964110$0.57Purchase Link
SwitchPush buttonTSC016A04518AC2888493350$0.54Purchase Link
OLED Display0.96" OLEDHS96L03W2C03C524808011$2.25Purchase Link
Seeed Studio ESP32-C3 MCUMCU Arduino boardXIAO-ESP32-C3-SMD--11$4.54Purchase Link
PCBMain board for building----11$4.00--
PCB ShippingTo UPS Account--------$2.50--
Total864$17.77

Structural (Screws, Nuts) -- BOM:

ItemDescriptionQtyTotal PriceLink
M3 x 25mm ScrewPH Countersunk flat head screw M3x0.5 x 25 Stainless Steel2$1.74Purchase Link
Hex Nut Grade A&BM3x0.5 Stainless Steel2$0.14Purchase Link
Total4$1.88

Step by Step Assembly

Bottom casePlace PCB on top
Place top cover aligned with the holesPut in the M3 Screws & fasten with hex nuts

Firmware

Firmware utilizes Arduino using C++, listens for button presses, and changes OLED screen accordingly.

  • Top Button: (Feed) -- makes pet less hungry
  • Middle Button: (Play) -- increases happiness, decreases energy
  • Bottom Button: (Sleep) -- sleeping (+energy)

Check out the simulation in Wokwi.com. Wokwi Link Here!

Screens

Happy (all >50)Neutral (standard)
Sad (a stat<30)Sleep (on press)

How to use it

  1. Arduino IDE > Settings and add into Additional Boards Manager URLS https://espressif.github.io/arduino-esp32/package_esp32_index.json - Click OK.
  2. Tools > Board > Board Manager -- search esp32 by Espressif Systems and install (version should be 3+).
  3. Create a fresh workspace
  4. Tools > Board > esp32 > XIAO ESP32C3
  5. Add the following libraries from Sketch > Include Library > Manage Libraries
  • Adafruit SSD1306
  • Adafruit GFX Library
  1. Link project to machine through the USB-C cord.
  2. Copy the content in bear.ino to your sketch.
  3. Click verify --> Upload to build

Credits:

Software Used

  • Arduino IDE
  • KiCad
  • OnShape
  • Visual Studio Code
  • Procreate
  • Wokwi

built with <3 by Heona Liu 2026

Parts

10
QtyValueFootprintReferences
3SW_Pusheasyeda2kicad:SW-TH_4P-L4.5-W4.5-P3.00-LS4.8SW1, SW2, SW3
1Battery_CellConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalBT1
1HS96L03W2C03easyeda2kicad:OLED-TH_L27.8-W27.2-P2.54_C9900033791U2
1LOGOSilkscreens:silkscreeG***
1SUN-12095-5VPA7.6easyeda2kicad:BUZ-TH_BD12.0-P7.60-D0.6-FDBUZZER1
1XIAO-ESP32-C3-SMDNew_XIAO_Series_Footprints:XIAO-ESP32-C3-DIP-SMDU1

The 8 most common of 10 parts.

Similar boards

  • 4 layers51 × 77 mmBODAQS A8 board v1 0, the printed circuit board in 3D

    BODAQS A8 board v1 0

    benconnor1972/BODAQS

    Bicycle Open Data Acquisition System

    120 parts9
  • 2 layers42 × 98.1 mmPendant, the printed circuit board in 3D

    Pendant

    esplo/cue2keys_resources

    Docs and other resources for Cue2Keys

    69 parts5MIT
  • 2 layers108 × 65 mmPcb moonratII, the printed circuit board in 3D

    Pcb moonratII

    PubInv/moonrat

    Moonrat: A second-generation portable incubator

    37 parts5AGPL-3.0
  • 2 layers56.8 × 66.2 mmTamagotchi, the printed circuit board in 3D

    Tamagotchi

    TaniWanKenobi/tamagotchi

    A custom PCB-based Tamagotchi virtual pet built with the XIAO-ESP32-C6!

    14 parts5
  • 2 layers60 × 90 mmCinder, the printed circuit board in 3D

    Cinder

    CircuitGuy943/CinderV2-Filament-Dryer

    (🚧) A filament dryer to precede my old one made inside a wooden box that never worked properly and didn't heat anything. Features to be estabilished

    40 parts4GPL-3.0
  • 4 layers56 × 28 mmBx tacho, the printed circuit board in 3D

    Bx tacho

    dazchi/bx-tacho

    Open DIY Beyblade X launcher RPM meter: ESP32-C3 with IR sensors and an OLED, Bluetooth (Battle Pass protocol), and a browser app for shot data and firmware updates. KiCad hardware, ESP-IDF firmware, 3D-printed case.

    51 parts3GPL-3.0
  • 2 layers180 × 110 mmPicotouch grid, the printed circuit board in 3D

    Picotouch grid

    todbot/picotouch_grid

    170 parts2GPL-3.0

Questions

How big is the Tamagotchi PCB?

It measures 80.3 × 67.7 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Tamagotchi use?

10 parts, built around the HS96L03W2C03 and SUN-12095-5VPA7.6. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Tamagotchi KiCad files?

From the heonaliu/bear-magotchi repository on GitHub, at the commit this page was made from: the board is PCB/tamagotchi.kicad_pcb and its schematic PCB/tamagotchi.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Tamagotchi design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).