Hi everyone,
i have some problem with this type of device. I try to obtain the degree angle from the PdoA example but with the correction formula that i found here in the other page of the forum i don’t obtain correct values (for example I obtain what i think is the correct value*2 for the interval +/-60° but in the interval +/-60° +/-90° the value remain constant).
This is my configuration:
static dwt_config_t config = {
5,
DWT_PLEN_128,
DWT_PAC8,
9,
9,
3,
DWT_BR_6M8,
DWT_PHRMODE_STD,
DWT_PHRRATE_STD,
(129 + 8 - 8),
(DWT_STS_MODE_1 | DWT_STS_MODE_SDC),
DWT_STS_LEN_256,
DWT_PDOA_M3
};
And this is the correction formula:
last_pdoa_val = (float)pdoa_val * 180 / (3.1415926 * 2048);
sprintf((char *)&pdoa_message_data, “%d”, last_pdoa_val);
Hi, i’m using a Murata type2AB nRF52840-DK platform. With SEGGER iflash the various example that i have found in the DW3XXX API (the package is the v9.3)
@Karma , I would recommend to get the latest version of our software through the link from my previous post. We have made many improvements to the API as well as user experience in this latest SDK.
Channel 9 would be fine.
It is mainly the antenna spacing thing. If you use Channel 9, the ratio (spacing / wavelength) is close to 0.45. For Channel 5 you need to recalculate that, and I’m not sure if there is anything else that may affect the AOA result.