I just did some (un)scientific testing and still can't get the thing to get the right distance. I moved the sensor the the very edge of the desk at the edge of the breadboard and measured some distances using a ruler and the handy Espruino reference card that I got in the kit and got the following values (actual measurement on left, console.log on right):
cm = 1cm
cm = 1.7cm
cm = 2cm
cm = 2.6cm
cm = 3.3cm
cm = 3.7cm
+cm = 4.1
I am guessing it's probably something to do with my module, but does that kind of pattern make any sense to you? Some kind of resistor needed? Again, apologies for my utter ignorance about this stuff.
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.
I just did some (un)scientific testing and still can't get the thing to get the right distance. I moved the sensor the the very edge of the desk at the edge of the breadboard and measured some distances using a ruler and the handy Espruino reference card that I got in the kit and got the following values (actual measurement on left, console.log on right):
I am guessing it's probably something to do with my module, but does that kind of pattern make any sense to you? Some kind of resistor needed? Again, apologies for my utter ignorance about this stuff.