Issues with the ULPSM Sensors

Greetings!

We’re using these 3 boards for our air quality monitoring project.

  1. ULPSM-SO2 968-006
  2. ULPSM-O3 968-046
  3. ULPSM-NO2 968-047

Now, the range of interest for the measurements is in the lower limit (We will be using it in the low concentration area)

The standard limit for these 3 pollutants are based on the EPA standard which are:
NO2 -100ppb
SO2-75ppb
O3- 75ppb

We are using this code and configuration of 2x10k ohm resistor: GitHub - SPEC-Sensors/ULPSM: Public Arduino Library for ULPSM (ultra-low power sensor module) or SDK (sensor development kit)

We even changed the microcontroller that we are using from 10bit to 14bit and even tested it to external 16bit.

However, the results of these 2 sensors were always around 1000ppb ozone and NO2 (even after stabilization). The SO2 on the other hand ranges from 2k-3k ppb

Attached below are the readings that we measured

As you can see we were not able to reach the standard limit and measure below our range of interest (0-100ppb)



Greetings,

The README in the referenced software repo recommends use of the evaluation board that comes with the sensors packaged as SDKs, and the software in that repo appears to have been written with this use in mind. Skipping down to the “use 2x 10K resistors” part of the README without making adjustments to the software to accommodate this change in the system is likely to cause unexpected results.

Reading the SPEC Sensor Operation Overview is suggested, as well as reviewing the ULPSM board schematic, excerpted below.


This portion of the schematic shows that the Vref potential, as produced by the ULPSM board, is created using a high-impedance voltage divider that is also used to create a bias voltage for the sensor, as described in the Operation Overview. The software is set up with the understanding that the potentials being measured were created by this arrangement.

By overdriving the Vref pin using an external, lower-impedance voltage divider, one disrupts how the Vref and sensor bias potentials are controlled, making the calculations done by the software invalid. This is perhaps also a response to the related post from the standpoint the ULPSM’s Vref pin is neither an input or an output; it is a high-impedance analog node. It will take on a (more or less) defined potential if measured carefully, but will easily take on other potentials depending on what’s connected.

Buffering and measuring the Vref pins for each sensor as suggested in the README should permit the provided example code to work more or less as intended. (Either the SPEC evaluation boards or a suitable analog circuit will do.) Otherwise, the sample code will need to be modified to account for changes to the analog system in order to provide reasonable results.

Hi,

Upon checking the schematic the schematic shown there is not updated it is 1.1 where as we are using ULPSM rev 1.2 (see attached) may we request an updated copy of the ULPSM Schematic.

I also reviewed the code of David Peasle and the initialization such as the gain, bias are correct for each sensor. As programmed in the ULP library (See attached code initialization 1 and the numbers indicated in the ULPSM board). Not to mention that the way the code works always ask for the removal of the sensor to get the Voltage Reference that will be used in the code as a reference (see initialization 2 ) that is why when the expected value (the expected value is around Vcc/2) is not met there is a recheck of settings and are promp to fix the connection in order to run the program properly. That is why I think there is no problem in the code (since we also have a CO spec sensor and it works fine)

Regarding the development board there are 2 practical reasons why we did not consider the evaluation board.
(1) It is expensive considering that we need at least 3.

(2) The overall system is attached on the drone thus, considering that we need 3 evaluation board the weight would increase thus affecting the flight performance of the quadcopter.


Initialization 1
Initialization 2

On closer inspection, the external reference divider may not have as much influence as I’d thought at first; its use will change the bias applied to the sensor somewhat, but that may not the answer here–my error…

Backing up a bit, I’d ask about your setup and calibration procedures for these sensors–put differently, what was the procedure used to obtain the charted data?

We used adafruit itsybitsy nrf52840 due to its form factor and analog capability of up to 14 bits. However, we decided to use adafruit ADS1115 breakout board to serve as an external ADC for the reason that it gives us more resolution. And we found out that may it be 10, 12, 14 or 16 bit the average result of the reading would be the same 1k ppb for ozone.

The power supply of the sensor came from Adafruit itsybitsy nrf52840, and a voltage divider 2x10k ohm as recommended.

We used the ULPSM library for calculation and the default example. We just modified it accordingly such as the calibration factor that can be seen at the back of the sensor, Measured Vsupply, and the voltage reference of the microcontroller.

The program prompts us to remove the sensor to calculate the Vref. It would be the baseline of the calculation.

Afterwhich we waited for more than an hour some experiments waited for more than 8 hours but the results are almost the same.

In asking about the setup and calibration procedures used, I was asking more about the process used for calibration of the zero-concentration output value. The ULPSMs and the sensors themselves have offsets which need to be accounted for before measurements in the range of the EPA limits can be made. This would involve allowing the sensors to stabilize under bias in an environment known to be free of the target gas and any cross-sensitive gasses, and calling the zero() function in the example code. It’s possible that some error could be introduced by these procedures through humidity, pressure, or adsorption effects. AN-104, -105, and -106 would be worth reading.

Using higher-resolution ADCs would likely be helpful in some ways, but it seems unlikely to have much effect on offset problems. As delivered, the gains of the ULPSMs are low enough that only a small portion of the analog output range is used. The entire 0~20PPM range of the SO2 sensor for example, produces an analog output change of only 60 mV if I’ve read correctly. This may account for what looks like a large amount of noise in the data shown from that sensor.

I would also offer the observation that since the impedance of these circuits is quite high, it is very possible that one could encounter problems related to static charge accumulation or leakage across the surface of the PCB.

Hi! Have you resolved your concern yet? I am currently working on the same project and would like to know more about yours.