Table of contents:
1. I2C protocol ....................................................................................................................................... 3
1.1. I2C bus ..................................................................................................................................... 3
1.2. I2C data transfer ....................................................................................................................... 4
1.3. Abbreviations ........................................................................................................................... 5
1.4. References .............................................................................................................................. 6
2. I2C on Senseair Sunrise and Sunlight .............................................................................................. 7
2.1. I2C settings .............................................................................................................................. 7
2.1.1 Senseair Sunrise and Sunlight I2C settings ......................................................................... 7
2.1.2 I2C read only registers ......................................................................................................... 9
2.1.3 I2C read/write registers ...................................................................................................... 13
3. Examples ........................................................................................................................................ 19
3.1. Read Error Status and gas concentration ............................................................................. 19
3.1.1 Example using repeated start: ........................................................................................... 19
3.1.2 Example not using repeated start: ..................................................................................... 19
3.2. Set measurement mode to single measurement mode ........................................................ 20
3.3. Start single measurement ...................................................................................................... 20
3.4. Sequence for single measurement mode, sensor enabled/disabled by EN pin .................... 21
3.5. Enable/Disable ABC .............................................................................................................. 26
3.5.1 Enable ABC: ...................................................................................................................... 26
3.5.2 Disable ABC: ..................................................................................................................... 28
3.6. Enable/Disable dynamic IIR filter .......................................................................................... 29
3.6.1 Enable dynamic IIR filter. ................................................................................................... 29
3.6.2 Disable static and dynamic IIR filter. ................................................................................. 30
3.7. Calibration .............................................................................................................................. 31
3.7.1 Background Calibration ..................................................................................................... 31
3.8. I2C address ............................................................................................................................ 35
3.9. Enable/Disable pressure compensation ................................................................................ 37
3.9.1 Enable pressure compensation. ........................................................................................ 37
3.9.2 Disable pressure compensation. ....................................................................................... 38
3.10. Write pressure to sensor ....................................................................................................... 39
4. Revision history .............................................................................................................................. 40