I am having trouble with my project. I have a pot(10k ohm) hooked into the LCD display, telling me the position of the POT and two buttons to adjust a “set position”. My problem is that, when the POT reaches 89 (beings I mapped it to 0-100) it starts counting up my set position where it should only count that up when I push the button programmed for that. I will attach the code.
brettwdmn1:
My problem is that, when the POT reaches 89 (beings I mapped it to 0-100) it starts counting up my set position where it should only count that up when I push the button programmed for that.
since you check for a "more" positive voltage, do you have a pull-down resistor?
i think it would be more reliable to use digitalRead() and configure the button pins as INPUT_PULLUP