|
NAMEgpioths —
driver for DHTxx and AM320x temperature and humidity
sensors
SYNOPSISTo compile this driver into the kernel, place the following line in your kernel configuration file:device gpioths Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5): gpioths_load="YES" DESCRIPTIONThegpioths driver supports the DHTxx and AM320x family
of temperature and humidity sensors. The driver automatically reads the values
from the sensor once every 5 seconds, and makes the results available via
sysctl(8)
variables.
HARDWAREThegpioths driver provides support for the following
devices:
The supported devices are all similar to each other, varying primarily in accuracy and resolution. The devices require a single wire for data communications, using a custom protocol which is not compatible with Maxim's 1-wire(tm). The AM320x devices also support connection to an i2c bus, but this driver supports only the single-wire connection option. SYSCTL VARIABLESSysctl variables are used to access the most recent temperature and humidity measurements.
FDT CONFIGURATIONOn an fdt(4) based system, agpioths device node is typically
defined directly under the root node, or under a simplebus node that
represents a collection of devices on a board.
The following properties are required in the
Example of adding a sensor with an overlay/dts-v1/; /plugin/; #include <dt-bindings/gpio/gpio.h> / { compatible = "wand,imx6q-wandboard"; }; &{/} { dht0 { compatible = "dht11"; gpios = <&gpio5 15 GPIO_ACTIVE_HIGH>; }; }; HINTS CONFIGURATIONOn a device.hints(5) based system, such asMIPS , these values are
configurable for gpioths :
SEE ALSOfdt(4), gpiobus(4), sysctl(8)HISTORYThegpioths driver first appeared in
FreeBSD 11.1.
Visit the GSP FreeBSD Man Page Interface. |