UDOO QUAD temperatura DS18B20

Discussion in 'UDOO QUAD' started by Didoness, May 5, 2017.

  1. Didoness

    Didoness New Member

    Joined:
    May 5, 2017
    Messages:
    2
    Likes Received:
    2
    Salve a tutti,
    Qualcuno potrebbe dirmi (partendo da zero), come poter fare una misura della temperatura con il sensore di temperatura DS18B20 tramite python?
    Grazie mille.

    Hello everyone,
    Can anyone tell me (starting from zero) how to measure the temperature with the DS18B20 temperature sensor via python?
    Thanks so much.

    If you are italian please answer me in italian xD
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,192
    Likes Received:
    557
    I have no experience with this sensor. From what I can tell it is a One Wire Sensor so you have to enable 1-wire functionality on a pin through the device tree editor. Then you have to find a python library that can communicate with this 1-wire pin. Be aware to choose a library that is compatible with the Udoo. So not for example Raspberry Pi specific.

    Another possibility is to use the Arduino Due side of the Udoo Quad and use OneWire there with this library (not guaranteed to work). Send the data over to Linux through the serial device and carry on in Python processing the sensor data.
     
  3. Didoness

    Didoness New Member

    Joined:
    May 5, 2017
    Messages:
    2
    Likes Received:
    2
    Hi Walter,
    Thanks for your help, I solved this problem through the device tree editor.
    Good job continuation and sorry for my english
     
    evaloverde and waltervl like this.

Share This Page