Maker Pro
Maker Pro

Automatic electric bell using wifi

im.psss

Feb 10, 2024
1
Joined
Feb 10, 2024
Messages
1
I'm doing a project for my institution where there are 4 main building blocks with 4 electric bells inside these buildings. These are worked using a switch so the bells ring with delay and not at the correct times. But there is the same internet connection going across all the buildings. So, my idea here is to implement a system for the bell by fetching the real-time from the web and should be able to program this to a microcontroller ic to specify on which times the bell should ring and by that, we can implement the same system to all 4 buildings and they will ring at the exact time without any delay and synchronized also. I can only use any microcontroller ICs and can't use any kind of development boards. The basic functioning of the system should be this. The other features that can be added are a manual button to ring the bell and access the bell via a phone or computer with a simple and very basic interface where we can activate the using that device and should be able to schedule the dates this bell should ring and on other days the shouldn't ring. I can only use microcontroller ICs only cant use any type of development boards, So I need to know about which microcontroller I can use for this project. This project should be budget-friendly, and all the pins of the microcontroller should be utilized if possible also suggest a wifi module compatible with the microcontroller.
 

kellys_eye

Jun 25, 2010
6,514
Joined
Jun 25, 2010
Messages
6,514
Homework? Albeit outside the normal specs we consider homework........

Either way the ubiquitous Arduino or ESP32 will suffice. The ESP32 range can be had very cheaply and with onboard wifi, sensors or 'whatever' that will easily achieve your task.

The 'rule' for using only a microprocessor is stupid given you are allowed to use a 'compatible' wifi module. This is what the ESP32 range is - a standard microcontroller albeit with the wifi already wired in. If your tutor objects then just lift the wifi module from the board - leaving 'just' the microcontroller - and use trailing wires to attach the wifi to the points at which it was removed!
 

jobitjoseph1

Jul 30, 2021
7
Joined
Jul 30, 2021
Messages
7
I'm doing a project for my institution where there are 4 main building blocks with 4 electric bells inside these buildings. These are worked using a switch so the bells ring with delay and not at the correct times. But there is the same internet connection going across all the buildings. So, my idea here is to implement a system for the bell by fetching the real-time from the web and should be able to program this to a microcontroller ic to specify on which times the bell should ring and by that, we can implement the same system to all 4 buildings and they will ring at the exact time without any delay and synchronized also. I can only use any microcontroller ICs and can't use any kind of development boards. The basic functioning of the system should be this. The other features that can be added are a manual button to ring the bell and access the bell via a phone or computer with a simple and very basic interface where we can activate the using that device and should be able to schedule the dates this bell should ring and on other days the shouldn't ring. I can only use microcontroller ICs only cant use any type of development boards, So I need to know about which microcontroller I can use for this project. This project should be budget-friendly, and all the pins of the microcontroller should be utilized if possible also suggest a wifi module compatible with the microcontroller.
You can go with an ESP32. Set up a webserver using the ESP32, which will help to change the timings over the air if needed.
 

bidrohini

Feb 1, 2023
200
Joined
Feb 1, 2023
Messages
200
You can use an AVR microcontroller plus An RTC like DS1307 or DS3231.
 

danadak

Feb 19, 2021
797
Joined
Feb 19, 2021
Messages
797
ESP8266 or ESP32 and Tuniot.

A general Tuniot example :


To get at net time the blocks to use are :

1718468936361.png

1718469349054.png

1718469408826.png


Tuniot does not have net time block specific, so one uses Arduino code example and using the
Tuniot block "Arduino code" loads the Arduino code into it. So a general Arduino type net time
solution can be configed into block form and run by Tuniot.

Regards, Dana.
 

Delta Prime

Jul 29, 2020
2,138
Joined
Jul 29, 2020
Messages
2,138
If you're in the continental United States, a pretty good option would be using highly accurate clocks that establish time using the vibration of a single atom.
Radio Controlled Atomic Clocks receive their time from an AM radio signal broadcasted by WWVB in Fort Collins, Colorado. The National Institute of Standards & Technology, (NIST) broadcast the time & covers the majority of continental United States.
KRONOsync receive this broadcast & uses it to create their wireless clock system, with wireless bells tone generators that picks up the time broadcasted from the KRONOsync transmitter & activates the the bell schedule wirelessly.
 

Bluejets

Oct 5, 2014
7,057
Joined
Oct 5, 2014
Messages
7,057
These are worked using a switch so the bells ring with delay and not at the correct times.
I would imagine there would be timers involved on each bell, so drive the bells from the mains and use the mains frequency to regulate the time.
Pretty simple system used world wide, no need for internet, uC's and the like.
Power failure, use backup, can't be for long.
On resumption, timers re-sync.

Then again. who would care if a bell rang a few seconds late/early, really.
 

danadak

Feb 19, 2021
797
Joined
Feb 19, 2021
Messages
797
Note at Tuniot website there are basic clkient server examples for templatys, here ios
the server one that you can build from :


1718500497995.png

Regards, Dana.
 
Top