Why

I think the world needs a simple portable computer where you understand everything, from the hardware to the software. Flip-up mini computers like the Psion and the Casio Diary were great, and nobody makes them anymore. CircuitPython also supports HDMI output on the RP2350, which makes a small, fully hackable, programmable pocket machine realistic.

Key features

  • MCU: Raspberry Pi Pico 2 or Pico 2W
  • Display: detachable 2.8" IPS, ST7789 over SPI, 320x240, software-adjustable backlight
  • Video out: DVI/HDMI from the HSTX peripheral, with no external video chip
  • Keyboard: 36-key QWERTY matrix (6x6)
  • Sound: AY sound emulation, built-in speaker, 3.5 mm jack
  • Storage: SD card
  • Power: single-cell Li-ion battery, USB-C charging
  • Expansion: USB-A port with extra pins (SPI/I2C/UART/GPIO), plus a Grove connector
  • BOOTSEL button: accessible through a hole in the front panel
  • Status LED: the Pico’s onboard LED shines through a translucent part of the case
  • Size: 150 x 60 x 25 mm

Two variants, one motherboard

HDMI is a very fast differential interface, and its data pins are the same ones the SPI display uses. With the display connected, the HDMI signal degrades. The picture drops out, or the monitor does not detect the signal at all.

The fix is simple: disconnect the display. So I split the project into two variants that share the same motherboard:

  • LCD version: the display is connected and the HDMI connector is not fitted.
  • HDMI version: the HDMI connector is fitted and the display is disconnected.

The 320x240 resolution matches what CircuitPython uses for HDMI output, so a GUI written for one works on the other without changes.

In the ZX emulator, hold TAB/ESC at power-on to enable HDMI. Then choose the default output in the menu and save it to the SD card. HDMI audio can be selected too.


Keyboard

The 6x6 matrix has been my go-to since the early Armachat communicator days. It is very space-efficient. It is not a full ZX Spectrum keyboard, but Phil Scull (aka FruitBat) solved the emulator controls cleverly with Shift combinations for the menu, game switching, cursor and joystick modes, and caps/num lock. The ZX software remains fully usable.

Expansion: the “fake” USB 3.0 port

The port is a USB-A 3.0 connector, but it is not used as USB 3.0. It has two rows of pins:

  • Row 1 (standard USB 2.0): +5 V, D+, D-, GND
  • Row 2 (the extra USB 3.0 row): MOSI, MISO, SCK, CS and +3.3 V

The second row is wired to the SPI bus, shared with the SD card. The pin assignment is designed so that all of the Pico’s pin modes can be used on this connector: SPI, I2C, UART or plain GPIO, depending on what the module needs. The 3.3 V pin is supplied by the Pico’s own regulator.

This allows modules that look like a USB stick but offer SPI, I2C, UART and USB at the same time.

The PCB footprint also accepts a plain USB 2.0 connector, for builds that do not need the extra row. It is a cheap, reliable, easy-to-find connector.

Other connectivity

  • Grove connector: I2C or UART. Planned uses include a GPS, a QR code reader for loading simple CircuitPython programs, and a thermal printer.
  • USB host: a switch selects between hardware USB and PIO USB. PicoZX uses hardware USB and supports a USB keyboard and gamepad.

Front panel: BOOTSEL and status LED

  • BOOTSEL button: the Pico’s BOOT button is reachable through a small hole in the front panel. You can put the board into bootloader mode and flash new firmware without opening the case.
  • Translucent LED window: the onboard LED of the Pico shines through a translucent part of the case. It is free to use for anything: a power or activity indicator, a notification light, or a debugging aid in your own programs.

Power

  • Charging uses the common TP4056 USB-C module, so parts are cheap and easy to find.
  • Battery: there is a 7 mm space under the motherboard for the cell, so any single-cell Li-ion/LiPo that fits can be used. The capacity is not fixed. 
  • Power path: when the computer...
Read more »