analogReference() webpage does not include new Arduino nano 33 BLE/Sense boards

I was trying to find the options available to set analogReference() for the new Arduino nano 33 BLE/Sense boards, which are based on the Nordic nRF52840 chipset (with MBEDOS).

The Arduino webpage looks to be missing that option or it is not clear which options are available for use:

Sorry about the late reply but just to let you know I passed the information along.

Bob.

Is it still unknown how to change the analogReference() on these boards? I want to use the INTERNAL reference to monitor the voltage of the battery that is powering my nano 33 BLE.

Hi @kktangent. There is now an analogReference() implementation for Nano 33 BLE available for beta testing. If you want to try it, do this:

  • Tools > Board > Boards Manager
  • Wait for the downloads to finish.
  • From the list of available boards platforms, click on "Arduino mbed-enabled Boards".
  • Click the "Install" button.
  • Wait for the installation to finish.
  • Click the "Close" button.
  • Tools > Board
  • You now have two different "Arduino Nano 33 BLE" options under the Tools > Board menu. The one you need to select is under the "Arduino Mbed OS Boards (nRF52840 / STM32H747)" section. This is the board using the beta-phase platform that supports both the Nano 33 BLE and Portenta boards.

You can now use the analogReference() function. The supported values are:

  • AR_VDD
  • AR_INTERNAL
  • AR_INTERNAL1V2
  • AR_INTERNAL2V4