Skip to content

denismpa/Autohome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 

Repository files navigation

ESP32 Firmware

  • Read sensors
  • Send data to MQTT broker

Led code

Led blinks mean that something goes wrong. The led can only blink in two modes, fast or slow. This table translate led blinks to some error:

Blinks Error
2 FAST Trying connection with Wifi
3 FAST Trying connection with MQTT Broker
3 SLOW + 2 FAST Error while reading temperature. One sensor may be damaged. Failed temperature reads are also noticeble by the value -127 which is returned from failed reads. Upper tier can use this for accoutability so I left it.

PINS and Wires

  • Door sensor must have one pole attached to ground, other one attached to D23

  • Smoke sensor must have one pole attached to ground, other one attached to D18

  • Temperature sensor DS18B20 must be attached to D19. VCC is +3.3V. There MUST BE A 4k7 RESISTOR BETWEEN DATA AND VCC

  • Sensor HT21D must have the following wiring: CL - D22 DA - D21 GND - GND VCC - +3.3v

Dependencies

  • OneWire
  • DallasTemperature
  • PubSubClient
  • SparkFun_HTU21D
  • DHT-sensor-library (and its dependences)

All dependencies are installable from the Manage Libraries menu at Arduino IDE.

About

Esp32 firmware intended to control an intelligent home

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages