GithubHelp home page GithubHelp logo

Comments (1)

paulvha avatar paulvha commented on July 18, 2024

hi,
Thanks for your feedback.
The issue is NOT SPS30 nor CRC failing. It works in many places without any problems for a long time. The problem is related to SoftSerial and the connection speed. SoftSerial is highly dependent on-time interrupt handling. As soon as the RX line detects a rising edge, which is an indication of a start, it will raise an interrupt. If that interrupt is not handled on-time, e.g the processor is busy already handling another interrupt, incoming bits will be missed from incoming characters on the RX line. Next to that, I have only seen SoftSerial work stable up to 56K (on a Mega2560). The SPS30 only works on 115K. Of course, you can as you did, increase checks to remove packets in error, but that getting a good packet is still "hope and pray". Especially if the processor load is increased e.g. by adding a WIFI connection. As I want a stable solution and therefore on an ESP8266 I only use I2C.

regards,
Paul

from sps30.

Related Issues (20)

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.