Skip to content

Commit

Permalink
Merge pull request #1 from floitsch/fixes
Browse files Browse the repository at this point in the history
Minor improvements.
  • Loading branch information
jacobqvist authored Dec 23, 2021
2 parents 11eb2e9 + 5f785f5 commit 1edeabc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
20 changes: 7 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,24 @@
# SCD30 driver
# SCD30

Driver for the [SCD30 sensor](https://www.sensirion.com/en/environmental-sensors/carbon-dioxide-sensors/carbon-dioxide-sensors-scd30/).
Driver for the Sensirion SCD30 sensor module, for monitoring CO2, temperature, and humidity.

## Usage

The ESP32 pin connection to the SCD30 sensor is as follows:

- GPIO21 > SDA
- GPIO22 > SCL
- 3.3V > 3V
- GND > GND
Installation: `toit pkg install github.com/qvisten999/scd30`

```
import scd30
main:
...
...
```

See the `examples` folder for more examples

Installation: `toit pkg install github.com/qvisten999/scd30`
See the `examples` folder for examples.

## References

[Datasheet](https://www.sensirion.com/en/environmental-sensors/carbon-dioxide-sensors/carbon-dioxide-sensors-scd30/)
[Official site](https://www.sensirion.com/en/environmental-sensors/carbon-dioxide-sensors/carbon-dioxide-sensors-scd30/)
[Datasheet](https://www.sensirion.com/fileadmin/user_upload/customers/sensirion/Dokumente/9.5_CO2/Sensirion_CO2_Sensors_SCD30_Datasheet.pdf)

## Features and bugs

Expand Down
11 changes: 11 additions & 0 deletions examples/room.toit
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
// Use of this source code is governed by a MIT-style license that can be found
// in the LICENSE file.
/**
Small example to show the use of the CO2 sensor.
The ESP32 pin connection to the SCD30 sensor is as follows:
- GPIO21 > SDA
- GPIO22 > SCL
- 3.3V > 3V
- GND > GND
*/

import gpio
import i2c
import ..src.scd30
Expand Down

0 comments on commit 1edeabc

Please sign in to comment.