Skip to content

Installing

Caio Frota edited this page Mar 25, 2021 · 1 revision

CF Logo

CF Arduino Humidifier

Quick Install

  • Checkout the latest changes or a release from GitHub.
  • Open the file "src/cf-arduino-humidifier/cf-arduino-humidifier.ino" on Arduino IDE.
  • Select your board (Tools > Board > ESP8266 Boards).
  • Upload (Sketch > Upload).

PS: If you are using a ESP-01, set it up as flash mode (Connect GPIO0 PIN to GND) before upload.

Using DHT11 / DHT22

  • Open the file "src/cf-arduino-humidifier/dht.ino" and choose what type of sensor you have:
//DHT dht(DHT_PIN_DATA,  DHT11);                                                                      // DHT11.
DHT dht(DHT_PIN_DATA,  DHT22);                                                                      // DHT22.

Changing Default Wi-Fi and Default Password

  • Open the file "src/cf-arduino-humidifier/wifimanager.ino" and change the following lines:
const String WIFI_DEFAULT_SSID = wifiManager.getDefaultAPName();                                    // Default SSID.
const String WIFI_DEFAULT_PASSWORD = "12345678";                                                    // Default Wi-Fi password.

Changing display I2C Address.

  • Open the file "src/cf-arduino-humidifier/display.ino" and change the address of your display:
#define CF_DISPLAY_ADDRESS      0x3C                                                                // Display I2C address.

Turning ON/OFF the display.

  • Open the file "src/cf-arduino-humidifier/cf-arduino-humidifier.ino" and look for the following line:
//#define USE_DISPLAY                                                                                 // Comment this line if you won't use display.

Turning ON/OFF the rotary encoder.

  • Open the file "src/cf-arduino-humidifier/cf-arduino-humidifier.ino" and look for the following line:
#define USE_ROTARY                                                                                  // Comment this line if you won't use rotary encoder.