Skip to the content
4 layers63.9 × 37.1 mmUsbhid daq, the printed circuit board in 3D

Hardware, firmware, and software for the USBHID DAQ 'Buddy' device

Size
63.9 × 37.1 mm
Copper layers
4
Thickness
1.6 mm
Parts
73
Nets
66
Pads
251
Tracks, vias
1,042, 136
Pours
4
Routed
Yes
KiCad
KiCad 4
Created
11 May 2016
Updated
29 Mar 2019

Overview

Usbhid daq is an open-source printed circuit board by shraken, from the shraken/usbhid_buddy repository on GitHub. It is a 4-layer board of 63.9 × 37.1 mm with 73 parts on 66 nets, routed with 1,042 tracks and 136 vias.

It is built around the C8051F380-GQ, 74AHC1G125GW and TLV5630IPW, with the TPS60241DGK, 23LC1024-I/ST and MCP1802T-3302I/OT among its other parts. Its parts include 17 resistors, 16 capacitors, 11 diodes, 8 ICs and 4 connectors.

Main components

11

README

README.md

Build Status

Coverage Status

Buddy DAQ

Buddy is a free, open source, and low-cost data acquisition (DAQ) instrument. It has 8 configurable IO that can be configured for ADC, DAC, PWM, or counter operation. The device uses USB HID with a custom descriptor for communication with the hidapi library on the host system. The device can be configured as either a host polled or asynchronous update mode for maximum flexibility. Buddy works on linux, windows, and macOS systems.

Docker

Usage of docker is recommended for building the entire project. A CMakeList file is provided in the head directory to build the project and generate all support files (documentation, coverage reports).

shell
docker build -t buddy_docker .
docker run -v /path/to/usbhid_buddy:/docker -it buddy_docker /bin/bash

this will launch a Docker bash shell and then you build.

shell
cd /docker
mkdir -p build
cd build
cmake ..
make

Firmware

The firmware is written in C for the Silicon Labs C8051F380/EFM8UB2 chip and is in the fw directory. The firmware requires a Keil C51 compiler to be used for building.

The open-source gboot bootloader written by Gabriele Gorla of gglabs (http://gglabs.us) is used for the buddy device.

Hardware

The hardware is developed using the KiCad EDA tool. The manafacturing, source, and schematic files are provided in the hw/ directory.

The pin mapping for the standard Bus Pirate 10-pin harness is provided below:

ColorMappingPin #
BrownIN72
RedGND1
OrangeIN64
YellowIN53
GreenIN06
BlueIN45
PurpleIN28
GreyIN17
White3.3V10
BlackIN39

Software

The host software uses the free and open source hidapi library for driverless operation. The examples provided build with the hidapi libray itself and are tested on Linux, Windows, and mac OS systems.

For building the host examples, the hidapi submodule must be cloned with the following command:

git submodule update --init

or when cloning the buddy repo with:

git clone --recursive https://github.com/shraken/usbhid_buddy.git

Tests

The tests directory contains the unit tests. The Catch2 test framework is used for all unit tests. To manually build and run the unit test, run the following:

shell
cd tests/
mkdir -p build
cd build
cmake ..
make
./testLibBuddy

Code Coverage

The build server runs gcov/lcov to generate the coverage figure. You can collect these results manually by running the following (from the build directory in tests):

shell
lcov -c -d CMakeFiles -out cov.info
genhtml cov.info -o out
open out/index.html

Parts

73
QtyValueFootprintReferences
8D_Schottky_x2_Serial_AKCTO_SOT_Packages_SMD:SOT-23D4, D5, D6, D7, D8, D9, D10, D11
8TEST_1Ptest_pads:TESTPAD_SMALLW1, W3, W4, W5, W6, W7, W8, W9
610kResistors_SMD:R_0603_HandSolderingR6, R7, R10, R15, R16, R17
61kResistors_SMD:R_0603_HandSolderingR2, R3, R5, R8, R9, R14
5100nFCapacitors_SMD:C_0603_HandSolderingC1, C3, C6, C7, C13
41uFCapacitors_SMD:C_0805_HandSolderingC2, C4, C5, C9
30RResistors_SMD:R_0603_HandSolderingR4, R12, R13
20.1uFCapacitors_SMD:C_0603_HandSolderingC11, C16
21uFCapacitors_SMD:C_0603_HandSolderingC8, C14
274AHC1G125TO_SOT_Packages_SMD:SOT-353_SC-70-5_HandsolderingU7, U8
2LEDLEDs:LED_0603D1, D2
2SKRKAEE010tacticle:SKRKAEE010SW1, SW2
10R_NMResistors_SMD:R_0603_HandSolderingR11
1100RResistors_SMD:R_0603_HandSolderingR1
1100nFCapacitors_SMD:C_0603C12
110uFCapacitors_SMD:C_0603_HandSolderingC15
11206L050/15YRResistors_SMD:R_1206F1
123LC1024-I/STHousings_SSOP:TSSOP-8_4.4x3mm_Pitch0.65mmU6
14.7uFCapacitors_SMD:C_0603_HandSolderingC10
1C8051F380Housings_QFP:LQFP-48_7x7mm_Pitch0.5mmU2
1CONN_01X02Socket_Strips:Socket_Strip_Straight_1x02P1
1CONN_01X03Socket_Strips:Socket_Strip_Straight_1x03P2
1CONN_01X03Connectors_Molex:Molex_PicoBlade_53261-0371P3
1CONN_02X05Socket_Strips:Socket_Strip_Angled_2x05P4
1LTST-C195KGJRKTled:LTST-C195KGJRKTDN1
1MCP1802T-3302I/OTTO_SOT_Packages_SMD:SOT-23-5U1
1MICRO-B_USBusb:microb_usb_top_mountUSB1
1PRTR5V0U2X,215esd_protection:PRTR5V0U2X,215D3
1REF3325AIDBZRTO_SOT_Packages_SMD:SOT-23U5
1TLV5630Housings_SSOP:TSSOP-20_4.4x6.5mm_Pitch0.65mmU3
1TPS60241switching_charge_pump:VSSOP8-DGKU4

The 69 most common of 73 parts.

More from shraken/usbhid_buddy

3
  • 4 layers108.5 × 38.5 mmUsbhid testfixture, the printed circuit board in 3D

    Usbhid testfixture

    shraken/usbhid_buddy

    Hardware, firmware, and software for the USBHID DAQ 'Buddy' device

    49 parts2
  • 4 layers40.4 × 42.5 mmUsbhid daq, the printed circuit board in 3D

    Usbhid daq

    shraken/usbhid_buddy

    Hardware, firmware, and software for the USBHID DAQ 'Buddy' device

    39 parts2
  • 2 layers63.9 × 37.1 mmUsbhid daq, the printed circuit board in 3D

    Usbhid daq

    shraken/usbhid_buddy

    Hardware, firmware, and software for the USBHID DAQ 'Buddy' device

    38 parts2

Similar boards

  • 4 layers86 × 33.6 mmAWG, the printed circuit board in 3D

    AWG

    Lee34667/PCB_Kicad_Projects

    Creating a L9110 module using PCB techniques.

    55 parts1
  • 2 layers55 × 55 mmLeafNode v3.1, the printed circuit board in 3D

    LeafNode v3.1

    leafai-io/leaf-node-v3.x

    Modular node for sensor monitoring and device control in grow environments.

    91 parts47
  • 4 layers36 × 51.8 mmVert Board rev3, the printed circuit board in 3D

    Vert Board rev3

    tokoro10g/micromouse-vert

    Micromouse "Vert"

    117 parts7
  • 2 layers66 × 58.4 mmCC SSD 02, the printed circuit board in 3D

    CC SSD 02

    attachix/ukit-pcb

    The PCBs needed to create the U:Kit sensor kit.

    42 parts1
  • 2 layers100 × 80 mmSpeakerpcb, the printed circuit board in 3D

    Speakerpcb

    gmaxdragon/Seizo-Noise

    A massive PCB for a speaker for my robotic arm with a microphone built into it and a ton of other GPIO ports.

    52 parts1
  • 4 layers160 × 145 mmCarrier, the printed circuit board in 3D

    Carrier

    OrbitalCommons/gumstick

    Gumstick: ESP32 + iCE40UP5K FPGA module (v1 DF40 board-to-board, v2 M.2 gold-finger draft) and its programming carrier. KiCad 10.

    222 parts1MIT
  • 2 layers63.5 × 101.6 mmVULCAN REVB, the printed circuit board in 3D

    VULCAN REVB

    UND-ARC/IREC-ARC-2024

    UND ARC Launch Vehicle for Spaceport America Cup 2024

    63 parts1MIT

Questions

How big is the Usbhid daq PCB?

It measures 63.9 × 37.1 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Usbhid daq use?

73 parts, built around the C8051F380-GQ, 74AHC1G125GW, TLV5630IPW and TPS60241DGK. 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 Usbhid daq KiCad files?

From the shraken/usbhid_buddy repository on GitHub, at the commit this page was made from: the board is hw/v0.4/source/usbhid_daq.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Usbhid daq design in my own project?

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