Tempsensor DS18B20

Moderators: mdrjr, odroid

Tempsensor DS18B20

Unread postby 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
gekoch
 
Posts: 40
Joined: Fri Jun 30, 2017 3:32 pm
languages_spoken: english
ODROIDs: xu4

Re: Tempsensor DS18B20

Unread postby 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.
User avatar
odroid
Site Admin
 
Posts: 28510
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Tempsensor DS18B20

Unread postby 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
gekoch
 
Posts: 40
Joined: Fri Jun 30, 2017 3:32 pm
languages_spoken: english
ODROIDs: xu4

Re: Tempsensor DS18B20

Unread postby 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.
User avatar
odroid
Site Admin
 
Posts: 28510
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Tempsensor DS18B20

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

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

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

Re: Tempsensor DS18B20

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

also interested in :)
User avatar
Gburas
 
Posts: 47
Joined: Sat Sep 19, 2015 7:13 am
Location: Poland, Sopot
languages_spoken: English, Polish
ODROIDs: Xu4

Re: Tempsensor DS18B20

Unread postby 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
User avatar
odroid
Site Admin
 
Posts: 28510
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Tempsensor DS18B20

Unread postby 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
gekoch
 
Posts: 40
Joined: Fri Jun 30, 2017 3:32 pm
languages_spoken: english
ODROIDs: xu4

Re: Tempsensor DS18B20

Unread postby 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.
User avatar
odroid
Site Admin
 
Posts: 28510
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Tempsensor DS18B20

Unread postby 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: 40
Joined: Fri Jun 30, 2017 3:32 pm
languages_spoken: english
ODROIDs: xu4

Re: Tempsensor DS18B20

Unread postby 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...
gekoch
 
Posts: 40
Joined: Fri Jun 30, 2017 3:32 pm
languages_spoken: english
ODROIDs: xu4

Re: Tempsensor DS18B20

Unread postby 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: 28510
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Tempsensor DS18B20

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

Note that 1-wire implementation is available in the latest Kernel 4.9.37-49 update.
User avatar
odroid
Site Admin
 
Posts: 28510
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Tempsensor DS18B20

Unread postby 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
fyoory
 
Posts: 4
Joined: Tue Feb 06, 2018 10:39 pm
languages_spoken: english
ODROIDs: XU4

Re: Tempsensor DS18B20

Unread postby 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.
User avatar
odroid
Site Admin
 
Posts: 28510
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Tempsensor DS18B20

Unread postby 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.
fyoory
 
Posts: 4
Joined: Tue Feb 06, 2018 10:39 pm
languages_spoken: english
ODROIDs: XU4


Return to Hardware and peripherals

Who is online

Users browsing this forum: No registered users and 3 guests