pxt-microbit icon indicating copy to clipboard operation
pxt-microbit copied to clipboard

Sound level is 'noisy' on battery when used with light level

Open microbit-mark opened this issue 4 years ago • 1 comments

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.

Image 2021-07-28 at 12 53 42 pm MY_DATA.HTM.zip

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) Image 2021-07-28 at 1 22 22 pm

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.

microbit-mark avatar Jul 28 '21 12:07 microbit-mark

@martinwork do we need to track this in this repo?

abchatra avatar Jun 25 '25 20:06 abchatra

@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.

martinwork avatar Jun 27 '25 11:06 martinwork

Thanks @abchatra . I created https://github.com/lancaster-university/codal-microbit-v2/issues/493

martinwork avatar Jun 30 '25 19:06 martinwork

Tracked in codal repo.

abchatra avatar Jun 30 '25 21:06 abchatra