I have a chip that I use Arduino to program. The chip takes the voltage as an input. I have 10 lights as an output according to the range of the voltage one of the light turns on and the other ones turn off. example from v=1 to v<2 lamp 1 turns on and all lamps off, from v=2 to v<3 lamp 2 turns on and all lamps turn off and so on.
The problem I am facing is that when the signal gets close to the border of two ranges the example v=2.95 lamp 1 and lamp 2 starts turning off and on.
So I figured that there is some sort of noise in the signal so I used capacitors and resistors to reduce the noise. however, this creates a large delay when I want to switch down.
Any suggestions on how to solve my problem so that the response stays fast?