Hi there,
I have a PIC12F675 and am trying to write a program in basic. What I have is a reed switch, which is attached to a door. When the door opens the reed switch closes. There is a continuous tone buzzer connected to the output of the micro. Now after a period of 10 seconds I want the micro to beep the buzzer approx 1 sec high 1.5 sec low continuously while the door is open. If the door is closed regardless of if the door alarm has been activated or not, it will end the program and return the micro back to sleep mode. The other part is I want a analogue input to monitor the battery voltage, when the battery voltage drops below 1V every time the door is opened the micro will make the buzzer emit a long 2 sec beep immediately after the door is opened until the battery have been changed, while maintaining the usual timing function of the door open. Can anyone help me out with that?
Bookmarks