Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.31 KB

README.md

File metadata and controls

31 lines (22 loc) · 1.31 KB

Temperature Alarmer

JavaScript Style Guide

It is a basic temperature Alarmer based on the DS18B20 sensor and johnny-five.

Pins

  • 6 - Alarm Pin
  • 3-5 - Indication of progress reaching the max from the base temperature. Each pin(1-3) gets brightness/pwd signal in one of three ranges
    • 3 led - 0-33%
    • 4 led - 33%-66%
    • 5 led- 66%-100%.
  • 2 - Input data from the sensor

Important: You need to have 4.7 kOm resister. Refer to the schema

How to use

  1. Install/Deploy ConfigurableFirmata on your arduino device

  2. Install latest nodejs

  3. Run npm i

  4. Run npm start -- --baseTemp <number> --maxIncrease <number>

    for example:

     npm run start -- --baseTemp 24 --maxIncrease 0.3
    

    also optionally, You could define serialPort, by default it detects automatically

     npm run start -- --baseTemp 24 --maxIncrease 0.3 --serialPort COM5