Help DS18B20
alright, watched video tutorial on chip, pretty one.
#1 : don't own arduino "yet". i'm studying little first, see if want purchase one.
i don't understand things.
ds18b20 datasheet
alright, tutorial got from. getting temp ds18b20 attiny & control relay [anything arduino] ep.10
so, group c, red. lsb (least significant byte), reads 1f.
1 in 16's place, , f in 1's place. 1x16 = 16, f 15 x 1 = 15.
15 + 16 = 31. hexadecimal.
so, group c, green. msb (most significant byte), reads 1.
1 in 1's place, 1 x 1 = 1.
all now.. 1 msb , 31 lsb.
then in video says multiply msb 256, green highlighted one, hex : 1
1 x 256 = 256.
add them says.. 256 + 31 = 287
then little bit further video, says each degree (°c) 16.
so thought myself, wonder happen if divided 287 16.
287 / 16 = 17.9375
hmmm.. looks data output got celsius (shows : 17.94 °c)
so i'm gonna take guess , rounded thousandths place.
why have multiply msb 256?
why when divided 287 16, did tempature in celsius?
i watched video..
hexadecimal math - comptia network+ n10-006 - 5.2
and still don't understand.
it's clear know little bit binary, , hexadecimal, , know how convert numbers base 62, can't figure out.
could help..?
did post in right section, i'm new arduino, , official forums arduino.
thanks.
#1 : don't own arduino "yet". i'm studying little first, see if want purchase one.
i don't understand things.
ds18b20 datasheet
alright, tutorial got from. getting temp ds18b20 attiny & control relay [anything arduino] ep.10
so, group c, red. lsb (least significant byte), reads 1f.
1 in 16's place, , f in 1's place. 1x16 = 16, f 15 x 1 = 15.
15 + 16 = 31. hexadecimal.
so, group c, green. msb (most significant byte), reads 1.
1 in 1's place, 1 x 1 = 1.
all now.. 1 msb , 31 lsb.
then in video says multiply msb 256, green highlighted one, hex : 1
1 x 256 = 256.
add them says.. 256 + 31 = 287
then little bit further video, says each degree (°c) 16.
so thought myself, wonder happen if divided 287 16.
287 / 16 = 17.9375
hmmm.. looks data output got celsius (shows : 17.94 °c)
so i'm gonna take guess , rounded thousandths place.
why have multiply msb 256?
why when divided 287 16, did tempature in celsius?
i watched video..
hexadecimal math - comptia network+ n10-006 - 5.2
and still don't understand.
it's clear know little bit binary, , hexadecimal, , know how convert numbers base 62, can't figure out.
could help..?
did post in right section, i'm new arduino, , official forums arduino.
thanks.
oh, come on. spend $6.89.
Arduino Forum > Using Arduino > Programming Questions > Help DS18B20
arduino
Comments
Post a Comment