Git Product home page Git Product logo

Comments (6)

eMUQI avatar eMUQI commented on August 28, 2024 1

It works great now, thanks!

from adafruit_blinka.

gkellershs avatar gkellershs commented on August 28, 2024 1

I installed it on a fresh image and now it´s working, thank you very much.

from adafruit_blinka.

makermelissa avatar makermelissa commented on August 28, 2024

I think the pulsein binary likely needs to be be recompiled for the Pi 5.

from adafruit_blinka.

makermelissa avatar makermelissa commented on August 28, 2024

It didn't need recompiling, it just needed to use the correct gpiochip and offset.

from adafruit_blinka.

gkellershs avatar gkellershs commented on August 28, 2024

Hello,
I have a similar situation, Pi5 and the DHT22 will not work. What have to be done to get it running?

I get the following error

(env) pi@instructorPI5:~ $ python3 dht.py
<module 'board' from '/home/pi/.local/lib/python3.11/site-packages/board.py'>
Traceback (most recent call last):
  File "/home/pi/dht.py", line 12, in <module>
    dhtDevice = Adafruit_DHT.DHT22(board.D6, use_pulseio=False)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'int' object is not callable

This is the code snipplet:

import time
import board
import Adafruit_DHT
print (board)
# Initial the dht device, with data pin connected to:
dhtDevice = Adafruit_DHT.DHT22(board.D6, use_pulseio=False)

from adafruit_blinka.

makermelissa avatar makermelissa commented on August 28, 2024

@gkellershs I think adafruit_dht may need to be lowercase. See this example: https://github.com/adafruit/Adafruit_CircuitPython_DHT/blob/main/examples/dht_simpletest.py

from adafruit_blinka.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.