Yes with a real time clock as an external interrupt is you answer
The buzzing sound you can achieve with pwm out on a dedicated pwm channel
See this example to see how this is done using
I’ve used the internal timer interrupts but for accuracy use a external real time clock
http://www.eeweb.com/project/mark_harrington/10-minute-uv-dental-tooth-whitener-timerFor the code click here written in C
http://s.eeweb.com/members/mark_harrington/projects/2011/11/28/dental-1322513304.cOr if you want to step up from this use RPi and an internal database with a time server running in the background then you can network your alarm bells together you lessons being stored in a database or a simple text database
Use JDBC to achieve your objective and the java.util.Timer class to schedule an event i.e time for alarm to ring
Or if for example you wanted different allarms with days months spreading you could using the java.util.Date class then simple calle the getTime method or getDay method or getMonth
Which might for example store name of class, start time, finish time compare with internal clock you can do anything with this my friend then each RPi sitting in the class listening to wifi calls so that the alarm can sound across tcp/ip
You could even transfere your voice across the netork VOIP for example so there your intercom sorted out
Blimey fancy that that makes life more exciting , no more wires
Lets take this a stage further youve got gpio pins on the Rpi what about a firealarm at the same time automatic individual class security Alarms for when they lock up at night Crikey !! I mean thats clever huh
Forward thinking my friend , "Bit of hard work thats all !" Got to be worth it hasent it better than wasting your time doing nothing What do your reckon on that one then
Or you could transfere this messageing on alarm for example raising an event in your class which would put out an RS-485 message to each recieving pic micro maybe instead using one rpi (raspberry pi module )
What cant you do with this is more the question