Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Automatic School Bell system using Arduino | School Project

Автор: Robotica DIY

Загружено: 2020-03-23

Просмотров: 35392

Описание:

Automatic School Bell system using Arduino | School Project
Scroll down for code.....

We all know when we were in school, a person was waiting near school bell to make bell ring. He had to come and rang bell in every period. But what about if it can be automated. Yes it is very simple and we can do that with Arduino. So in this tutorial we are going to make automatic school bell system using Arduino.

LiquidCrystal_I2C library Github link
https://github.com/fdebrabander/Ardui...

Real Time Clock (DS1302) library
http://www.rinkydinkelectronics.com/l...

If you want to support my video please buy any product through my amazon affiliate link. I will receive a commission, at no extra cost to you.

LIST OF COMPONENT (affiliate links)

http://amzn.to/2fvSRJq (Arduino)
http://amzn.to/2gRFSiv (RTC DS1302)
http://amzn.to/2zg8aeX (I2C)
http://amzn.to/2yBk7eT (LCD display)
https://amzn.to/3bvGYLh (Cycle or Bike Bell)
https://amzn.to/2wu2jWg (Toy DC motor)
https://amzn.to/2UxuY4G (L298N Motor Driver)
https://amzn.to/3bl1MoC (4 AAA 1.5V battery case)
https://amzn.to/2QE4kGm (AAA 1.5v Battery)
http://amzn.to/2wxPmWz (Breadboard)
http://amzn.to/2vJ3lvo (Jumper wire)

Music: Elektronomia & Stahl! - Journey
Watch:    • Elektronomia & Stahl! - Journey  

Music: Elektronomia - Shine On (Instrumental)
Watch:    • Elektronomia - Shine On (Instrumental)  

#include (Wire.h) //instead of parenthesis () put angle bracket as YouTube description does not allow angle bracket
#include (LiquidCrystal_I2C.h)
#include (DS1302.h)
// Set the LCD address to 0x27 for a 16 chars and 2 line display
LiquidCrystal_I2C lcd(0x3F, 16, 2);

int Hour;
int Min;
int Sec;
int period;
int in1 = 8;
int in2 = 9;
int activate=0;
Time t;

// Init the DS1302
DS1302 rtc(2, 3, 4);

void setup()
{
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
// Set the clock to run-mode, and disable the write protection
rtc.halt(false);
rtc.writeProtect(false);

// Setup LCD to 16x2 characters
lcd.begin();
Serial.begin(9600);

// The following lines can be commented out to use the values already stored in the DS1302
// rtc.setDOW(SUNDAY); // Set Day-of-Week to FRIDAY
// rtc.setTime(10, 30, 30); // Set the time to 12:00:00 (24hr format)
// rtc.setDate(23, 03, 2020); // Set the date to August 6th, 2010

}

void loop()
{
// Display time on the right conrner upper line

lcd.setCursor(0, 0);
lcd.print("Time: ");
lcd.setCursor(6, 0);
lcd.print(rtc.getTimeStr());
t = rtc.getTime();
Hour = t.hour;
Min = t.min;
Sec = t.sec;

//Display Period Number
lcd.setCursor(0, 1);
lcd.print("Period No: ");
lcd.setCursor(11, 1);
lcd.print(period);

//Period timing, when bell will ring, you can add more period if you want
if ((Hour== 7 && Min== 0 && Sec(= 5)||(Hour== 7 && Min== 30 && Sec(= 5)||(Hour== 8 && Min== 0 && Sec(= 5)||(Hour== 8 && Min== 30 && Sec(= 5)||(Hour== 9 && Min== 30 && Sec(= 5)||(Hour== 10 && Min== 0 && Sec(= 5)||(Hour== 10 && Min== 30 && Sec(= 5)||(Hour== 11 && Min== 0 && Sec(= 5)) {
digitalWrite(in1, HIGH);
digitalWrite(in2, LOW);

Serial.println("motor is running");
if (activate == 0){
period = period +1;
activate =1;
}
}
else if (Hour== 9 && Min== 0 && Sec(= 7) { // Recess break time (Long ring bell)
digitalWrite(in1, HIGH);
digitalWrite(in2, LOW);
lcd.setCursor(11, 1);
lcd.print("Break");
delay(500);
lcd.clear();
}
else if (Hour== 11 && Min== 30 && Sec(= 7) { // School time over (Long Ring bell)
digitalWrite(in1, HIGH);
digitalWrite(in2, LOW);
lcd.setCursor(11, 1);
lcd.print("Over");
period =0;
delay(500);
lcd.clear();
}

else { // stop motor
digitalWrite(in1, LOW);
digitalWrite(in2, LOW);
activate =0;
}

delay (500);
}

Automatic School Bell system using Arduino | School Project

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

How to make smoke detector alarm | Fire detector alarm

How to make smoke detector alarm | Fire detector alarm

В 2026 VPN НЕ ПОМОЖЕТ: Роскомнадзор Закрывает Интернет

В 2026 VPN НЕ ПОМОЖЕТ: Роскомнадзор Закрывает Интернет

Arduino Based Automatic School/College Bell System

Arduino Based Automatic School/College Bell System

Тюнинг легендарной игрушки СССР: Планетоход ИНТЕРКОСМОС

Тюнинг легендарной игрушки СССР: Планетоход ИНТЕРКОСМОС

Я проверил самый ДЕШЁВЫЙ круиз в России... (3 дня ада)

Я проверил самый ДЕШЁВЫЙ круиз в России... (3 дня ада)

Arduino automatic electric school bell

Arduino automatic electric school bell

Развлечения с транзисторами

Развлечения с транзисторами

How to Make Electric Bell from Recyclable Objects at home | DIY

How to Make Electric Bell from Recyclable Objects at home | DIY

Как управлять 12-вольтовым двигателем с помощью Arduino: простая схема подключения и примеры кода

Как управлять 12-вольтовым двигателем с помощью Arduino: простая схема подключения и примеры кода

ВЕЛИКИЙ ОБМАН ЕГИПТА — Нам врали о строительстве пирамид

ВЕЛИКИЙ ОБМАН ЕГИПТА — Нам врали о строительстве пирамид

Сделайте КРОШЕЧНЫЙ Дрон Arduino с FPV-камерой — полетит ли он?

Сделайте КРОШЕЧНЫЙ Дрон Arduino с FPV-камерой — полетит ли он?

Arduino Based Automatic School Bell System Using DS3231 Real Time Clock (RTC)

Arduino Based Automatic School Bell System Using DS3231 Real Time Clock (RTC)

Как работает шаговый искатель?

Как работает шаговый искатель?

Top 10 Arduino projects

Top 10 Arduino projects

How to make automatic doorbell school project,Touchless doorbell project,Science project for school

How to make automatic doorbell school project,Touchless doorbell project,Science project for school

Вы можете изучить Arduino за 15 минут.

Вы можете изучить Arduino за 15 минут.

Arduino RTC DS3231 LCD 5Button

Arduino RTC DS3231 LCD 5Button

Arduino based Automatic School Bell System

Arduino based Automatic School Bell System

Homemade Arduino Based Multiple Timer/Alarm Circuit |

Homemade Arduino Based Multiple Timer/Alarm Circuit |

How to make colour sorting Machine using Arduino

How to make colour sorting Machine using Arduino

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]