Things used in this project

Hardware components:
12002 04
Breadboard (generic)
×1
Nodemcu
NodeMCU ESP8266 Breakout Board
×1
DC motor (generic)
×2
Relay (generic)
×2
Tens70
9V battery (generic)
×1
11026 02
Jumper wires (generic)
×20
Software apps and online services:
Ide web
Arduino IDE
Hand tools and fabrication machines:
obeng

Schematics

Schema Sangkar burung pintar
Schema  nryhuf3f6n

Code

Code Sangkar Burung PintarC/C++
#include <Time.h>
#include <TimeLib.h>
int relay1 = 2;
int relay2 = 4;

void setup() {
  Serial.begin(9600);
  setTime(08,00,00,13,8,17); //set jam
  pinMode(relay1, OUTPUT);
  pinMode(relay2, OUTPUT);

  digitalWrite(relay1,HIGH);
  digitalWrite(relay2,HIGH);
}

void loop() {
  Serial.println(second());
  delay(1000);
  if(hour()== 7 and minute() == 0 and second() == 0){
    digitalWrite(relay1,LOW);
    delay(1000); //motor berputar selama 1 dtk
    digitalWrite(relay1,HIGH);
    delay(10000); //sangkar dijemur selama 10 dtk
    digitalWrite(relay2,LOW);
    delay(1000); //motor berputar selama 1 dtk
    digitalWrite(relay2,HIGH);
  }

}

Credits

Me tfebuvflwg
Irsalina Santi Khasanah
1 project • 0 followers
Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Add projectSign up / Login