Skip to the content
4 layers63.5 × 40.6 mmIce2040, the printed circuit board in 3D

ice40 + RP2040 combo

Size
63.5 × 40.6 mm
Copper layers
4
Thickness
1.58 mm
Parts
124
Nets
135
Pads
428
Tracks, vias
1,875, 163
Pours
2
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
22 Sep 2022
Updated
29 Oct 2022

Overview

Ice2040 is an open-source printed circuit board by kevinjuszczyk, from the kevinjuszczyk/ice2040 repository on GitHub. It is a 4-layer board of 63.5 × 40.6 mm with 124 parts on 135 nets, routed with 1,875 tracks and 163 vias.

It is built around the RP2040, W25Q128JVSIQ and AMS1117-3.3, with the SRV05-4 among its other parts. Its parts include 74 resistors, 24 capacitors, 12 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

4

README

README.md

ICE2040

ICE40UP5K FPGA + RP2040 Hacker Board ice2040

Overview

The ICE2040 combines a Lattice ICE40UP5K FPGA with a Raspberry Pi RP2040. The RP2040 is used to configure the ICE40 SRAM, and optionally provide a clock or host communication. Pmod connectors are provided for both the ICE40 and RP2040, with the rightmost connectors lined up in such a way that up to 16 additional lines between the ICE40 and RP2040 can be bridged together using a PCB or ribbon cable.

Background

A friend expressed an interest in implementing a RISC-V processor using an FPGA, something like learn-fpga. Due to the ongoing parts shortage, many of the low-end FPGA dev boards are either out of stock, or have moved out of the pocket change price range. With an eye toward building a board using whatever might still be in stock, I found that the major retailers have many thousands of ICE40 parts in fine pitch BGA packages. I started playing around in KiCad with the ICE40UP5K-UWG30 (30-ball 0.4mm pitch) part to see if there was a way to fan out enough of the pins to make a reasonably useful board. By modifying the shape of the pads, I was able to achieve a complete fanout that can be fabricated with JLCPCB's 4-layer process. Most boards like this use an FTDI serial converter for host communication and FPGA configuration, but these have also been hard to get. I decided to use an RP2040 for these functions, since they are in stock and much less expensive. ice2040footprint

Build

PCB

The board can be fabricated using JLCPCB's 4-layer process, and all components assembled (except for the ICE40 and Pmod headers) using their Economic PCBA service. Jlcfab.zip contains the fabrication files including the BOM, footprint position, drill, and Gerber files. Jlcboardsettings.txt shows how to configure the JLCPCB order screen. Note that you want to specify the technical review (Confirm Production Files) for both the board fabrication and assembly. This will let JLCPCB adjust the board traces and parts orientation as needed.

NOTE: If you haven't soldered BGA packages before, this is not a good one to start with.

  1. When the board arrives, check that the RP2040 is functioning correctly by plugging it into the USB port of your PC. A new removable drive should pop up with the volume name of RPI-RP2.
  2. Unplug the board.
  3. To hand-solder the ICE40, cover the pads of the ICE40 footprint with a thin layer of tacky flux. If too much flux is used, it will boil when heated and dislodge the balls from the package.
  4. Smear a thin layer of solder paste on a flat metal surface, and then press the ICE40 into it. The idea is to get some paste to stick to the balls so that when heat is applied, the paste will flow down and pool on the pads.
  5. Place the ICE40 on the board and line up the package inside the silkscreen while making sure it stays flat on the board.
  6. Reflow either with an oven or by using a hotplate underneath and a heat gun above.
  7. Check that all pins are connected by using the multimeter diode check. Connect the positive lead to board ground, and then touch each ICE40 Pmod pad with the negative lead. A good connection will show a voltage drop between 0.5 to 0.7 volts. Test for continuity between the power rails and ground to make sure they are not shorted.
  8. If you find an open connection, it may be possible to save the part. Dissolve some tacky flux with an equal amount of 99% isopropyl. Drip this mixture around the perimeter of the part so that it wicks underneath. Soak up any excess with a paper towel, and let the flux dry for several hours. Reflow again.
Software
  1. Hold down the BOOTSEL button on the board while you plug the board into your PC. Once the RPI-RP2 drive pops up, you can release the button.
  2. Download the latest release of CircuitPython
  3. Copy the .UF2 file to the RPI-RP2 drive.
  4. The ICE2040 will reboot and a drive labeled CIRCUITPY will pop up.
  5. Copy the top_bitmap.bin file to the CIRCUITPY drive. This is an ICE40 FPGA bitstream designed to blink several LEDs on the bottom center Pmod port (labeled 25B, 13B, etc.)
  6. Copy the code.py file to the CIRCUITPY drive, overwriting the existing file. This is a python script designed to upload the top_bitmap.bin file into the ICE40.
  7. If you have an LED Pmod plugged into the bottom center Pmod port, you should now see several LEDs blinking at various rates. A multimeter can also be used to check for correct operation. Pins 13B or 25B change slowly enough to show the voltage alternate between 0 and 3.3 volts.
  8. CircuitPython will automatically run the code.py script whenever a file on the CIRCUITPY drive is changed (including top_bitmap.bin). A serial port is also provided for communication with the host PC. See the CircuitPython documentation for details. ice2040.gif

Parts

124
QtyValueFootprintReferences
5833Resistor_SMD:R_0402_1005MetricR10, R11, R12, R21, R22, R23, R24, R25, R26, R27, R28, R29, R30, R31, R32, R33 +42
171uCapacitor_SMD:C_0402_1005MetricC7, C8, C10, C11, C12, C13, C14, C15, C16, C17, C18, C19, C20, C21, C22, C23 +1
810kResistor_SMD:R_0402_1005MetricR2, R4, R13, R14, R15, R16, R17, R67
5PMOD_HOSTkmj_custom:PMOD_HOSTJ8, J9, J10, J11, J12
410uCapacitor_Tantalum_SMD:CP_EIA-3216-18_Kemet-AC1, C2, C3, C4
41x02_P2.54Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ3, J4, J5, J6
4M2_MountingHoleMountingHole:MountingHole_2.2mm_M2_ISO7380H1, H2, H3, H4
31kResistor_SMD:R_0402_1005MetricR1, R3, R5
215pCapacitor_SMD:C_0402_1005MetricC5, C6
227Resistor_SMD:R_0603_1608MetricR19, R20
2SW_PushButton_Switch_SMD:SW_SPST_SKQG_WithoutStemSW1, SW2
2USB_Micro_BConnector_USB:USB_Micro-B_Molex-105017-0001J1, J2
1100Resistor_SMD:R_0402_1005MetricR74
110uCapacitor_SMD:C_0402_1005MetricC24
112MCrystal:Crystal_SMD_SeikoEpson_FA238-4Pin_3.2x2.5mmY1
11N5819Diode_SMD:D_SOD-123D1
11x03_P2.54Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ7
12.2kResistor_SMD:R_0402_1005MetricR73
1200Resistor_SMD:R_0402_1005MetricR18
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U1
1LEDDiode_SMD:D_0603_1608MetricD2
1RP2040kmj_custom:QFN-56-1EP_7x7mm_P0.4mm_EP3.2x3.2mm_MoreThermalViasU4
1SRV05-4Package_TO_SOT_SMD:SOT-23-6U2
1W25Q128JVSPackage_SO:SOIC-8_5.23x5.23mm_P1.27mmU3
1iCE40UP-30kmj_custom:BGA-30_5x6_2.114x2.537mmU5

Similar boards

  • 4 layers52.3 × 25.3 mmHackducky, the printed circuit board in 3D

    Hackducky

    souptik-samanta/Hackducky

    Our board is powered by the reliable Raspberry Pi RP2040 microcontroller and includes 16 MB of flash storage, giving plenty of room for scripts and firmware.

    83 parts13
  • 4 layers50.1 × 32 mmPxl, the printed circuit board in 3D

    Pxl

    souptik-samanta/fluid-dynamics

    102 parts
  • 4 layers96 × 82 mmDreamdrivecast v1a, the printed circuit board in 3D

    Dreamdrivecast v1a

    khill25/Dreamdrive

    Open source Retro Rom Carts and ODEs by Dreamcraft Industries

    76 parts26
  • 4 layers90 × 100 mmPump board, the printed circuit board in 3D

    Pump board

    TrendBit/SMBR-hardware

    Design file for SMBR hardware modules in KiCAD.

    204 partsGPL-3.0
  • 2 layers63.5 × 58 mmLatest, the printed circuit board in 3D

    Latest

    minipadKB/minipad

    The PCB and case files for the minipad, an RP2040-based 2-3-key keypad for the rhythm game osu!.

    39 parts52GPL-3.0
  • 2 layers224.4 × 97.8 mmKnobdeavour, the printed circuit board in 3D

    Knobdeavour

    ScatteredDrifter/Buran-Ortho

    A 39-key orthogonal keyboard with support for two knobs, based on a rp2040

    105 parts46
  • 2 layers253.3 × 113.3 mmCut slope, the printed circuit board in 3D

    Cut slope

    hazels-garage/cut-slope

    119 parts29
  • 2 layers344.7 × 123.6 mmSlime88, the printed circuit board in 3D

    Slime88

    zykrah/slime88

    A F13 TKL Multi-Layout Hotswap H88-Compat Type-C PCB

    243 parts29

Questions

How big is the Ice2040 PCB?

It measures 63.5 × 40.6 mm and has 4 copper layers, 1.58 mm thick.

What parts does the Ice2040 use?

124 parts, built around the RP2040, W25Q128JVSIQ, AMS1117-3.3 and SRV05-4. 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 Ice2040 KiCad files?

From the kevinjuszczyk/ice2040 repository on GitHub, at the commit this page was made from: the board is kicad/ice2040.kicad_pcb and its schematic kicad/ice2040.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Ice2040 design in my own project?

Its repository states no licence, so its author keeps all rights: ask kevinjuszczyk before reusing the design.