View: 2228|Reply: 1

issues with C and rfic starter kit lesson 15

[Copy link]

1

Threads

1

Posts

7

Credits

Newbie

Rank: 1

Credits
7
Post time 2019-6-20 20:48:39 | Show all posts |Read mode
The sensor seems to only work with python. I follow the instructions in the manual and have it wired the exact same way. I am using a rasbpberry pi 3 model B.
here is the output i get for both
pi@raspi2:~/lessons$ python 15_dht11.py
sensor is working.
[0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0]
temperature :  19 , humidity :  65

pi@raspi2:~/lessons/15-dht11$ gcc dht11.c -o dht11 -lwiringPi
pi@raspi2:~/lessons/15-dht11$ ./dht11
Raspberry Pi wiringPi DHT11 Temperature test program
Data not good, skip
Data not good, skip
Data not good, skip
^C

Im using gpio 1 plus 5v and gnd as in the lesson. Works fine with python but C wont work

Any idea?


Reply

Use magic Report

23

Threads

223

Posts

814

Credits

Senior member

Rank: 4

Credits
814
Post time 2021-2-4 17:15:21 | Show all posts
Please send us a detailed description of the problem you encountered by email (including which product you bought, description of the problem, and picture provided): support@adeept.com
Reply

Use magic Report

You have to log in before you can reply Login | Sign Up

Points Rules