syenidogan
Member level 1
- Joined
- Mar 6, 2014
- Messages
- 41
- Helped
- 2
- Reputation
- 4
- Reaction score
- 3
- Trophy points
- 8
- Activity points
- 297
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Do you mean to say that it is not displaying correct values on the LCD,or there is something wrong with the sensor?
Please explain..
unsigned char read_temperature(void)
İ need MSB of first byte (4 bits) and lsb of second byte (4bits). And first 4 bits will be my lsb and second 4 bits will be my MSB on the result byte.hello
did you check the result of
before displaying on LCD ?Code:unsigned char read_temperature(void)
i don't know the OWS DS18b20, but could you confirm :
you take 2 bytes from DS18b20, but only keep MSB of each value to form the result
is it the good way ?
does it needs to use an integer to contain the result ?
yes you can read all the bytes if you want or you can just reset bus after getting what you need.hello,
I read the datasheet, and it seems that all the Scratchpad must be read (9 bytes) ?
Unfortunatly, i don't have this device to check by myself.
You don't check (read) the DS18b20 "Presence pulse" before start Skip ROM + Read Scratchpad ..
to be sure DS18B20 is visible on the OWS bus.
Are you confident with your delay_uS to build mS delay ?
maybe you can use a timer to do delay 750mS ?
- - - Updated - - -
Have a look on this LINK