Thanks for the fast response! The “TTN Uno” arrived, and I have the AQEv2 working over LoRaWAN. I found the schematic for the Wildfire, but I still have questions on the AQEv2 shield.
The Wildfire v3 has analog pins A6 and A7. The TTN Uno (a Leonardo in reality) does not. It appears the shield uses A6 for the LCD, and A7 is unused? I just left them hanging for now.
A second question on the shield is about the dust sensor. I have a SENSIRION dust sensor that I would like to add. I suspect the 4 pads are SPI or I2C, could you confirm?
The CO/NO2 readings are still not correct. I used the calibration factors from the donor AQEV2/Wildfire. The readings are negative which probably goes to the offset. Do these values seem correct? (egg serial # egg0080217e80080150)
#define NO2_SENSITIVITY 36.149997711
#define NO2_CAL_SLOPE 79035.773437500
#define NO2_CAL_OFFSET -0.829424476
#define CO_SENSITIVITY 6.900000095
#define CO_CAL_SLOPE 414.078674316
#define CO_CAL_OFFSET -1.995584487
With the zero check disabled, the moving averages yield:
I sample every 20s over 2 minutes for each reported measurement. A bit of “noise” is present on the NO2/CO readings so I believe the ADC’s are working. NO2 can be variable, CO is fairly constant. Temp and Humidity are correct.
To squeeze the code into a Leonardo took a fair bit of surgery. The utilization is pretty high, 87% flash and 72% for sram (if I understand the Arduino IDE correctly). I could have munged something important as well.
Thanks again for any insights.