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 New Member Posts: 348 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 2019

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

  • ccaldeccalde New Member Posts: 348 admin
    edited January 2019

    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

  • up_and_downup_and_down New Member Posts: 1

    Hi,
    Is anybody here who can use the 1-wire on UPBoard? I tried with a DS18B20 sensor, but it was unsuccessful. First I tried the same way as Jary, but there is no detected device. I tried different pins and sensors but nothing. I beleive the hardware connection is OK. Pullup resistor installed, 3.3V connected to the sensor.

    ls -l /sys/bus/w1/devices

    total 0

    Ubuntu 16.04.6 LTS
    Thanks!

  • DCleriDCleri Administrator, AAEON Posts: 1,004 admin

    Have you installed our custom kernel for UP Board following the instructions from our wiki?

    https://wiki.up-community.org/Ubuntu_16.04

Sign In or Register to comment.