Comments (4)
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.
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.
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.
closed
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
- 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.