Sensors and Actors

This is a list of sensors, simple input and output components up to interface chips for various purposes that show the wide range of possibilities supported by the HomeDing library.

Many of the sensors offer simple digital or analog signals to be used by the generalized input and output elements.

Others others are using data transported over a bus like I2C bus or even specific protocols and need special elements.

There is a generalized Sensor Element that is used as a base class for sensors to simplify implementation and support the timing of sensor reading cycles.

Sensors giving digital signals

Many sensors offer direct usable digital signals that can be detected and used as an input to create actions.

Mechanical sensors

Magnetic sensors

Light sensors

Analog Temperature Sensors

See also environmental sensors below.

Sound sensors

Digital output

Sensor Elements with impulse/frequency transfers

Instead of providing an analog level some sensors provide impulses with a timing or a impulse patterns.

To communicate with these sensors and actors special libraries and elements are used that implement the specific interface and interpretation of the given data.

Sensor Elements with data exchange

These sensor deliver data sets instead of digital or analog values.

They communicate by their specific protocol and actions can be created based on the retrieved values. . Often these sensors provide multiple values or implement more complex I/O needs.

Environment sensing

There are many sensors for temperature and more environment / air parameters varying on interface and parameters:

Model Element Temperature Humidity Pressure VOC Protocol
AHT20 AHT20 Element X X - - I2C
AM2120 DHT Element X X - - DHT
AM2302 DHT Element X X - - DHT
AM2320 AM2320 Element X X - - I2C, DHT
AM2322 DHT Element X X I2C, DHT
BMP280 BMP280 Element X - X - I2C
BME680 BME680 Element X - - - I2C, SPI
Dallas Dallas Element X - - - OneWire
DS18B20 Dallas Element X - - - OneWire
DHT11 DHT Element X X - - DHT
DHT20 AHT20 Element X X - - I2C
DHT22 DHT Element X X - - DHT
SHT20 SHT20 Element X X - - I2C
SHT30 X X - - I2C
SHT71 X X - - I2C
SHT85 X X - - I2C
MICS5524 - - - X Analog

Motion

Measurements

Light control

Light Element : PWM values for single color or RGB Leds attached directly on GPIO pins.

Input Components

Radio

There is a very specific example that shows how to use the HomeDing and the Radio library to build a full functional radio that can be controlled by some local input but also from remote.

See also