2. USAGE WITH ARDUINO
2.1 Connection
2.2 Code example
This
fine
dust
sensor
can
be
operated
utilizing
the
, which was published by
under the
. After installing this library in your Arduino IDE, you
can find the code example
basic_demo
under
File
→
Examples
→
Grove
-
Laser PM2.5 Sensor HM3301
. You can upload this code sample using
Upload
. Before doing so, however, make sure that the
Port
and
Board
are set correctly under
Tools
.
Arduino
HM3301
GND
GND
D19
(SCL)
SCL
D18
(SDA)
SDA
5V
5V