This project introduces a cost-effective and do-it-yourself (DIY) solution for monitoring floater switches and activating alarms in various applications. The designed circuit, which is based on the PIC12F508 microcontroller, effectively detects changes in floater switch status and triggers the alarm. The system is designed to operate with a 12V DC power supply and utilizes a 230V AC buzzer unit for audible alerts.
The circuit includes a mute function that temporarily silences the alarm for a specified duration. Additionally, a built-in timeout mechanism ensures continuous alarm activation if the floater switch remains closed for an extended period, indicating a potential emergency. The project's modular design and clear documentation facilitate easy assembly and customization, making it suitable for a wide range of applications, including home automation, industrial monitoring, and environmental sensing.
Reference | Value | Qty | Datasheet |
---|---|---|---|
C101 | 100µF / 16V | 1 | |
C102 | 0.1µF / 50V | 1 | |
D101 | 1N4007 | 1 | http://www.vishay.com/docs/88503/1n4001.pdf |
K101 | JQC-3F-12VDC-1ZS | 1 | https://www.futurlec.com/Datasheet/Relays/JQC-3FF.pdf |
Q101 | 2SD400 | 1 | https://datasheet.octopart.com/2SD400-Sanyo-datasheet-101823.pdf |
R101 | 10KΩ | 1 | |
R102 | 5.6KΩ | 1 | |
R103, R104 | 22KΩ | 2 | |
U101 | PIC12F508-I/P | 1 | https://ww1.microchip.com/downloads/en/DeviceDoc/41236E.pdf |
U102 | L7805 | 1 | https://www.st.com/resource/en/datasheet/l78.pdf |
The firmware for this project is developed using the MPLAB X IDE and the XC8 C compiler. The latest firmware is available in the /firmware directory in this repository.
This project requires several external components:
- 12V 1A Power Supply Unit (PSU): Provides the necessary power for the microcontroller, relay, and other electronic components.
- Pump Float Switch: A float switch is used to detect changes in liquid levels. Select a float switch that is compatible with the intended application and capable of reliably triggering the alarm system.
- AC High dB Mechanical Buzzer or Industrial Alarm: A loud and attention-grabbing alarm is essential for alerting users to potential emergencies. Consider using an AC-powered mechanical buzzer or industrial alarm that is suitable for the desired noise level.
- Push Switch: A momentary push switch is used to manually mute the alarm.