Giter Club home page Giter Club logo

esp32_s8's Introduction

ESP32_S8

Evaluating the CO2-Sensor S8 from SenseAir. https://senseair.com/products/size-counts/s8-5/

Code for Arduino (.ino) with some routines to read all register and another code for esp-idf in C. (.c)

Technical information:

There is no standard library available now - since the functionality / documentation is poor.

The flow is very simple:

Send a request like {0xFE, 0X04, 0X00, 0X03, 0X00, 0X01, 0XD5, 0XC5} and
wait for the response like {0xFE, 0X04, 0X02, 0X03, 0X88, 0XD5, 0XC5}.
Where:

byte example description on request
0 0xFE any Address
1 0x04 function code (03 read hold reg / 04 read inp. register / 06 write)
2, 3 0x00 0x03 starting Address
4, 5 0x00 0x01 lenght of requested register
6, 7 0xD5 0xC5 CRC low / high

In the response the first two byte are the same as in the request 0xFE and 0x04.
The requested value is in byte 3 and 4 (0x03) and (0x88) with low-byte first. so 88 * 256 + 03. .. followed by two byte for CRC.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.