Skip to the content
2 layers36.2 × 52.7 mmRaspberrypi hat, the printed circuit board in 3D

Raspberrypi hat

hcmos/kicad-2024
Size
36.2 × 52.7 mm
Copper layers
2
Thickness
1.6 mm
Parts
19
Nets
52
Pads
100
Tracks, vias
116, 7
Pours
1
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
5 Aug 2024
Updated
14 Oct 2024

Overview

Raspberrypi hat is an open-source printed circuit board by hcmos, from the hcmos/kicad-2024 repository on GitHub. It is a 2-layer board of 36.2 × 52.7 mm with 19 parts on 52 nets, routed with 116 tracks and 7 vias.

It is built around the B02B-XASK-1. Its parts include 4 resistors, 3 capacitors, 2 ICs, 1 connector and 1 crystal.

Main components

1

README

raspberrypi_hat/README.md

ハードウェア


  • 回路図

端子

CAN

使用したもの

起動ファイル

ラズパイOSでは/boot/config.txt.Ubuntuでは/boot/firmware/config.txt,同ディレクトリのusercfg.txt(推奨)に以下を追記.

bash
# enable MCP2515

dtparam=spi=on
dtoverlay=mcp2515-can0,oscillator=20000000,interrupt=25
dtoverlay=spi-bcm2835

oscillator=は外部クロックに合わせる.interrupt=は配線したGPIOを指定.
書き終わったらreboot!

確認
bash
$ dmesg | grep -e CAN -e can
[    -] CAN device driver interface
[    -] mcp251x spi0.0 can0: MCP2515 successfully initialized.

みたいに返ってくればOK.

有効化

デバイスの状態をUPにする.

bash
sudo ip link set can0 type can bitrate 1000000
sudo ip link set can0 up

ビットレートは環境に合わせて変更.->ifconifgにCAN0が出てくるはず.

受信

CANパケットをcandumpで確認する.
candump can0 -x

bash
can0  RX - -  000   [8]  00 00 00 00 00 00 00 00

などと表示されれば成功.

あとはsocketcan_ifなどのパッケージでlinux-canで触ってみる.

UART

GPIO14(TXD0), GPIO15(RXD0)とつなげただけ.
GND | +5V | TX | RX

I2C

GPIO2(SDA1), GPIO3(SDL1)とつなげただけ.
GND | +5V | SDA | SCL

GPIO24

制御緊急停止用.
GND | GPIO24

FAN

ファンコントロールのためのGPIO. ラズパイコンフィグから指定.
GND | +5V | GPIO18

Parts

19
QtyValueFootprintReferences
30.1uCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC1, C2, C3
310kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR1, R2, R3
3B04B-XASK-1_LF__SN_my_pretty:SHDR4W60P0X250_1X4_1250X640X880PCAN1, I2C1, UART1
1120Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR4
1B02B-XASK-1my_pretty:SHDR2W60P0X250_1X2_750X640X880PGPIO24
1Conn_01x03Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalFAN1
1Conn_02x20_Odd_EvenConnector_PinSocket_2.54mm:PinSocket_2x20_P2.54mm_VerticalJ1
1LOGOlogo_pretty:fG***
1LOGOlogo_pretty:rdclab_smallG***
1MCP2515-I_Pmy_pretty:DIP794W56P254L2286H533Q18NIC1
1MCP2562FD-E_Pmy_pretty:DIP781W56P254L950H533Q8NIC2
1ResonatorCrystal:Resonator_Murata_CSTLSxxxX-3Pin_W5.5mm_H3.0mmY1

The 18 most common of 19 parts.

More from hcmos/kicad-2024

1
  • 2 layers70 × 85 mmStm main, the printed circuit board in 3D

    Stm main

    hcmos/kicad-2024

    101 parts

Similar boards

  • 2 layers85.2 × 57.2 mmLightbox MedTechPrototyping, the printed circuit board in 3D

    Lightbox MedTechPrototyping

    AlishaG15/Lightbox-MedTechPrototyping

    Interactive LED system with custom PCB and real-time feedback.

    18 parts
  • 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

Questions

How big is the Raspberrypi hat PCB?

It measures 36.2 × 52.7 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Raspberrypi hat use?

19 parts, built around the B02B-XASK-1. 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 Raspberrypi hat KiCad files?

From the hcmos/kicad-2024 repository on GitHub, at the commit this page was made from: the board is raspberrypi_hat/raspberrypi_hat.kicad_pcb and its schematic raspberrypi_hat/raspberrypi_hat.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Raspberrypi hat design in my own project?

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