Programming Voltage Sensor for QN9090dk6 on MCUXpresso IDE

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Programming Voltage Sensor for QN9090dk6 on MCUXpresso IDE

830 次查看
Skell1000
Contributor I

I'm attempting to read in a battery voltage on a GPIO input and print the battery voltage to the MCUXpresso terminal. There is very little information on how to do this online and I am unable to get it working as I can't find reference to any functions to call on the battery sensor module the QN9090 clearly has. Could someone send me an example code of this working or point out a list of functions or a library I can call which could help me with this process?

0 项奖励
回复
1 回复

818 次查看
EduardoZamora
NXP TechSupport
NXP TechSupport

Hello @Skell1000

Hope you are doing well.

According to QN9090 User Manual, this device should integrate a supply monitor that is connected to ADC channel 6: this monitors VBAT.

Please, take a look at the BLE example projects from the SDK (for example heart_rate_sensor); in board.c file you can find the function uint8_t BOARD_GetBatteryLevel(void). Could you please confirm if this is useful for you?

Regards,
Eduardo.

0 项奖励
回复