Kingpin094
New Member
I am currently trying to make a clock/tempurature display simalar to the one at the web page below.
https://www.mohr.se/ under electronics.
I am using a UCN5832A 32-bit current sink driver to power the display.
The problem that I am having is that I can't seam to get working code to
sampe two different temp sensors (DS18S20). I have done projects in the
past with the 18S20 and can get it working with one sensor but when I
add the second one stuff starts going crazy. The sensors are running on
seperate pins because I can't figure out the whole chip ID thing.
The code is atatched below. The two segments were the problem is in
the Get_temp functions. If I point both subroutines at the same pin they
work fine but if the are pointed at different pins then one works and the
other one gives weird data. The blocks of code running the two sensors
the same exept for some changes in lables.
Any one got any ideas?
https://www.mohr.se/ under electronics.
I am using a UCN5832A 32-bit current sink driver to power the display.
The problem that I am having is that I can't seam to get working code to
sampe two different temp sensors (DS18S20). I have done projects in the
past with the 18S20 and can get it working with one sensor but when I
add the second one stuff starts going crazy. The sensors are running on
seperate pins because I can't figure out the whole chip ID thing.
The code is atatched below. The two segments were the problem is in
the Get_temp functions. If I point both subroutines at the same pin they
work fine but if the are pointed at different pins then one works and the
other one gives weird data. The blocks of code running the two sensors
the same exept for some changes in lables.
Any one got any ideas?