Comments (6)
from sps30.
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.
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.
from sps30.
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.
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)
- Example 6 SPS30 HOT 1
- SPS_DEBUGSERIAL_SODAQ Error HOT 2
- Please support NANO 33 IOT board. HOT 1
- Setting up serialport2 TX and RX HOT 5
- I2C Wake-up does not work HOT 1
- ByteToFloat HOT 2
- Hard reset? HOT 13
- CRC error when reading version info HOT 4
- Further check possible when reading values; avoids bad data HOT 1
- Replacement Connector Found! HOT 5
- PM1.0 measure over i2c sometimes give 0 HOT 4
- i2c speed recommendation HOT 2
- SPS not running Uart HOT 34
- Example5_sps30_bme280_BasicReadings HOT 1
- Compile error when excluding UART HOT 6
- Error reading sps30. HOT 4
- Example scd30 sps30 basic reading not compiling HOT 2
- ERR_OK and ERR_TIMEOUT overwrite framework definitions HOT 6
- 'ERR_DATALENGTH' 'ERR_OK' not declared HOT 8
- Support for ESP32C3 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sps30.