Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use Adafruit CYBERDECK HAT: Examples, Pinouts, and Specs

Image of Adafruit CYBERDECK HATDesign with Adafruit CYBERDECK HAT in Cirkit Designer

Introduction

The Adafruit CYBERDECK HAT is an innovative expansion board designed for Raspberry Pi enthusiasts and cyberdeck builders. This HAT (Hardware Attached on Top) is equipped with a 128x64 monochrome OLED display, capacitive touch buttons, a joystick, and additional components that enable users to create interactive and user-friendly interfaces for their projects. It is ideal for DIY projects, custom interfaces, and portable computing applications.

Explore Projects Built with Adafruit CYBERDECK HAT

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Raspberry Pi 4B-Based Multi-Sensor Interface Hub with GPS and GSM: A project utilizing Adafruit CYBERDECK HAT in a practical application
Raspberry Pi 4B-Based Multi-Sensor Interface Hub with GPS and GSM

This circuit features a Raspberry Pi 4B interfaced with an IMX296 color global shutter camera, a Neo 6M GPS module, an Adafruit BMP388 barometric pressure sensor, an MPU-6050 accelerometer/gyroscope, and a Sim800l GSM module for cellular connectivity. Power management is handled by an MT3608 boost converter, which steps up the voltage from a Lipo battery, with a resettable fuse PTC and a 1N4007 diode for protection. The Adafruit Perma-Proto HAT is used for organizing connections and interfacing the sensors and modules with the Raspberry Pi via I2C and GPIO pins.

Open Project in Cirkit Designer
Image of Raspberry Pi 5 Smart Weather Station with GPS and AI Integration: A project utilizing Adafruit CYBERDECK HAT in a practical application
Raspberry Pi 5 Smart Weather Station with GPS and AI Integration

This circuit integrates a Raspberry Pi 5 with various peripherals including an 8MP 3D stereo camera, an AI Hat, a BMP388 sensor, a 16x2 I2C LCD, and an Adafruit Ultimate GPS module. The Raspberry Pi serves as the central processing unit, interfacing with the camera for image capture, the AI Hat for AI processing, the BMP388 for environmental sensing, the LCD for display, and the GPS module for location tracking, with a USB Serial TTL for serial communication.

Open Project in Cirkit Designer
Image of Raspberry Pi 4B-Based GPS and GSM Tracking System with Audio Feedback: A project utilizing Adafruit CYBERDECK HAT in a practical application
Raspberry Pi 4B-Based GPS and GSM Tracking System with Audio Feedback

This circuit features a Raspberry Pi 4B as the central processing unit, interfaced with a GPS NEO-6M V2 module for location tracking and an Adafruit FONA 808 Shield for cellular communication. It includes a PAM8406 5V Digital Audio Amplifier connected to an Adafruit STEMMA Speaker for audio output, and a Condenser Microphone connected to the FONA 808 for audio input. Power management is handled by a 12V battery connected to a voltage regulator that steps down the voltage to 5V and 3V required by the various components.

Open Project in Cirkit Designer
Image of ATmega328P-Based Sensor Hub with OLED Display and LIDAR: A project utilizing Adafruit CYBERDECK HAT in a practical application
ATmega328P-Based Sensor Hub with OLED Display and LIDAR

This circuit features an Mtiny Uno ATmega328P microcontroller as its central processing unit, interfacing with a variety of sensors and peripherals. It includes a 0.96" OLED display and an MPU6050 accelerometer/gyroscope for user interface and motion sensing, respectively. The circuit also integrates a TF LUNA LIDAR for distance measurement, a DHT11 sensor for temperature and humidity readings, and uses a 9V battery with a 7805 voltage regulator for power management. Communication with a computer for programming and data exchange is facilitated by an Adafruit FTDI Friend module.

Open Project in Cirkit Designer

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

Pin Number Function Description
1 3.3V Power supply for the OLED display and touch IC
2 5V Power supply for the HAT
3 SDA (I2C) I2C data line for communication with OLED
4 5V Power supply for the HAT
5 SCL (I2C) I2C clock line for communication with OLED
6 Ground Ground connection
... ... ...
39 Ground Ground connection
40 GPIO21 GPIO for joystick and additional features

Note: This table is not exhaustive and only includes key pins related to the CYBERDECK HAT's primary features.

Usage Instructions

Integrating with a Raspberry Pi

  1. Mounting the HAT: Secure the CYBERDECK HAT onto the Raspberry Pi's GPIO header. Ensure proper alignment of the pins.
  2. Software Setup: Install necessary drivers and libraries to interface with the OLED display and input devices. Adafruit provides a Python library for easy integration.
  3. Powering the System: Power the Raspberry Pi through its micro-USB or USB-C port, which will also power the CYBERDECK HAT.

Programming for Interactivity

To interact with the CYBERDECK HAT's components, you can use the provided Adafruit libraries. Here's an example of initializing the OLED display with Python:

import Adafruit_GPIO.SPI as SPI
import Adafruit_SSD1306

# Raspberry Pi pin configuration:
RST = 24
# Note the following are only used with SPI:
DC = 23
SPI_PORT = 0
SPI_DEVICE = 0

# 128x64 display with hardware I2C:
disp = Adafruit_SSD1306.SSD1306_128_64(rst=RST)

# Initialize library.
disp.begin()

# Clear display.
disp.clear()
disp.display()

Important Considerations and Best Practices

Troubleshooting and FAQs

Common Issues

Solutions and Tips

FAQs

Q: Can I use the CYBERDECK HAT with other Raspberry Pi models? A: Yes, as long as the Raspberry Pi model has a compatible 40-pin GPIO connector.

Q: Do I need to install any specific software to use the CYBERDECK HAT? A: Yes, you will need to install the Adafruit libraries for Python to interact with the display and input devices.

Q: How do I customize the display output? A: You can use the Adafruit SSD1306 library to draw text, shapes, and images on the OLED display.

For further assistance, refer to the Adafruit CYBERDECK HAT forums and community resources.