GithubHelp home page GithubHelp logo

Error reading sps30. about sps30 HOT 4 CLOSED

paulvha avatar paulvha commented on August 17, 2024
Error reading sps30.

from sps30.

Comments (4)

paulvha avatar paulvha commented on August 17, 2024

Hi,

Without additional information it is hard to give any advice.

What kind of board / hardware setup do you use ?
How do you connect?
How do you power ?
Does it work with a standard sketch?

regards,
Paul

from sps30.

roberbike avatar roberbike commented on August 17, 2024

Hi,

Without additional information it is hard to give any advice.

What kind of board / hardware setup do you use ? How do you connect? How do you power ? Does it work with a standard sketch?

regards, Paul

Hi Paul.
The hasdware uswd is TTGO T-display (esp32) + sps30 by i2c+ AM2320 by i2c, with a battery connected to the board and the usb charguing and powering the hardware.
The power for sps30 is 5V, supplied from a step up, fron 3.3 V to 5 V.
The firmware used is https://github.com/kike-canaries/canairio_firmware that use the sensors library https://github.com/kike-canaries/canairio_sensorlib.

Your library works , but if debug is activated, the error messages displayed before, are displayed by serial debug.
When this happen , the values appearing are the same than the last value measured.

Thanks and regards.
Robert.

from sps30.

paulvha avatar paulvha commented on August 17, 2024

Hi Robert,

When a protocol error occurs either we did not get enough bytes or had CRC failures. Then the data that is provided should be neglected.

I would suspect a hardware issue:
It could be the power not being stable enough. I got very weird results in the past when connecting to 3V3 instead of 5V. Not only needed for the fan, but also the internal regulator. Not sure how well the step up is working or how stable. Maybe adding a capacitor on the 5V would help. Also check that it is a clean power signal so it does not have spikes etc

The other aspect is pull-resistors on the I2C line. The AM2320 does not have those (according to the datasheet) and the SPS30 has very weak (~50K). Both SDA and SCL should have pull resistors to 3V3 ( each resistor 4K7 to 10k)

It could also be bad line connections. Seen that before with others that I have helped.

regards,
Paul

from sps30.

paulvha avatar paulvha commented on August 17, 2024

closed

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.