Hi,
Is there any C code or library available for DHT11 temperature/humidity interface on colibri imx7D board?
please suggest if any.
Thanks,
Kaustubh
Hi,
Is there any C code or library available for DHT11 temperature/humidity interface on colibri imx7D board?
please suggest if any.
Thanks,
Kaustubh
Hi
There is a driver in the linux kernel sources.
Enable it in the kernel config and add the relevant configuration to the device tree.
Note that we have no experience with that driver.
Max
Hi
No, AFAIK there is no library supporting the protocol, that is not how Linux works.
In Linux you use so called drivers to work with HW. So if you configure your kernel to include the driver for your DHT11 device that driver will contain what ever is needed to run that one wire protocol and the driver will present you measured humidity and temperature in two files in the /sys/bus/iio/devices/iio:deviceX/…
So as already said you need to build the kernel by your self.
To get the driver compiled you will have to add the driver in the kernel configuration (CONFIG_DHT11) and you will need to configure the driver in your device tree.
Max
Hi,
Thanks max.tx for the answer.
As dht11 is based on one wire protocol , is there any library ported for supporting this protocol on imx7?
Thanks,
Kaustubh
Hi,
Thanks max.tx for the answer.
As dht11 is based on one wire protocol , is there any library ported for supporting this protocol on imx7?
Thanks,
Kaustubh