Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Real-Time Clock. Keeps track of current date/time. Some have batteries like the DS3231, and the DS3231 also has programmable alarms that can interrupt an Arduino.

0
votes
1answer
14 views

exit status 1 'Time' does not name a type

#include <DS3231.h> #include <Wire.h> // i2C Conection Library // Init DS3231 DS3231 rtc; // Init a Time-data structure Time t; uint32_t targetTime = 0; uint8_t hh = 0, mm = 0, ss = 0,...
0
votes
1answer
39 views

Tiny RTC module doesn't work properly when connected to an Arduino Uno together with 16x2 LCD

I am trying to make a digital clock using a tiny RTC, 16x2 LCD, and Arduino Uno. The RTC module works fine if 16x2 LCD is not connected to the Arduino. Both RTC and LCD are I2C modules and hence are ...
0
votes
1answer
29 views

How to use RTC memory in NodeMCU to count awakes from deep sleep?

Problem: I need to retry at least 3 times (before giving up) to reconnect my NodeMCU if it doesn't get connected to Wifi, through deep sleep cycles in order to save batteries. I thought to use RTC ...
-3
votes
1answer
70 views

How we can Create the folder into SD card and gives the path for file to save the data into the folder

I am trying to store files inside a series of folders, depending on month and year. I am using a RTC, and the standard SD library. I have previously gotten the program to set the file name to the ...
-1
votes
1answer
62 views

Unable to save the Date and Time as the filename [closed]

I want to save the filename as current date and time
-3
votes
2answers
85 views

Simulating a real time clock module with software [closed]

I am building a clock with an Arduino. Most clocks have a RTC module or some kind of RTC chip in order to get the time. I do not. How do i replace this chip with software? Is there a C/C++ library ...
0
votes
1answer
25 views

Need help with an Arduino project using a RTC and LEDs

I need some help with a project I am doing involving the DS1307 RTC. I am trying to make what is essentially a way to mins quickly check the time which involves nine LEDs slowly lighting up every 10 ...
0
votes
1answer
52 views

Is DateTime from RTClib giving garbage dates/times?

The RTC is working fine, but I'm having trouble with the DateTime class. Based on the following test, it seems like its math is wrong. #include <RTRlib.h> void loop() { auto ts = TimeSpan(0,...
0
votes
0answers
301 views

How do I set the time on my RTC DS 3231?

Well, I've bought a new RTC DS 3231, and I need to set the time on that. I tried a few libraries, but none of them seem to be working (or maybe I don't know how to use them). One library I used won't ...
0
votes
0answers
55 views

reading the time off of a RTC for portable projects with Teensy

I am trying to understand the documentation here https://www.pjrc.com/teensy/td_libs_Time.html I've spent a while testing out TimeTeensy3 and timeserial examples and I'm still very confused. Yes the ...
0
votes
0answers
210 views

Writing arrays to SD card without looping

I'm using Adafruit Feather M0 with the Adalogger FeatherWing to time-stamp and save sensor readings in an SD card. Speed is critical so I want to create two arrays, one for the readings (int) and one ...
0
votes
0answers
122 views

Building a Days Counter with Arduino Leonardo and an RTC 3231

I wanted to make a Valentine's present for my girlfriend by building a days counter since the day we got together. I've been trying to create a days counter that starts counting from a Unix timestamp ...
0
votes
0answers
65 views

Can 2 or more LED strobe Lights Flash in Sync?

I'm trying to build a strobe light that has at least 1 mode that can sync with another unit. The strobe light has 2 colors, white and red which are driven by 2 qlite drivers which are controlled by ...
0
votes
0answers
56 views

Arduino Code hang

I am working on a project to dim/brighten the LED lights between each hour. To make the program readable i have only kept the code for few hours. For example if T1 is at 255 PWM and T2 is 20 PWM, the ...
0
votes
0answers
34 views

My arrays are possibly causing the program to not enter loop?

I'm working on a project to make a digital clock with an 8x32 ws2812 LED grid, arduino uno, and a RTC module. Everything works great separately, but when I integrate it all together the code never ...
-2
votes
1answer
59 views

Does a Sparkfun Redboard Arduino Uno have built-in RTC?

I have a Sparkfun Redboard (an Arduino Uno like board based on the Atmega328P and programmed with the Arduino bootloader). I have been trying to make an accurate clock without an RTC with an LCD ...
-2
votes
1answer
87 views

How to Time the Arduino using RTC that I can operate the valves at 7am, 12pm, and 4 am?

The idea of this project is to open 3 valves one after the other for 5 minutes each, at a time like like 7am, 12pm, 4pm in a day. The for loop should be executed at 7am, where valve 1 is open and ...
1
vote
2answers
295 views

Using RTC DS3231 + Arduino UNO to calculate time lapsed [closed]

I am a beginner with no coding background. I am trying to figure out an alarm that tells people how long they have been sitting on their chair. The concept is very simple when the person would sit in ...
1
vote
1answer
49 views

Strange Output from DS1307 RTC

I'm using a DS1307 RTC (https://www.adafruit.com/product/3296) and an Arduino mega microcontroller trying to simply set and read the time of the RTC. However, whenever I try to output anything to the ...
2
votes
1answer
46 views

Advice for lower power clock type project

Arduino newbie here! I'm a programmer but my hardware knowledge is ... slim. I'd like to build a clock type wake up timer for my daughter, using an Arduino type board. Probably overkill, but it's ...
0
votes
0answers
412 views

Featherwing M0 Wakeup

I am working with a Featherwing M0 with SD Card and a DS3231 real-time clock, both purchased through ADAFruit. I want to be able to have the real-time clock output an interrupt signal through the SQW/...
2
votes
1answer
77 views

Keep RTC time in a loop

I recently started a project with HC-SR04 sensors and RTC DS1302 clock. The idea is when a sensor detects an object, call and keep a timestamp (hh:mm:ss) all over the loop until Else If{} appears, ...
0
votes
1answer
146 views

Adafruit RTC DS3231 Crashing Arduino Uno

I am having some issues with a new DS3231 Precision RTC module. I have made connections as in the guide linked, and when used, the serial output from the Arduino is garbled, and the arduino apparently ...
0
votes
1answer
208 views

Adafruit RTC begin() not returning false

I am programming my arduino with the capability to keep time with the DS3231 from Adafruit. I do not have the module yet, but am trying to figure out the rest of the build without it. However, it ...
1
vote
1answer
631 views

DHT22 and DS18B20 together

I am trying to get DHT22 and DS18B20 to work together. The code below is the one I am using: #include <SD.h> #include "SPI.h" #include "DHT.h" #include <RTClibExtended.h> #include <...
1
vote
2answers
1k views

Arduino Uno alarm interrupt

I am trying to create a temperature-humidity monitor using Arduino and I want to power it using a battery. So, power efficiency is of interest. I am trying to put the Arduino to sleep for x-time (...
0
votes
0answers
51 views

rtc.begin() causes Nixie tubes not to fire

// // Arduinix 6 Bulb ( IN-12 ) // - Also supports Hour and Min. time set. // // This code runs a six bulb setup and displays a prototype clock setup. // NOTE: the delay is setup for IN-17 nixie ...
0
votes
1answer
247 views

PCF8583 with Arduino delay of one second?

I'm trying to interface the RTC chip : PCF8583 with Arduino Uno. I'm using exactly the circuit shown below except instead of the variable capacitor near the crystal oscillator, I've used a 22pF ...
1
vote
1answer
475 views

Setting Time to UTC with Data Logger Shield (with RTC DS1387)

I own an Adafruit Data Logger Shield https://www.adafruit.com/product/1141 I followed this tutorial https://learn.adafruit.com/adafruit-data-logger-shield/using-the-real-time-clock This part of code ...
5
votes
3answers
860 views

Calculate absolute time based on cycles and RTC

I'm developing a low power data logging device. It samples sensors at the frequency of 20Hz, and also has a real time clock for absolute time (the logged time need to be exact down to ms). I think ...
2
votes
2answers
1k views

How to code Arduino to follow schedule

I'm working on my system and I have to make arduino repeat such action or block of code if its the set time .. I'm using DS3231 module to track date and time .Example If I set the time in 6:00 AM and ...
1
vote
1answer
623 views

Problem on Arduino Interrupt and RTC

I am doing an experiment. In this experiment I want to start the RTC by presing the external Push Button which is connected with Aquino's pin 2 and take varites of action according to Time. For ...
0
votes
0answers
87 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
529 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 ...
1
vote
1answer
1k 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 ...
3
votes
7answers
2k 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
266 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 #...
4
votes
3answers
366 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
591 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
43 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 ...
2
votes
3answers
1k 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
264 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
219 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
1k 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://...
3
votes
1answer
5k views

How to set Alarms on the DS3231 easily so the Nano doesn't have to go to sleep with delay statements?

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 ...
4
votes
1answer
2k 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
5k 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 ...
1
vote
1answer
75 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/...
3
votes
2answers
515 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
381 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 ...