Alright, so I watched a video tutorial on this chip, pretty good one.
#1 : I don't own an Arduino "yet". I'm studying a little first, to see if I want to purchase one.
I don't understand some things.
Alright, so this is the tutorial I got it from. Getting Temp from DS18B20 to an ATtiny & control a relay [Anything Arduino] ep.10
So, Group C, Red. is LSB (Least Significant Byte), which reads 1F.
1 is in the 16's place, and F is in the 1's place. 1x16 = 16, F is 15 x 1 = 15.
15 + 16 = 31. Hexadecimal.
So, Group C, Green. is MSB (Most Significant Byte), which reads 1.
1 is in the 1's place, so 1 x 1 = 1.
All together now.. 1 MSB and 31 LSB.
Then in the video he says to multiply the MSB by 256, green highlighted one, which is hex : 1
1 x 256 = 256.
Add them together he says.. 256 + 31 = 287
Then a little bit further into the video, he says that each degree (°C) is 16.
So I thought to myself, I wonder what would happen if I divided 287 by 16.
287 / 16 = 17.9375
Hmmm.. That looks like the data output he got for Celsius (Shows : 17.94 °C)
So I'm gonna take a guess and say it rounded the thousandths place.
Why do I have to multiply the MSB by 256?
Why when I divided 287 by 16, did I get the tempature in Celsius?
I also watched this video..
Hexadecimal Math - CompTIA Network+ N10-006 - 5.2
And I still don't understand.
It's clear that I know a little bit about binary, and hexadecimal, and I even know how to convert numbers to Base 62, but I can't figure this out.
Could someone help..?
Did I post in the right section, I'm new to Arduino, and the official forums for Arduino.
Thanks.