Public Arduino Library for ULPSM (ultra-low power sensor module) or SDK (sensor development kit)
Included in this repository are a diagram of optional hook up, and instructions for reducing noise in the signals.
Notes and suggestions for Arduino library: 1)We recommend users work with the Evaluation Board the ULPSM plugs into, that comes with the sensor development kit. However, some have purchased only the ULPSM and so hooking the Vref and Vtemp directly to an ADC is not recommended. There are two options to overcome the noise on those lines: Option A) Use an voltage follower (instrumentation OpAmp) to buffer the signals (wikipedia: Buffer amplifier). Option B) Use this diagram, which shows how to avoid having to use a opamp filter to read Vref and Vtemp. This 2x 10 kOhm voltage ladder increases the current considerably, since the internal voltage ladder is 2x 1MOhm resistors. But for some applications this will also decrease the noise considerably. 2) Before using temperature compensation look at the signal without compensation. The compensation algorithms are for health and safety levels only. For measuring air quality (low levels) the final temperature compensation will depend on many factors of your iplementation. Please contact SPEC sensor for advice on Air Quality temperature calibration for final implementation. 3) In the implementation of temperature compensation, be sure to pass the function a float value. If you pass an integer or a rounded float value, you will see large jumps in the concentration whenever the value changes, ie. from 24 C to 25 C.