edit

# Grove - Oxygen Sensor Pro(GGC2330-O2)

Grove - Oxygen Sensor Pro(GGC2330-O2) is a kind of sensor to test the oxygen concentration in air, which is based on the principle of the electrochemical cell to the original work.When it starts to work, it will produce a current proportional to the concentration of oxygen, then you can determine the concentration of oxygen by measuring the Current size.

Grove - Oxygen Sensor Pro(GGC2330-O2) is an enhanced version of Grove - Oxygen Sensor(GG2020-O2), Compared to the Grove - Oxygen Sensor(GG2020-O2), It has a built-in temperature sensor to make temperature compensation, which can correct the measurement error caused by the temperature difference and make the measurement more accurate.On top of that, it is equipped with a high-performance microprocessor, which allows it to have digital output and analog voltage output capabilities at the same time, making the sensor easier to use and calibrate and shorten the development period.

Tip

We've released the Seeed Gas Sensor Selection Guide, it will help you choose the gas sensor that best suits your needs.

## Feature¶

• Pre-calibration(With build-in MCU and temperature sensor)
• High precision and resolution
• Long life, low power consumption
• Strong anti-interference ability
• Good stability
• UART signal output

Tip

## Specification¶

Items Parameter
Target Gas O2
Resolution 0.1%VOL
Measurement Range 0-25%VOL
ReOperating Voltage DC 5±0.1V DC
Operating Current ＜ 10 mA
Output Output UART(TTL electrical Level, 3V)Analog voltage(refer table 2 for sensor original amplifying signal)
Operating Conditions -20～25℃/15～90%RH(no condensation)
Storage Conditions -20～50℃/15～90%RH(no condensation)
Size ø23.5mm*24.5mm
Life Expectancy 2 years(in air)

Note

The aging time of power-on is not less than 5min; Avoid long-term contact with organic volatile solvents; The use or storage environment cannot be an acid-base environment.

## Applications¶

• Portable gas detector
• Fixed gas alarm and detector

## Platforms Supported¶

Arduino Raspberry Pi

Caution

The platforms mentioned above as supported is/are an indication of the module's software or theoritical compatibility. We only provide software library or code examples for Arduino platform in most cases. It is not possible to provide software library / demo code for all possible MCU platforms. Hence, users have to write their own software library.

## Getting Started¶

Note

This chapter is based on Win10 and Arduino IDE 1.7.9

This new Grove - Oxygen Sensor Pro(GGC2330-O2) usage method is is not used in the same way as the Grove - Oxygen Sensor(GG2020-O2) GG2020-O2.

Here we will show you how this Grove - Oxygen Sensor Pro(GGC2330-O2) works via a simple demo. First of all, you need to prepare the below stuffs:

Seeeduino Cortex-M0+ Grove - Oxygen Sensor Pro(GGC2330-O2) Base Shield
Get ONE Now Get ONE Now Get ONE Now

### Connection¶

Thanks to the benefit of Grove series modules, you don't need to make soldering or bread board, what you need to do is connect the modules to the right port of Base Shield. For this demo, we have only one Grove module.

• Grove - Oxygen Sensor Pro(GGC2330-O2) is an analog input module, we connect it to UART in this demo.

### Upload the code to Arduino¶

Copy the below code to Arduino IDE.

void setup() {
Serial.begin(9600);
Serial2.begin(9600);
}
void loop() {
if (Serial2.available()){
delay(10);
delay(10);
delay(10);
delay(10);
delay(10);
delay(10);
delay(10);
delay(10);
delay(10);

if(begin_code == 255 && state_code == 134){

float O2_val = ((high_code * 256) + low_code) * 0.1 ;
Serial.print("O2: ");
Serial.print(O2_val);
Serial.println(" %");
}
}
}


Then choose the right Board and COM port, and then click on the Upload button, this process take few seconds.

### Get data¶

Open serial monitor of your Arduino IDE, and you will get the data now.

Warning

It need about 20~30 minutes to preheat the sensor, or you will get a larger value.

## Projects¶

LoRa IoTea: An automatic information collection system applied to tea plantation. It is part of intelligent agricultural information collection.

A Plant Box with Lighting and Raining You never seen such a way to water you plant.

## Tech Support¶

Please submit any technical issue into our forum.