Cheerson CX-OF low cost optical flow sensor testing

Another OF module option:
https://www.aliexpress.com/item/33005508643.html

It has a fourth pin ‘Y’:

From Aliexpress page:

Special note about Y pin:
①This pin is the yaw mode selection port. It is active low and defaults to high (normal mode) at startup.
②When the drone is in yaw motion, it is recommended to pull down the Y pin to make the module enter yaw mode.
③When the sensor is not in yaw motion, pull the Y pin high to put the module into normal mode.
④If the module does not turn on yaw mode during yaw motion, it may cause jitter and drift. It can be improved after turning on the yaw mode.
⑤If the module is in yaw mode when the drone is not in yaw motion, the linearity of the module data may be deteriorated.
⑥ If you are not understand the above content, please ignore the Y pin,just think of it as nonexistent.

Do someone understand how could it be used with Ardupilot?

1 Like

:joy::joy:

So I guess they have implemented a rotation compensation method that we can use if needed. It might be fun to test if someone is keen to patch EKF-OF… :nerd_face:

2 Likes

I have exactly that module and I have not connected Y. When I am rotating yaw the quadcopter has drift. How could I use it?

I also read this in the mission planner’s messages section.

08/03/2020 19:15:33: EKF2 IMU0 is using optical flow
08/03/2020 19:15:33: EKF2 IMU0 has stopped aiding
08/03/2020 19:15:28: EKF2 IMU0 is using optical flow
08/03/2020 19:15:28: EKF2 IMU0 has stopped aiding

and so on … looped. Normal behavior?
Thank you

I have cheerson cx-of
i have problem
wifi controller always disconneted
can anybody help me please

hi all,

can anyone tell me if my output is correct? thanks! :slight_smile:

ThoneFlow-3901UY - Mount and Wiring
Protocol compatible with cx-of
Buy from Seeed: https://www.seeedstudio.com/ThoneFlow-3901U-UART-Serial-Version-PMW3901-Optical-Flow-Sensor-p-4040.html

2 Likes

Cool, I hope Seeedstufio will have a better availability than AliExpress

1 Like

it looks the same as aliexpress with the y pin for yaw mode. I can’t get good stability just with that sensor on my 3 "quad. I’m waiting for the VL53L1X to use it together with this sensor

1 Like

Hi Alberto,

Does the VL53L1X sensor works with the ArduCopter firmware?

Yes it does, but take note that thes type of sensors are for indoor use only as they easily get blinded by sunlight

Thanks. Can this be connected via UART? Or just I2C?
Kakute F7 has only 1 SDA/SCL port and it is intended for the GPS/Mag on my copter. I’m planning on buying the TFmini, but it’s too big and heavy for my micro Copter.

It is I2C so you connect many devices as I2C is a bus

with VL0 I get bad lidar health with VL1 I don’t know why I still have to get from aliexpress :slight_smile: however according to the wiki it should go

Oh… many devices, with different addresses… the VL do have the same address and it can be changed but not permanently **

arducopter already has several i2c addresses for different lidars. Correct?

Generally, each family has a different address and most of I2C lidar can have their address permanently changed but not the VL53

2 Likes

Would you mind sharing your gains and hardware used on your 3" setup?

1 Like

Hi, these are my settings for optical flow only (no lidar fc nano v6). With these settings I am getting good results in low light (sunset) or in indoor flights, but in full sunlight the optical flow sensor seems to be ignored. Can anyone indicate on which parameters to modify to have a good functioning in both light situations? Thanks!

my sensor is:

3 Likes

I’m assuming you are on Arducopter 4.0.3 right?

1 Like

Yes, arducopter 4.0.3 3" quad

2 Likes