element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Making Time
  • Challenges & Projects
  • Project14
  • Making Time
  • More
  • Cancel
Making Time
Blog (Modified) Work Clock
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Making Time to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: dwinhold
  • Date Created: 29 Nov 2020 6:28 PM Date Created
  • Views 3390 views
  • Likes 10 likes
  • Comments 13 comments
  • makingtimech
  • work clock
  • dwinhold
Related
Recommended

(Modified) Work Clock

dwinhold
dwinhold
29 Nov 2020

I am presenting the, "(Modified) Work Clock"

 

How often are you at work and feel:

     The time is just dragging on?

     Will this day ever end?

     I wish our lunch break is longer?

 

I would say every one of us feels this way now and then. I have the solution for this!!

 

The (Modified) Work Time Clock

 

Here is how it works: (This is set for my work day)

 

00:00:00 - Midnight - Personal Time (1 second = 1.1666667 seconds)

to

06:59:59

---------------------------

07:00:00 - Work Time (1 second = .6666667 seconds)

to

11:59:59

---------------------------

12:00:00 - Lunch Break (1 second = 1.1666667 seconds)

to

12:29:59

---------------------------

12:30:00 - Work Time (1 second = .6666667 seconds)

to

15:29:59

---------------------------

15:30:00 - Personal Time (1 second = 1.1666667 seconds)

to

00:00:00

 

Work clock math:

 

image

 

So, with the Modified Work Clock you now work only 5.3 hours a day and have 18.7 hours of personal time. This clock still keeps your day at 24 hours but changes the actual time you worked and your personal time.

With Project14's theme being "Making Time Change", this does it!!

 

Below is the Arduino code for the clock:

 

//Digital Arduino Work Clock
//By Dale Winhold
//Project14 Making time change
//Nov 29,2020

#include <LiquidCrystal.h>

LiquidCrystal lcd(12,11,5,4,3,2);

int h; //Hours
int m; //Minutes
int s; //Seconds


const int hs=6; //Hour set pin
const int ms=7; //Minutes set pin

int Hset;
int Mset;

void setup()
{
  lcd.begin(16,2);
  pinMode(hs,INPUT_PULLUP);
  pinMode(ms,INPUT_PULLUP);

}

void loop()
{

 lcd.setCursor(0,0); //Set lcd start print to 0,0
 s=s+1;
 lcd.print("TIME:");
 lcd.print(h);
 lcd.print(":");
 lcd.print(m);
 lcd.print(":");
 lcd.print(s);

//at work 7am to 12pm : 1 second=.6666667 seconds
 if(h>=7 && h<12){
  delay(666.6667);
  lcd.clear();
    if(s==60){
      s=0;
      m=m+1;
    }
    if(m==60){
      m=0;
      h=h+1;
    }
    if(h==24){
      h=0;
    }
  
  lcd.setCursor(0,1); //Set lcd start print to 0,1
  lcd.print("Work Time");
}

//at work 12:30pm to 3:30pm : 1 second=.6666667 seconds
else if((h==12 && m>29) || h==13 || h==14 || (h==15 && m<30)){
    delay(666.6667);
    lcd.clear();
      if(s==60){
        s=0;
        m=m+1;
      }
      if(m==60){
        m=0;
        h=h+1;
      }
      if(h==24){
        h=0;
      }
    
    lcd.setCursor(0,1); //Set lcd start print to 0,1
    lcd.print("Work Time");
}

//off work : 1 second=1.1666667 seconds
else{
  delay(1166.6667);
  lcd.clear();
    if(s==60){
      s=0;
      m=m+1;
    }
    if(m==60){
      m=0;
      h=h+1;
    }
    if(h==24){
      h=0;
    }
    
    lcd.setCursor(0,1); //Set lcd start print to 0,1
    lcd.print("Personal Time");
}

//-------Time
// setting-------//
Mset=digitalRead(ms);
if(Mset==0){
  s=0;
  m=m+1;
  }
  
Hset=digitalRead(hs);
if(Hset==0){
  h=h+1;
  }

}

 

A video of the time changing from personal time to work time. (Notice the difference in the seconds):

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

image

 

Rough sketch of the setup:

 

image

I really hope you like this project on "Making Time Change"

 

Dale Winhold

  • Sign in to reply

Top Comments

  • kmikemoo
    kmikemoo over 4 years ago +5
    dwinhold Boss, you've got it all backwards! The clock is supposed to run faster during the work day! Seriously though, I love the creativity. On some days... it really feels like the clock has two time…
  • dwinhold
    dwinhold over 4 years ago in reply to kmikemoo +4
    It is actually quite funny, I started to go over my chart in detail after I sent the reply. It took me a bit to figure out how that works out, I still am having issues. It looks good, works on paper and…
  • Fred27
    Fred27 over 4 years ago +4
    A really fun project. It reminds me a little of a clock someone wrote back in the day when I used to code as a contractor on an hourly rate. The clock started at £0.00 (or $0.00 or €0.00 as appropriate…
  • hugohu
    hugohu over 4 years ago in reply to dwinhold

    oh...... I'd certainly love one of those!

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dwinhold
    dwinhold over 4 years ago in reply to hugohu

    A While ago I made a clock that ran backwards. It really messes with your day!!

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Fred27
    Fred27 over 4 years ago

    Another project which comes to mind is the various versions of Lord Vetinari's Clock which people have made.

    Lord Vetinari also has a strange clock in his waiting-room. While it does keep completely accurate time overall, it sometimes ticks and tocks out of sync (example: "tick, tock ... ticktocktick, tock ...") and occasionally misses a tick or tock altogether, which has the net effect of turning one's brain "into a sort of porridge".

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • hugohu
    hugohu over 4 years ago in reply to dwinhold

    Well, are you sure your head isn't a computer and it uses a clock?

    And if you tamper with clocks... and time...

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • hugohu
    hugohu over 4 years ago

    How could I miss this?

    Great project. Like fred said I was also wondering how you could alter time.

    Great job!

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube