Skip to the content
2 layers110.6 × 109.2 mmOut, the printed circuit board in 3D

A Programming Language and System for making PCBs

Size
110.6 × 109.2 mm
Copper layers
2
Thickness
1.6 mm
Parts
40
Nets
29
Pads
180
Tracks, vias
0, 0
Routed
Not yet
KiCad
KiCad 5
Created
6 Aug 2019
Updated
18 Feb 2022

Overview

Out is an open-source printed circuit board by bhdl, from the bhdl/bhdl repository on GitHub. It is a 2-layer board of 110.6 × 109.2 mm with 40 parts on 29 nets.

Its parts include 20 ICs and 20 diodes.

README

README.md

Board HDL: A Programming Language and System for making PCBs

Documents can be found at https://bhdl.org

This project is currently developed on a new IDE called CodePod, which is not publicly available yet. The src folder here is exported from CodePod IDE. We're working on making CodePod available for the general public. Issues are being tracked in this repo.

BHDL is a programming language embedded in racket. In addition to the language, the system consists of a layout co-design system based on functional picture, REPL-driven interactive development and visualization, libraries, KiCAD compatible exporter, and placement engines including an optimization-based anlytical placer (ePlace) and simulated annealing based detailed placer.

Setup

Install Racket

Install racket:

sh
apt install racket

On MacOS and Windows, you can download the installer from the Racket website, and setup the commandline properly.

Install BHDL package

Step 2: Install the BHDL directly as a racket package:

text
raco pkg install --auto https://github.com/bhdl/bhdl.git?path=src

You can now run racket and require bhdl. The first time requiring bhdl, it will download footprint library to ~/.config/bhdl/bhdl-footprints (Linux) or ~/Library/Application Support/bhdl/bhdl-footprints (MacOS).

racket
racket
> (require bhdl)

Then try some of the examples.

Update BHDL

In the future, you can update the package if there're updates upstream via:

shell
raco pkg update src

note TODO package name should be bhdl

JupyterLab IDE

In general, you can run racket programs via command line, editor plugins, IDEs. We are not covering them here. Instead, we recommand run the program via jupyter notebook. To set it up, first install jupyter:

shell
pip install jupyterlab

The iracket kernel requires on libzeromq:

shell
sudo apt install libzmq5

note for MacOS

On MacOS, it is a little trickier to setup libzmq. Specifically, you need to copy the library to the racket's library path, otherwise racket won't find it:

shell
brew install zmq
cp /opt/homebrew/Cellar/zeromq/4.3.4/lib/libzmq.5.dylib Library/Racket/8.2/lib

Then install the kernel itself:

shell
raco pkg install iracket
raco iracket install

note: iracket does not allow write access to file system by default. So you have to modify the kernel file with a -t parameter. In short, you need to modify the content of ~/.local/share/jupyter/kernels/racket/kernel.json on your system from ["racket","-l","iracket/iracket","--","{connection_file}"] to ["racket","-l","iracket/iracket","--","-t","{connection_file}"]

Then start the jupyterlab server:

shell
jupyter lab

You'll be able to create racket notebooks in the JupyterLab IDE. Inside the notebook, try (require bhdl) and some of the exampels.

Placement (Optional)

To run the placement engine, you need setup julia. Refer to their installation guide on how to install Julia.

Install the BHDL julia package:

text
julia
]add https://github.com/bhdl/bhdl

Then run the server:

text
import BHDL
BHDL.web_server()

This will listen on http://0.0.0.0:8082. To use this, in racket, set the parameter placer-url, and call circuit-export with #:auto-place #t:

racket
;; set placer url
(placer-url "http://0.0.0.0:8082")
(circuit-export three-button #:auto-place #t ...)

This package will detect if Nvidia GPU is available, and use it if possible. The first time invoking the package, julia will download and instantiate the dependencies and download CUDA (julia will not use your system's CUDA setup). The first time the placement is running, Julia will pre-compile the code, thus maybe a little slower. Subsequent placement request will be much faster (which is why we use a server instead of invoking the command for every placement request).

Freerouting (Optional)

To use routing, you need to have freerouting available. We tested on freerouting-v1.4.4. Make sure freerouting-1.4.4-executable.jar is available in your $PATH.

The executable can be downloaded here on the new freerouting maintainer website: https://freerouting.mihosoft.eu/

UPDATE: the jar file is often not an executable command. You'll need

text
java -jar freerouting-1.4.4-executable.jar

Thus, you need to create a executable called freerouting, containing:

text
#!/bin/bash
java -jar /path/to/freerouting-1.4.4-executable.jar

freerouting will need X11 window, even if we are running it in command line. Simulate the X11 session via:

text
sudo apt install xvfb
Xvfb :1

But it seems to be impossible to view the progress. We'll probably need to use VNC if we really want to know what's going on.

Parts

40
QtyValueFootprintReferences
1—D23D23
1—U12U12
1—D21D21
1—U6U6
1—U40U40
1—U10U10
1—U38U38
1—U20U20
1—U8U8
1—D5D5
1—D33D33
1—D29D29
1—D13D13
1—U26U26
1—D1D1
1—D39D39
1—D17D17
1—D25D25
1—U32U32
1—D27D27
1—U34U34
1—U22U22
1—U36U36
1—D3D3
1—U18U18
1—U14U14
1—U28U28
1—D11D11
1—U4U4
1—D35D35
1—D9D9
1—D31D31
1—D37D37
1—U24U24
1—U30U30
1—D7D7
1—D15D15
1—U16U16
1—U2U2
1—D19D19

More from bhdl/bhdl

8
  • 2 layers334.5 × 153.8 mmOut, the printed circuit board in 3D

    Out

    bhdl/bhdl

    A Programming Language and System for making PCBs

    147 parts8
  • 2 layers334.5 × 153.8 mmOut, the printed circuit board in 3D

    Out

    bhdl/bhdl

    A Programming Language and System for making PCBs

    128 parts8
  • 2 layers110.6 × 165.4 mmOut, the printed circuit board in 3D

    Out

    bhdl/bhdl

    A Programming Language and System for making PCBs

    59 parts8
  • 2 layers104.2 × 31.8 mmOut, the printed circuit board in 3D

    Out

    bhdl/bhdl

    A Programming Language and System for making PCBs

    22 parts8
  • 2 layers36.7 × 51.5 mmOut, the printed circuit board in 3D

    Out

    bhdl/bhdl

    A Programming Language and System for making PCBs

    19 parts8
  • 2 layers120.7 × 148 mmOut, the printed circuit board in 3D

    Out

    bhdl/bhdl

    A Programming Language and System for making PCBs

    17 parts8
  • 2 layers80.9 × 23.8 mmOut, the printed circuit board in 3D

    Out

    bhdl/bhdl

    A Programming Language and System for making PCBs

    10 parts8
  • 2 layers32.8 × 30.8 mmOut, the printed circuit board in 3D

    Out

    bhdl/bhdl

    A Programming Language and System for making PCBs

    6 parts8

Similar boards

  • 2 layers139.7 × 73.7 mm134pin 7-967288-1, the printed circuit board in 3D

    134pin 7-967288-1

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    40 parts1.2k
  • 2 layers149.4 × 177.4 mmLightsculpture, the printed circuit board in 3D

    Lightsculpture

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    40 parts915
  • 2 layers150 × 50 mmEleLab v2 Bus150, the printed circuit board in 3D

    EleLab v2 Bus150

    Chrismettal/EleLab_v2

    Cheap DIY lab system for hobbyists and the tinkering folk

    40 parts531GPL-3.0
  • 2 layers66.4 × 48.1 mmRaspberry, the printed circuit board in 3D

    Raspberry

    Chrismettal/flipper-zero-backpacks

    Backpack-style addon boards for the Flipper Zero!

    40 parts456
  • 2 layers44 × 44 mmTrackball, the printed circuit board in 3D

    Trackball

    jfedor2/rp2040-pmw3360

    RP2040+PMW3360 PCB and code

    40 parts432
  • 2 layers90.8 × 53.3 mmABSIS Bus Master, the printed circuit board in 3D

    ABSIS Bus Master

    jrsteensen/OpenHornet

    OpenHornet 1:1 F/A-18C Simulator Repository

    40 parts431
  • 2 layers59.6 × 109.5 mmDrop, the printed circuit board in 3D

    Drop

    ohmtech-rdi/eurorack-blocks

    Software to Hardware Prototyping for Eurorack using C++, Max/Gen~ or Faust

    40 parts410
  • 2 layers123.8 × 73.5 mmAttic, the printed circuit board in 3D

    Attic

    simondlevy/Hackflight

    Minimalist flight-control toolkit for makers

    40 parts334GPL-3.0

Questions

How big is the Out PCB?

It measures 110.6 × 109.2 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Out use?

40 parts. 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 Out KiCad files?

From the bhdl/bhdl repository on GitHub, at the commit this page was made from: the board is bhdl-test/out/demo-board/matrix/out.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Out design in my own project?

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