Kani Kani
An autonomous Virtual Pet that feeds on WiFi networks
The Concept: Gamifying RF Exploration
Kani Kani (“crab” in Japanese) is a modern, autonomous “Tamagotchi” project embedded on a XIAO ESP32-C6 microcontroller. Its core mechanic? The virtual pet scans its real-world environment to hunt radio frequency networks (2.4GHz WiFi) and feed on them.
The user’s exploration of physical space becomes the engine of the game: the rarity of the detected network (WPA3, WPA2, or OPEN) and the signal strength (RSSI) determine the “chests” found and the items collected to feed, heal, or entertain the creature.
Hardware & Architecture (Proof of Concept)
The hardware goal is to maintain a highly frugal and easily reproducible platform:
- Microcontroller: Seeed XIAO ESP32-C6 (which includes native LiPo charging management).
- Display: SH1106 128×64 OLED screen driven via I2C (oriented in portrait mode).
- User Interface: 3 physical buttons (GPIO with internal pull-up) and a piezoelectric buzzer.
- Power Management: Heavy optimization with a Deep Sleep system and hardware wake-up via interrupt (double press).
Gameplay & Systems Design
The software development (currently in C++ using the Arduino framework) revolves around complex simulation mechanics:
- 1-bit Sprite Design: Pipeline for creating optimized animations (32×32 sprites) for instantaneous display without a heavy frame buffer.
- Vital Statistics: Dynamic management of Energy, Hunger, Mood, and Care, all influenced by WiFi “loot”.
- Evolutionary Tree: 5 life stages (Baby, Child, Teen, Adult, Elder) influenced by the user’s behavior (their “connection profile”).
- Persistence: Storage of statistics and language settings (FR/EN) in Non-Volatile Storage (NVS).
Skills
Hard Skills
- Embedded C++ Programming: Using U8g2 for the OLED, managing interrupts, and implementing Deep Sleep.
- Networking & RF: Active scanning of the WiFi environment and processing RSSI frames.
- Game Systems Design: Creating complex gameplay loops and probability systems (Loot).
Soft Skills
- Frugal Optimization: Running a complete game with animations on a highly resource-constrained MCU.
- Rapid Prototyping: Iterative design of a hardware and software proof of concept.