chechHumidity fork from onion2 to work with LinkIt Smart 7688
Switch branches/tags
Nothing to show
Clone or download

README.md

fork of omega2-checkHumidity (works with LinkIt Smart 7688)

additional notes

xCompile.sh script from here: https://github.com/OnionIoT/c-cross-compile-example/blob/master/xCompile.sh more info about xCompile.sh here: https://docs.onion.io/omega2-docs/cross-compiling.html

compile it with:

$ sh xCompile.sh -buildroot ~/dev/lede-project/lede/

where -buildroot is root directory of openwrt/lede source tree configured for linkit smart 7688 (make menuconfig)

Binary file checHumidity is already compiled for mt7688:

checkHumidity: ELF 32-bit LSB executable, MIPS, MIPS32 rel2 version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-mipsel-sf.so.1, with debug_info, not stripped

How to connect it:

DHT11/22 sensors have 3 pins 1 pin - Data (Signal) 2 pin - Vcc 3 pin - Ground

Data or Signal pin is marked as capital S

Here is wiring picture DHT22 to Mediatek LinkIt Smart 7688

============================================================

Adapted code (fastgpio) to get DHT11-DHT22-Sensor-Examples working on Omega2(+).

./checkHumidity GPIO-PIN : 0-19 DHT-TYPE : DHT11 or DHT22

Example

root@LEDE:~# ./checkHumidity 19 DHT11
33.000000
26.000000

See https://wiki.onion.io/Tutorials/PHP-DHT11-DHT22-Sensor-Examples

Origin tutorial and source

Links

Credits

check-humidity-7688