Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

STM32_RadioLink_SBUS_DMA

NotificationsYou must be signed in to change notification settings

osos11-Git/STM32_RadioLink_SBUS_DMA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

STM32_RadioLink_SBUS_DMA

STM32F401CCU6 Blackpill

STM32 F4 FW 1.26.2

STM32CubeIDE v1.16.0

HAL

UART2 with DMA .

This code communicates with SBUS receiver. Only decoder.

The SBUS protocol uses an inverted serial logic with a baud rate of 100000, 8 data bits, even parity, and 2 stop bits. The SBUS packet is 25 bytes long consisting of:   * Byte[0]: SBUS header, 0x0F   * Byte[1 -22]: 16 channels, 11 bits each   * Byte[23]      * Bit 7: channel 17       * Bit 6: channel 18       * Bit 5: SBUS_SIGNAL_LOST (0x01)       * Bit 4: SBUS_SIGNAL_FAILSAFE (0x03)    * Byte[24]: SBUS footer (0x00)

Channels data is transferred to theCH variable.

Tested with R7FG v1.2 and RC6GS v1.Tested with R7FG v1.4 and RC6GS v3.

R7FG receiver will output a range of 170 - 1876 (neutral 1023) with channels set to a range of -100% to +100%. Using extended limits of -120% to +120% outputs a range of 0 to 2047, which is the maximum range acheivable with 11 bits of data.

Breadboard Circuit:

alt text

CubeMX configs:

alt textalt textalt text

About

STM32_RadioLink_SBUS_DMA

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp