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

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

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

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

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

### 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...>

Out of 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)

### Part: Potentiometer with Built In Knob
quantity: 4
10K ohm
[Potentiometer with Built In Knob](https://www.adafruit.com/product/4133)

### Part: Universal Proto-Board PCB
quantity: 1
5cm x 7cm
[Universal Proto-Board PCB](https://www.adafruit.com/product/4786)

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

### 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. The wire is easy to solder to and when bent it keeps its shape pretty well. We like to have a few spools of this stuff around which is why this set is quite nice! We suggest picking up wire strippers...

Out of 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)

### 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...>

In 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)

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

- [Next Page](https://learn.adafruit.com/analog-knobs-on-raspberrypi-400-with-cyberdeck-hat/raspberry-pi-400-setup.md)

## 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)
### 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)
### 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)
### Slim Metal Potentiometer Knob - 10mm Diameter x 15mm - T18

[Slim Metal Potentiometer Knob - 10mm Diameter x 15mm - T18](https://www.adafruit.com/product/2057)
This slim and modern potentiometer is small and compact, yet looks good and has a nice feel. We hand-selected the best knobs for your project in different sizes and varieties. &nbsp;This one is the...

In Stock
[Buy Now](https://www.adafruit.com/product/2057)
[Related Guides to the Product](https://learn.adafruit.com/products/2057/guides)
### 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)

## 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)
- [Kali Linux on the Raspberry Pi with the PiTFT](https://learn.adafruit.com/kali-linux-on-the-raspberry-pi-with-the-pitft.md)
- [Mini Raspberry Pi Handheld Notebook](https://learn.adafruit.com/mini-raspberry-pi-handheld-notebook-palmtop.md)
- [Using OSC to Communicate with a Raspberry Pi](https://learn.adafruit.com/raspberry-pi-open-sound-control.md)
- [Pi Hole Ad Detection Display with PiTFT](https://learn.adafruit.com/pi-hole-ad-pitft-tft-detection-display.md)
- [CYBERDECK Expansion Plate](https://learn.adafruit.com/cyberdeck-plate.md)
- [3.5" PiTFT OctoPrint Rig](https://learn.adafruit.com/3-dot-5-pitft-octoprint-rig.md)
- [Raspberry Pi Pipboy 3000](https://learn.adafruit.com/raspberry-pi-pipboy-3000.md)
- [Processing on the Raspberry Pi & PiTFT](https://learn.adafruit.com/processing-on-the-raspberry-pi-and-pitft.md)
- [Adafruit PiTFT 3.5" Touch Screen for Raspberry Pi](https://learn.adafruit.com/adafruit-pitft-3-dot-5-touch-screen-for-raspberry-pi.md)
- [Adafruit PiTFT - 2.8" Touchscreen Display for Raspberry Pi](https://learn.adafruit.com/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-pi.md)
- [Adafruit Mini I2C STEMMA QT Gamepad with seesaw](https://learn.adafruit.com/gamepad-qt.md)
- [Guitar Synth with CircuitPython SynthIO](https://learn.adafruit.com/guitar-synth-with-circuitpython-synthio.md)
- [Adafruit STEMMA Piezo Driver Amp](https://learn.adafruit.com/adafruit-stemma-piezo-driver-amp.md)
