Support for the SGP30 eCO2 and TVOC sensor
Create an arduino object with I2C.
serialDevices = serialportlist;
a = arduino(serialDevices(end),'Nano3','Libraries',{'I2C'});
Connecting to the SGP30
sgp30obj = sgp30(a);
Read the sensor values
SGPeCO2Data = sgp30.readEquivalentCarbondioxide;
SGPTVOCData = sgp30.readTotalVolatileOrganicCompounds
인용 양식
Eric Prandovsky (2026). SGP30 eCO2 & TVOC sensor (https://kr.mathworks.com/matlabcentral/fileexchange/155192-sgp30-eco2-tvoc-sensor), MATLAB Central File Exchange. 검색 날짜: .
MATLAB 릴리스 호환 정보
개발 환경:
R2022b
R2022b 이상 릴리스와 호환
