DHT11 on Udoo Neo (not Arduino)

Discussion in 'UDOO NEO' started by Francis Augusto Medeiros, Sep 25, 2016.

Tags:
  1. Francis Augusto Medeiros

    Francis Augusto Medeiros New Member

    Joined:
    Sep 10, 2016
    Messages:
    8
    Likes Received:
    0
    Hi there,

    I want to read the temperature and humidity information read by a DHT11 sensor connected to GPIO 47 on the Linux side of Udoo Neo. How can I do that? Is there a simple way I can read the GPIO info and calculate the information? Right now, using `cat /gpio/pin47/value` gives me nothing...
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    This sensor uses a communication protocol to send the data. There is a python library to read the sensor data with the protocol on the Linux side but not for the Neo. You will have to modify it. https://github.com/adafruit/Adafruit_Python_DHT/
     
  3. Francis Augusto Medeiros

    Francis Augusto Medeiros New Member

    Joined:
    Sep 10, 2016
    Messages:
    8
    Likes Received:
    0
    Thanks Walter. I can try that, but I wish I could at least read the raw data from it - I wonder if that's possible.
     
  4. Francis Augusto Medeiros

    Francis Augusto Medeiros New Member

    Joined:
    Sep 10, 2016
    Messages:
    8
    Likes Received:
    0
    Er, I just realized that this sensor is not as simple to read, as it requires to be briefly put in output mode and then back to input mode so it can read something. I will investigate more.
     
  5. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    On the Arduino side I had it running with no problems using the library.
     
  6. Francis Augusto Medeiros

    Francis Augusto Medeiros New Member

    Joined:
    Sep 10, 2016
    Messages:
    8
    Likes Received:
    0
    Do you know how to read/write to the gpio with C on the Linux side?
     
  7. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Sorry, No
     
  8. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580

Share This Page