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

learn more… | top users | synonyms

0
votes
0answers
29 views

SD.Open causes my sketch to reboot HELP please Arduino

so you see I have this project where I have to released a specific ammount from a dispenser through sms, I attached a servo motor to the knob where it will release feeds, I also included a rtc module ...
0
votes
2answers
42 views

Tiny RTC I2C module not working

I bought a Tiny RTC I2C module and it doesn't work. When i run the TimeRTCSet from TIME library all i get is: Unable to sync with the RTC 0:00:00 0 0 1970 0:00:01 1 1 1970 0:00:02 1 1 1970 0:00:03 1 ...
0
votes
1answer
61 views

sleep and wake up arduino mega according to ds3231 interrupt

how can I make my arduino mega sleep during 6pm-7am..and wakes or stay up during 7am-6pm and doing its job like activating the solenoid valve based on my soil moisture sensor reading.this is for my ...
1
vote
1answer
64 views

DS1307RTC Outputting cryptic 165/165/2165 date. What are some possible fixes?

My board. I think I have it wired correctly (the lights aren't, but the board is). I've read through the first few Google results to no avail. My sample code to test the chip: // Date and time ...
0
votes
1answer
30 views

Time displays on serial monitor but not my LCD

#include <TimeLib.h> #include <Wire.h> #include <DS1307RTC.h> // a basic DS1307 library that returns time as a time_t #define PIN_SCE 7 #define PIN_RESET 6 #define PIN_DC 5 #...
3
votes
3answers
79 views

How to have some code executed at a certain time of day with a DS3231 RTC?

I recently bought a DS3231 RTC, but I cannot seem to figure out how to get it to work. I have tried all different tutorials and example programs but I keep getting 2165.25.165 165:165:165 as the ...
0
votes
0answers
72 views

sunrise alarm clock using android to set alarm time

I'm trying to create a sunrise alarm clock, controllable via Bluetooth by my phone (running android marshmallow) with an Arduino nano, real time clock module, and Bluetooth module. these will then ...
0
votes
0answers
35 views

Due to Some reasons Timer base music system has been stopped

Due to some reasons my system goes to stop. I could not find this problem so please help me with it. I am making a timer based music system. I am using two Arduino boards which communicate with each ...
0
votes
2answers
74 views

How to run a timer every 12 hours (exceeding the max size of int) without an RTC?

I'm experimenting with a Nano, and trying to trigger an action around twice a day. I'm aware that it's not super accurate, but I don't really mind, as long as it's in the ballpark. I've tried using ...
1
vote
2answers
58 views

My RTC DS1307 isn't returning any information. It seems to be stuck in the isrunning() function. Does anyone have debugging tips?

I'm using an RTC DS1307 to keep track of time for long periods. It seems to be stuck in a function. I'm using the RTClib suggested by adafruit. How can I get it unstuck and get values returned? Are ...
1
vote
0answers
28 views

How to use Servo movement with RTC with Storage error [closed]

#include <Wire.h> #include "ds3231.h" #include <Servo.h> Servo myservo; int potpin = 0; int val; int pause = 800 #define BUFF_MAX 256 ;uint8_t wake_HOUR1 = 10; uint8_t wake_MINUTE1 = 53; ...
0
votes
1answer
312 views

Why does exit status 1 stray '\302' in program pop up around Serial.println ( “-> Second Service load”);? [duplicate]

/* Controlling a servo position using a potentiometer (variable resistor) by Michal Rinott <http://people.interaction-ivrea.it/m.rinott> modified on 8 Nov 2013 by Scott Fitzgerald http://...
2
votes
0answers
526 views

How to set Alarms on the DS3231 easily?

I want my solar array sun tracker to shut down at night then move full east in the morning to catch the first rays. I know the DS3231 can set alarms but it is not clear from its documentation how to ...
4
votes
1answer
161 views

Comparing time_t values within an if statement

I am using an UNO with a RTC to control a light board. I'm using a simple control structure to decide when to turn things off and on. It's my understanding that a time_t value is just a number (number ...
0
votes
4answers
685 views

How to set up one second interrupt/ISR for ds3231 RTC

I am able to set up one hz interrupts using millis and other timers, but would like to do it instead using the RTC I have attached (DS3231) I am not sure how I can do that. Can someone point me to a ...
0
votes
1answer
32 views

Having trouble using RTC if I set an ISR for a 1 second timer

I built a sketch using some timer ISR code to get a trigger every second. (for the Atmega328 chip I use the following code I got form the internets. It works) It runs fine and I get a trigger/...
2
votes
2answers
137 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 ...
0
votes
1answer
81 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 ...
-7
votes
1answer
75 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
35 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
69 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
63 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 ...
1
vote
2answers
61 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
48 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
257 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
68 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
87 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
31 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
101 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
38 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
1k 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
201 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
132 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
174 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
955 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
196 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 ...
2
votes
2answers
696 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
405 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
739 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 ...
5
votes
1answer
2k 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 ...
2
votes
4answers
2k 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
439 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
628 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 ...
6
votes
0answers
176 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 ...
2
votes
1answer
168 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
327 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 seconds ...
2
votes
1answer
90 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
190 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
120 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
131 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 ...