UpBoard kernel 1-wire support

JariJari New Member Posts: 5

Hi,

There seems to be modules w1_gpio and w1_therm kernel modules in the linux-image-generic-hwe-16.04-upboard.

Are those fully supported? I can load them, but so far no luck getting them working with digital temperature sensor attached to GPIO pins.

Are there kernel sources available?

Br,
Jari

Comments

  • ccaldeccalde Administrator, Moderator, Emutex Posts: 331 admin

    Hi @Jari ,

    Could you please specify more about your setup? GPIO pin? Sensor model? Steps to load and check your sensor on Linux, etc.
    I would like to reproduce the issue here.
    Thanks!

  • JariJari New Member Posts: 5

    Hi,

    Sensor model is DS18B20. Ubuntu 16.04. Kernel and extras from here: https://wiki.up-community.org/Ubuntu.
    GPIO pin 23 has the data. I can provide you more information about wiring bit later.

    I pretty much tried to follow instructions for RPI, as I could not find anything else. There seems to be w1_gpio and w1_therm modules, like RPI has.

    I tried to set environment variable
    dtoverlay=w1-gpio,gpiopin=23

    then load modules
    sudo modprobe w1_gpio
    sudo modprobe w1_therm

    then tried to find devices
    ls /sys/bus/w1/devices/

    And nothing was found. I have no idea if dtoverlay is some RPI specific thing or is it also usable with Ubuntu.
    Pretty much followed steps described for example here: http://www.circuitbasics.com/raspberry-pi-ds18b20-temperature-sensor-tutorial/

    Br,
    Jari Penttinen

  • JariJari New Member Posts: 5
    edited January 21

    Sensor DS18B20 is connected in non-parasitic power mode to Linux GPIO 23

  • ccaldeccalde Administrator, Moderator, Emutex Posts: 331 admin
    edited January 25

    Hi @Jari ,

    If you have the correct kernel 4.15 for UPboard on Ubuntu then,
    first at all I would recommend you to double check your GPIO pin:
    echo 23 > /sys/class/gpio/export
    Input test:
    cat /sys/class/gpio/gpio23/value #should be 0
    Jump pin1 (3.3v) to pin 16 (Linux 23)
    Check again:
    cat /sys/class/gpio/gpio23/value #should be 1

Sign In or Register to comment.