Skip to the content
2 layers36.7 × 51.5 mmOut, the printed circuit board in 3D

A Programming Language and System for making PCBs

Size
36.7 × 51.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
19
Nets
16
Pads
99
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 36.7 × 51.5 mm with 19 parts on 16 nets.

Its parts include 8 capacitors, 4 resistors, 4 ICs and 2 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

19
QtyValueFootprintReferences
1—C11C11
1—C17C17
1—R19R19
1—U1U1
1—C13C13
1—U4U4
1—C12C12
1—D7D7
1—U3U3
1—C14C14
1—R18R18
1—LED6LED6
1—R5R5
1—KEY9KEY9
1—C10C10
1—U2U2
1—C15C15
1—C16C16
1—R8R8

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 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 layers43.9 × 27.7 mmTcd1304-4v, the printed circuit board in 3D

    Tcd1304-4v

    OpnTec/open-spectrometer-hardware

    Open source VIS spectrometer

    19 parts1.5k
  • 2 layers50 × 60 mmDebate Device, the printed circuit board in 3D

    Debate Device

    hackclub/OnBoard

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

    19 parts915
  • 2 layers102.9 × 96.7 mmISA adapter, the printed circuit board in 3D

    ISA adapter

    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

    19 parts805
  • 2 layers60 × 39 mmPs2usb, the printed circuit board in 3D

    Ps2usb

    rasteri/HIDman

    Adapting USB devices to work on old computers

    19 parts432
  • 2 layers70.1 × 43.2 mmIaq device, the printed circuit board in 3D

    Iaq device

    nkitanov/iaq_board

    IAQ Board is a DIY (Do-It-Yourself) device for measuring internal air quality

    19 parts396
  • 2 layers80 × 80 mmGB BRK CPU G1, the printed circuit board in 3D

    GB BRK CPU G1

    Gekkio/gb-hardware

    Game Boy -related custom hardware by gekkio

    19 parts379CC-BY-4.0
  • 2 layers25.4 × 25.4 mmIna169, the printed circuit board in 3D

    Ina169

    Ardumower/ardumower

    Develop an open source robotic lawn mower (HW+SW reference platform)

    19 parts282
  • 2 layers58.4 × 28.6 mmNew rele, the printed circuit board in 3D

    New rele

    zmaker/arduino_cookbook

    gli sketch del nuovo progetto Arduino Cookbook e dei video di YouTube

    19 parts269

Questions

How big is the Out PCB?

It measures 36.7 × 51.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Out use?

19 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/mcu-board/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.