SCD30 Temperature driver

Introduction

The SCD 30 Temperature driver is used to detect the temperature level of the sensor’s surroundings. The SCD 30 can also detect changes in CO2 and temperature. The SCD30 can measure temperature through the use of a thermistor. The SCD30 measures humidity via a variably resistant moisture absorbing substrate. To also measure CO2 concentrations the SCD30 employs the use of NDIR measurement technology, and can detect concentrations between 0 and 40,000 ppm with ±(30ppm + 3%) accuracy in the 400 to 10,000ppm range. Humidity, temperature, and CO2 measurements can be taken in tandem with each other. The SCD30 uses the I2C protocol to send data to the builder base.


Driver Parameters

The SCD30 Temperature driver has two parameters that need to be configured:

I2C Address

This is the address the device is being referenced by on the I2C bus. The SCD30 has only one possible address of 0x61.

Resolution(F)/(C)

The resolution depends on the measurement system of the central core. If set to imperial, the resolution is in F (degrees Fahrenheit) and in metric it is in C (degrees Celsius).

The resolution in metric is ranging from 0 to 5 Celsius with a default value of 1.

The resolution in imperial is ranging from 0 to 9 degrees Fahrenheit with a default value of 1.

For example in in the metric system, if our latest reading was 25C and the resolution is set to 1.5, the builder base is not going to notify the central core unless the value is <23.5 or >26.5.


Wiring

The pinout for the SCD30 can be found below:

Example

The GND and Power pins on the SCD30 are connected to the GND and 3.3V pins on the Builder Base. The SCL and SDA pins on the SCD30 are then connected respectively to the SCL and SDA pins found on the Builder Base.

Breadboard 

Schematic 

Used Pins

Used Pins

Description

Used Pins

Description

 3V3

The voltage level for the assembly

GND

The ground potential for the assembly

SDA

The I2C Data Line

SCL

The I2C Clock Line


How to write an App

Navigate to the App Builder and create a new application. You can find the “Temperature” code object under the “Hardware” Tab in the object drop down menu on the left, or you can also use the search bar.

 

 

 

Drag the “Temperature” Object onto the canvas.

Next, locate the “Text” Object under the Interface tab and drag it onto the canvas.

 

 

 

Finally, connect the “Temperature” port from the Temperature Object to the “In” port on the Text object and save your application.

 


How to create a firmware

Navigate to the Firmware Builder and create a new firmware file.

Click the “+ Add Hardware” button which will open a modal window. Scroll down in the list to find the “Sensor” section and select the “Temperature” hardware option.

Give your device a name, and click “Add Device”

 

 

 

Next, select the “SCD30” driver under the driver dropdown menu.

 

 

For this example we select:

  • I2C Address: 0x61

  • Resolution: 1

 

 

You may now save your firmware file and upload it to one of your clients.

 

 

 


Supported Hardware

  • SCD30


Downloads

Apps

Firmware

Assets