This project is a simple Arduino countdown timer that uses a knob to set the time and buttons to adjust the countdown. It also includes a buzzer and LED lights for feedback. I have made this project for an assignment for my university and I have decided to publish these files. Feel free to use them for anything, no attribution required.
To use this code, you will need the following:
- VS Code (or the Arduino IDE)
- Arduino board (tested on Arduino Uno)
- Arduino and C/C++ extensions for VS Code
To install this project, follow these steps:
- Clone this repository onto your local machine.
- Open the project folder in your IDE.
- If you use VS Code, install the necessary extensions (I used PlatformIO).
- Open the "Timer.cpp" file in your IDE.
- Upload the code to your Arduino board.
- Connect the necessary components (buttons, LEDs, knob, and buzzer) to your Arduino board.
- Make sure the PINs are set correct.
- Power on your Arduino board and start the countdown timer.
To use the countdown timer, follow these steps:
- Adjust PIN_KNOB to your liking, the knob is used to control how quickly the countdown time is adjusted.
- Press or hold PIN_BUTTON_1 to increase countdown time, and PIN_BUTTON_2 to decrease countdown time.
- Press both buttons simultaneously to start or stop the countdown. You can adjust the countdown time when stopped.
- The buzzer will beep when the countdown reaches zero.