Real-Time Clock. Keeps track of current date/time.
-4
votes
0answers
22 views
How to communicate Two different Arduino using I2C? [on hold]
Actually i am using two arduino board.One arduino connects with RTC(in I2C)and other one connects with SD card (in SPI).Then how to communicate with each other using I2C communication. One of arduino ...
0
votes
1answer
25 views
Conflict between SPI and I2C?
Currently I work on pronto code. I found model vise pronto code.
Still I don't get perfectly pronto hex code. If I get this code then I will be controlled any of home appliances.
What I had done now: ...
0
votes
2answers
43 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
45 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
22 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
98 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
38 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
72 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
190 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
28 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
87 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
54 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
69 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
34 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
52 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
50 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
1answer
44 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
33 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
153 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
61 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
58 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
29 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
79 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
35 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
684 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
158 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
104 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
139 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
759 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
144 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
556 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
338 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
545 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
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 ...
2
votes
4answers
1k 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
354 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
500 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 ...
5
votes
0answers
139 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
131 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
294 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
83 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
175 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
109 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
122 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
308 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
261 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
719 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
125 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
400 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-...