Digital Temperature gauge using DS18B20 + LCD

Discussion in 'UDOO NEO' started by jas-mx, May 19, 2017.

  1. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118

    Here we demonstrate how the cortex M4 can be used to implement the Dallas one wire protocol to read two DS18B20 temperature sensors. The output is displayed to an LCD using custom ring meter gauges. As with previous posts this done using the FreeRTOS SDK. More info on the blog .
     
    gheesung and Maurice like this.
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Nice work! Can you share the source code or the GitHub you have the code stored on? This is an open source community so this would be highly appreciated!
     
  3. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    Unfortunately I can't always open source it, what ever can be open source or made public has been. Most of the Neo work I produce are mainly spins off from commercial work back ported to the Neo in my own time. Hence it can't be always be open sourced. What is not recognised is that it takes between 450-2000 man hours of development/debugging (that's on top of the commercial work) for a single piece of work in addition to having access to h/w debugging equipment ($$$). In reality this type of effort can't be done without some form of funding, especially for equipment and daily running cost hence it requires commercial sponsorship.

    As I have already stated in numerous post, you can easily download the FreeRTOS SDK and start learning to code.
     
  4. Scott

    Scott New Member

    Joined:
    Jun 20, 2017
    Messages:
    1
    Likes Received:
    0
    I'm new to single board computers. How do you physically connect a DS18B20 temperature sensor to a Udoo Neo?
     
  5. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    From hardware point of view it is simple. You have two options: Connect it to the Arduino side or to the Linux side. Basic scheme is as shown below.

    The difficult point is how to read the sensor through software. The Arduino onewire library that is required to read it is not supported. Or you have to implement the communication protocol yourself.
    So whats left is the Linux side. Linux also has a onewire (1-wire) possibility but I do not know if it is implemented in Udoobuntu. If not you have to add it.

    [​IMG]
     
    Last edited: Jun 24, 2017
  6. maicol

    maicol New Member

    Joined:
    Jul 11, 2017
    Messages:
    1
    Likes Received:
    0
    Hello, I would like to know which side you used to do this, arduinno? Linux? I'm trying to do something similar could you help me?
     
  7. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    Already commented on this, see third post. Nothing stopping anyone downloading the FreeRTOS SDK and starting to code.
     

Share This Page