Sound level is 'noisy' on battery when used with light level
Using this disco lights project https://microbit.org/projects/make-it-code-it/disco-lights/?editor=makecode the program is supposed to represent the sound level on the screen. It works well on USB, but on battery, the screen is constantly lit.
Using the datalogger extension and this program https://makecode.microbit.org/_MFYUFXea0dRi, I was able to capture the sound output over time. The first ~20s is on USB and the last ~20s is on battery. The level appears to jump when the USB cable is disconnected and the battery takes over.
However, if you just log sound as in this program https://makecode.microbit.org/_FJgbDo9hzWzD the output is more settled (after the spike of disconnecting the USB)

The battery voltage reads at 2.8V
Not sure if this is CODAL related. It doesn't seem to reproduce there or in MicroPython using the tests we have, so I'm raising in MakeCode first.
@martinwork do we need to track this in this repo?
@abchatra I note the original comment says:
Not sure if this is CODAL related. It doesn't seem to reproduce there or in MicroPython using the tests we have, so I'm raising in MakeCode first.
I'll do some more tests.
Thanks @abchatra . I created https://github.com/lancaster-university/codal-microbit-v2/issues/493
Tracked in codal repo.