# CYBERDECK Bonnet and HAT for Raspberry Pi 400

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/100/888/medium800thumb/adafruit_products_CDH_in_action.jpg?1616523630)

Howdy keyboard cowboys, are you surfing the information superhighway with a Pi 400? Want a cool heads-up display, or maybe you need to wire up some NeoPixel wetware...?

![](https://cdn-learn.adafruit.com/assets/assets/000/100/889/medium800/adafruit_products_CDH_with_Sense_HAT.jpg?1616523646)

Cyber-warriors, listen up here! We’ve got with some zero-day unreleased hardware we just dumpster-dived. Now you can crack kodes, and write skripts with style, thanks to the **CYBERDECK HAT and Bonnet for Raspberry Pi 400** from Adafruit zaibatsu.

The CYBERDECK HAT fits full sized Raspberry Pi HAT sized add-ons and displays.

The CYBERDECK Bonnet fits smaller Raspberry Pi add-ons. Think Raspberry Pi Zero-sized and smaller boards and displays. Mini-HAT/pHATs. A lower profile board.

If you want the most flexibility, the CYBERDECK HAT fits most boards where full size boards would bump the keyboard on the Bonnet.

![](https://cdn-learn.adafruit.com/assets/assets/000/100/890/medium800/adafruit_products_CDB_top.jpg?1616523666)

Well, we just fenced 12 megabytes of ram and some angled socket header from the underground hacker club next to the chatsubo, and it's a major upgrade to our extender board - now you can jack in any Pi bonnet or HAT into the back of your Pi 400's skull at a cool angle, perfect for augmenting your deck!

![](https://cdn-learn.adafruit.com/assets/assets/000/100/891/medium800/adafruit_products_CDH_top.jpg?1616523679)

We also give you two STEMMA (JST 3-PH) connectors on GPIO #18 and #13, and twin STEMMA QT I2C port plugs, for additional upgrades ([cables sold separately](https://www.adafruit.com/category/619))

![](https://cdn-learn.adafruit.com/assets/assets/000/100/892/medium800/adafruit_products_CDB_STEMMA_side.jpg?1616523748)

This is the same hardware Kevin Mitnick used when he popped Sidewinder! Ok, maybe not, but it will definitely let you create a stand-alone Kali deck by plugging in one of our many display Bonnets or HATs.

**Comes completely pre-assembled and tested** &nbsp;so you don't need to do anything but plug it in. Works best with the Pi 400 computer.

![](https://cdn-learn.adafruit.com/assets/assets/000/100/894/medium800/adafruit_products_CDB_with_STEMMA_sensor.jpg?1616523851)

The demo images show the Bonnet with [one of our 128x32 OLED bonnets plugged in](https://www.adafruit.com/product/4567). Any bonnet/mini-HAT/pHAT etc should work just fine with the Bonnet as every pin is duplicated from input to output.

![](https://cdn-learn.adafruit.com/assets/assets/000/100/895/medium800/adafruit_products_CDB_bottom.jpg?1616523868)

 **Here are some of our favorite displays we recommend for the Bonnet:**

- [Adafruit 2.23" Monochrome OLED Bonnet for Raspberry Pi](https://www.adafruit.com/product/4567)
- [Adafruit 2.13" Monochrome E-Ink Bonnet for Raspberry Pi - THINK INK](https://www.adafruit.com/product/4687)
- [Adafruit 128x64 OLED Bonnet for Raspberry Pi](https://www.adafruit.com/product/3531)
- [Adafruit Mini PiTFT 1.3" - 240x240 TFT Add-on for Raspberry Pi](http://www.adafruit.com/product/4484)
- [Adafruit Mini PiTFT - 135x240 Color TFT Add-on for Raspberry Pi](http://www.adafruit.com/product/4484)
- [Adafruit 1.3" Color TFT Bonnet for Raspberry Pi - 240x240 TFT + Joystick Add-on](https://www.adafruit.com/product/4506)
- [Adafruit PiOLED - 128x32 Monochrome OLED Add-on for Raspberry Pi](https://www.adafruit.com/product/4506)
- [Pimoroni Inky pHAT for Raspberry Pi - 3 Color eInk Display](https://www.adafruit.com/product/3743)
- [Pimoroni Inky pHAT - 3 Color eInk Display - Yellow/Black/White](https://www.adafruit.com/product/3933)
- [Pimoroni Inky pHAT - eInk Display - Black/White](https://www.adafruit.com/product/3934)

![](https://cdn-learn.adafruit.com/assets/assets/000/100/896/medium800/adafruit_products_CDH_back.jpg?1616523881)

 **Here are some of our favorite displays we recommend for the HAT:**

- [Adafruit PiTFT 2.2" HAT Mini Kit - 320x240 2.2" TFT - No Touch](https://www.adafruit.com/product/2315)
- [Adafruit PiTFT 2.4" HAT Mini Kit - 320x240 TFT Touchscreen](https://www.adafruit.com/product/2455)
- [PiTFT Plus Assembled 320x240 2.8" TFT + Resistive Touchscreen](https://www.adafruit.com/product/2298)
- [PiTFT 2.8" TFT 320x240 + Capacitive Touchscreen for Raspberry Pi](https://www.adafruit.com/product/1983)
- [Adafruit PiTFT Plus 320x240 2.8" TFT + Capacitive Touchscreen](https://www.adafruit.com/product/2423)
- [Adafruit PiTFT - 320x240 2.8" TFT+Touchscreen for Raspberry Pi](https://www.adafruit.com/product/1601)
- [PiTFT Plus 320x240 3.2" TFT + Resistive Touchscreen](https://www.adafruit.com/product/2616)
- [PiTFT - Assembled 480x320 3.5" TFT+Touchscreen for Raspberry Pi](https://www.adafruit.com/product/2097)
- [PiTFT Plus 480x320 3.5" TFT+Touchscreen for Raspberry Pi](https://www.adafruit.com/product/2441)
- [Pimoroni HyperPixel - 4.0" Hi-Res Display for Raspberry Pi](https://www.adafruit.com/product/3578)
- [Pimoroni HyperPixel - 4.0" Hi-Res Display for Raspberry Pi - Non-Touch](https://www.adafruit.com/product/3932)
- [Pimoroni Inky wHAT (ePaper/eInk/EPD) - Red/Black/White](https://www.adafruit.com/product/4143)
- [Pimoroni Inky wHAT (ePaper/eInk/EPD) - Black/White](https://www.adafruit.com/product/4142)

&nbsp;

# CYBERDECK Bonnet and HAT for Raspberry Pi 400

## Pinouts

![](https://cdn-learn.adafruit.com/assets/assets/000/100/899/medium800/adafruit_products_CDB_CDH.jpg?1616524391 Sizes are not to scale! The HAT and the Bonnet are the same width.)

## I2C Connectors

- STEMMA QT - These are the smaller connectors on either side of the HAT and Bonnet. You can use [STEMMA QT cables](https://www.adafruit.com/?q=stemma+qt&main_page=category&cPath=1005&sort=BestMatch) to connect up [a bunch of different sensors and breakouts](https://www.adafruit.com/stemma) with no soldering or breadboard needed! (Cables sold separately.)
- These two connectors are connected together in parallel. You can daisy-chain sensors and breakouts connected to them.

### STEMMA QT / Qwiic JST SH 4-pin to Premium Male Headers Cable

[STEMMA QT / Qwiic JST SH 4-pin to Premium Male Headers Cable](https://www.adafruit.com/product/4209)
This 4-wire cable is a little over 150mm / 6" long and fitted with JST-SH female 4-pin connectors on one end and premium Dupont male headers on the other. Compared with the chunkier JST-PH these are 1mm pitch instead of 2mm, but still have a nice latching feel, while being easy to insert...

In Stock
[Buy Now](https://www.adafruit.com/product/4209)
[Related Guides to the Product](https://learn.adafruit.com/products/4209/guides)
![Angled Shot of the STEMMA QT / Qwiic JST SH 4-pin to Premium Male Headers Cable.](https://cdn-shop.adafruit.com/640x480/4209-05.jpg)

### STEMMA QT / Qwiic JST SH 4-pin Cable - 100mm Long

[STEMMA QT / Qwiic JST SH 4-pin Cable - 100mm Long](https://www.adafruit.com/product/4210)
This 4-wire cable is a little over 100mm / 4" long and fitted with JST-SH female 4-pin connectors on both ends. Compared with the chunkier JST-PH these are 1mm pitch instead of 2mm, but still have a nice latching feel, while being easy to insert and remove.

<a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/4210)
[Related Guides to the Product](https://learn.adafruit.com/products/4210/guides)
![Angled shot of STEMMA QT / Qwiic JST SH 4-pin Cable.](https://cdn-shop.adafruit.com/640x480/4210-00.jpg)

## STEMMA (3-pin JST PH) Connectors

- These are the larger connectors on either side of the HAT and Bonnet. You can use these to connect up NeoPixels and more with no soldering or breadboard required! (Cables sold separately.)
- They are labeled with their pin numbers: **18** and **13.**

Here are some accessories we recommend using with your STEMMA JST PH connectors!

### STEMMA JST PH 2mm 3-Pin to Male Header Cable - 200mm

[STEMMA JST PH 2mm 3-Pin to Male Header Cable - 200mm](https://www.adafruit.com/product/3893)
This cable will let you turn a JST PH 3-pin cable port into 3 individual wires with high-quality 0.1" male header plugs on the end. We're carrying these to match up with our Hallowing, for extending and connecting sensors or LEDs - and the wires are even color coded!

<a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/3893)
[Related Guides to the Product](https://learn.adafruit.com/products/3893/guides)
![Angled shot of STEMMA JST PH 3-Pin to Male Header Cable - 200mm.](https://cdn-shop.adafruit.com/640x480/3893-03.jpg)

### STEMMA JST PH 2mm 3-Pin to Female Socket Cable - 200mm

[STEMMA JST PH 2mm 3-Pin to Female Socket Cable - 200mm](https://www.adafruit.com/product/3894)
This cable will let you turn a JST PH 3-pin cable port into 3 individual wires with high-quality 0.1" female header sockets on the end. We're carrying these to match up with our Hallowing, for extending and connecting sensors or LEDs - and the wires are even color coded!

<a...></a...>

Out of Stock
[Buy Now](https://www.adafruit.com/product/3894)
[Related Guides to the Product](https://learn.adafruit.com/products/3894/guides)
![Angled shot of STEMMA JST PH 3-Pin to Female Header Cable - 200mm.](https://cdn-shop.adafruit.com/640x480/3894-03.jpg)

### JST PH 2mm 3-pin Plug to Color Coded Alligator Clips Cable

[JST PH 2mm 3-pin Plug to Color Coded Alligator Clips Cable](https://www.adafruit.com/product/4030)
This cable will let you turn a JST PH 3-pin cable port into 3 individual wires with grippy mini alligator clips. We're carrying these to match up with any of our boards or breakouts with 3-pin 'STEMMA' connectors on them such as the&nbsp;<a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/4030)
[Related Guides to the Product](https://learn.adafruit.com/products/4030/guides)
![Angled shot of JST PH 3-pin Plug to Color Coded Alligator Clips Cable.](https://cdn-shop.adafruit.com/640x480/4030-04.jpg)

### Adafruit NeoPixel LED Strip with 3-pin JST PH 2mm Connector

[Adafruit NeoPixel LED Strip with 3-pin JST PH 2mm Connector](https://www.adafruit.com/product/3919)
Plug in and glow, this **Adafruit NeoPixel LED Strip with JST PH Connector** has **30 total LEDs** in a **"60 LED per meter" spacing** , and is 0.5 meters long, in classy Adafruit Black. Its not too long, but has lots of glowing action.<a...></a...>

Out of Stock
[Buy Now](https://www.adafruit.com/product/3919)
[Related Guides to the Product](https://learn.adafruit.com/products/3919/guides)
![Adafruit NeoPixel LED Strip with 3-pin JST PH Connector lit up rainbow](https://cdn-shop.adafruit.com/640x480/3919-01.jpg)

### Adafruit STEMMA Non-Latching Mini Relay - JST PH 2mm

[Adafruit STEMMA Non-Latching Mini Relay - JST PH 2mm](https://www.adafruit.com/product/4409)
STEMMA plug-and-play parts make your next project soldering-free! This is&nbsp;the **STEMMA Non-Latching Mini Relay**.&nbsp;It gives you power to control, and control over power. Put simply, you can now turn on and off lamps, fans, solenoids, and other small appliances that run on...

In Stock
[Buy Now](https://www.adafruit.com/product/4409)
[Related Guides to the Product](https://learn.adafruit.com/products/4409/guides)
![Demo lamp connected to a circuit playground and a Stemma with alligator clips. ](https://cdn-shop.adafruit.com/product-videos/640x480/4409-05.jpg)

## Raspberry Pi Headers

On the top and bottom of the HAT and Bonnet are the Raspberry Pi headers.

- The bottom is meant to plug into a Pi (works best with Pi 400!). They are at an angle to facilitate the Pi 400.
- The top headers are to allow you to plug in a HAT or Bonnet. The pinouts are identical - just plug in any HAT or Bonnet!

### Adafruit 2.23" Monochrome OLED Bonnet for Raspberry Pi

[Adafruit 2.23" Monochrome OLED Bonnet for Raspberry Pi](https://www.adafruit.com/product/4567)
If you're looking for a bright, readable OLED display for a [Raspberry Pi](https://www.adafruit.com/category/361) (most&nbsp;likely a [Pi Zero](https://www.adafruit.com/category/813)) project, this might be just the thing you need!

The **...**

In Stock
[Buy Now](https://www.adafruit.com/product/4567)
[Related Guides to the Product](https://learn.adafruit.com/products/4567/guides)
![Angled shot of 2.23" OLED display PCB.](https://cdn-shop.adafruit.com/640x480/4567-14.jpg)

### PiTFT Plus 480x320 3.5" TFT+Touchscreen for Raspberry Pi

[PiTFT Plus 480x320 3.5" TFT+Touchscreen for Raspberry Pi](https://www.adafruit.com/product/2441)
Is this not the cutest, little display for the Raspberry Pi? It features a **3.5" display with 480x320** 16-bit color pixels and a resistive touch overlay [just like our popular original](https://www.adafruit.com/products/2097), but this one is engineered...

Out of Stock
[Buy Now](https://www.adafruit.com/product/2441)
[Related Guides to the Product](https://learn.adafruit.com/products/2441/guides)
![Blue polished finger touching the PiTFT Plus 480x320 3.5" TFT+Touchscreen for Raspberry Pi. ](https://cdn-shop.adafruit.com/640x480/2441-10.jpg)

# CYBERDECK Bonnet and HAT for Raspberry Pi 400

## Fixing Pin Conflicts

Both CYBERDECKs include 2 general purpose 3-pin STEMMA connectors. One is connected to GPIO pin **18** and the other is connected to GPIO pin **13** :

![](https://cdn-learn.adafruit.com/assets/assets/000/105/630/medium800/adafruit_products_cyber_stemma.jpg?1634589727)

Each one of these has some additional protection circuitry in the form of an inline 1K resistor and a diode. The diode is connected to ground.

![](https://cdn-learn.adafruit.com/assets/assets/000/105/631/medium800/adafruit_products_cyber_stemma2.jpg?1634590040)

In general, this shouldn't be an issue. However, if those same pins are used for an attached display (or other item), then there can be potential conflicts.

One known conflict exists between the **Pimoroni HyperPixel 4-inch** and **GPIO 18**. This pin gets used as the SPI chip select for the HyperPixel. It affects both the [touch](https://www.adafruit.com/product/3578) and [non-touch](https://www.adafruit.com/product/3932) versions.

**If you are having issues getting a Pimoroni HyperPixel display to work with the CYBERDECK HAT or Bonnet, then you may need to make the following modifications.**

## Option 1 - Cut a Trace

This is the potentially easier option since only a sharp edged tool, like an xacto knife is needed. **However, this will permanently disable the #18 STEMMA connector.**

To make this modification, **carefully** use a sharp edged tool like an xacto knife and score the trace here until it is cut through:

 **Newer versions** of the CYBERDECK include a cuttable trace jumper:

![](https://cdn-learn.adafruit.com/assets/assets/000/118/623/medium800/adafruit_products_hat_trace.png?1677000796)

The **original version** of the CYBERDECK lacked the cuttable jumper, so the trace here must be cut:

![](https://cdn-learn.adafruit.com/assets/assets/000/105/632/medium800/adafruit_products_cyberdeck_cut_trace.jpg?1634591016)

## Option 2 - Remove the Diode (original version only!)

**Newer versions of the CYBERDECK include cuttable trace jumpers - see Option 1.**

This option is best done using a soldering iron or hot air gun to heat up the solder holding the diode down. The STEMMA connector will remain connected, through the 1k resistor, to GPIO 18, and will still be functional. **However, removing the diode will remove the protection it provides against putting 5V \*in\* to the STEMMA connector.** So just be aware of that.

This is the diode that needs to be removed:

![](https://cdn-learn.adafruit.com/assets/assets/000/105/633/medium800/adafruit_products_cyberdeck_diode.jpg?1634591139)

# CYBERDECK Bonnet and HAT for Raspberry Pi 400

## Downloads

## Files:

- [Fritzing object for HAT in Adafruit Fritzing Library](https://github.com/adafruit/Fritzing-Library/blob/master/parts/Adafruit%20CYBERDECK%20HAT.fzpz)
- [Fritzing object for Bonnet in Adafruit Fritzing Library](https://github.com/adafruit/Fritzing-Library/blob/master/parts/Adafruit%20CYBERDECK%20Bonnet.fzpz)
- [EagleCAD PCB files on GitHub](https://github.com/adafruit/Adafruit-CYBERDECK-PCB)
- [3D Model for HAT on GitHub](https://github.com/adafruit/Adafruit_CAD_Parts/tree/master/4863%20CYBERDECK%20Hat)
- [3D Model for Bonnet on GitHub](https://github.com/adafruit/Adafruit_CAD_Parts/tree/master/4862%20CYBERDECK%20Bonnet)

# Schematic and Fab Print for CYBERDECK HAT
![](https://cdn-learn.adafruit.com/assets/assets/000/100/884/medium800/adafruit_products_CDH_sch.png?1616520068)

![](https://cdn-learn.adafruit.com/assets/assets/000/100/885/medium800/adafruit_products_CDH_fab_print.png?1616520133)

# Schematic and Fab Print for CYBERDECK Bonnet
![](https://cdn-learn.adafruit.com/assets/assets/000/100/886/medium800/adafruit_products_CDB_sch.png?1616522788)

![](https://cdn-learn.adafruit.com/assets/assets/000/100/887/medium800/adafruit_products_CDB_fab_print.png?1616522801)


## Primary Products

### Adafruit CYBERDECK Bonnet for Raspberry Pi 400 & 500

[Adafruit CYBERDECK Bonnet for Raspberry Pi 400 & 500](https://www.adafruit.com/product/4862)
Howdy keyboard cowboys, are you surfing the information superhighway with a Pi 400? Want a cool heads-up display, or maybe you need to wire up some NeoPixel wetware...?

Well, we just fenced 12 megabytes of ram and some angled socket header from the underground hacker club next to the...

In Stock
[Buy Now](https://www.adafruit.com/product/4862)
[Related Guides to the Product](https://learn.adafruit.com/products/4862/guides)
### Adafruit CYBERDECK HAT for Raspberry Pi 400 & 500

[Adafruit CYBERDECK HAT for Raspberry Pi 400 & 500](https://www.adafruit.com/product/4863)
Cyber-warriors, listen up here! We’ve got with some zero-day unreleased hardware we just dumpster-dived. Now you can crack kodes, and write skripts with style, thanks to the **CYBERDECK HAT&nbsp;for Raspberry Pi 400 & 500** from Adafruit zaibatsu.

This is the same...

In Stock
[Buy Now](https://www.adafruit.com/product/4863)
[Related Guides to the Product](https://learn.adafruit.com/products/4863/guides)

## Featured Products

### Raspberry Pi 400 Desktop - Computer Only

[Raspberry Pi 400 Desktop - Computer Only](https://www.adafruit.com/product/4795)
Raspberry Pi 400 is a complete Raspberry Pi 4-based personal computer, integrated into a keyboard. The Pi 4 is the first computer from the Pi Foundation that really feels 'desktop computer' speed - you can use it as an every day computer at a great price!

Normally you'd need...

In Stock
[Buy Now](https://www.adafruit.com/product/4795)
[Related Guides to the Product](https://learn.adafruit.com/products/4795/guides)

## Related Guides

- [CYBERDECK Expansion Plate](https://learn.adafruit.com/cyberdeck-plate.md)
- [Analog Knobs on Raspberry Pi 400 with CYBERDECK Hat](https://learn.adafruit.com/analog-knobs-on-raspberrypi-400-with-cyberdeck-hat.md)
- [Current Limiting Stepper Driver with DRV8871](https://learn.adafruit.com/current-limiting-stepper-driver-with-drv8871.md)
- [Quickstart IoT - Raspberry Pi Pico RP2040 with WiFi ](https://learn.adafruit.com/quickstart-rp2040-pico-with-wifi-and-circuitpython.md)
- [Adafruit ESP32-S2 Feather](https://learn.adafruit.com/adafruit-esp32-s2-feather.md)
- [Adafruit BH1750 Ambient Light Sensor](https://learn.adafruit.com/adafruit-bh1750-ambient-light-sensor.md)
- [Adafruit PMSA003I Air Quality Breakout](https://learn.adafruit.com/pmsa003i.md)
- [Adafruit Pi Stemma QT Breakout](https://learn.adafruit.com/adafruit-pi-stemma-qt-breakout.md)
- [Adafruit bq25185 USB / DC / Solar Charger with 5V Boost Board](https://learn.adafruit.com/adafruit-bq25185-usb-dc-solar-charger-with-5v-boost-board.md)
- [Adafruit A4988 Stepper Motor Driver Breakout Board](https://learn.adafruit.com/adafruit-a4988-stepper-motor-driver-breakout-board.md)
- [Running PyPortal Code on Blinka with Displayio](https://learn.adafruit.com/running-pyportal-code-on-blinka-with-displayio.md)
- [Adafruit AS7331 UV / UVA / UVB / UVC Sensor](https://learn.adafruit.com/adafruit-as7331-uv-uva-uvb-uvc-sensor.md)
- [Stand for Feather ESP32 with Reverse TFT](https://learn.adafruit.com/stand-for-feather-esp32-with-reverse-tft.md)
- [Adafruit High Power Infrared LED Emitter](https://learn.adafruit.com/adafruit-high-power-infrared-led-emitter.md)
- [Adafruit ADS7128 8-Channel ADC and GPIO Expander](https://learn.adafruit.com/adafruit-ads7128-8-channel-adc-and-gpio-expander.md)
