Valentines Day Idea - Days Spent Together Counter (Photo)

Photo frame that counts the number of days spent together.

Aug 17, 2019

6609 views

5 respects

Components and supplies

1

KYX-5461AS 4-digit 7-segment

1

Breadboard (generic)

1

Resistor 1k ohm

1

Real Time Clock (RTC)

1

Arduino UNO

1

Jumper wires (generic)

Project description

Code

DaysCounter.ino

c_cpp

for this you will need to download arduino IDE RTC library zip file, seven segment zip file save both of the libraries into the librarys folder where the arduino ide is installed. from there open up arduino ide and click on 'sketch' 'include libraries' 'add zip libraries' follow the code below TO ADJUST TIME - on line 7 in the brackets it reads (2017, 12 , 9, 0, 0, 0,) you need to change the first 3 numbers i.e 2017, 12, 9 ----> 2014, 4, 6, what ever date you got together, enter it there. then compile and select upload and if everything has gone to plan and you've followed the steps correctly it should display the amount of days you have been together

DaysCounter.ino

c_cpp

for this you will need to download arduino IDE RTC library zip file, seven segment zip file save both of the libraries into the librarys folder where the arduino ide is installed. from there open up arduino ide and click on 'sketch' 'include libraries' 'add zip libraries' follow the code below TO ADJUST TIME - on line 7 in the brackets it reads (2017, 12 , 9, 0, 0, 0,) you need to change the first 3 numbers i.e 2017, 12, 9 ----> 2014, 4, 6, what ever date you got together, enter it there. then compile and select upload and if everything has gone to plan and you've followed the steps correctly it should display the amount of days you have been together

Downloadable files

SCHEMATIC

https://www.circuito.io/app?components=512,11021] copy and paste the link. click add components type; RTC (add); 7 segment display 20mm (choose generic, don't choose sparkfun); follow the diagram and attach each pin using the jumper cables

SCHEMATIC

Comments

Only logged in users can leave comments

LiamCamaraCooper

0 Followers

0 Projects

Table of contents

Intro

5

0