Error in Angle of Arrival Calculation for Direction Finding

Hello

We are using nRF5340 as our EVK with a 12 antenna array plate(4x4 with center 4 ones not being there). Our beacon uses nRF52833.

We used Nordic's sample codes- 'Direction Finding Central' to flash our EVK and 'Direction Finding Peripheral' to flash our beacon.

We tried using MUSIC algorithm on a python pipeline to obtain AOA.

However, when we tried to find AOA, we are not getting correct values. It is either completely random values or angle doesn't change at all. 

We get the IQ samples-

When plotted, we can see something like this:

What can we do about this?

Related