GithubHelp home page GithubHelp logo

Comments (6)

paulvha avatar paulvha commented on July 18, 2024

from sps30.

HyperDevil avatar HyperDevil commented on July 18, 2024

Hi Paul,

Yes the pullups are there 10K to 3v3.
I use the VIN pin on the ESP8266 which is 5V (from usb), my USB port can supply 3A. I checked with a multimeter, just also tried external 5v, no change in behavior.
And yes i added the xxx (although it is not sensitive information).

from sps30.

HyperDevil avatar HyperDevil commented on July 18, 2024

11:13:38.032 -> SPS30-Example2: Basic reading + clean. press to start
11:13:40.012 -> SPS30-Example2: Basic reading + clean. press to start
11:13:42.021 -> Trying to connect
11:13:42.021 -> I2C Sending: 0xD0 0x33
11:13:42.021 -> I2C Received: 0x37 0x39 0x44 0x34 0x30 0x32 0x39 0x30 0x42 0x34 0x44 0x46 0x33 0x33 0x33 0x37 0x00 0x00 length: 18
11:13:42.055 ->
11:13:42.055 -> Detected SPS30.
11:13:42.055 -> I2C Sending: 0xD3 0x04
11:13:44.031 -> I2C Sending: 0xD0 0x33
11:13:44.031 -> I2C Received: 0x37 0x39 0x44 0x34 0x30 0x32 0x39 0x30 0x42 0x34 0x44 0x46 0x33 0x33 0x33 0x37 0x00 0x00 length: 18
11:13:44.065 ->
11:13:44.065 -> Serial number : 79D40290B4DF3337
11:13:44.065 -> Product name : not available
11:13:44.065 -> I2C Sending: 0xD0 0x25
11:13:44.065 -> I2C Received: 0x00 0x00 length: 2
11:13:44.065 ->
11:13:44.065 -> Article code : not available
11:13:44.065 -> I2C Sending: 0x80 0x04
11:13:44.065 -> Error: Received NO bytes
11:13:44.065 -> I2C Received: length: 0
11:13:44.065 ->
11:13:44.065 -> Error during reading from I2C: 0x51
11:13:44.065 -> could not get clean interval.Protocol error
11:13:44.065 -> No Auto Clean interval change requested.
11:13:44.098 -> I2C Sending: 0x00 0x10 0x03 0x00 0xAC
11:13:45.085 -> Measurement started

from sps30.

paulvha avatar paulvha commented on July 18, 2024

from sps30.

HyperDevil avatar HyperDevil commented on July 18, 2024

Ok i did that now:

#define AUTOCLEANINTERVAL 604800
#define PERFORMCLEANNOW 0
#define DEBUG 2

11:49:10.725 -> SPS30-Example2: Basic reading + clean. press to start
11:49:12.727 -> Trying to connect
11:49:12.727 -> I2C Sending: 0xD0 0x33
11:49:12.727 -> I2C Received: 0x37 0x39 0x44 0x34 0x30 0x32 0x39 0x30 0x42 0x34 0x44 0x46 0x33 0x33 0x33 0x37 0x00 0x00 length: 18
11:49:12.760 ->
11:49:12.760 -> Detected SPS30.
11:49:12.760 -> I2C Sending: 0xD3 0x04
11:49:14.729 -> I2C Sending: 0xD0 0x33
11:49:14.763 -> I2C Received: 0x37 0x39 0x44 0x34 0x30 0x32 0x39 0x30 0x42 0x34 0x44 0x46 0x33 0x33 0x33 0x37 0x00 0x00 length: 18
11:49:14.763 ->
11:49:14.763 -> Serial number : 79D40290B4DF3337
11:49:14.763 -> Product name : not available
11:49:14.763 -> I2C Sending: 0xD0 0x25
11:49:14.763 -> I2C Received: 0x00 0x00 length: 2
11:49:14.763 ->
11:49:14.763 -> Article code : not available
11:49:14.763 -> I2C Sending: 0x80 0x04
11:49:14.763 -> Error: Received NO bytes
11:49:14.763 -> I2C Received: length: 0
11:49:14.763 ->
11:49:14.763 -> Error during reading from I2C: 0x51
11:49:14.797 -> could not get clean interval.Protocol error
11:49:14.797 -> I2C Sending: 0x80 0x04 0x00 0x09 0x09 0x3A 0x80 0xA7
11:49:15.783 -> I2C Sending: 0xD3 0x04
11:49:17.791 -> Auto Clean interval now set : 604800 seconds
11:49:17.791 -> I2C Sending: 0x80 0x04
11:49:17.791 -> Error: Received NO bytes
11:49:17.791 -> I2C Received: length: 0
11:49:17.791 ->
11:49:17.791 -> Error during reading from I2C: 0x51
11:49:17.791 -> could not get clean interval.Protocol error
11:49:17.791 -> I2C Sending: 0x00 0x10 0x03 0x00 0xAC
11:49:18.777 -> Measurement started
11:49:18.777 ->
11:49:18.777 -> Hit to continue reading
11:49:20.784 -> Hit to continue reading
11:49:22.790 -> Hit to continue reading
11:49:24.799 -> Hit to continue reading
11:49:26.803 -> Hit to continue reading

I also tried another ESP8266 in case my board is faulty, but the same behaviour.

from sps30.

HyperDevil avatar HyperDevil commented on July 18, 2024

As discussed by email, add this to the sps30.cpp file on line 1144 ofter I2C_Setpointer() function.
delay(5);

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.