Arduino, Sensoren, Z-Wave, Bluetooth und mehr - SmartHome.Work - Lösungen für zu Hause

Direkt zum Seiteninhalt

Particulate Matter Sensor SPS30 and Arduino

SmartHome.Work - Lösungen für zu Hause
Veröffentlicht von in Sensors · 22 Januar 2019
Tags: SPS30sensor
Sensirion SPS30 Particulate Matter Sensor - how to use with Arduino

The original sample program https://github.com/Sensirion/embedded-sps need for I2C a buffer of min. 60bytes, that's why most Arduino test implementations will not work at first.

Solution:
Change in Wire.h the following line: #define BUFFER_LENGTH 64   (was 32 before)
Additional:
If you have a twi.h in your installation - change here too:
#define TWI_BUFFER_LENGTH 64  (was 32 before)

Then use the attached small program for testing.

If you cannot change the line - you can read out the first 5 values only - see in source code the marked line.
Use instead of the 60 bytes the 30 bytes option.

You will get the right values after some minutes of self calibration.

If any questions tell me ;)

Sample file: sps30-i2c-mini.ino



2 Kommentare
Durchschnittliche Bewertung: 125.0/5
2021-05-23 12:37:48
Nike Sandals
NFL Jerseys
Cheap Nike Shoes From China
Nikes
Nike Outlet
Yeezy
Jordan Retro 4
NHL Gear
Cheap NFL Jerseys
Nike Shoes Women
Cheap Jerseys Wholesale
Custom NBA Jerseys
Cheap NFL Jerseys From China
Nike Air Max
MLB Shop
Cheap NBA Jerseys
Nike Outlet
Adidas Yeezy Boost 350 V2
Pandora Necklace
Moncler UK
Cheap NFL Jerseys From China
Air Max 720 Flyknit
Nike Free Rn 2019
Nike Shoes Wholesale
Baseball Jerseys
Jordan Wholesale Distributors
NBA Jerseys
Pandora
MLB Jerseys
NFL Shop Official
NFL Jersey
NFL Pro Shop
Cheap Jordan Shoes
NFL Football Jerseys
Huaraches Nike
Nikes Shoes
Nike Cortez Women
NFL Jerseys Wholesale
NHL Jerseys
Cheap Jerseys Wholesale
Nike Sneakers For Men
Adidas Outlet
Cheap Nikes For Men
NFL Jerseys China
Nike Wholesale Suppliers
Red Bottom Shoes
Wholesale Jordan
Wholesale Jordans China
Cheap Jerseys
Nike Air Force Ones
Wholesale Jerseys China
Wholesale Shoes And Clothing
Air Force 1s
Nike Air Max 2019
Nike Air Force 1 Men
Cheap Adidas Shoes
Custom NHL Jerseys
Football Jersey
Nike Sneakers
Pandora Jewelry Outlet
Cheap Jerseys
NFL Store
Nike Outlet Store
Wholesale Shoes
NBA Store Canada
Christian Louboutin
Nike Wholesale
Pandora Jewelry
Adidas Outlet
NHL Jerseys
Huarache
Wholesale Jerseys
NFL Jersey
Cheap NBA Jerseys
Wholesale Jerseys
Cheapest Jerseys
Adidas Shoes
Nike Shoes For Women
Cheap Jerseys
Jerseys Wholesale
Pandora Rings Official Site
NFL Shop
Wholesale Jerseys
Nike Running Shoes
Air Force 1
NMD R1
NFL Fan Shop
Nike Jordan
Pandora Jewelry
Cheap Jordan Shoes
NFL Jerseys Cheap
Wholesale Shoes
Nike Air Max 270 Flyknit
Nike Wholesale
Cheap Hockey Jerseys
Nike Air Force 1 Low
Jordans Wholesale
Pandora Charms
Nike Shoes
Cheap Jerseys Free Shipping
Cheap Jerseys
Pandora Jewelry
Nike Zoom Pegasus
Wholesale Jerseys
Football Jerseys Cheap
Air Jordan Shoes
Air Force 1s
NFL Store
Nike 270
Nike
NFL Jerseys
NFL Uniforms
Cheap Jerseys Wholesale
Wholesale NFL Jerseys
Nike Huarache
Cheap Basketball Jerseys
NFL Jerseys
Adidas Trainers
NBA Jerseys
Nike Shoes
Wholesale Jordans From China Factory
Pandora Charms
NBA Store
Jordan 1
Cheap Jerseys
Adidas Shoes
Nike Outlet
Nike Canada
Air Jordan
Christian Louboutin Shoes
Jordan 33
Jerseys Cheap
Jordan 12
Custom MLB Baseball Jerseys
Nike Metcon
Cheap Jerseys
Off White Nike
Pandora Bracelet Charms
Nike Black Friday Deals 2019
Wholesale Adidas Shoes
MLB Store
Lebron James Sneakers
Custom MLB Baseball Jerseys
NBA Jerseys
Nike Blazers
NHL Jerseys Wholesale
Wholesale Nike Shoes
Best NFL Jerseys
Nike Roshe
Pandora Jewelry
MLB Jerseys
Rings Pandora
Wholesale Jerseys
Cheap NFL Jerseys From China
Foamposites
NHL Shop Canada
Nike Outlet
Fila Shoes For Women
NBA Apparel
Christian Louboutin Shoes
Uptempo
Nike Hyperdunk
Cheap Jordans Wholesale
Nike Shoes
Nike SB Dunk
Pandora Charms
Nike Wholesale
Christian Louboutin
Nike Shoes Outlet Store Online Shopping
Cheap Jordans
NHL Jerseys
Fjallraven
Nike Outlet Store Online Shopping
New Jordans
Cheap MLB Jerseys From China
Pandora Earrings
Air Max
Pandora Jewelry
Nike UK
Jordan 11
Nike Clearance
Jordan 33
Jordan 5
Cheap Jordan Shoes
Best Nike Running Shoes
Wholesale Jordans
Cheap NBA Jerseys
Cheap NBA Jerseys
Adidas Yeezy
Nike Zoom Pegasus
Francescopiero Calzolari
2019-03-07 14:33:14
Good morning Michael Pruefer, I tried your program for sps30 on Arduino both Mega 2560 and Leonardo, but if I change, in Wire.h, define BUFFER_LENGTH 32 to 64 the readings become all nan, while if I leave 32 the first 5 readings are ok the 6 I'm not sure is ok and then I have 4 nan (if I leave the cycle at 60). Can you give me some advice to solve this problem?
Thanks in advance
Francescopiero Calzolari

Copyright 2021 Michael Prüfer
Copyright 2018 Michael Prüfer
Zurück zum Seiteninhalt