This project has come a long way from what I had in mind earlier. This is the best version I can put out there and i'm very happy to present you my final build. This project at one point in time was a build that only could support at max 8 minutes of timer which illuminated LEDs based on the minutes, for example for 1 minute only a single LED glowed and for 2 minutes two LEDs glowed and so on upto 8 LEDs. This was fine but not good enough for times where you need to time for more than 8 minutes. The challenge was to use at max 8 pins of my arduino UNO to display higher numbers, which is when I got rid of the LEDs and got my hands on Hitachi's 1602 LCD display which takes around 6 digital pins and the rest are connected to the 5V and ground supply directly or indirectly via a potentiometer or resistor. This allows me to display whatever I want without worrying about how much I can display on it.
To control what is displayed on my screen I had decided on using a 4x4 keypad which requires 8 pins, but the challenging part again was the availability of pins. Therefore I decided to get rid of that and use a potentiometer that returns analog values back to the arduino based on the angle of the knob. This helped me control whats displayed on my screen with just a single input analog pin..
These were the challenges I faced and the way around it.
WORKING OF THE BUILD: The build consists of two potentiometer, the one on the right to control the contrast of the LCD screen and the one on the left to adjust the timing of the switch. As we change the angle of the knob, the varying analog values is intercepted and a corresponding time is displayed on the screen, once we are done selecting the timing we require we have to press the button in the middle that initiates the countdown timer. The countdown timer is displayed on the screen in seconds after which the controller signals the servo to rotate in a specific direction and turns off the switch. In cases when the timer has to be discontinued, the button should be pressed again and the timer stops. The build supports upto 20 minutes of timer, which can also be increased as when we require.
Now that i have this, i can turn ON my water pump and set the timer on this and forget about it. This can be applied in various workplaces as well, for example in a workshop where soldering iron have to be turned off after use as not doing otherwise could prove fatal. One can set a timer for 15 Minutes when they turn ON the soldering iron and forget about turning it OFF.
Love this project, sImple yet so useful! Brilliant work!