Skip to the content
2 layers80.9 × 23.8 mmOut, the printed circuit board in 3D

A Programming Language and System for making PCBs

Size
80.9 × 23.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
10
Nets
3
Pads
29
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 80.9 × 23.8 mm with 10 parts on 3 nets.

Its parts include 4 ICs, 3 resistors, 2 diodes and 1 capacitor.

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

10
QtyValueFootprintReferences
1—D4D4
1—U1U1
1—R7R7
1—C3C3
1—U9U9
1—R2R2
1—U10U10
1—R8R8
1—U5U5
1—LED6LED6

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 layers110.6 × 109.2 mmOut, the printed circuit board in 3D

    Out

    bhdl/bhdl

    A Programming Language and System for making PCBs

    40 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 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 layers57 × 55.2 mmLogicAnalyzer, the printed circuit board in 3D

    LogicAnalyzer

    gusmanb/logicanalyzer

    24 channel, 100Msps logic analyzer hardware and software

    10 parts5.1kGPL-3.0
  • 2 layers32.2 × 15.4 mmProtector, the printed circuit board in 3D

    Protector

    byrantech/laptop

    anyon_e, a highly integrated, high end, open source laptop. Attempt the impossible.

    10 parts4.3kMIT
  • 2 layers26 × 18 mmConn, the printed circuit board in 3D

    Conn

    yaqwsx/KiKit

    Automation tools for KiCAD

    10 parts2.1kMIT
  • 2 layers44.3 × 30.5 mmLime2-SATA RevA, the printed circuit board in 3D

    Lime2-SATA RevA

    OLIMEX/OLINUXINO

    OLINUXINO is Open Source / Open Hardware, low cost from EUR 24 Linux Industrial grade Single Board Computer capable to operate -25+85C

    10 parts1.5k
  • 2 layers17.8 × 43.2 mmNano Adapter, the printed circuit board in 3D

    Nano Adapter

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    10 parts1.1kGPL-3.0
  • 2 layers53.9 × 23.2 mmBuffer, the printed circuit board in 3D

    Buffer

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    10 parts1kGPL-3.0

Questions

How big is the Out PCB?

It measures 80.9 × 23.8 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Out use?

10 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/onebutton/one/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.