ESPHome components

Notes on using ESPHome and cheap, readily available electronic components.

Overview

Most of this is already documented by ESPHome, these are my own notes that also cover some frustrations and pitfalls -- as well as a reference guide for myself (and whoever else).

Components

  • GPIO: Using GPIO pins for fun and profit.

Sensors

  • ADC: Analog-to-digital
  • BME280: Barometric pressure + temperature + humidity
  • BMI160: Accelerometer and Gyroscope
  • PIR: Generic PIR motion sensor
  • LD2410: mmWave radar presence sensor
  • SGP30: CO₂ and (Total) Volatile Organic Compound Sensor
  • SGP41: Volatile Organic Compound and NOx sensor
  • PN532: RFID/NFC reader
  • RCWL-0516: Doppler radar
  • RG-9: Rain gauge
  • VL53L0X: Time of Flight optical distance sensor

Displays

HD44780 LCD display

I have some unusual model "2004A-V1.3". Based on the Arduino forum thread and the linked AliExpress page, this is probably an LCD module called SPLC780D that has an onboard I2C adapter/interface called AIP31066. Found a GitHub repo enjoyneering/LiquidCrystal_I2C with detailed info.

Lights

  • LED: Control LEDs, hardware PWM (pulse-width-modulation) with ESP32 ledc.

Other

  • RF: Transmit and receive 433 MHz RF signals.
  • IR: Transmit and receive infrared signals.

References

1

Pin schema - ESPHome: Pin configuration and definitions, enabling pull-up/pull-down resistors.

7

Build a cheap air quality sensor - pieterbrinkman.com: Sends data to Luftdaten, good project box ideas.

8

How to detect mains voltage with a microcontroller?, primer on Optocouplers with microcontrollers.

10

The HomeDing Library: Sensors and Actors, Displays, Elements (implementations), Recipes.

11

Powering sensors - Alex Mekkering: Using GPIO pins as 3V3 or GND.

13

HausnerR/esphome-door-lock - GitHub: door lock based on Wemos D1 mini and RC522 RFID module.