Arduino Sketch in C++ for Countdown timer.

Closed Posted 7 years ago Paid on delivery
Closed Paid on delivery

I need a simple arduino sketch done to make a countdown timer with 3 buttons.

Here is the hardware I have

1) breadboard

2) 3 buttons.

3) Adafruit

4) Adafruit 0.56" 4-Digit 7-Segment Display w/I2C Backpack - White ([login to view URL])

5) Adafruit Trinket - 5V Logic ([login to view URL]) (during development, you can substitute an Arduino UNO for this MicroController)

6) Tolako 5V single channel relay Module ([login to view URL])

6) I have also ordered an DS1307 RTC I2C module ([login to view URL]) - but I want the first draft of code to not account for that.

This module is very simple, It has the 7-segment, 4-digit display and three buttons H (Hours), M (Minutes) and Start/Pause.

So I need the code to do the following.

This countdown timer is used to control my main project, which will be turned on and off by the relay of the countdown module. When the user powers on the device, the relay will be open (not activated, not powering on the main project).

1) I need the user to be able to use the buttons to put in a time from 1 minute to 2 hours. They would press the M or H buttons repeatedly (or perhaps hold them down) to set the time on the countdown timer. When they press Start, the relay would activate, closing the circuit of the main project and turning it on.

2) The timer will countdown, and when it hit's 00:00 the relay is activated again and the circuit is opened and the main unit is powered off.

3) If the user hits the Start/Pause button during countdown, the timer will pause.

4) If the user presses and holds the Start / Pause button for 3 seconds, the relay is activated and opens the circuit, powering off the main unit.

As I mention above, you can use the Arduino Uno for development. In this project, time is of the essence. I will pay an additional $50 to have working code in less than 24 hours from the time I accept your bid or extra $100 to have it in 12 hours. You can just write a (pin low / pin high) stub code for the activation of the relay. As I know how to do that and haven't figured the pinouts on the relay yet. If you do good and fast work, I will be using you again in the future to ad more features and to add the RTC code.

Arduino C++ Programming Electronics

Project ID: #12958317

About the project

2 proposals Remote project Active 7 years ago

2 freelancers are bidding on average $350 for this job

sagradoamicus

Hi Sir I am an expert electronics engineer with more than 8 years of experience in arduino Please have a look at my profile to see the reviews of my previous employers I am sure I can do it for you please get in t More

$400 USD in 1 day
(205 Reviews)
7.7