MINTIA Micropython Console

by 陳亮 in Circuits > Microcontrollers

117 Views, 1 Favorites, 0 Comments

MINTIA Micropython Console

IMG_0523.jpeg
MINTIA Console Micropython Tetris

This instructables show how to use a XIAO dev board turn a MINTIA box to a game console.

Supplies

  1. MINTIA Box
  2. Seeed Studio XIAO RP2350
  3. 1.54" 240x240 ST7789 IPS Display Module
  4. 252540 Lipo battery
  5. Six 3x6x2.5mm tactile button
  6. Two 12x12mm tactile button
  7. One 3.5x9mm slide toggle power switch
  8. 12x12mm copper heatsink (optional)

About MINTIA

Mintia is a highly popular Japanese brand of sugar-free breath mints manufactured by the Asahi Group. Famous for their intense cooling and pocket-friendly design, they are a staple on-the-go refreshment in Japan and across Asia.


This is my third instructables using MINTIA. This box has always been on my desk, so I've been wanting to upcycling it.


Previous instructables links:

https://www.instructables.com/Game-MINTIA/

https://www.instructables.com/Arduino-MINTIA-Game-Console-in-a-Candy-Box/

3D Printed Box Back Panel

IMG_0408.jpeg
IMG_0461.jpeg

In previous 2 projects, I patch the back cover to become a console panel. This time, I removed the back cover and then 3D print the console panel. This helps to arrange the components more neatly.

Please download and 3D print the panel at Thingiverse:

https://www.thingiverse.com/thing:7372703

Software Preparation

Please follow official guideline to install Micropython on XIAO RP2350:

https://wiki.seeedstudio.com/getting-started-xiao-rp2350/


Optional Decoration

IMG_0414.jpeg
IMG_0416-ezgif.com-optimize.gif

This 12x12mm heatsink was originally designed for the Raspberry Pi Model 3B+, but it is also a great accessory for the Raspberry Pi Pico 2 gaming console.

Soldering Work

IMG_0464.jpeg
IMG_0465.jpeg
IMG_0467.jpeg
IMG_0469.jpeg
IMG_0470.jpeg

Since the display module will hide the select and start buttons, it is better soldering all buttons GND first. And then breakout the select and start button pins. While soldering, remember tidy up the wires and reserve room at bottom left for the Lipo battery.

Here are the connection summary:

Seeed Studio XIAO RP2350 ST7789 others
======================== ====== =================
GND --------------------> GND -> all tactile buttons
3.3V -------------------> VCC
D4(GPIO6) --------------> SCL
D5(GPIO7) --------------> SDA
D9(GPIO4) --------------> RST
D18(GPIO9) -------------> DC
D3(GPIO5) --------------> CS
D16(GPIO12) ------------> BL
D6(GPIO0) ---------------------> UP tactile button
D7(GPIO1) ---------------------> DOWN tactile button
D8(GPIO2) ---------------------> LEFT tactile button
D10(GPIO3) --------------------> RIGHT tactile button
D14(GPIO16) -------------------> SELECT tactile button
D13(GPIO17) -------------------> START tactile button
D11(GPIO21) -------------------> A tactile button
D12(GPIO20) -------------------> B tactile button
BAT- --------------------------> power switch -> Lipo battery -ve
BAT+ ------------------------------------------> Lipo battery +ve

MINTIA Cover Patch

MINTIA Cover Patch for console back cover
  1. Split the box into 2 parts
  2. Use cutting plier cut off the protruding part
  3. Assembly with the console back cover

Note:

As same as the MINTIA box, this is a no screw design. Simply push and clicky to fix the cover.

Micropython Test Play

螢幕截圖 2026-06-21 上午9.37.47.png

MicroPython is an easy-to-program language, perfect for beginners. With the help of AI, you can easily bring your ideas to life. E.g., a Tetris example, as show at the above video.

I had used below prompt to generate my Tetris example code:

xiao rp2350 micropython tetris game
complete micropython code for Tetris game with st7789 and push buttons
show next block

If you run code with error, report to AI for regenerate code, e.g.:

ValueError: too many values to unpack (expected 2)

You can find the sample code at GitHub:

https://github.com/moononournation/ProjectMINTIA/tree/main/MicroPython/Tetris


Note:

Please remember to modify the pin definitions in the code accordingly based on your soldering situation.

Happy Coding!

Now you can learn programming using your own dedicated, decent dev device.

Redesign Notes

  1. The design of cross buttons is not sensitive enough, should be redesign soon
  2. The charging circuit only works if power switch turned on and USB plugged
  3. Current design is 8mm thick but MINTIA only around 6.6mm, the target is trim 1.4mm
  4. Add sound output

Reprogram Dev Board

IMG_0484.jpeg

The back cover reserved 2 holes to access XIAO dev board RUN and RESET buttons. You may need something like SIM ejector pin to access the buttons while you want reprogram the dev board.