

Raspberrypi hat
- 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
1README
raspberrypi_hat/README.mdハードウェア

- 回路図

端子
CAN
使用したもの
- MCP2515(コントローラ) CANプロトコルをSPIに変換するため.外部クロックが必要(夢考房にあるやつ)
- MCP2562FD(トランシーバ) 物理層
起動ファイル
ラズパイOSでは/boot/config.txt.Ubuntuでは/boot/firmware/config.txt,同ディレクトリのusercfg.txt(推奨)に以下を追記.
# enable MCP2515
dtparam=spi=on
dtoverlay=mcp2515-can0,oscillator=20000000,interrupt=25
dtoverlay=spi-bcm2835oscillator=は外部クロックに合わせる.interrupt=は配線したGPIOを指定.
書き終わったらreboot!
確認
$ dmesg | grep -e CAN -e can
[ -] CAN device driver interface
[ -] mcp251x spi0.0 can0: MCP2515 successfully initialized.みたいに返ってくればOK.
有効化
デバイスの状態をUPにする.
sudo ip link set can0 type can bitrate 1000000
sudo ip link set can0 upビットレートは環境に合わせて変更.->ifconifgにCAN0が出てくるはず.
受信
CANパケットをcandumpで確認する.
candump can0 -x
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| Qty | Value | Footprint | References |
|---|---|---|---|
| 3 | 0.1u | Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolder | C1, C2, C3 |
| 3 | 10k | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R1, R2, R3 |
| 3 | B04B-XASK-1_LF__SN_ | my_pretty:SHDR4W60P0X250_1X4_1250X640X880P | CAN1, I2C1, UART1 |
| 1 | 120 | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R4 |
| 1 | B02B-XASK-1 | my_pretty:SHDR2W60P0X250_1X2_750X640X880P | GPIO24 |
| 1 | Conn_01x03 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | FAN1 |
| 1 | Conn_02x20_Odd_Even | Connector_PinSocket_2.54mm:PinSocket_2x20_P2.54mm_Vertical | J1 |
| 1 | LOGO | logo_pretty:f | G*** |
| 1 | LOGO | logo_pretty:rdclab_small | G*** |
| 1 | MCP2515-I_P | my_pretty:DIP794W56P254L2286H533Q18N | IC1 |
| 1 | MCP2562FD-E_P | my_pretty:DIP781W56P254L950H533Q8N | IC2 |
| 1 | Resonator | Crystal:Resonator_Murata_CSTLSxxxX-3Pin_W5.5mm_H3.0mm | Y1 |
The 18 most common of 19 parts.
More from hcmos/kicad-2024
1- 2 layers70 × 85 mm

Similar boards
- 2 layers85.2 × 57.2 mm

Lightbox MedTechPrototyping
AlishaG15/Lightbox-MedTechPrototyping
Interactive LED system with custom PCB and real-time feedback.
18 parts - 2 layers43.9 × 27.7 mm

- 2 layers50 × 60 mm

Debate Device
hackclub/OnBoard
💡 Join 1,000 teenagers and make your first PCB with a $100 grant!
19 parts915 - 2 layers102.9 × 96.7 mm

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 mm

- 2 layers70.1 × 43.2 mm

Iaq device
nkitanov/iaq_board
IAQ Board is a DIY (Do-It-Yourself) device for measuring internal air quality
19 parts396 - 2 layers80 × 80 mm

- 2 layers25.4 × 25.4 mm

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.