r/ArduinoProjects • • Feb 17 '21

One board Pomodoro timer

Post image
134 Upvotes

13 comments sorted by

8

u/Zhynem Feb 17 '21

After simulating in tinkercad, a build with jumper wires, and a rebuild to get it on a single board, it works and beeps :D

4

u/[deleted] Feb 17 '21

Not to belittle your project, but I made a pomodoro with just the board's onboard led.

  • Work: led continuously on

  • Status change: 10x short on/offs

  • Break: On 3s, off 3s

It was a little bit of a design exercise. How can I use 1 element in a way, that by looking at it for not too long I can understand more than it's implied two binary statuses (on and off).

Technically cleaner would have been:

  • Work: on

  • Status change: burst

  • Break: Off

But I then couldn't be certain the arduino is even powered and "doing" something.

3

u/Zhynem Feb 17 '21

That is an interesting idea for getting the most out of what's already there. Could be neat for a lot more portable options too.
When I had the idea for this one I wanted it to be something to keep on my work desk and I would notice frequently. I had an app on my computer but I would forget about it pretty easily.
I also get a lot of interruptions, and it may be flying in the face of pomodoro technique but I wanted the ability to pause, reset, and actively confirm moving on to the next timer type, hopefully to make myself more aware of how my time is being spent.

2

u/[deleted] Feb 17 '21

Love pomodoro. Saved thousands of "oh no I really have to get it done"-projects in my life.

2

u/on99er Feb 17 '21

To make a clock just simply by adding and delay?

3

u/Zhynem Feb 17 '21

There are some delays but they're for timing the digits of the 7-segment or pulsing signals to the shift registers.

I have these variables that define how long I want the timers to be:
const unsigned long workTime = 1500000; // 25 minutes

const unsigned long restTime = 300000; // 5 minutes

const unsigned long longRest = 900000; // 15 minutes

double timeLeft = workTime; // 30 minutes

And at the start of loop I save micros() to a variable, at the end of the loop I call it again to see how long the loop took and how much time should be removed from what's left after converting back to milliseconds.

It seems to run slow when I compare the countdown to a timer on my phone though, so it probably needs some tweaking.

2

u/mistermonkus Feb 17 '21

Man, everyone uses more resistors than me. Maybe one day I'll learn why. Lol

1

u/Zhynem Feb 17 '21

Hehe the resistors on the switches and button are to prevent short circuits, and all the resistors on the LEDs are to limit the current so I don't pull too much power through the ICs. The one on the speaker may not be needed but it's loud enough for me with it.

2

u/nickolastd21 Feb 17 '21

so which wire do i cut?

1

u/Zhynem Feb 17 '21

Red... No wait orange!

8

u/OverallResolve Feb 17 '21

Bombodoro

1

u/g105b Feb 17 '21

Underrated comment

2

u/SlumpingRock Feb 18 '21

For anyone like me who had no idea what a pomodoro timer was, here is an explanation.

The Pomodoro Tracker — A useful tool for time management based on Pomodoro Technique. (pomodoro-tracker.com)

The Pomodoro Technique is a time management method that can be used for any task. For many people, time is an enemy. The anxiety triggered by “the ticking clock”, especially when it involves a deadline, leads to ineffective work and study habits which in turn lead to procrastination.

Pomodoro Technique - Wikipedia