Go to advanced search

by RaspberryLove
Sat Feb 20, 2016 9:39 pm
Forum: Automation, sensing and robotics
Topic: Yet more DHT22 sensor code
Replies: 101
Views: 83007

Re: Yet more DHT22 sensor code

Hi Joan, hi Daniel, I was setting up the DHT22 sensor again and now was wondering how to wire it. You guys say you always connect a pull-up resistor to the data pin. However, this is not mentioned in the comments of DHT22.py for the 3V3 setup, whereas it is explicitly mentioned for th 5V supply. I d...
by RaspberryLove
Sun Feb 22, 2015 4:10 pm
Forum: Automation, sensing and robotics
Topic: Yet more DHT22 sensor code
Replies: 101
Views: 83007

Re: Yet more DHT22 sensor code

Because of the way Python works you have to compile the module for each variant of Python you want to use. You can't just copy the byte code from one version to another. Got it. Though I copied only the py-file, not the pyc-file. After reading your reply, I checked and saw that - right where I drop...
by RaspberryLove
Sun Feb 22, 2015 2:56 pm
Forum: Automation, sensing and robotics
Topic: Yet more DHT22 sensor code
Replies: 101
Views: 83007

Re: Yet more DHT22 sensor code

Hi again, I was trying to run pigpio (the __main__ code in DHT22.py) with python3. However, I got an error that pigpio module was missing (import pigpio at the beginning of the file). So I looked for where it is for python 2.7 and just copied it to the equivalent python 3 directory. And this time py...
by RaspberryLove
Fri Feb 20, 2015 11:52 pm
Forum: Automation, sensing and robotics
Topic: Yet more DHT22 sensor code
Replies: 101
Views: 83007

Re: Yet more DHT22 sensor code

I installed pigpio as explained on its homepage under downloads. Assuming the unzipped files were only temporary, I removed all of it after running make install. Then I figured that I probably need all these files, since the tests - such as ./x_pigpio_if refer to the current directory. So where do y...

Go to advanced search