# UART communication between STM32 and Pixhawk Cube Orange

**URL:** <https://discuss.px4.io/t/uart-communication-between-stm32-and-pixhawk-cube-orange/28374>\
**Category:** PX4 Autopilot\
**Created:** [July 20, 2022, 7:49am UTC](https://discuss.px4.io/t/uart-communication-between-stm32-and-pixhawk-cube-orange/28374 "2022-07-20T07:49:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yardimcioyuncu](https://discuss.px4.io/letter_avatar_proxy/v4/letter/y/3e96dc/32.png) [@yardimcioyuncu](https://discuss.px4.io/u/yardimcioyuncu)\
**Post date:** [July 20, 2022, 7:49am UTC](https://discuss.px4.io/t/uart-communication-between-stm32-and-pixhawk-cube-orange/28374/1 "2022-07-20T07:49:34Z")

</div>

Hello,

I control the servo motors on my drone with STM32. I want to adjust angle of motors on drone with buttons on my ground station. I set up UART communication between STM32-STM32 for experimental purposes. My next goal is to establish UART communication between STM32-Pixhawk. Finally, I will send the information from Pixhawk to my ground station by telemetry.

I’m new to Pixhawk. So how should I proceed? According to my research, I need to write a code with lua extension. I searched the internet but couldn’t find what I wanted.

Is there a sample written UART communication code in Lua? I would be very happy if you could help me in this area.

**Used by:**  
_STM32F401CCU6_  
_Pixhawk Cube Orange_  
_LattePanda(Ground Station)_

Kaan IŞIK  
Embedded Software Engineer
