- While unplugged to anything, connect the Arduino to the MQ2 Smoke Sensor as follows:
a. VCC 1
to Arduino VCC
(5V)
b. Ground 2
to Arduino GND
c. Data 3
to Arduino Analog 0 A0
- Connect Arduino to PC using USB. Pay attention to which
Port
it's using for the Software steps.
git clone https://github.com/mathdroid/evasap-arduino && cd evasap-arduino
npm install
- Open Arduino IDE, upload the
StandardFirmata
software using one of the options below:
a. From the Arduino IDE, go to File
> Examples
> Firmata
> StandardFirmata
.
b. Copy-and-paste the file from ./Arduino/StandardFirmata.ino
.
- Wait for it to be uploaded successfully.
a. If upload fails, make sure you have the right Board
and Port
set up in the Tools.
node index.js