I guess that this was more complicated than I first guessed
..Currently I'm building a better test-rig so I can do some serious testing, right now I guess I just put a LCD in it and display the values.
The 165 and 245 was just typical values, I guess that the low value can be around 135-170 and the high one maybe 235-254. Maybe the span can be even larger.
The idea is to have a calibrating sequence first when the pic is started, where I determine the max and min value for this time, and then use this until the next start, where its calibrated again.'
Darrels solution was very neat btw![]()
Bookmarks