Ah, right, so I was powering it off 3.3 and that seemed to be the issue. I am now powering it off VBat (which is the equivalent to 5v out when powered from a USB port?) and it seems to be working ok, detecting things that are closer than 4cm.
It does seem to be maxing out at 4cm ish though, when there is nothing in front of it, but that could just be how it's set up (currently just plugged into a breadboard), or maybe a limitation of the module?
Thanks @DrAzzy and @Gordon I am really enjoying playing with the Pico.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Ah, right, so I was powering it off
3.3
and that seemed to be the issue. I am now powering it offVBat
(which is the equivalent to 5v out when powered from a USB port?) and it seems to be working ok, detecting things that are closer than 4cm.It does seem to be maxing out at 4cm ish though, when there is nothing in front of it, but that could just be how it's set up (currently just plugged into a breadboard), or maybe a limitation of the module?
Thanks @DrAzzy and @Gordon I am really enjoying playing with the Pico.