Automatic IOT-Powered Class Bell
In my robotics class, around the second month of school, the school's intercom system went down, so teachers had to use timers on their phones to know when each class should end. My robotics teacher used this opportunity to assign me a project to use an Arduino IoT board as the room's intercom system to signal the end of each class.
The setup for this project was a Particle Argon connected to a 3V relay. That relay controlled a 12v circuit between a rechargeable battery and a lightbulb.
Although the wiring was simple to build and test, the program was more challenging. In its final form, the program would, each morning, start the control function that would, every minute, check whether the current time matched any times the clock needed to activate. Making this more intricate, the school had a modified bell schedule every Wednesday, and the program would need to either blink or hold the light on depending on if it was a 10-minute-warning or an end of class event. To accomplish both, the control function would check either the 'normal day' or 'Wednesday' function and return whether no action was needed, it was time for a 10-minute warning, or it was the end of class. The control function then sent this data to the 'lights runner' function, which operated the relay accordingly.
Near the end of the program, there were also extra functions, like the calibration function that would recalibrate the onboard clock once a week.