0 buttons pressed :
16:03:17.774 -> Voltage = 3.30volts ADC VALUE = 4095
Right buuton :
16:04:11.779 -> Voltage = 2.35volts ADC VALUE = 2931
16:04:13.778 -> Voltage = 2.36volts ADC VALUE = 2847
16:04:15.779 -> Voltage = 2.29volts ADC VALUE = 2863
16:04:17.775 -> Voltage = 2.31volts ADC VALUE = 2869
16:04:19.770 -> Voltage = 2.31volts ADC VALUE = 2815
16:04:21.775 -> Voltage = 2.27volts ADC VALUE = 2887
Up button :
16:05:11.786 -> Voltage = 0.50volts ADC VALUE = 701
16:05:13.784 -> Voltage = 0.56volts ADC VALUE = 675
16:05:15.784 -> Voltage = 0.54volts ADC VALUE = 680
16:05:17.794 -> Voltage = 0.55volts ADC VALUE = 714
16:05:19.769 -> Voltage = 0.58volts ADC VALUE = 744
16:05:21.778 -> Voltage = 0.60volts ADC VALUE = 656
Down button :
16:06:01.793 -> Voltage = 1.41volts ADC VALUE = 1840
16:06:03.761 -> Voltage = 1.48volts ADC VALUE = 1776
16:06:05.766 -> Voltage = 1.43volts ADC VALUE = 1840
16:06:07.768 -> Voltage = 1.48volts ADC VALUE = 1776
16:06:09.766 -> Voltage = 1.43volts ADC VALUE = 1778
Left button :
16:06:53.765 -> Voltage = 0.00volts ADC VALUE = 0
16:06:55.770 -> Voltage = 0.00volts ADC VALUE = 0
16:06:57.764 -> Voltage = 0.00volts ADC VALUE = 0
16:06:59.768 -> Voltage = 0.00volts ADC VALUE = 0
Select button :
16:09:23.792 -> Voltage = 3.30volts ADC VALUE = 4095
16:09:25.790 -> Voltage = 3.30volts ADC VALUE = 4095
16:09:27.792 -> Voltage = 3.30volts ADC VALUE = 4095
16:09:29.764 -> Voltage = 3.30volts ADC VALUE = 4095
Select button seems no effect on voltage .... seems a device fauft. Ok i will try with 4 buttons only.
Adjusting with 3.3v -> 100% or 1.0000F, line below become :
const PROGMEM DfRobotAnalogRanges myRanges { 0.7030F, 0.1666F, 0.4363F, 0.0001F}; // right, up, down, left, select
(I have deleted the 5th term as the "select button" doesn't change voltage measured.)
But the same problem : only the right button in the log when I try right, up, down, left button.
I don't know why?
16:18:16.123 -> Key RIGHT Pressed
16:18:16.227 -> RIGHT has been released
16:18:16.528 -> Key RIGHT Pressed
16:18:16.695 -> RIGHT has been released
16:18:17.002 -> Key RIGHT Pressed
16:18:17.173 -> RIGHT has been released
16:18:17.341 -> Key RIGHT Pressed
16:18:17.509 -> RIGHT has been released
16:18:17.743 -> Key RIGHT Pressed
16:18:17.914 -> RIGHT has been released
16:18:18.088 -> Key RIGHT Pressed
16:18:18.223 -> RIGHT has been released
16:18:18.533 -> Key RIGHT Pressed
16:18:18.533 -> RIGHT has been released
16:18:18.801 -> Key RIGHT Pressed
16:18:18.903 -> RIGHT has been released
16:18:19.208 -> Key RIGHT Pressed
16:18:19.309 -> RIGHT has been released
Thanks in advance for the help...