Jack, on a hardware level, you need to ensure that you’ll be getting a fixed signal with no fluctuations in its analog values, you can do that by using an oscilloscope. Once you start writing your program, you can use ADC averaging or a moving average filter to get best possible results from your optical sensor. I’m planning to use this sensor in one of my circuits as well and I’m going to be waiting for your feedback.
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.
Jack, on a hardware level, you need to ensure that you’ll be getting a fixed signal with no fluctuations in its analog values, you can do that by using an oscilloscope. Once you start writing your program, you can use ADC averaging or a moving average filter to get best possible results from your optical sensor. I’m planning to use this sensor in one of my circuits as well and I’m going to be waiting for your feedback.