temperature = ((100*1.1*aRead)/1024)*10;
This calculation multiplies the value from the digital pinby 1.1 (our reference voltage) and again by 100. Whatthis does is stretch out or values from 0 to 930 to be avalue between 0 and 1023 (100*1.1*aRead). Thisvalue is then divided by 1024 to give is a maximumvalue of 100, which in turn is multiplied by 10 to addan extra digit to the end, enabling the modulo functionto work.Let[ch700]s look at
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16