Hello World.
I have an question about 7 pushbuttons on one ADC port
the buttons have it's one resistor as a pull-up.
the button connect the resister to the ground, that gifs an value on the ADC port
look by low
Sub _buttons
If Vin = 450 Then
Volt = Volt + 1
Elseif Vin = 130 Then
Volt = Volt - 1
Elseif Vin = 3 Then
Volt = 0
Elseif Vin = 841 Then
Amp = Amp + 1
Elseif Vin = 609 Then
Amp = Amp - 1
Elseif Vin = 3 Then
Amp = 0
End If
End Sub
but now it's it comes.
when my Atmel is going warmer the value deviates and the buttons doen't work any more.
because the value is not 451 but 450 or 449
there is a solution for this problem Can it may be with a margin
that it looks from 840 to 843 example....
thanx
[b:e63ff51f9c][color=red:e63ff51f9c](BASCOM-AVR version : 2.0.7.6 )[/b:e63ff51f9c][/color:e63ff51f9c]
↧