1 wire sensors on i.MX 6

Discussion in 'UDOO 101' started by marcman, Oct 14, 2014.

  1. marcman

    marcman New Member

    Joined:
    Oct 13, 2014
    Messages:
    3
    Likes Received:
    0
    Hello,

    I would like to use a 1 wire sensor a DS18B20.
    what would be the pin to connect the sensor.

    regards,
    Cosmin
     
  2. delba

    delba Administrator Staff Member

    Joined:
    May 8, 2013
    Messages:
    1,064
    Likes Received:
    9
    You need to plug the sensor power pin into the 3.3v pin of UDOO, the ground into the ground pin and the sensor signal pin in one of the digital pin of UDOO (from 2 to 53).
     
  3. marcman

    marcman New Member

    Joined:
    Oct 13, 2014
    Messages:
    3
    Likes Received:
    0
    Hello,

    thank you for the reply.

    so far I recompiled the kernel with support for i2c and 1wire
    I understand that I can use any pin from 2 to 53

    the question would be where do I define the pin in the linux and where will the sensors apear.
    the raspberry pi had a fix pin I could use the 1 wire.

    regards,
    Cosmin
     
  4. larryhartman50

    larryhartman50 New Member

    Joined:
    Jun 6, 2014
    Messages:
    6
    Likes Received:
    0
    I am attempting to do the exact same thing. When I plug the DS18B20 and attempt modprobe w1-gpio I receive an error message that states "No such device". What I am able to discern from reading rPi discussions is that there is a conflict between I2C and w1 drivers of some sort. I am considering using an rPi fix to solve the problem.

    kernel patch for Dallas 1-wire interface
    http://www.raspberrypi.org/forums/viewtopic.php?f=44&t=6649

    Essentially I will drop the w1 source files (discussed in the above forum) into the UDOO kernel and recompile, see what happens.... Very frustrating indeed


    Larry
     
  5. marcman

    marcman New Member

    Joined:
    Oct 13, 2014
    Messages:
    3
    Likes Received:
    0
    Hello,

    Easier solution is to use the DS2482 with OWFS and it works over i2c.
     

Share This Page