スキル一覧に戻る
njfdev

orange-pi-4a

by njfdev

The code for the entire payload system onboard the 2025 NCSSM HPR rocket named C.A.V.E.R.N.

1🍴 0📅 2026年1月18日
GitHubで見るManusで実行

SKILL.md


name: orange-pi-4a description: Development guidance for Orange Pi 4A SBC. Use when working with camera capture, microphone/audio, video encoding, GPIO, or the flight computer hardware platform. keywords: [orange pi, opi4a, allwinner, t527, camera, mipi, csi, microphone, audio, pipewire, ffmpeg-rk, video encoding, h264, h265, gpio, sbc, linux]

Orange Pi 4A Development

Hardware Overview

SoC: Allwinner T527

  • Octa-core Cortex-A55 (4x 1.8GHz + 4x 1.42GHz)
  • XuanTie E906 RISC-V core @ 200MHz
  • Mali-G57 GPU
  • 2 TOPS NPU for AI acceleration
  • HiFi4 DSP for audio processing

Memory: 2GB or 4GB LPDDR4/4X

Camera Interfaces

  • 2-lane MIPI-CSI: Lower bandwidth cameras
  • 4-lane MIPI-CSI: Higher resolution/framerate cameras

Camera in Rust with nokhwa

use nokhwa::{
    CallbackCamera,
    pixel_format::LumaFormat,
    utils::{CameraIndex, RequestedFormat, RequestedFormatType},
};

let index = CameraIndex::Index(3);  // Check dmesg for actual index
let requested = RequestedFormat::new::<LumaFormat>(
    RequestedFormatType::AbsoluteHighestFrameRate,
);

let mut camera = CallbackCamera::new(index, requested, |buffer| {
    let decoded = buffer.decode_image::<LumaFormat>().unwrap();
    // Process frame...
}).unwrap();

camera.open_stream().unwrap();

Available pixel formats: LumaFormat, RgbFormat, YuyvFormat

Audio

  • Output: 3.5mm headphone jack
  • DSP: HiFi4 for audio/voice/speech processing
  • No built-in microphone; use external via 3.5mm or USB

Required Setup

  1. Install PipeWire (replaces PulseAudio):

    # Follow distribution-specific instructions
    
  2. Install ffmpeg-rk (hardware encoding):

    # Remove standard ffmpeg first
    sudo apt remove ffmpeg
    # Install ffmpeg-rk for Rockchip/Allwinner hardware encoding
    

GPIO

40-pin header compatible with Raspberry Pi pinout:

  • GPIO (directly controllable pins)
  • I2C (for sensors)
  • SPI (for SD cards, displays)
  • UART (for GPS, serial devices)
  • PWM (for servos, motors)

Supported Operating Systems

  • Ubuntu
  • Debian
  • Android 13

Resources

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です