All Projects → paulvha → scd30

paulvha / scd30

Licence: other
arduino esp8266 ESP8266 SCD30 SCD-30 ESP32

Programming Languages

C++
36643 projects - #6 most used programming language
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to scd30

SparkFun SerLCD Arduino Library
A library to seamlessly control the SparkFun SerLCD over I2C, SPI, and Serial.
Stars: ✭ 18 (-52.63%)
Mutual labels:  arduino-library, sparkfun
SparkFun MMA8452Q Arduino Library
SparkFun Triple Axis Accelerometer Breakout - MMA8452Q Arduino Library
Stars: ✭ 16 (-57.89%)
Mutual labels:  arduino-library, sparkfun
SparkFun ADXL345 Arduino Library
Arduino Library for the ADXL345
Stars: ✭ 34 (-10.53%)
Mutual labels:  arduino-library, sparkfun
SparkFun AutoDriver Arduino Library
Arduino library support for the SparkFun AutoDriver board based on the ST Micro L6470 stepper driver.
Stars: ✭ 14 (-63.16%)
Mutual labels:  arduino-library, sparkfun
SparkFun CAN-Bus Arduino Library
No description or website provided.
Stars: ✭ 132 (+247.37%)
Mutual labels:  arduino-library, sparkfun
SparkFun CCS811 Arduino Library
A library to drive the AMS CCS811 air quality sensor
Stars: ✭ 38 (+0%)
Mutual labels:  arduino-library, sparkfun
SparkFun MicroView Arduino Library
An Arduino library for the MicroView - a chip-sized Arduino with a built-in OLED, available from SparkFun Electronics
Stars: ✭ 20 (-47.37%)
Mutual labels:  arduino-library, sparkfun
sqlite micro logger arduino
Fast and Lean Sqlite database logger for Microcontrollers
Stars: ✭ 128 (+236.84%)
Mutual labels:  arduino-library, arduino-mega
SparkFun TB6612FNG Arduino Library
No description or website provided.
Stars: ✭ 40 (+5.26%)
Mutual labels:  arduino-library, sparkfun
SparkFun VL53L1X Arduino Library
A library for the laser based VL53L1X Time Of Flight distance sensor capable of detecting a target 4m away!
Stars: ✭ 57 (+50%)
Mutual labels:  arduino-library, sparkfun
SparkFun AS7265x Arduino Library
An Arduino library for the trifecta of spectral sensors covering 18 discrete wavelengths from NIR to UV.
Stars: ✭ 23 (-39.47%)
Mutual labels:  arduino-library, sparkfun
PsxNewLib
Playstation controller interface library for Arduino
Stars: ✭ 81 (+113.16%)
Mutual labels:  arduino-library, arduino-mega
BMP180 Breakout Arduino Library
Arduino libraries for the BMP180 pressure sensor breakout board
Stars: ✭ 30 (-21.05%)
Mutual labels:  arduino-library, sparkfun
SparkFun ATECCX08a Arduino Library
An Arduino library to use with the Microchip ATECCX08a Cryptographic Co-processors.
Stars: ✭ 26 (-31.58%)
Mutual labels:  arduino-library, sparkfun
Arduino
🚀 Proyectos de todo tipo para arduino utilizando sus sensores y actuadores. 🤖
Stars: ✭ 27 (-28.95%)
Mutual labels:  arduino-library, arduino-mega
ESP8266MQTTClient
No description or website provided.
Stars: ✭ 77 (+102.63%)
Mutual labels:  arduino-library
OpenLCD
An open source serial LCD (HD44780) controller based on the ATmega328.
Stars: ✭ 28 (-26.32%)
Mutual labels:  sparkfun
Adafruit MP3
mp3 decoding on arduino
Stars: ✭ 29 (-23.68%)
Mutual labels:  arduino-library
Adafruit SI1145 Library
Arduino library for the SI1145 sensors in the Adafruit shop
Stars: ✭ 20 (-47.37%)
Mutual labels:  arduino-library
miniboot
🏗️ An I2C bootloader for Arduino.
Stars: ✭ 62 (+63.16%)
Mutual labels:  arduino-library

paulvha SCD30 library

===========================================================

An extended SCD30 library based on the SparkFun SCD30 CO2 Sensor Library, see information below

Versioning

Change July 2022

  • added option autoCalibrate to begin() to enable disable auto calibration (contribution of jhengstermann)
  • begin(TwoWire &wirePort = Wire, bool m_begin = true, boolean autoCalibrate = true);
  • wirePort : I2C channel to use. Wire by default.
  • m_begin : if true will start measurement every 2 seconds. True / start by default.
  • autoCalibrate : if true will enable or false disable autocalibrate at begin. True / Enable ASC by default.

Modified by Paulvha version November 2020

  • solved a conflict with ByteToFloat when using SPS30 at the same time

Modified by Paulvha version October 2020

  • Update in readmeasurement to translate byte to float. It did not work on Arduino. Tested on Uno, Artemis Apollo3, ESP32
  • added example4 to manual input temperature offset and see impact.
  • SECOND UPDATE IN OCTOBER
  • Added example5 to work with Sparkfun LCD
  • update to example4 to set and calibrate temperature offset

Modified by Paulvha version August 2020:

Changes based on Datasheet May 2020

  • added functions : getForceRecalibration, getMeasurementInterval, getTemperatureOffset, getAltitudeCompensation, getFirmwareLevel
  • updated the keywords.txt file
  • added example14 to demonstrate the new functions
  • A number of library enhancements
  • updated sketches and library where needed

Modified by Paulvha version February 2019

Changes:

  • Added option in examples 10 and 13 to set BME280 I2C address. (some use 0x76 instead of 0x77)
  • Added SoftWire (a port of the ESP8266 I2C library) for ESP32 (which does NOT support clockstretching)
  • Removed StartSingleMeasurement as that is not working in the SCD30 as it should.
  • Added option to begin() to disable starting measurement. (needed in case one wants to read serial number)
  • updated the keywords.txt file
  • updated sketches and library where needed

Modified by paulvha version 10 August, 2018

Changes:

  • Added ESP8266 board detection in begin() to support the ESP8266 clockstretching
  • Added setting debug messages
  • Added obtaining serial number of SCD30
  • Added StopMeasurement
  • Added StartSingleMeasurement (removed February 2019 as it IS unstable)
  • Added GetTemperature in Fahrenheit
  • Added CRC checks on different places in de driver
  • Updated existing sketches fom Sparkfun to new library
  • Added new sketches : Example 10: combined read with BME280 Example 11: Set ESP8266 as Access Point and read SCD30 in browser Example 12: Set ESP8266 as WIFI server and read SCD30 in browser

More work to be follow on connecting / comparing with other sensors and document the learnings.

check for updated datasheet and information on Sensirion

============= ORIGINAL INFORMATION FROM SPARKFUN ===========================

SparkFun SCD30 CO2 Sensor Library

SparkFun SCD30 CO2 Sensor

SparkX CO₂ Humidity and Temperature Sensor - SCD30 (SPX-14751)

The SCD30 from Sensirion is a high quality NDIR based CO₂ sensor capable of detecting 400 to 10000ppm with an accuracy of ±(30ppm+3%). In order to improve accuracy the SCD30 has temperature and humidity sensing built-in, as well as commands to set the current altitude.

We've written an Arduino library to make reading the CO₂, humidity, and temperature very easy. It can be downloaded through the Arduino Library manager: search for 'SparkFun SCD30'. We recommend using a Qwiic Breadboard Cable to connect the SCD30 to a Qwiic compatible board. The YeLLow wire goes in the SCL pin. The SCD30 also supports a serial interface but we haven't worked with it.

The CO₂ sensor works very well and for additional accuracy the SCD30 accepts ambient pressure readings. We recommend using the SCD30 in conjunction with the Qwiic Pressure Sensor - MS5637 or the Qwiic Environmental Sensor - BME680 to obtain the current barometric pressure.

Note: The SCD30 has an automatic self-calibration routine. Sensirion recommends 7 days of continuous readings with at least 1 hour a day of 'fresh air' for self-calibration to complete.

Library written by Nathan Seidle (SparkFun).

Repository Contents

  • /examples - Example sketches for the library (.ino). Run these from the Arduino IDE.
  • /src - Source files for the library (.cpp, .h).
  • keywords.txt - Keywords from this library that will be highlighted in the Arduino IDE.
  • library.properties - General library properties for the Arduino package manager.

Documentation

License Information

This product is open source!

Various bits of the code have different licenses applied. Anything SparkFun wrote is beerware; if you see me (or any other SparkFun employee) at the local, and you've found our code helpful, please buy us a round!

Please use, reuse, and modify these files as you see fit. Please maintain attribution to SparkFun Electronics and release anything derivative under the same license.

Distributed as-is; no warranty is given.

  • Your friends at SparkFun.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].