porthole
EN УК

Porthole: games my kids and I made for a round touchscreenPorthole: ігри, які ми з дітьми зробили для круглого сенсорного екрана

Porthole is a home project: firmware for one small board, the Waveshare ESP32-S3-Touch-LCD-2.1. It is a round 2.1-inch touchscreen with a little computer behind it, about $35. With Porthole on it, the board shows a menu of ten games we made together: a pixel puppy, tilt games, a racer, a live plane radar and a few more.Porthole — домашній проєкт: прошивка для однієї невеликої плати, Waveshare ESP32-S3-Touch-LCD-2.1. Це круглий сенсорний екран 2,1 дюйма з маленьким комп’ютером позаду, близько $35. З Porthole плата показує меню з десяти ігор, які ми зробили разом: піксельне цуценя, ігри з нахилом, перегони, живий радар літаків і ще кілька.

I am sharing it as it is. If you have the same board, this page shows how to put the games on it, and the code is on GitHub if you want to change them.Ділюся ним як є. Якщо у вас така сама плата, ця сторінка показує, як записати на неї ігри, а код лежить на GitHub, якщо захочете щось змінити.

The board in its 3D-printed case, showing the Porthole game menu
On this pageНа сторінці

What it isЩо це

You plug the board into USB power and a “Who’s playing?” screen comes up. Up to four people can have a profile there. Each picks theirs, then a game from the menu. Every game keeps its progress per player, and none of them punishes you for not playing for a while.Під’єднуєте плату до живлення USB, і з’являється екран «Who’s playing?». Там може бути до чотирьох профілів. Кожен вибирає свій, а потім гру з меню. Кожна гра зберігає прогрес окремо для кожного гравця, і жодна не карає за те, що ви якийсь час не грали.

In a 3D-printed case with a small battery, the board becomes a round handheld you can carry around. Once it knows your Wi-Fi, it updates itself when I publish a new version.У надрукованому на 3D-принтері корпусі з невеликим акумулятором плата стає круглою кишеньковою консоллю. Коли вона знає ваш Wi-Fi, то сама оновлюється, щойно я публікую нову версію.

GamesІгри

All ten come in one file. Each player picks a profile, then a game.Усі десять в одному файлі. Кожен гравець вибирає профіль, а потім гру.

Pets Club

Pets Club

A pixel puppy that grows over real days and loves stories.Піксельне цуценя, яке росте з кожним днем і любить історії.

MoreБільше

It learns eight tricks and listens to 30 stories at three reading levels. Each player gets their own pup and a house on Paw Street.Вчить вісім трюків і слухає 30 історій трьох рівнів. У кожного гравця своє цуценя і будиночок на Paw Street.

Biscuit

Biscuit

A pup with a bookshelf: stories and 96 discoveries.Песик із книжковою поличкою: історії та 96 відкриттів.

MoreБільше

Branching stories, 96 illustrated discoveries, tricks and a small adventure each day. For readers who are already fluent.Розгалужені історії, 96 ілюстрованих відкриттів, трюки й маленька пригода щодня. Для тих, хто вже добре читає.

Marble Kick

Marble Kick

Tilt a marble through 12 wooden mazes.Котіть кульку нахилом через 12 дерев’яних лабіринтів.

MoreБільше

Walls, holes, moving defenders, a keeper and a goal that swings. No timer and no score.Стіни, лунки, рухомі захисники, воротар і ворота, що гойдаються. Без таймера й рахунку.

Tilt FC

Tilt FC

Street football. Tilt to run, tap to pass.Вуличний футбол. Нахил — біг, дотик — пас.

MoreБільше

Two a side plus keepers, first to three goals or three minutes. Lose by two and the next match gets easier.Двоє на двоє плюс воротарі, до трьох голів або три хвилини. Програли з різницею у два — наступний матч легший.

Pumpkin Hide & Seek

Pumpkin Hide & Seek

Grab three candies before Grandma finds you.Зберіть три цукерки, поки бабуся вас не знайшла.

MoreБільше

A cozy Halloween hide-and-seek. Slip out the door while Grandma searches with a flashlight. Get found and you just try again.Затишні хелловінські хованки. Вислизніть за двері, поки бабуся шукає з ліхтариком. Знайшли — просто пробуєте ще раз.

Radar

Radar

Real planes over your home, live.Справжні літаки над вашим домом, наживо.

MoreБільше

Callsign, route and height on a radar scope. You set home once by typing an address. Needs Wi-Fi.Позивний, маршрут і висота на екрані радара. Дім задаєте один раз, ввівши адресу. Потрібен Wi-Fi.

Starfighter

Starfighter

Bank to steer, tap to fire, fly the trench.Нахил — кермо, дотик — постріл, політ траншеєю.

MoreБільше

A retro space shooter: clear a squadron, then fly down the trench for one last shot.Ретро-стрілялка: розбийте ескадрилью, а потім летіть траншеєю до останнього пострілу.

Kingdom

Kingdom

A 40-scene story where choices matter later.Історія на 40 сцен, де вибір має наслідки.

MoreБільше

A story adventure for readers in Willowbrook. Choices, items and skills change what happens later.Пригода-історія у Віллоубруку для тих, хто читає. Вибір, речі й уміння змінюють те, що станеться далі.

Toy Town

Toy Town

Dress a doll, go to school, the café and the park.Одягніть ляльку й прогуляйтеся до школи, кафе й парку.

MoreБільше

Make art at school, buy lunch with coins at the café and solve a small mystery in the park.Малюйте в школі, купуйте обід за монетки в кафе й розгадуйте маленьку загадку в парку.

Rally

Rally

Hold it like a wheel and race on four tracks.Тримайте як кермо й мчіть чотирма трасами.

MoreБільше

Three laps against three rivals, with boosts and rockets. Best times go on a leaderboard.Три кола проти трьох суперників, з прискоренням і ракетами. Найкращий час потрапляє в таблицю.

Put it on a boardЯк записати на плату

You need the board, a USB-C cable and Chrome or Edge on a computer. About five minutes.Потрібні плата, кабель USB-C і Chrome або Edge на комп’ютері. Близько п’яти хвилин.

  1. STEP 1КРОК 1DownloadЗавантажтеporthole-<version>-factory.bin from the newest release.porthole-<version>-factory.bin із найновішого релізу.
  2. STEP 2КРОК 2ConnectПід’єднайтеPlug in the board and open esptool-js in Chrome or Edge. Press Connect and pick the board.Під’єднайте плату й відкрийте esptool-js у Chrome чи Edge. Натисніть Connect і виберіть плату.
  3. STEP 3КРОК 3WriteЗапишітьAddress 0x0, choose the file, press Program, wait about a minute. Then unplug and plug back in.Адреса 0x0, виберіть файл, натисніть Program, зачекайте близько хвилини. Потім перепід’єднайте плату.
This erases saved progress on the board. You only do it once: after that, updates arrive over Wi-Fi and keep the saves.Такий запис стирає збережений прогрес. Робити це треба лише раз: далі оновлення приходять через Wi-Fi і прогрес зберігається.
If something goes wrongЯкщо щось пішло не так

The board is not in the list: try another USB-C cable, some only charge. Close any other program or tab that might use the board, then reload esptool-js.Плати немає у списку: спробуйте інший кабель USB-C, деякі лише заряджають. Закрийте інші програми чи вкладки, що можуть використовувати плату, і перезавантажте esptool-js.

The install stopped halfway: press Program again. Nothing on the board can break; it just gets written again.Запис зупинився на півдорозі: натисніть Program ще раз. Зламати плату неможливо, просто запишеться знову.

Updates and settingsОновлення й налаштування

On “Who’s playing?”, hold the title for five seconds. This opens the settings menu. Tap Wifi, pick your network and type its password. The board keeps it only if it connects.На екрані «Who’s playing?» утримуйте заголовок п’ять секунд. Відкриється меню налаштувань. Натисніть Wifi, виберіть мережу й введіть пароль. Плата збереже її, лише якщо підключиться.

  • Once a day, while the screen is dark, the board downloads a new version. It starts the next time the board is switched on. Saves and profiles stay.Раз на день, коли екран темний, плата завантажує нову версію. Вона запуститься, коли плату ввімкнуть наступного разу. Прогрес і профілі зберігаються.
  • Stable (the default) gets a version after it has gone two days without a fix. Beta gets each new version right away.Stable (за замовчуванням) отримує версію, яка два дні обійшлася без виправлень. Beta отримує кожну нову версію одразу.
  • The same menu sets screen time, a play window and a code that locks the settings.Там само налаштовуються час біля екрана, години для гри й код, що закриває налаштування.
The version on Who's playing, the Info screen, the Wi-Fi list, an update ready to start, and the something new card

The boardПлата

The board from the front, screen on The back of the board The board from an angle

Photos:Фото: Waveshare

ScreenЕкран
2.1″ round, 480×480, touchкруглий 2,1″, 480×480, сенсорний
ChipЧип
ESP32-S3, Wi-Fi and BluetoothESP32-S3, Wi-Fi і Bluetooth
ExtrasЩе
tilt sensor, clock, buzzer, microSD, battery plugдатчик нахилу, годинник, пищалка, microSD, роз’єм акумулятора

The games are built for the flat 2.1-inch model only. I did not make them work on Waveshare’s other round boards (1.28, 1.85 and 2.8-inch) or the curved 2.1B. If you want one of those, fork the repo and add support. Send me a pull request and I’ll be happy to review and merge it.Ігри зроблені лише для пласкої моделі 2,1 дюйма. Я не адаптував їх для інших круглих плат Waveshare (1,28, 1,85 і 2,8 дюйма) чи вигнутої 2.1B. Якщо хочете одну з них, форкніть репозиторій і додайте підтримку. Надішліть pull request, і я радо його перегляну й змерджу.

3D-printed caseКорпус на 3D-принтері

I call it the puck: a round case that holds the board and a battery. Print it in PETG, add the battery and close it with three screws. No soldering. Below is the real model: turn it around, or take it apart.Я називаю його шайбою: круглий корпус для плати й акумулятора. Друкуйте з PETG, додайте акумулятор і закрийте трьома гвинтами. Без паяння. Нижче справжня модель: покрутіть її або розберіть.

Loading the 3D model…Завантажується 3D-модель…
Drag to turn, scroll or pinch to zoom.Тягніть, щоб повернути, прокрутка чи щипок — масштаб.
What you printЩо друкуватиBezel and plate (v1.1) and lid (v1.2). 84 mm across. PETG.Обідок і пластина (v1.1) та кришка (v1.2). 84 мм у діаметрі. PETG.
What you buyЩо купитиA protected 3.7 V LiPo, 2000 mAh or more, with a 1.25 mm plug. Check its polarity with a meter first: many ship reversed. M2 screws.Захищений LiPo 3,7 В на 2000 мА·год або більше з роз’ємом 1,25 мм. Спершу перевірте полярність мультиметром: багато продаються навпаки. Гвинти M2.

What I’m working on nowНад чим працюю зараз

A two-handed grip the puck snaps into, so the tilt games and Rally feel like holding a steering wheel. These are renders; it is not printed yet.Тримач на дві руки, у який вставляється шайба, щоб ігри з нахилом і Rally відчувалися як кермо. Це рендери, надрукованого ще немає.

Renders of the steering-wheel grip holding the puck

Make your ownЗробіть своє

The repo is set up so anyone can add the next game: a simulator that runs on a computer, an emulator in the browser, automatic tests and releases. Point Claude Code or Codex at it and describe the game you want.Репозиторій налаштований так, щоб будь-хто міг додати наступну гру: симулятор на комп’ютері, емулятор у браузері, автоматичні тести й релізи. Попросіть Claude Code чи Codex і опишіть гру, яку хочете.

dreamiurg/porthole on GitHub, MIT license.на GitHub, ліцензія MIT.

How this startedЯк усе почалося

It started with a small project on MakerWorld, ESP32 Plane Radar by MatixYo. A tiny ESP32 board and a 1.28-inch round screen pull live flight data from the internet and draw the planes overhead on a little radar. I built one with my kids, and then I showed them how to change it with Claude Code. They asked for changes and watched them show up on the little screen. I loved that.

Усе почалося з невеликого проєкту на MakerWorld, ESP32 Plane Radar від MatixYo. Крихітна плата ESP32 з круглим екраном 1,28 дюйма бере з інтернету дані про польоти й малює літаки над головою на маленькому радарі. Я зібрав такий із дітьми, а потім показав їм, як змінювати його за допомогою Claude Code. Вони просили зміни й дивилися, як ті з’являються на екрані. Мені це дуже сподобалося.

So we went one step further and bought a bigger round screen, this Waveshare board. In one sitting with Claude and Codex we had a couple of games running on it. Since then it has grown to ten games, a case and updates over Wi-Fi.

Тож ми пішли далі й купили більший круглий екран, цю плату Waveshare. За один підхід із Claude і Codex на ній уже працювали кілька ігор. Відтоді їх стало десять, з’явилися корпус і оновлення через Wi-Fi.