hello y'all, im doing a project on my own and im trying to make a safe . You have to select 4 numbers ranging from 0-25 . I want to use a potmeter and when u turn the knob it goes through the range of numbers and then confirm the numbers with a button , can anyone help me in the right direction?
The right direction would obviously be to use analogRead() to read the potentiometer value and digitalRead() to read the switch states. Of course, this approach presupposes that you know how to connect the switch and potentiometer to the Arduino.
PaulS:
The right direction would obviously be to use analogRead() to read the potentiometer value and digitalRead() to read the switch states. Of course, this approach presupposes that you know how to connect the switch and potentiometer to the Arduino.
yea i already got that the serial monitor gives me the numbers from 0-25 but with the selecting part im still lost
this shows in the serial monitor numbers between 0-25 now i have to write a code that i can select 4 numbers with 4 presses on a button but i have no idea where to start , these 4 numbers work like a password , so when the 4 numbers are correct a green light lights up and if u choose 4 wrong numbers a redlight shows up