# Analog Knobs on Raspberry Pi 400 with CYBERDECK Hat

## Overview

https://www.youtube.com/watch?v=jUFuDnU7cMw

![](https://cdn-learn.adafruit.com/assets/assets/000/101/162/medium800/raspberry_pi_piknob-0874.jpg?1617215380)

Raspberry Pi single board computers are wonderful devices. They can do so many things, including interact with sensors, inputs, and outputs with their GPIO (general purpose Input/Output) pins -- however, analog input and output are not available on the stock Raspberry Pi.

What happens when you want to turn some knobs or slide some faders? No fear, it's simple to add an Analog-to-Digital Converter (ADC) and this guide is going to show you how!

You'll use the retro-tastic CYBERDECK Hat to add some STEMMA QT / Qwiic compatible I2C connectors to the Raspberry Pi 400, and then plug in the PCF8591 Quad 8-Bit ADC + DAC breakout board. The PCF8591 makes it simple to add four potentiometers to your Pi project.

Add a PiTFT to the mix and you'll have a compact and stylish computing setup that you can use for live music coding jams including four knobs to twiddle!

## Parts
Featured
### 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)
![Angled shot of a Raspberry Pi 400 Desktop.](https://cdn-shop.adafruit.com/640x480/4795-06.jpg)

Featured
### Raspberry Pi 400 Desktop - Full Computer Kit

[Raspberry Pi 400 Desktop - Full Computer Kit](https://www.adafruit.com/product/4796)
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/4796)
[Related Guides to the Product](https://learn.adafruit.com/products/4796/guides)
![A collection of electronic parts included in kit.](https://cdn-shop.adafruit.com/640x480/4796-12.jpg)

Featured
### 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)
![Video of a person typing code on a Pi 400 keyboard. A PiTFT display is connected to the keyboard, and a heart wallpaper appears on the TFT.](https://cdn-shop.adafruit.com/product-videos/640x480/4863-07.jpg)

Featured
### 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)

Featured
### Adafruit PCF8591 Quad 8-bit ADC + 8-bit DAC - STEMMA QT / Qwiic

[Adafruit PCF8591 Quad 8-bit ADC + 8-bit DAC - STEMMA QT / Qwiic](https://www.adafruit.com/product/4648)
Measuring voltage and adjusting it is what electronics is all about so you won’t get far without friends like the **Adafruit PCF8591 Quad 8-bit ADC + 8-bit DAC combo**.&nbsp;&nbsp; **A** nalog to&nbsp; **D** igital&nbsp; **C** onverters help...

In Stock
[Buy Now](https://www.adafruit.com/product/4648)
[Related Guides to the Product](https://learn.adafruit.com/products/4648/guides)
![Angled shot of Adafruit PCF8591 Quad 8-bit ADC + 8-bit DAC - STEMMA QT / Qwiic.](https://cdn-shop.adafruit.com/640x480/4648-01.jpg)

Featured
### 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)

### Potentiometer with Built In Knob - 10K ohm

quantity: 4
[Potentiometer with Built In Knob - 10K ohm](https://www.adafruit.com/product/4133)
_Oh say can you see_  
_By the knob's early light..._

Sorry - we thought that was clever. &nbsp;And while it wasn't really, this potentiometer definitely is! We've seen these in miniature synthesizers. They're bigger than a trim-pot but smaller than a...

In Stock
[Buy Now](https://www.adafruit.com/product/4133)
[Related Guides to the Product](https://learn.adafruit.com/products/4133/guides)
![Potentiometer with Built In Knob](https://cdn-shop.adafruit.com/640x480/4133-03.jpg)

### Universal Proto-Board PCBs 5cm x 7cm - 3 Pack

[Universal Proto-Board PCBs 5cm x 7cm - 3 Pack](https://www.adafruit.com/product/4786)
Here's a handy 3-pack of **5cm x 7cm Proto-board PCBs** in green. Both sides have a green silkscreen with some row/column markings. Note that these _don't_ have any traces between the PCB holes, <a...></a...>

Out of Stock
[Buy Now](https://www.adafruit.com/product/4786)
[Related Guides to the Product](https://learn.adafruit.com/products/4786/guides)
![Angled shot of single Universal Proto-Board PCB 5cm x 7cm](https://cdn-shop.adafruit.com/640x480/4786-05.jpg)

Featured
### USB Audio Adapter - Works with Raspberry Pi

[USB Audio Adapter - Works with Raspberry Pi](https://www.adafruit.com/product/1475)
The Raspberry Pi has an on-board audio jack, which is super handy for all kinds of sound effects and speech, just plug and go! However, for when you want better audio for music playback, a USB audio card can greatly improve the sound quality and volume. That's because the on-board audio is...

In Stock
[Buy Now](https://www.adafruit.com/product/1475)
[Related Guides to the Product](https://learn.adafruit.com/products/1475/guides)
![White audio adapter with USB-A cable.](https://cdn-shop.adafruit.com/640x480/1475-03.jpg)

## Optional
Featured
### USB Powered Speakers

[USB Powered Speakers](https://www.adafruit.com/product/1363)
Add some extra boom to your audio project with these powered loudspeakers. We sampled half a dozen different models to find ones with a good frequency response, so you'll get quality audio output for music playback. Simply connect the standard 3.5mm stereo plug into your Raspberry Pi model...

In Stock
[Buy Now](https://www.adafruit.com/product/1363)
[Related Guides to the Product](https://learn.adafruit.com/products/1363/guides)
![Two square-ish USB Powered Speakers](https://cdn-shop.adafruit.com/640x480/1363-07.jpg)

Featured
### Hook-up Wire Spool Set - 22AWG Solid Core - 6 x 25 ft

[Hook-up Wire Spool Set - 22AWG Solid Core - 6 x 25 ft](https://www.adafruit.com/product/1311)
Perfect for bread-boarding, free wiring, etc. This box contains **6** spools of **solid-core** wire. These&nbsp;spools of solid-core wires are&nbsp;easily soldered to,&nbsp;keeps its shape pretty well when bent&nbsp;and is rated 80C and 300V (UL AWM style 1007). We...

In Stock
[Buy Now](https://www.adafruit.com/product/1311)
[Related Guides to the Product](https://learn.adafruit.com/products/1311/guides)
![Hook-up Wire Spool Set in box with 6 colorful wires coming out](https://cdn-shop.adafruit.com/640x480/1311-04.jpg)

Featured
### Hakko Professional Quality 20-30 AWG Wire Strippers

[Hakko Professional Quality 20-30 AWG Wire Strippers](https://www.adafruit.com/product/527)
These are the finest wire strippers we have used, and if you have to do a lot of wiring, you will agree! They have soft rounded grips - very comfortable to use, and precision ground notches that do a perfect job every time. No more yanking or twisting to strip wires cleanly and quickly.<br...></br...>

Out of Stock
[Buy Now](https://www.adafruit.com/product/527)
[Related Guides to the Product](https://learn.adafruit.com/products/527/guides)
![Red and black multi-size wire stripplers, closed](https://cdn-shop.adafruit.com/640x480/527-02.jpg)

Featured
### Flush diagonal cutters

[Flush diagonal cutters](https://www.adafruit.com/product/152)
These are the best diagonal cutters, large super-comfortable grip to use and have strong nippers for perfect trimming of wires and leads. I've used my pair every day for years.

In Stock
[Buy Now](https://www.adafruit.com/product/152)
[Related Guides to the Product](https://learn.adafruit.com/products/152/guides)
![Red and black diagonal flush cutters](https://cdn-shop.adafruit.com/640x480/152-02.jpg)

# Analog Knobs on Raspberry Pi 400 with CYBERDECK Hat

## Raspberry Pi 400 Setup

## Rapsberry Pi OS

If you're using the Raspberry Pi 400 Desktop - Full Computer Kit you'll already have an SD card with Rapsberry Pi OS on it. If you are using the Pi 400 Computer Only, you'll need to get an [SD card](https://www.adafruit.com/product/2693) and [install Rapsberry Pi OS on it](https://www.raspberrypi.org/software/operating-systems/).&nbsp;

With the SD card inserted, plug an HDMI monitor into your Pi 400 using HDMI port 0, plug in a mouse, and then power it up.

I've labeled the HDMI ports in this photo -- sometimes there are issues with playing audio over HDMI when adjusting to certain resolutions and it can be helpful to start off using HDMI port 0.

If this is your first time using the Pi, get started with this excellent book, **The Official Raspberry Pi Beginner's Guide** , which is available as a [free .pdf](https://magpi.raspberrypi.org/books/beginners-guide-4th-ed).

![raspberry_pi_IMG_0824.jpg](https://cdn-learn.adafruit.com/assets/assets/000/101/086/medium640/raspberry_pi_IMG_0824.jpg?1617066836)

Once your Pi is set up and running proceed with the directions below.

## Audio Out

Since the Pi 400 lacks an audio output jack (all audio must be sent over HDMI), we'll plug in a USB sound "card" in order to get audio out to powered speakers, a mixer, or other gear.

Plug this into any USB port on the Pi, then run a 3.5mm TRS cable to the output jack.

![raspberry_pi_1475-03.jpg](https://cdn-learn.adafruit.com/assets/assets/000/101/167/medium640/raspberry_pi_1475-03.jpg?1617218674)

## Software Setup

Now, make sure you have Python 3 setup, as Python 2 is no longer used or supported.

&nbsp; **pip3** , is the software package installer you'll use. Upgrade it to the latest version with this command from a terminal:

`sudo pip3 install --upgrade setuptools`

If above doesn't work try

`sudo apt-get install python3-pip`

Once that has finished you'll be returned to the prompt.

## Make sure you're using Python 3!

The default Python on your computer may not be Python 3. Python 2 is officially discontinued and all our libraries are Python 3 only.

We'll be using `python3` and `pip3` in our commands, use those versions of Python and pip to make sure you're using 3 and not 2.

## Python Installation of PCF8591 Library

&nbsp;[Since each platform is a little different, and Linux changes often, please visit the CircuitPython on Linux guide to get your computer ready](https://learn.adafruit.com/circuitpython-on-raspberrypi-linux)!

Once that's done, from your command line run the following command:

`pip3 install adafruit-circuitpython-pcf8591`

If your default Python is version 3 you may need to run 'pip' instead. Just make sure you aren't trying to use CircuitPython on Python 2.x, it isn't supported!

## Sonic-Pi

You can use the knobs and ADC on your Pi any way you like, but for the purposes of this guide, you should try it out with Sonic-Pi, the live coding music software.

Head to this [link](https://sonic-pi.net/#rp) and then follow the terminal installation instructions. They look something like this (the version may update after this guide was written, so follow the instructions on that linked page):

`sudo apt update 

 sudo apt install ./sonic-pi_3.3.1_1_armhf.deb
`

## Python OSC

In order for the knobs to send messages to Sonic-Pi (or other synth software) you'll use OSC (Open Sound Control) which is a modern alternative to MIDI for inter-instrument communications.

One great feature of OSC is its ability to send and receive messages among different programs on the same computer via UDP.

Install the [python-osc library](https://pypi.org/project/python-osc/) by running the following commands from the terminal:

`pip3 install python-osc`

## Sending and Receiving OSC

[Here's a terrific example](https://github.com/sonic-pi-net/sonic-pi/blob/main/etc/doc/tutorial/12.1-Receiving-OSC.md) of sending OSC messages from a Python script and listening/receiving those messages in Sonic-Pi. I've excerpted sections of it here:

```ruby
live_loop :foo do
  use_real_time
  a, b, c = sync "/osc*/trigger/prophet"
  synth :prophet, note: a, cutoff: b, sustain: c
end
```

> In this example we described an OSC path `"/osc*/trigger/prophet"` which we're syncing on. This can be any valid OSC path (all letters and numbers are supported and the `/` is used like in a URL to break up the path to multiple words). The `/osc` prefix is added by Sonic Pi to all incoming OSC messages, so we need to send an OSC message with the path `/trigger/prophet` for our `sync` to stop blocking and the prophet synth to be triggered.

## Sending from Python

> We can send OSC to Sonic Pi from any programming language that has an OSC library. For example, if we're sending OSC from Python we might do something like this:

```python
from pythonosc import osc_message_builder
from pythonosc import udp_client

sender = udp_client.SimpleUDPClient('127.0.0.1', 4560)
sender.send_message('/trigger/prophet', [70, 100, 8])
```

Later you'll create a Python script that reads the knob inputs, and then converts the values and sends OSC messages to be read by Sonic-Pi.

## PiTFT Install

[Follow these steps](https://learn.adafruit.com/adafruit-pitft-3-dot-5-touch-screen-for-raspberry-pi/easy-install-2#installer-script-2038256-6) to install the PiTFT in FBCP mode. This mode mirrors the HDMI output onto the PiTFT, and can be used stand-alone, no HDMI monitor required!

![](https://cdn-learn.adafruit.com/assets/assets/000/101/170/medium800/raspberry_pi_piknob-0874.jpg?1617313287)

# Analog Knobs on Raspberry Pi 400 with CYBERDECK Hat

## Build Control Knob Board with ADC

![](https://cdn-learn.adafruit.com/assets/assets/000/101/147/medium800/raspberry_pi_piknob-0838.jpg?1617206038)

# Analog Signals

Analog signals are different from digital signals in that they can be&nbsp;_any_&nbsp;voltage and can vary continuously and smoothly between voltages. An analog signal is like a dimmer switch on a light, whereas a digital signal is like a simple on/off switch.&nbsp;

Digital signals only can ever have two states, they are either are&nbsp; **on** &nbsp;(high logic level voltage like 3.3V) or&nbsp; **off** &nbsp;(low logic level voltage like 0V / ground).

By contrast, analog signals can be any voltage in-between on and off, such as 1.8V or 0.001V or 2.98V and so on.

Analog signals are continuous values which means they can be an&nbsp;_infinite_&nbsp;number of different voltages. Think of analog signals like a floating point or fractional number, they can smoothly transiting to&nbsp;_any_&nbsp;in-between value like 1.8V, 1.81V, 1.801V, 1.8001V, 1.80001V and so forth to infinity.

Many devices use analog signals, in particular sensors typically output an analog signal or voltage that varies based on something being sensed like light, heat, humidity, etc. Some examples of sensors with analog outputs:

- [Microphones](https://www.adafruit.com/product/1063)
- [Photocells (light sensitive resistors)](https://www.adafruit.com/product/161)
- [Temperature sensors](https://www.adafruit.com/product/165)
- [Force-sensitive resistors](https://www.adafruit.com/product/166)
- [Flex sensors](https://www.adafruit.com/product/1070)
- [Thermistor (temperature sensitive resistor)](https://www.adafruit.com/product/372)
- [Ultraviolet light sensor](https://www.adafruit.com/product/1918)
- [Light sensors](https://www.adafruit.com/product/2748)
- [Distance sensor](https://www.adafruit.com/product/164)
- [Anemometer (wind speed sensor)](https://www.adafruit.com/product/1733)
- [Resistive touch screen](https://www.adafruit.com/product/333)
- [Ultrasonic distance sensor](https://www.adafruit.com/product/979)
- [Liquid level sensor](https://www.adafruit.com/product/464)
- [Potentiometer (variable resistor)](https://www.adafruit.com/product/356)

## Wire the Pots

The four potentiometers will act as voltage dividers, sending anywhere from 0V to 3.3V to their respective ADC pins on the PCF8591.

Voltage dividers work by connecting one of the outer pot legs to ground, the other outer leg to positive voltage (in this case 3.3V), and then the center (wiper) leg to an analog input pin on the ADC.

On a breadboard, you can connect your pots as shown here.

![](https://cdn-learn.adafruit.com/assets/assets/000/101/151/medium800/raspberry_pi_piknobfritzbread.jpg?1617210226)

## Perf Board

For this finished project, you'll connect your ADC board and pots on a perf board. The perf board has lots of solder points, but none of them are connected by default as is the case with a breadboard. So, you'll wire everything directly.

This diagram shows the connections necessary, however you'll do the wiring underneath the board, so this image is a bit like an x-ray view.

![](https://cdn-learn.adafruit.com/assets/assets/000/101/150/medium800/raspberry_pi_piknobfritz.jpg?1617209426)

![](https://cdn-learn.adafruit.com/assets/assets/000/101/152/medium800/raspberry_pi_piknob-0838.jpg?1617210576)

Solid core hook-up wire works well for this type of hand-wired trace circuit.

![](https://cdn-learn.adafruit.com/assets/assets/000/101/154/medium800/raspberry_pi_piknob-0837b.jpg?1617210797)

Once you've built the circuit, you should use a multimeter in continuity mode to test that you don't have any shorts.

## CYBERDECK Hat

The CYBERDECK Hat is perfect for adding accessories to the RPi 400. It breaks out all of the GPIO pins at a useful angle, plus it adds convenient STEMMA QT/Qwiic plugs for easy I2C use.

The CYBERDECK also gives us a great place to mount additional boards. This mounting plate allows us to add the knob board to the CYBERDECK.

![](https://cdn-learn.adafruit.com/assets/assets/000/101/156/medium800/raspberry_pi_piknob-0864.jpg?1617213810)

Download the model from the link below and print it in PLA at 0.2mm layer height, 60% infill.

[CYBERDECK Hat mount 3D model](https://www.thingiverse.com/thing:4812727)
Use M2.5 screws and nuts to fasten the mounting plate to the CYBERDECK Hat.

Use M2 standoffs, nuts, and screws to fasten the knob board to the mounting plate.

![raspberry_pi_piknob-0865.jpg](https://cdn-learn.adafruit.com/assets/assets/000/101/157/medium640/raspberry_pi_piknob-0865.jpg?1617213980)

![raspberry_pi_piknob-0866.jpg](https://cdn-learn.adafruit.com/assets/assets/000/101/158/medium640/raspberry_pi_piknob-0866.jpg?1617213991)

![](https://cdn-learn.adafruit.com/assets/assets/000/101/160/medium800/raspberry_pi_piknob-0867.jpg?1617214081)

With the Pi powered off, insert the CYBERDECK Hat into the GPIO pin slot, being careful to align the pins properly.

![](https://cdn-learn.adafruit.com/assets/assets/000/101/163/medium800/raspberry_pi_piknob-0868.jpg?1617215503)

## PiTFT

You can now add the PiTFT to the CYBERDECK Hat and power up the Pi.

![raspberry_pi_piknob-0869.jpg](https://cdn-learn.adafruit.com/assets/assets/000/101/164/medium640/raspberry_pi_piknob-0869.jpg?1617215570)

![raspberry_pi_piknob-0874.jpg](https://cdn-learn.adafruit.com/assets/assets/000/101/165/medium640/raspberry_pi_piknob-0874.jpg?1617215586)

# Analog Knobs on Raspberry Pi 400 with CYBERDECK Hat

## Use Knob Controller in Python

![](https://cdn-learn.adafruit.com/assets/assets/000/101/172/medium800/raspberry_pi_piknob-0879.jpg?1617313412)

## Read Knobs in Python

Time to try things out! Fire up your Pi 400 and then launch a Python editor such as Thonny or Mu.

Copy the code below, paste it into your Python editor, and then run the code by pressing the "play" button.

```python
#!/usr/bin/env python

import time
import board

import adafruit_pcf8591.pcf8591 as PCF
from adafruit_pcf8591.analog_in import AnalogIn

i2c = board.I2C()
pcf = PCF.PCF8591(i2c)

pcf_in_0 = AnalogIn(pcf, PCF.A0)
pcf_in_1 = AnalogIn(pcf, PCF.A1)
pcf_in_2 = AnalogIn(pcf, PCF.A2)
pcf_in_3 = AnalogIn(pcf, PCF.A3)


while True:
    a_val = pcf_in_0.value
    print((a_val))

    b_val = pcf_in_1.value
    print(b_val)
    
    c_val = pcf_in_2.value
    print((c_val))

    d_val = pcf_in_3.value
    print(d_val)
    

    time.sleep(0.1)
```

Turn the knobs and you'll see the four values changing, from 0 to 65,535.

## Python Knobs OSC Code
Copy the code shown below and paste it into a new empty document in Thonny or Mu. You can save it as `code.py` and then run it.

This will cause the knob readings to send out OSC messages. Next, we'll create Sonic-Pi code to read the messages and play music!

https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/Pi400_Knobs/code.py

## Sonic-Pi Script

Here's a Sonic-Pi script that will listen for the OSC values sent from the knob readings, and use those values to adjust the notes, filter cutoff, sustain, and gain.

Copy this and then paste it into a new buffer in Sonic-Pi.

```ruby
live_loop :knob_patch do
  use_real_time
  a, b, c, d = sync "/osc*/trigger/prophet"
  synth :prophet, note: a, cutoff: b, sustain: c, amp: d
  sleep 0.25
  4.times do  # loop a short arpeggio
    a=a+2
    synth :prophet, note: a, cutoff: b, amp: d

    sleep 0.25

  end
end
```

https://www.youtube.com/watch?v=jUFuDnU7cMw


## Guide 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)
### Raspberry Pi 400 Desktop - Full Computer Kit

[Raspberry Pi 400 Desktop - Full Computer Kit](https://www.adafruit.com/product/4796)
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/4796)
[Related Guides to the Product](https://learn.adafruit.com/products/4796/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)
### 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)
### Adafruit PCF8591 Quad 8-bit ADC + 8-bit DAC - STEMMA QT / Qwiic

[Adafruit PCF8591 Quad 8-bit ADC + 8-bit DAC - STEMMA QT / Qwiic](https://www.adafruit.com/product/4648)
Measuring voltage and adjusting it is what electronics is all about so you won’t get far without friends like the **Adafruit PCF8591 Quad 8-bit ADC + 8-bit DAC combo**.&nbsp;&nbsp; **A** nalog to&nbsp; **D** igital&nbsp; **C** onverters help...

In Stock
[Buy Now](https://www.adafruit.com/product/4648)
[Related Guides to the Product](https://learn.adafruit.com/products/4648/guides)
### 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)
### Potentiometer with Built In Knob - 10K ohm

[Potentiometer with Built In Knob - 10K ohm](https://www.adafruit.com/product/4133)
_Oh say can you see_  
_By the knob's early light..._

Sorry - we thought that was clever. &nbsp;And while it wasn't really, this potentiometer definitely is! We've seen these in miniature synthesizers. They're bigger than a trim-pot but smaller than a...

In Stock
[Buy Now](https://www.adafruit.com/product/4133)
[Related Guides to the Product](https://learn.adafruit.com/products/4133/guides)
### Universal Proto-Board PCBs 5cm x 7cm - 3 Pack

[Universal Proto-Board PCBs 5cm x 7cm - 3 Pack](https://www.adafruit.com/product/4786)
Here's a handy 3-pack of **5cm x 7cm Proto-board PCBs** in green. Both sides have a green silkscreen with some row/column markings. Note that these _don't_ have any traces between the PCB holes, <a...></a...>

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

## Related Guides

- [Adafruit PCF8591 Basic 4 x ADC + DAC Breakout](https://learn.adafruit.com/adafruit-pcf8591-adc-dac.md)
- [CYBERDECK Bonnet and HAT for Raspberry Pi 400](https://learn.adafruit.com/cyberdeck-bonnet-and-hat.md)
- [Arcade Button Control Box](https://learn.adafruit.com/arcade-button-control-box.md)
- [Micro:bit Radio Control of Crickit Robotics](https://learn.adafruit.com/micro-bit-radio-control-of-crickit-robotics.md)
- [Arcade Synth Controller](https://learn.adafruit.com/arcade-synth-controller.md)
- [PB Gherkin 30% keyboard with KMK, CircuitPython, & KB2040](https://learn.adafruit.com/pb-gherkhin-30-keyboard-with-kmk-circuitpython-kb2040.md)
- [No-Code Indoor Air Quality Monitor with Separate Display](https://learn.adafruit.com/no-code-indoor-air-quality-monitor-with-separate-display.md)
- [Adafruit Feather RP2040 RFM95](https://learn.adafruit.com/feather-rp2040-rfm95.md)
- [No-Solder Faux Neon Bike Lights](https://learn.adafruit.com/no-solder-faux-neon-bike-lights.md)
- [Adafruit Metro ESP32-S3](https://learn.adafruit.com/adafruit-metro-esp32-s3.md)
- [Circle of Fifths Euclidean Synth with synthio and CircuitPython](https://learn.adafruit.com/circle-of-fifths-euclidean-synth-with-synthio-and-circuitpython.md)
- [JOY Controller for Adafruit Feather](https://learn.adafruit.com/joy-controller-feather.md)
- [diy lofi hip hop raspberry pi radio](https://learn.adafruit.com/lofi-hip-hop-raspberry-pi-radio-braincraft.md)
- [QT Py Snap Fit Case](https://learn.adafruit.com/qt-py-snap-fit-case.md)
- [Raspberry Pi Rotary Encoder Animated Gif Player](https://learn.adafruit.com/python-rotary-animated-gif-player-two-different-ways.md)
- [Adafruit Feather RP2040 RFM69](https://learn.adafruit.com/feather-rp2040-rfm69.md)
- [Glowing Smokey Skull ](https://learn.adafruit.com/glowing-smokey-skull.md)
