Skip to the content
4 layers100 × 50 mmPicostation, the printed circuit board in 3D

3D games console based on RP2040 and iCE40 UP5k

Size
100 × 50 mm
Copper layers
4
Thickness
1.6 mm
Parts
78
Nets
103
Pads
370
Tracks, vias
628, 189
Pours
13
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
1 Feb 2021
Updated
14 Feb 2021

Overview

Picostation is an open-source printed circuit board by Wren6991, from the Wren6991/PicoStation3D repository on GitHub, published under the CC0-1.0 licence. It is a 4-layer board of 100 × 50 mm with 78 parts on 103 nets, routed with 628 tracks and 189 vias.

It is built around the RP2040, W25Q128JVSIQ and NCP115ASN330. Its parts include 31 capacitors, 26 resistors, 7 connectors, 5 ICs and 2 diodes. It belongs with the fPGA and programmable logic boards and the RP2040 and FPGA and CPLD boards of this library.

Main components

3

README

Readme.md

PicoStation 3D

Top view of board, showing an RP2040 microcontroller, iCE40 UP5k FPGA, 8MB HyperRAM, HDMI socket, micro SD receptacle, audio jack, two SNES controller ports, micro USB for power + data.

This is an unfinished, untested project to develop a 3D games console based on an RP2040 microcontroller and an iCE40 UP5k FPGA. Quick links:

From left to right, the components on the top edge are:

  • A 3.5mm TRS audio jack, connected straight to RP2040 GPIOs via an RC filter (no separate audio supply on this board rev)
  • A status LED for the RP2040
  • A micro SD receptacle connected to the RP2040
  • A micro USB socket providing power to the board, and code download and serial comms via the RP2040
  • A status LED for the FPGA
  • An HDMI socket for DVI-D video output, connected to the FPGA

The bottom edge has two SNES controller sockets. Also on the board is an 8MiB HyperRAM connected to the FPGA.

There is a RESET and BOOTSEL button for the RP2040, for quick firmware updates over USB, but the debug header (UART + SWD) is a better solution for iterating and developing code.

There are 12 wires connecting the FPGA to the microcontroller, one of them going from a GPOUT clock output on the RP2040 to a GB_IN global clock input pin on the UP5k. The intention is to use these for an 8 bit parallel bus with a free-running clock, a valid-ready handshake and an IRQ line, and for the UP5k to derive its internal clocks from the bus clock. This interface overlaps with the pins required to load the FPGA's internal configuration memory (and the RP2040 also has control of the UP5k's reset) so there is no separate external flash required for the UP5k.

Board Use Cases

  • Run everything, including graphics routines, on RP2040, and use the UP5k as a parallel to DVI-D bridge -- see here for a quick demo of some scanline blitting on RP2040

  • Run everything, including a soft processor, on the UP5k, and use RP2040 as a surprisingly cost-effective USB-serial bridge, as well as for firmware upload. You'll need some kind of shell running on the RP2040 to provide audio and controller port access from the FPGA

  • Run game logic, audio, controller access and SD card access on RP2040, put all the graphics hardware in the UP5k (with the local 8MB HyperRAM as VRAM, plus the UP5k's internal 128k SPRAM)

  • Run 3D vertex-side operations on RP2040, and put 3D fragment-side hardware on the FPGA

Project Status

I've laid out a first iteration of the board, and have soldered up a prototype, but haven't had the chance to bring up the board or write any firmware, thanks to being a bit overloaded with the launch of RP2040 itself!

Front view of a prototype board, showing the two SNES controller connectors soldered to the front

Top detail of a prototype board, showing the RP2040 microcontroller, iCE40 UP5k FPGA, and HyperRAM. The controller ports are labelled player 0 and player 1.

Rear view of a prototype board, showing left to right the HDMI socket, FPGA LED, USB socket, SD card slot, microcontroller LED, and audio jack.

There are questionable decisions in the schematic (in particular the power chain violates the UP5k's sequencing requirements) so you shouldn't copy what you see here, but I'm posting this anyway because it might inspire somebody to make something better, and that is more important than me being embarrassed about my shoddy design work.

You can find a proof of concept for direct DVI output from a UP5k FPGA in this repo.

I've also managed to squeeze RISCBoy plus a DVI output onto a UP5k. Still need to push that code but you can see a video of it I tweeted. This shows you can fit plenty of interesting graphics hardware (and in this case a RISC-V processor) into a UP5k whilst generating DVI-D signals.

Known issues with rev A:

  • Digital supply noise is audible through the audio jack. This could be improved by a separate LDO'd audio supply with a dual logic buffer, or just by deleting this output and doing digital audio through the video connector on the FPGA.
  • The FPGA core supply comes from RP2040's LDO, to try and keep part count to an absolute minimum. This gives a fast ramp to 1.1 V shortly after the 3.3 V IO supply comes up, and a second ramp to 1.2 V some milliseconds later when software adjusts RP2040's core regulator. This is all quite questionable, and part of the point of Rev A is to find out whether I can get away with this.
  • The controllers are only accessible from RP2040, not the FPGA. This is not a huge issue, but it would be more fun as an FPGA platform if they were moved to the FPGA, or perhaps even make the CLK and LAT line open-drain, and connect the controllers to both FPGA and RP2040.
  • There is no separate configuration flash for the FPGA. Instead the microcontroller stores the bitstream in its flash, and writes this into the FPGA's configuration memory at boot. This should work fine but it's a less familiar development flow for those using this as an FPGA board, and it might be nice for pure-FPGA games consoles to have some local flash to access. Again, I'm trying to see how little hardware I can get away with, and this might have been a misstep.
  • The SNES controller sockets are transposed left-to-right compared with an actual SNES.
  • Double-sided component load makes it annoying to reflow this board at home, and adds cost if you want to get it PCBA'd.

If you have read all the way to the end and you have spotted something else that irritates you about this design, please raise an issue! It will be a while until I get to Rev B. The main purpose of Rev A was to explore what I could get away with, and to develop the comms and interactions between microcontroller and FPGA.

Parts

78
QtyValueFootprintReferences
18100nCapacitor_SMD:C_0402_1005MetricC3, C4, C6, C11, C13, C19, C21, C22, C23, C24, C25, C26, C28, C29, C30, C31 +2
15270Resistor_SMD:R_0402_1005MetricR1, R2, R3, R4, R5, R6, R15, R16, R17, R18, R20, R21, R22, R23, R24
71uCapacitor_SMD:C_0402_1005MetricC1, C2, C12, C14, C16, C18, C20
72k2Resistor_SMD:R_0402_1005MetricR7, R8, R11, R13, R14, R19, R26
410uCapacitor_SMD:C_0603_1608MetricC5, C9, C10, C27
210pCapacitor_SMD:C_0402_1005MetricC15, C17
227Resistor_SMD:R_0402_1005MetricR9, R10
2LEDLED_SMD:LED_0603_1608MetricD1, D2
2PTS815picostation:SW_SPST_PTS815SW1, SW2
1100Resistor_SMD:R_0402_1005MetricR25
1AudioJack3picostation:STX-3000-TRSJ2
1Conn_01x05Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ5
1Micro_SD_Cardpicostation:MEM2061-MICRO-SDJ3
1NCP115ASN330Package_TO_SOT_SMD:SOT-23-5U2
1NFResistor_SMD:R_0402_1005MetricR12
1NOT_HDMI_Apicostation:HDMI-SS-53000J7
1RH100-12.000Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY1
1RP2040picostation:QFN-56_EP_7x7_Pitch0.4mmU1
1S70KS128picostation:S70KS128U5
1SNESpicostation:SNES-Controller-LeftJ6
1SNESpicostation:SNES-Controller-RightJ4
1USB_B_MicroConnector_USB:USB_Micro-B_Molex-105017-0001J1
1W25Q128JVPackage_SON:WSON-8-1EP_6x5mm_P1.27mm_EP3.4x4mmU3
1iCE40UP5k-QFN48Package_DFN_QFN:QFN-48-1EP_7x7mm_P0.5mm_EP5.3x5.3mmU4

The 74 most common of 78 parts.

Similar boards

  • 4 layers50 × 30 mmPicodvi, the printed circuit board in 3D

    Picodvi

    Fr4nkFletcher/ESP32-Marauder-Cheap-Yellow-Display

    ESP32Marauder Cheap Yellow Display

    55 parts1.8kMIT
  • 4 layers50 × 30 mmProtoB, the printed circuit board in 3D

    ProtoB

    X65/schematic

    X65 hardware schematic

    63 parts8
  • 2 layers42 × 67 mmLalboard, the printed circuit board in 3D

    Lalboard

    JesusFreke/lalboard

    A 3D-printed keyboard inspired by the DataHand

    65 parts993
  • 2 layers181 × 97 mmOpenDeck r3.1.2, the printed circuit board in 3D

    OpenDeck r3.1.2

    shanteacontrols/OpenDeck

    A platform for building interactive control and sensing devices using MIDI and OSC built with Zephyr RTOS.

    262 parts960Apache-2.0
  • 4 layers82.6 × 82.5 mmJumperless2, the printed circuit board in 3D

    Jumperless2

    Architeuthis-Flux/Jumperless

    A jumperless breadboard

    208 parts914
  • 4 layers102.9 × 96.7 mmPicoGUS chipdown, the printed circuit board in 3D

    PicoGUS chipdown

    polpo/picogus

    Emulation of ISA sound cards and CD-ROM on Raspberry Pi Pico (GUS, SB/Adlib, MPU-401, Tandy, CMS, Panasonic CD-ROM) with USB mouse/joystick support

    99 parts805
  • 4 layers180.8 × 300.3 mmDilemma, the printed circuit board in 3D

    Dilemma

    Bastardkb/Dilemma

    The Dilemma is a vertical stagger low-profile keyboard with mods.

    383 parts590

Questions

How big is the Picostation PCB?

It measures 100 × 50 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Picostation use?

78 parts, built around the RP2040, W25Q128JVSIQ and NCP115ASN330. 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 Picostation KiCad files?

From the Wren6991/PicoStation3D repository on GitHub, at the commit this page was made from: the board is board/picostation.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Picostation design in my own project?

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