I have installed and compiled your OAQ_2ND_GEN example for Arduino.
Unfortunately, the sensor could only be read once, next iteration triggers error -7.
I have checked the power and it doesn't seem the source of the error.
Could you, please advise? Thanks a lot.
The output example:
Starting the Sensor!
Sensor tracking number: x000040DE4AD591C
Sensor trimming data:208381084851678425510
*********** Measurements ***********
Rmox = 54683.86 kOhm
Rmox = 857.19 kOhm
Rmox = 507.02 kOhm
Rmox = 461.33 kOhm
Rmox = 436.76 kOhm
Rmox = 420.59 kOhm
Rmox = 407.51 kOhm
Rmox = 397.12 kOhm
O3_conc_ppb = 0.00
Fast AQI = 0
EPA AQI = 0
Error -7during reading status register, exiting program!
I got another ZMOD4510 sensor and now everything works like a charm.
That means the other sensor (or the breakout board) was broken, I believe.
I have tested it on different platforms, like RPi…
Hi Greyhair !
Thank you for the request. Your request, in our Renesas gas sensor, is very valuable to us. As I am seeing that you are getting the error code -7 meaning that power on reset has occurred. You should check stability of power supply and link. For more details, please see the attached images. Apart from that, can you please share the circuit schematic so that I would like to understand better your situation?
ZMOD4510 Programming Manual - Read Me (renesas.com)
Thanks for the response.
I have read the error description in the manual and checked the power source - it doesn't seem to be the root issue...
For the purpose I used a breadboard by MikroE (schematic here: https://download.mikroe.com/documents/add-on-boards/click/air_quality_8_click/Air_Quality_8_click_v101_Schematic.PDF)
It was connected directly to a standard Raspberry Pi Pico board.
Actually, I don't get what happens in the loop, as the first iteration is fine.
I checked the sleep function, but it's precisely 2000ms.
Could you let me know, please, what microcontroller platform was used to test the code?
Thanks a lot.
Thank you for the response. Regarding Microcontroller platform, I have attached application notes please go through it.
ZMOD4410 Programming Manual - Read Me (renesas.com)
Thanks for the reference.
I tested the OAQ_2ND_GEN example on Arduino UNO rev. 3 with the same issue.
Hi Grey hair!
For your reference, I had tried an Arduino example code (ZMOD4410) on my Arduino Uno board and succeeded. So, can you please start from scratch once again and delete the earlier library code from the Arduino board? If problem persists, please let me know.
Thank you for your response.
I'm afraid, we are discussing different code, as I have ZMOD4510 sensor...
Thanks for the response. Yeah, I also tried an Arduino example code (ZMOD4510) on my Arduino Uno board and succeeded (see the attached image). So, can you please start from scratch once again and delete the earlier library code from the Arduino board? If problem persists, please let me know.
I tried once more on SAMD21, Raspberry Pi Pico and Arduino Uno platforms.
OAQ v.1 works fine on Raspberry Pi Pico (and not on the others).
OAQ v.2 doesn't work at all (on Raspberry Pi Pico once only as previously described).
Maybe it is related to I2C bus speed?
Could you please share the error message that you are getting on the Arduino Uno and Raspberry Pi?
Is this the same error message that you mentioned earlier or a different one?
Yes, that's the same error message.
I have also tested on my Raspberry Pi 3 with Renesas / AVNET HAT - so completely different hardware and software. The OAQ v.1 works fine but OAQ v.2 returns the same error message:
Does it mean, the sensor is broken?
No sensor is not broken. I have done the similar testing on our platform and have not faced any problem.
so, I would suggest you please contact to Avnent for support.
What is actually this POR~Event error?
I had the same on R Pi Pico and Arduino Uno platforms...