Real-Time Clock. Keeps track of current date/time.

learn more… | top users | synonyms

1
vote
1answer
53 views

How to improve date-time control from RTC?

I want to run cameras at a remote site from external batteries as long as possible. I need power-miser Arduino to switch battery power on/off at set intervals (e.g. 5 min) during daytime only. I am a ...
-4
votes
0answers
32 views

i want to store time from RTC after the button is press. can u suggest something

[code] #include include include const int light = 13; int y1; int y2; int y3; int x1; int x2; int x3; int hour1 = 16; int min1 = 43; int sec1 = 0; int hour2 = 4 ; int min2 = 43; int sec2 = ...
0
votes
1answer
29 views

Difference between DS1307 and IN1307N, I am using RTClib for making rtc module using IN1307N getting RTC is not running

#include <Wire.h> #include "RTClib.h" #if defined(ARDUINO_ARCH_SAMD) // for Zero, output on USB Serial console, remove line below if using programming port to program the Zero! #define Serial ...
-6
votes
1answer
58 views

can u plz check my code whats the problem in it

[code:: include include include int hour1 = 2; int min1 = 40; int sec1 = 0; int hour2 = 2; int min2 = 39 ; int sec2 = 10; const int light = 13; int buttonState1 = 0; int buttonState2 = 0; int ...
0
votes
1answer
33 views

Please explain this adafruit image for connecting a DS1307 RTC

https://learn.adafruit.com/assets/3813 I understand that analog 4 and 5 are SDA/SLC, isn't the picture also showing 5v and GND being plugged into two analog pins? Does that work? I have it wired up ...
0
votes
0answers
38 views

Using a DS1307 as a Counter

I am using Arduino UNO and have attached DS1307 board to it. How can I use DS1307 RTC IC as a time counter, rather than time keeper? Any ideas?
0
votes
3answers
45 views

Adding Date and Time to existing sketch

I am currently trying to add a clock functionality to my current sketch for a peristaltic pump [run by NEMA 23]. The current sketch waits for a button on my breadboard to be pressed, it then runs ...
0
votes
1answer
36 views

Using multiple RTC libraries in one program

There are multiple RTC libraries available, can I load several RTC libraries into my code and then use the functions I like from each one? Will there be some conflict if for example I include DS1307....
0
votes
1answer
27 views

Real Time Clock Module Reset

I just had a pretty simple question about the RTC Clock Modules, more specifically the DS3231 RTC. Once calibrated and running on my Arduino if I were to unplug it and plug it back in, will the time ...
0
votes
1answer
82 views

Using two digits to display a number using TM1637 and a 4-digit display

I decided to build a digital clock using a 4-Digit Display (TM1637) from Grove. For that, I have been using the DigitalTube library by Grove for the TM1637 controller. My idea is to use the two ...
0
votes
1answer
51 views

DS1307 RTC not working with CC3000 WiFi shield (I2C bus hangs)

I am trying to use a DS1307 (from Sparkfun, BOB-12708) with an Arduino Leonardo. I have connected the SDA, SCL, GND, and 5V pins from the RTC to the Arduino. However, with a CC3000 WiFi shield on the ...
1
vote
0answers
40 views

RTC interrupts and coin batteries

Summary I'm having problems with my RTC draining its coin cells quickly - fresh batteries are drained in a few months. The RTC is set to signal an interrupt every 5 minutes, and I wonder - if there ...
0
votes
1answer
28 views

Piezo connection causing RTC to go haywire

When I connect a piezo (to pin 8), it causes the output of my RTC to go haywire and throw 165 errors into the results. 2016/3/25 13:36:4 2016/3/25 13:36:4 2016/3/25 13:36:4 2016/3/25 13:36:4 2016/3/...
1
vote
2answers
63 views

My RTC is returning a sporadic date/time

RTC seems to be sporadically returning bogus date/times. Here are the logs from my serial monitor: 2016/3/23 8:19:46 2017/3/23 8:19:46 2016/3/23 8:19:46 2016/3/23 8:19:46 2016/3/23 8:19:46 2016/3/23 ...
0
votes
1answer
33 views

How do I connect this to my breadboard?

I just purchased this Grove RTC. It includes a cable presumably to connect it to a breadboard and/or Arduino, but the pin holes on this cable are much smaller than those on a breadboard or Arduino. ...
0
votes
1answer
470 views

Arduino is not responding to a Tiny RTC I2C modules, How to fix?

We have an arduino due with a Tiny RTC I2C module and we're trying to print the current time to the serial monitor. However its not working, currently its printing the time as 2165/165/165 (Monday) ...
0
votes
3answers
125 views

Managing timer intervals using millis at random intervals

I am doing a project which needs to meet the following specifications. On receiving an SMS arduino will start switching 1st relay on after some time duration(say 30 Seconds) relay 1 will be ...
1
vote
1answer
92 views

Signal a LOW level interrupt with an RTC

I'm trying to figure out how to use an RTC to send interrupts to my arduino. I'm using a DS3232. I can get an 'edge' interrupt, with the following toy code (I know the code is silly, it's just a short ...
0
votes
5answers
120 views

Do I have to use an RTC to build a clock?

While I was researching ideas for an Arduino clock, I found several clocks that incorporated an RTC (Real Time Clock) module. I don't know why it is used in some clocks. So, here are my questions: ...
0
votes
4answers
607 views

Strange problem. Arduino stops working after few hours. Opinions please

I am trying to setup an automated relay for my aquarium. The Arduino should switch off the pump every 3 hours for 20 minutes, and feed at particular times during the day. The code works fine for the ...
0
votes
1answer
117 views

connecting RTC DS1307 to ethernet shield

What is the easiest way to mount DS1307 to ethernet shield? I tried to do this: https://learn.adafruit.com/ds1307-real-time-clock-breakout-board-kit/wiring-it-up but my program just freezes when I ...
1
vote
2answers
444 views

Arduino RTC - getting the time from RTC after the power is cut off

I have a new DS1307 (original, not a Chinese rip off), with a new battery. It is working great, but when I turn the Arduino off (it is currently connected to laptop) and then turn it back on, it ...
0
votes
0answers
292 views

Arduino is freezing after 10-15 minutes

I am having a problem with my Arduino freezing after a small amount of time. I'm using an RTC DS1307 breakout to keep track of the time and display the time on an LCD. It displays hours, minutes and ...
1
vote
1answer
406 views

Library to correct time for DST

I am using a Uno as a data logger with a DS1307 RTC and the following libraries Time.h DS1307RTC.h The DS1307 does not have any support for DST and neither library includes Time Zone. Are there any ...
4
votes
1answer
1k views

The difference between “time_t” and “DateTime”

I've run into an issue trying to combine 2 different Arduino timer projects I've found online. For both projects I'm using a DS3231 RTC, but have been able use the DS1307 library just fine in my ...
1
vote
4answers
746 views

Creating a Timer using a Real Time Clock with start and stop times

I have an Arduino Uno with a motor shield, as well as a DS1307 RTC that I am using to control 2 pumps. Ideally I would like to set a start time (startHour + startMinute) and end time (endHour + ...
0
votes
2answers
285 views

Json gets corrupted after first HTTP request

I'm a web developer and I started building a small environment logger that will post to my website`s API. I'm really new to this kind of coding so bare with me. Since yesterday, the whole Arduino ...
1
vote
2answers
394 views

How to count the time until the next day of the week?

I wants to do in Arduino countdown that shows how many days, hours and minutes remaining to Friday 12:00. In my program I used a function in php strtotime('next friday') which thus could calculate ...
4
votes
0answers
105 views

RTC resets when power is off

I have a few RTC modules with a batteries. All of them have this same issue with my project. They work fine when connected via USB. But if I disconnect the power then reconnect they reset to Jan 1 ...
1
vote
1answer
104 views

Using UART to Set RTC

I'm using an Adafruit NRF8001 Low Energy Bluetooth module and a Real Time Clock module with my Arduino board. I want to connect to the BLE module using UART to set the clock. I'll also be using UART ...
0
votes
2answers
258 views

Delay workaround needed for RTC and LCD-shield buttons

Following configuration: Arduino UNO R3 Real Time Clock DS1307RTC LCD1602 Shield with buttons Photo resistor DHT11 (Temp & Humidity Sensor) I need the function delay(1000) to display the ...
2
votes
1answer
82 views

What will use less memory, an array or if … else?

I'm trying to make my sketch smaller. Right now I use an array for the AM/PM part of my time display. My thinking is this makes it easy to change the formatting: char* ampms[]= {"am", "pm"}; void ...
1
vote
3answers
161 views

One free pin. Need to display output for the user?

I'm working with lightblue bean. I have a device that writes data to an SD card on a long button press and switches what will be written (from a list of 5 items) on short button press. The output, ...
0
votes
1answer
97 views

Cannot print the first number of the date with RTC module

I am using this real-time-clock module to keep track of the time for a project: http://www.dfrobot.com/wiki/index.php/Real_Time_Clock_Module_(DS1307)V1.1(SKU:DFR0151) I have hooked up the respective ...
1
vote
4answers
115 views

Creating a clock using Arduino

I want to make a large clock, 16 inch x 7.5 inch, which will display dd Month yyyy. What would be the best way to do this? Does Arduino have a built in clock, and I'd just need logic to turn on/off ...
0
votes
1answer
254 views

Set dynamically hour - DS1307

I want keep my RTC1307 always updated with my server, so I created this code to first search the time on the server then passes to getServerTime() function to divide it and set in the RTC. I use the ...
0
votes
1answer
2k views

RTC square wave

I have a DS3231 Real Time Clock module and I'd like to use the Square Wave output. I wonder how can I set the frequency of the pulse? How long is the (time) length of the pulse? UPDATED QUESTION ...
0
votes
4answers
226 views

need help for saving the millis function when arduino was rebooted

I have two questions want to ask I'm using Arduino Uno with 16*2 LCD Blue ( also I have temp. sensor and two motors also 3 limit switches) ,, my code is working good, but sometimes my lcd stop ...
2
votes
4answers
653 views

RTC and SD works separately but not together

I am running small project. I wanted to use Arduino Mega 2560 v3, PIR sensor, microSD card module and RTC1307 module, some leds, buttons and buzzer. To enable and disable motion detection and when ...
0
votes
2answers
109 views

Error while saving data in text file

I created a function that saves the timestamp in a text file, but it saves unreadable. Full of invalid characters, example: Ÿ@ O ƒº!¥ Ÿ@ O ƒº!¥ Ÿ@ O ƒº!¥ Ÿ #include <Wire.h> #...
-1
votes
1answer
365 views

DS3231 DTCXO and GPS

I am experimenting with this idea: keep a DTCXO in sync with some frequency standard. I have all the parts I can afford, but I cannot figure out a way to do it. Parts I have: Arduino Leonardo, a u-...
1
vote
1answer
560 views

Reading atomic radio clock

i have some data logging to do. And i want some what accurate time meaning accuracy has to be +/- 1 minute. I have considered a RTC, but then i thought. When i was 10 i got a watch that kept time ...
1
vote
2answers
416 views

datalogging sampling frequency bottleneck

My datalogging system which consits of the Flora, RTC, SD card breakout board, LSM9DS0 sensor is shown in the picture below; https://www.dropbox.com/s/d8pwcn59nq11lzs/2014-11-25%2012.26.56.jpg?dl=0 ...