Tempsensor DS18B20

Post Reply
gekoch
Posts: 48
Joined: Fri Jun 30, 2017 3:32 pm
languages_spoken: english
ODROIDs: xu4
Contact:

Tempsensor DS18B20

Unread post by gekoch » Thu Jul 06, 2017 5:25 pm

Hy

I like to attach several DS18B20 to the Odroid XU4.
I read on several pages that this might work however the articles were
quite old so a lot have changed.
Can someone pls explain me how to set this up?

Thx
Andy

User avatar
odroid
Site Admin
Posts: 29397
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: Tempsensor DS18B20

Unread post by odroid » Thu Jul 06, 2017 6:02 pm

We connected the sensors to ODROID-C1 and C2 via 1-wire bus.
http://odroid.com/dokuwiki/doku.php?id= ... ardware_1w
http://odroid.com/dokuwiki/doku.php?id= ... ardware_1w

I think we can enable the 1-wire driver on Kernel 4.9.
But we didn't test it.
Note that you need a level-shifter since the XU4 GPIO level is 1.8Volt while the DS18B20 is 3.3V~5.5V.

gekoch
Posts: 48
Joined: Fri Jun 30, 2017 3:32 pm
languages_spoken: english
ODROIDs: xu4
Contact:

Re: Tempsensor DS18B20

Unread post by gekoch » Thu Jul 06, 2017 6:05 pm

ok so how can I enable this on my XU4?
And what kind of level-shifter do you recommend?

Andy

User avatar
odroid
Site Admin
Posts: 29397
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: Tempsensor DS18B20

Unread post by odroid » Tue Jul 11, 2017 6:34 pm

We ordered a couple of different level-shifter boards.
I think we can share some test results by end of next week.

gekoch
Posts: 48
Joined: Fri Jun 30, 2017 3:32 pm
languages_spoken: english
ODROIDs: xu4
Contact:

Re: Tempsensor DS18B20

Unread post by gekoch » Tue Jul 11, 2017 8:02 pm

thx a lot I really appreciate that and I'm looking forward!

Andy

User avatar
Gburas
Posts: 74
Joined: Sat Sep 19, 2015 7:13 am
languages_spoken: English, Polish
ODROIDs: Xu4
Location: Poland, Sopot
Contact:

Re: Tempsensor DS18B20

Unread post by Gburas » Tue Jul 11, 2017 8:09 pm

also interested in :)

User avatar
odroid
Site Admin
Posts: 29397
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: Tempsensor DS18B20

Unread post by odroid » Thu Jul 13, 2017 5:41 pm

Our Shifter-Shield doesn't work well with 1-wire device due to a signal timing issue.
So we used Sparkfun's level shifter board.
Refer this wiki page.
http://odroid.com/dokuwiki/doku.php?id= ... ware_1wire

gekoch
Posts: 48
Joined: Fri Jun 30, 2017 3:32 pm
languages_spoken: english
ODROIDs: xu4
Contact:

Re: Tempsensor DS18B20

Unread post by gekoch » Thu Jul 13, 2017 5:49 pm

wow thx a lot great just ordered some of those boards.
Can wen now hook several DS1820 on the Sensor signal : Level converter HV1?

Andy

User avatar
odroid
Site Admin
Posts: 29397
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: Tempsensor DS18B20

Unread post by odroid » Thu Jul 13, 2017 5:51 pm

We've tested 3 sensors and they worked well.
Try several sensors and let us know the result.

gekoch
Posts: 48
Joined: Fri Jun 30, 2017 3:32 pm
languages_spoken: english
ODROIDs: xu4
Contact:

Re: Tempsensor DS18B20

Unread post by gekoch » Thu Jul 13, 2017 5:53 pm

great thx the material arrives next week and I will immediately test this.
PS. in the friting scheme two pins of the Temp sensor are connected to th GND pin

Andy

gekoch
Posts: 48
Joined: Fri Jun 30, 2017 3:32 pm
languages_spoken: english
ODROIDs: xu4
Contact:

Re: Tempsensor DS18B20

Unread post by gekoch » Thu Jul 13, 2017 5:56 pm

just saw that I'm on the Kernel version 4.9.27-35
probably need to update...

User avatar
odroid
Site Admin
Posts: 29397
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: Tempsensor DS18B20

Unread post by odroid » Thu Jul 13, 2017 6:19 pm

gekoch wrote:PS. in the friting scheme two pins of the Temp sensor are connected to th GND pin
It is not a problem.
We call it 1-wire Parasitic-Power mode.

User avatar
odroid
Site Admin
Posts: 29397
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: Tempsensor DS18B20

Unread post by odroid » Fri Jul 14, 2017 12:16 pm

Note that 1-wire implementation is available in the latest Kernel 4.9.37-49 update.

fyoory
Posts: 8
Joined: Tue Feb 06, 2018 10:39 pm
languages_spoken: english
ODROIDs: XU4
Contact:

Re: Tempsensor DS18B20

Unread post by fyoory » Sat Feb 24, 2018 11:13 pm

odroid wrote:Our Shifter-Shield doesn't work well with 1-wire device due to a signal timing issue.
So we used Sparkfun's level shifter board.
Refer this wiki page.
http://odroid.com/dokuwiki/doku.php?id= ... ware_1wire
Hello,

I was wondering since I have this issue on the shield too if you have tested this with a DIP SN74HCT125 for level shifting? Thinking about trying my luck here using the 3v3 off shield at least into this shifter.



http://www.ti.com/lit/ds/symlink/sn74hct125.pdf

User avatar
odroid
Site Admin
Posts: 29397
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: Tempsensor DS18B20

Unread post by odroid » Sun Feb 25, 2018 11:10 am

We never tested it.
I think the 74HCT125 seems not to work since it is a unidirectional buffer.
To read the temperature, it must be a bidirectional buffer.

fyoory
Posts: 8
Joined: Tue Feb 06, 2018 10:39 pm
languages_spoken: english
ODROIDs: XU4
Contact:

Re: Tempsensor DS18B20

Unread post by fyoory » Sun Feb 25, 2018 9:21 pm

odroid wrote:We never tested it.
I think the 74HCT125 seems not to work since it is a unidirectional buffer.

Oh bummer I missed that minor detail. Ok thanks. Off to find some new IC I go.

Post Reply

Return to “Hardware and peripherals”

Who is online

Users browsing this forum: No registered users and 4 guests