Programming Voltage Sensor for QN9090dk6 on MCUXpresso IDE

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Programming Voltage Sensor for QN9090dk6 on MCUXpresso IDE

554 Views
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 Kudos
Reply
1 Reply

542 Views
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 Kudos
Reply