Skip to content

ak3918av100x: add Baseus P1 Pro (S0TV022132) - #282

Draft
echoechoechoechoechoechoechoecho wants to merge 4 commits into
OpenIPC:masterfrom
echoechoechoechoechoechoechoecho:baseus-s0tv022132
Draft

echoechoechoechoechoechoechoecho wants to merge 4 commits into
OpenIPC:masterfrom
echoechoechoechoechoechoechoecho:baseus-s0tv022132

Conversation

@echoechoechoechoechoechoechoecho

Copy link
Copy Markdown

Baseus P1 Pro (S0TV022132): AK3918AV100X, SmartSens SC5336 on 2-lane MIPI, AIC8800D80 USB Wi-Fi, 8 MB NOR, microSD, two GPIO steppers, IR-cut, IR LEDs, red and blue LEDs, reset button.

Depends on:

Draft until they are merged: CI builds against firmware master.

Replaces my earlier #272 (closed): the same camera and device name, with the sensor driver built from source and the device tree and Wi-Fi firmware upstream, so the profile ships no vendor kernel module and no kernel patch.

The profile itself: the generic AV100X kernel config plus a fragment selecting the DTB and CONFIG_LEDS_GPIO; the Wi-Fi profile powering the AIC8800 on GPIO 98 (high 1 s, then low, as the stock init script); gpiostep pins in the stock motor driver's half-step order with travel from its limits (3822/854 half-steps); day/night on the ISP gain (no light sensor on the board), IR-cut on 4/8, IR LEDs on 70; the other sensors' modules and tunings excluded.

Hardware status (camera, image built from these branches):

  • video 2880x1616@15 with the open driver
  • Wi-Fi
  • pan/tilt directions (pan_left=1, tilt_up=-1)
  • pan/tilt homing
  • day/night, IR-cut, IR LEDs (covering the lens switches to night)
  • LEDs, microSD
  • reset button (GPIO 3 reads 0 while pressed)

Audio: microphone and speaker through majestic's AV100 audio path and the SDK libraries and ak_efuse firmware now ships (OpenIPC/majestic#394, OpenIPC/firmware#2994); the profile sets audio.speakerPin 37, since ak_pcm never drives the amplifier.

Wi-Fi setup: with no SSID set, quirc-openipc's QR scanner brings the camera onto Wi-Fi; there is no Ethernet port to fall back to. The image is 7104 of 7616 KiB; it leaves out the three files of #3003's D80 set this chip never loads (excludes list), without which it would be 7680.

At the lowest WebUI speeds the head grinds: majestic-af stretches the micro-step delay to up to 12.5 ms, and these 28BYJ-48 steppers run smoothly only up to about 3 ms per half-step (the stock driver's fixed 3.125 ms; checked with gpiostep-ctl at 3, 6 and 12 ms on both axes). Medium and high speeds are smooth.

The ISP tuning file (/etc/sensor/isp_sc5336_mipi_2lane_av100_15fps_YuTong.conf) is the stock firmware's (Baseus/GIEC), unmodified; the SC5336 needs it for its register init sequence and image tuning, and no other is available.

🤖 Generated with Claude Code

Egor and others added 4 commits November 29, 2026 23:40
Baseus P1 Pro, the AK3918AV100X pan/tilt camera: SmartSens SC5336 on
2-lane MIPI, AIC8800D80 USB Wi-Fi, 8 MB NOR, microSD, two GPIO steppers,
IR-cut, IR LEDs, red and blue LEDs, reset button.

Everything common is upstream, so the profile only names it:
- the kernel: the generic AV100X config with the board's device tree
  (OpenIPC/linux#345, ak3918av100x-baseus-s0tv022132) and gpio-leds;
- the sensor: sensor_sc5336.ko built from source by
  anyka-opensdk-ak3918av100 (OpenIPC/firmware#3007), so no vendor module is
  shipped; the ISP tuning is the stock firmware's, unmodified
  (sha256 13b66407...);
- Wi-Fi: aic8800-openipc with its D80 chip variant, powered up on
  GPIO 98 by the board's /etc/wireless/usb profile;
- pan/tilt: gpiostep (pins in /etc/modules, in the stock motor driver's
  half-step order) driven by majestic-af, travel from the stock driver's
  limits in /etc/gpiostep.conf;
- the reset button (GPIO 3) through reset-button and gpio.conf;
- day/night on the ISP gain (no light sensor on the board), IR-cut on 4/8,
  IR LEDs on 70, seeded by customizer.sh.

Needs OpenIPC/linux#345 (the device tree), OpenIPC/firmware#3007
(anyka-opensdk-ak3918av100) and OpenIPC/firmware#3003 (aic8800-openipc's
chip variants).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Turn audio on for the SoC codec, as the stock firmware runs it: 8 kHz,
G.711 (the SDK delivers 256-sample frames, which Opus cannot frame at
8 kHz), the speaker enabled, and its amplifier on GPIO 37 driven by
majestic, since ak_pcm never switches it.

Needs ak_efuse loaded before ak_pcm (OpenIPC/firmware
anyka-osdrv-ak3918av100), which starts the codec's VCM2 reference, and a
majestic with the AV100 audio path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The P1 Pro is reached only over Wi-Fi: with no SSID in the environment
(a new camera, or after the credentials are cleared) it has no network
at all, and the serial console is inside the case. quirc-openipc's
S97qrscan then reads a Wi-Fi QR code shown to the camera.

The image grows by 192 KiB, to 7104 of 7616 KiB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ult codec

majestic now takes 40 ms frames from the SDK (OpenIPC/majestic#394), so
Opus encodes, and AAC is back in the image. Checked on the camera with
the nightly majestic: G.711, Opus and AAC from the microphone, speaker
playback, volume controls, and a clean stop with audio running. The
profile no longer pins G.711.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant