dothedew92
Published © GPL3+

RTC ESP32 Multiple Timers AP Web Interface Remote Start

Automatically trigger car remote start based on set alarms from web interface connected by access point using esp32 and RTC ds3231.

IntermediateShowcase (no instructions)3,294
RTC ESP32 Multiple Timers AP Web Interface Remote Start

Things used in this project

Hardware components

High Accuracy Pi RTC (DS3231)
Seeed Studio High Accuracy Pi RTC (DS3231)
×1
Adafruit HUZZAH32 – ESP32 Feather Board
Adafruit HUZZAH32 – ESP32 Feather Board
×1

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Schematics

ESP32 AP HTML Multiple Timer Alarm with RTC

Code

Remote start hard coded multi alarms.

Arduino
digitalWrite pin at set times of the day, day of week and pulse.
Change Int A1H, for alarm 1 hour, A1M for alarm 1 Minute. and so on
// **** INCLUDES *****
#include <DS3231.h>

//#include "LowPower.h"
Time  t;
DS3231  rtc(SDA, SCL);
int A = 18;


int A1H = 13;  //alarms
int A1M = 55;

int A2H = 11;
int A2M = 42;

int A3H = 16;
int A3M = 42;


void setup()
{

  rtc.begin();
}

void loop() 
{
    // Enter power down state for 8 s with ADC and BOD module disabled
   // LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);  
    
    t = rtc.getTime();   // Get data from the DS3231
     //Serial.print("Date: ");
  //Serial.print(t.mon, DEC);
  //Serial.print("/");
  //Serial.print(t.date, DEC);
  //Serial.print("/");
  //Serial.print(t.year, DEC);
  //Serial.println();

  // Send Day-of-Week and time
 // Serial.print("Day of Week: ");
  //Serial.print(t.dow, DEC);
  //Serial.println();
  //Serial.print("Time: ");
  //Serial.print(t.hour, DEC);
  //Serial.print(":");
  //Serial.print(t.min, DEC);
  //Serial.print(":");
  //Serial.print(t.sec, DEC);
  //Serial.println();
  //Serial.print("  Temperature: ");
  //Serial.print(rtc.getTemp());
  //Serial.println(" C");
  //Serial.println("--------------------------------");
  //delay(1000); //Delay is for displaying the time in 1 second interval.
 
  
   if (t.hour == A1H && t.min ==A1M  && (t.dow == 5 || 4 || 3 || 2 || 1))
//Setting alarm/timer 
  { digitalWrite(A, HIGH); delay(1000); digitalWrite(A, LOW); delay(1000);
   digitalWrite(A, HIGH); delay(1000); digitalWrite(A, LOW); delay(60000);
  }

 if (t.hour == A2H && t.min == A2M && (t.dow == 5 || 4 || 3 || 2 || 1))
  { digitalWrite(A, HIGH); delay(1000); digitalWrite(A, LOW); delay(1000);
   digitalWrite(A, HIGH); delay(1000); digitalWrite(A, LOW); delay(60000);
  }
 if (t.hour == A3H && t.min == A3M && (t.dow == 5 || 4 || 3 || 2 || 1))
  { digitalWrite(A, HIGH); delay(1000); digitalWrite(A, LOW); delay(1000);
   digitalWrite(A, HIGH); delay(1000); digitalWrite(A, LOW); delay(60000);
  }

}

ESP32 AP HTML Multiple Timer Alarm with RTC

Set multiple RTC timed Alarms with access point HTML and control pinout pulses.

Credits

dothedew92

dothedew92

1 project • 1 follower

Comments