i have raspberry pi b 2
please help me to understand how can i use with python five AM2320 sensor
http://www.aliexpress.com/item/5pcs-AM2 ... 97408.html
thanks
enricosx wrote:hello i'm a noob![]()
i have raspberry pi b 2
please help me to understand how can i use with python five AM2320 sensor
http://www.aliexpress.com/item/5pcs-AM2 ... 97408.html
thanks
joan wrote:It's probably simplest to use it in so called 1 wire mode (not to be confused with Dallas 1-wire). It then acts like a DHT22. So you would need a 4k7 resistor per device and one spare GPIO per device.
Of course I would read it using my software, probably http://abyz.co.uk/rpi/pigpio/examples.html#pdif2_DHTXXD
[ot]mikronauts wrote:I can heartily recommend her excellent library.
Code: Select all
gcc -Wall -pthread -o DHTXXD test_DHTXXD.c DHTXXD.c -lpigpiod_if2
test_DHTXXD.c:31:25: fatal error: pigpiod_if2.h: No such file or directory
#include <pigpiod_if2.h>
^
compilation terminated.
DHTXXD.c:10:25: fatal error: pigpiod_if2.h: No such file or directory
#include <pigpiod_if2.h>
^
compilation terminated.
Why not?Massi wrote:[ot]mikronauts wrote:I can heartily recommend her excellent library.
![]()
can't be
[/ot]
Did you follow the download instructions?enricosx wrote:Code: Select all
gcc -Wall -pthread -o DHTXXD test_DHTXXD.c DHTXXD.c -lpigpiod_if2 test_DHTXXD.c:31:25: fatal error: pigpiod_if2.h: No such file or directory #include <pigpiod_if2.h> ^ compilation terminated. DHTXXD.c:10:25: fatal error: pigpiod_if2.h: No such file or directory #include <pigpiod_if2.h> ^ compilation terminated.
Code: Select all
git clone https://github.com/joan2937/pigpioCode: Select all
wget abyz.co.uk/rpi/pigpio/pigpio.zip
i totally quote you, but i had a different default assumption and never thought to different possibilitiesBMS Doug wrote:Why not?
I don't know what Joan's gender is but the name is very commonly a female name here in the UK, although it is also a common Male name in other countries. (my default assumption was female on that basis).
Joan's gender is irrelevent to my opinion of Joan's superb PIGPIO library and excellent posts.
Follow one of the links that Doug gave you in viewtopic.php?f=91&t=132994#p886689enricosx wrote:i don't see download istructions
![]()
![]()