BASIC4MCU | 질문게시판 | 답변 : SDS011 센서 질문입니다.
페이지 정보
작성자 master 작성일2019-04-08 06:01 조회3,533회 댓글0건본문
Communication protocol:
Serial communication protocol: 9600 8N1. (Rate of 9600, data bits 8, parity none, stop bits 1)
Serial report communication cycle: 1+0.5 seconds
Data frame (10 bytes): message header + order+ data(6 bytes) + checksum + message trailer
The number of bytes: Name: Content
0: message header: AA
1: order: C0
2: data 1: PM2.5 low byte
3: data 2: PM2.5 high byte
4: data 3: PM10 low byte
5: data 4: PM10 high byte
6: data 5: 0(reserved)
7: data 6: 0(reserved)
8: checksum: checksum
9: message trailer: AB
Checksum: data 1 + data 2 + ...+ data 6
PM2.5 data content: PM2.5 (ug/m3) = ((PM2.5 high byte*256 ) + PM2.5 low byte)/10
PM10 data content: PM10 (ug/m3) = ((PM10 high byte*256 ) + PM10 low byte)/10
Package included:
1 x Nova PM Sensor SDS011 High Precision Laser PM2.5 Air Quality Detection Sensor Module
해당 먼지센서의 예제를 만들어 놓은 것이 없습니다.
UART를 공부해서 직접 만들든지
아니면 시리얼 출력이 아닌 다른 인터페이스의 먼지센서로 구입하셔야겠습니다.
댓글 0
조회수 3,533등록된 댓글이 없습니다.