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!
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.
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.
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.
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.
Compatibility: Raspberry Pi with 40-pin GPIO connector
Dimensions: 65mm x 56mm x 7.2mm (without headers)
Mounting Holes: Compatible with Pi HAT standard
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
Mounting the HAT: Secure the CYBERDECK HAT onto the Raspberry Pi's GPIO header. Ensure proper alignment of the pins.
Software Setup: Install necessary drivers and libraries to interface with the OLED display and input devices. Adafruit provides a Python library for easy integration.
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
Power Supply: Ensure that the Raspberry Pi's power supply is adequate for both the Pi and the CYBERDECK HAT.
I2C Addressing: If you have multiple I2C devices, ensure that each device has a unique address to avoid conflicts.
GPIO Usage: Be aware of the GPIO pins used by the CYBERDECK HAT to avoid pin conflicts with other HATs or peripherals.
Troubleshooting and FAQs
Common Issues
Display Not Working: Check the I2C connections and ensure that the Raspberry Pi has I2C enabled.
Unresponsive Inputs: Verify that the capacitive touch buttons and joystick are correctly initialized in your code.
Solutions and Tips
Enabling I2C on Raspberry Pi: Use raspi-config to enable I2C interface under the "Interfacing Options" menu.
Testing Connections: Use the i2cdetect command to confirm that the Raspberry Pi detects the CYBERDECK HAT.
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.