Skip to the content
2 layers94 × 129.5 mmLni badge, the printed circuit board in 3D

Badge for Labortage 2021

Size
94 × 129.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
71
Nets
101
Pads
252
Tracks, vias
324, 15
Pours
2
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
20 Mar 2021
Updated
27 Dec 2023

Overview

Lni badge is an open-source printed circuit board by das-labor, from the das-labor/badge-2021 repository on GitHub, published under the CC0-1.0 licence. It is a 2-layer board of 94 × 129.5 mm with 71 parts on 101 nets, routed with 324 tracks and 15 vias.

Its parts include 21 resistors, 11 connectors, 9 capacitors, 2 ICs and 2 diodes. It belongs with the lEDs and displays boards of this library.

README

README.md

Badge Labortage 2021

assembled badge

Idea: based on Swag Badge

The idea for this year's Labor badge is based on the Swag Badge from the Open Hardware Miniconf at linux.conf.au 2021.

Swag badge

They also released a DIY version named Dag Badge as well as the Swag Badge schematics.

What?

You can do fun things with this badge. We made a basic kit as we sell it, with optional extras.

This is in part for educational purposes, so people can try different things, e.g., discover that I2C needs different addresses or separate buses vs SPI being controlled via active low select pins. The top area has holes for prototyping, not connected to anything.

Basic kit

  • power and system LEDs
  • 2 OLED screens on I2C (top)
  • 2 buttons
  • double pin rows + ESP32 D1 mini board

Extras

  • 2 color screens on SPI
  • 2 thumb sticks with buttons and x,y axis
  • 2 expansion ports with I2C and DAC-capable GPIOs (top left+right)

PCB

This is our own PCB design. We will offer a basic kit with the PCB itself, the ESP32 D1 Mini board, 2 OLED displays, and 2 push buttons, to keep it simple and inexpensive. Anyone can purchase the additional parts if they like and we may have some left over from testing, and of course, feel free to fork and rework the PCB as you like, print it yourself, file PRs, or just leave some feedback.

Size (rounded): 94mm x 130mm

Badge

See the schematics for details.

ESP32 D1 Mini

The data sheet and documentation for the ESP32-WROOM-32 is publicly available.

It includes schematics and application notes.

Further Documents

Buy

https://www.az-delivery.de/products/esp32-d1-mini

Pinout

ESP32 D1 Mini Pinout

The ESP32 has VDET pins which can be used for ADC.

MH-ET LIVE MiniKit

NOTE: At Labortage 2021, we sold badges with the MH-ET LIVE MiniKit, because it was a cheap option and easily available, unlike the otherwise preferred board "ESP32 D1 Mini NodeMCU". It has some quirks, but is generally fine to use.

We have bridged button B (right) to GPIO0, so you can press it for flashing or otherwise triggering the "boot option" as described in the WROOM-32 datasheet.

Firmware

Use the Makefile to clear the SPI flash and write an image to it:

sh
make FW=firmware-image.bin erase flash

You can pass down parameters. For further options, please look at Makefile.

NOTE: One common board is the MH-ET LIVE ESP32 MiniKit. In order to flash it, you need to short GPIO0 to GND and use the assigned /dev/ttyACM{n} device.

das-labor/badge-2021-rs

We have started to write our own bare firmware in Rust. :crab:

It is non-std and based on esp-rs.

MicroPython

It's in beta and we were having trouble getting MQTT and WiFi to work reliably.

Use ampy to upload scripts. On many OS distributions, you can find a package for it.

NodeMCU

The ESP32 variant is also still in beta on NodeMCU, though may do better than MicroPython. We haven't tested it too much yet, but it does boot up thus far and MQTT worked okay.

Use nodemcu-tool to upload scripts. If you are using Arch Linux, you can use the package from the AUR. Otherwise, use the PKGBUILD as a reference for building it; mind that you may need to rebuild the native modules.

Follow the build instructions for full customization or use a prebuilt image from the cloud build service.

9p support

Try out a small libstyx implementation suitable for use on ESP32.

See also the more recent NinePea.

TODO: See if you can wire it up with cpu to enable speedier driver development, e.g., using a related ESP32 board with an ethernet port, or attach one to the badge even.

Buttons

There are many suitable and colorful 6x6 buttons, tall and high, though not as nice to press. We went with the larger 12x12 retro arcade style tactile push buttons instead.

We have routed the buttons to the pins IO0 and IO2.

OLED I2C Display

Note: On the back, we need to solder a bridge on one display in order to change its address, so we can use both on the same bus.

The module is based on the SSD1306. See also the data sheet and schematics for a similar design.

Buy

https://www.az-delivery.de/en/products/0-96zolldisplay

Front

display front

Back

display back

Joysticks / Thumbsticks

PS2 joysticks and corresponding caps are available from Amazon and probably other sources as well.

The Freetronics Kicad library has a model for it.

They have two potentiometers for the two dimensions each, so we assign GPIO pins to them:

functionleftright
X axisIO33IO32
Y axisIO34IO35
buttonIO5IO12

Other ESP32 Boards

https://www.mischianti.org/2020/05/30/esp32-pinout-specs-and-arduino-ide-configuration-part-1/

Demo

MicroPython SSD1306 OLED Display Scroll and Shapes

Sources

Parts

71
QtyValueFootprintReferences
16MountingHoleMountingHole:MountingHole_2.1mmH5, H6, H7, H8, H9, H10, H11, H12, H15, H16, H17, H18, H19, H20, H21, H22
1427Resistor_SMD:R_1210_3225Metric_Pad1.30x2.65mm_HandSolderR6, R7, R8, R9, R10, R11, R12, R13, R15, R16, R17, R18, R19, R20
8100nCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC1, C3, C4, C5, C6, C7, C8, C9
7100Resistor_SMD:R_1210_3225Metric_Pad1.30x2.65mm_HandSolderR1, R2, R3, R4, R5, R14, R21
4Conn_02x10_Odd_EvenConnector_PinHeader_2.54mm:PinHeader_2x10_P2.54mm_VerticalJ4, J9, J10, J11
4MountingHoleMountingHole:MountingHole_5.3mm_M5_DIN965_PadH1, H2, H3, H4
2Conn_01x08Connector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ2, J6
2Conn_02x04_Odd_EvenConnector_PinHeader_2.54mm:PinHeader_2x04_P2.54mm_VerticalJ7, J8
2JOYSTICK_W_BUTTONhw:JOYSTICK_W_BUTTONU1, U2
2LEDLED_THT:LED_D5.0mmD1, D2
2MountingHole_PadMountingHole:MountingHole_2.5mm_Pad_TopBottomH13, H14
2SW_PushButton_Switch_THT:SW_PUSH-12mmSW1, SW2
2TestPointTestPoint:TestPoint_Pad_D1.0mmTP1, TP2
14.7uFCapacitor_SMD:C_1210_3225Metric_Pad1.33x2.70mm_HandSolderC2
1I2C OLED 1Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ3
1I2C OLED 2Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ5
1PROGConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ1

Similar boards

  • 2 layers105 × 105 mmNeopixel, the printed circuit board in 3D

    Neopixel

    hackclub/OnBoard

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

    71 parts915
  • 2 layers71 × 25 mmUSG, the printed circuit board in 3D

    USG

    robertfisk/USG

    The USG is Good, not Bad

    71 parts407
  • 2 layers60 × 37 mmHydraBus, the printed circuit board in 3D

    HydraBus

    hydrabus/hydrabus

    HydraBus open source multi-tool for anyone interested in learning/developping/debugging/hacking/Penetration Testing for basic or advanced embedded hardware

    71 parts359
  • 2 layers142.5 × 106.3 mmAllium58, the printed circuit board in 3D

    Allium58

    beekeeb/Allium58

    The Allium58 is created based on the Lily58 Pro, designed to enhance wireless capabilities and provide compatibility with GLP (Gateron Low Profile) hotswap sockets.

    71 parts246
  • 2 layers164.7 × 58.4 mmDISAppointment, the printed circuit board in 3D

    DISAppointment

    rasteri/dISAppointment

    Adding ISA slots to modern motherboards

    71 parts241CC-BY-SA-4.0
  • 2 layers152.4 × 81.3 mmSurfgen, the printed circuit board in 3D

    Surfgen

    nickajeglin/Eurorack-pcbs

    A collection of easy to solder DIY eurorack PCB's

    71 parts208
  • 2 layers140 × 88 mmErgoSNM Keyboard Left Prototype 1, the printed circuit board in 3D

    ErgoSNM Keyboard Left Prototype 1

    siderakb/ergo-snm-keyboard

    ErgoSNM is a split ergonomic keyboard integrated with trackball, wireless is in beta

    71 parts172CERN-OHL-P-2.0
  • 2 layers53 × 73.5 mmCh32v305-radioset, the printed circuit board in 3D

    Ch32v305-radioset

    cnlohr/cnhardware

    My dumping grounds for all my kicad projects and random hardware bringup.

    71 parts114

Questions

How big is the Lni badge PCB?

It measures 94 × 129.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Lni badge use?

71 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 Lni badge KiCad files?

From the das-labor/badge-2021 repository on GitHub, at the commit this page was made from: the board is hw/lni-badge.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Lni badge 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).