Pixhawk Flight Controller & Drone Autopilot Parts Store
PX4 / ArduPilot Compatible | Global Shipping | Technical Support | Bulk Order Available
Menu
More
Pixhawk Flight Controller & Drone Autopilot Parts Store
PX4 / ArduPilot Compatible | Global Shipping | Technical Support | Bulk Order Available
Welcome
Sign in to your account
Access your account, saved items, orders, and personalized shopping experience.
Shopping Cart

Shopping cart is empty

Welcome back! If you had items in your shopping cart, we saved them for you. Sign in now to see them, or whenever you are ready to check out.

PMW3901 Optical Flow Sensor

Ardupilot Quick Start Guide

To enable the Holybro PMW3901 optical flow sensor in Ardupilot, set FLOW_TYPE to 4 and SERIALx_PROTOCOL to 18.
image?url=https%3A%2F%2F2367252986 files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook x prod.appspot.com%2Fo%2Fspaces%252FLIgtGDAvVGkCKGOJb1bR%252Fuploads%252FltimhfeSe9sRo199RWQl%252Fimage
image?url=https%3A%2F%2F2367252986 files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook x prod.appspot.com%2Fo%2Fspaces%252FLIgtGDAvVGkCKGOJb1bR%252Fuploads%252FXc4jsWy5fRERip10IZjS%252Fimage

Telemetry 2 is used for this example
If you are not sure which serial port you are using, here is a list of serial mapping for the Pixhawk 6 family:
SERIAL1 -> UART7 (Telem1)
SERIAL2 -> UART5 (Telem2)
SERIAL3 -> USART1 (GPS1)
SERIAL4 -> UART8 (GPS2)
SERIAL5 -> USART2 (Telem3) (not included on 6C Mini)
Once the sensor is correctly configured, check the opt related values from the status tab. If the values are non-zero while moving the sensor around, you are good to go.
image?url=https%3A%2F%2F2367252986 files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook x prod.appspot.com%2Fo%2Fspaces%252FLIgtGDAvVGkCKGOJb1bR%252Fuploads%252Fe8hRwiSBwgAeKQeEbEdt%252Fimage
image?url=https%3A%2F%2Fardupilot.org%2Fcopter%2F static%2Ffavicon copterOptical Flow Sensor Testing and Setup Copter documentation
Optical flow test and calibration guide from Ardupilto WIKI

PX4 Quick Start Guide

To enable the Holybro PMW3901 optical flow sensor in PX4, simply set SENS_EN_PMW3901 to enable, and the SENS_TFLOW_CFG to the corresponding port that sensor is connected to.
To save the settings, reboot or power cycle the flight controller.
image?url=https%3A%2F%2F2367252986 files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook x
image?url=https%3A%2F%2F2367252986 files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook x prod.appspot.com%2Fo%2Fspaces%252FLIgtGDAvVGkCKGOJb1bR%252Fuploads%252FSD6TTAoWayUH8cM9zFeB%252Fimage
Once the sensor is correctly configured, you can head to MAVLink Inspector->OPTICAL_FLOW_RAD section to check the sensor reading to make sure the sensor is operational.
image?url=https%3A%2F%2F2367252986 files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook x prod.appspot.com%2Fo%2Fspaces%252FLIgtGDAvVGkCKGOJb1bR%252Fuploads%252FFiODSDglpzwq0ugZtZcg%252Fimage
Optical Flow | PX4 Guide (main)

For more setup tips, visit PX4 official WIKI

About The Author

pixhawk

pixhawk

Other Posts by This Author

XBP9X Radio

XBP9X Radio Specification

pixhawkJuly 11, 20250 Comments
Product Specification FREQUENCY RANGEISM 902 to 928 MHzTRANSMIT POWER (Software Selectable)Up to 30 dBm*CHANNELS10 hopping sequences share 50…
XBP9X Radio

XBP9X Radio Pinout

pixhawkJuly 11, 20250 Comments
Data Port PinSignalVolt1(red)NC—2(black)RX+3.3V3(black)TX+3.3V4(black)CTS+3.3V5(black)RTS+3.3V6(black)GNDGND Power Port PinSignalVolt1(red)BAT+7-35V2(red)BAT+7-35V3(black)BAT-GND4(black)BAT-GND
XBP9X Radio

XBP9X Radio Antenna

pixhawkJuly 11, 20250 Comments
SpecificationsQT900LFrequency range902锝?28 MHzBand Width26 MHzPolarizationverticalGain3 dBiInput impedance50惟SWR鈮?.5Maximum power20WConnectorRPSMA (female)Total length19.6 cm (foldable antenna)Weight40g

Leave a Reply

Your email address will not be published. Required fields are marked *

Sidebar

Categories

Recent Posts

Recennt Comments

    Blog Single Sidebar