Description: A diode is used in series to drop the voltage to 5.4 V, as the operating voltage for the PIC microcontroller should be below 5.5 V. Additionally, the diode provides protection to the circuit in case of reverse polarity of the power supply. Testing has been conducted with Ni-MH rechargeable batteries (providing 4.8 V), which worked successfully; however, alkaline batteries (1.5 V each) are recommended for better performance. A 9 V battery can also be used, but an LM7805 regulator IC must be included in the circuit. The output from the PIR sensor module is monitored through GP5 (pin 2) of the PIC12F635. When motion is detected, the output is high at approximately 3.3 V (due to an onboard 3.3V regulator IC). This voltage can be used as a valid logic high for the PIC12F635, but it is preferred to drive the base of an NPN transistor (BC547), allowing the collector to exhibit the full swing of logic voltages. The microcontroller monitors the voltage at the collector of the transistor. Under normal conditions, the transistor is off, and the collector output is at logic high (+5 V). When motion is detected, the high output from the sensor module saturates the transistor, causing the collector voltage to drop to logic low. The jumper selection for the trigger is in the H position, keeping the sensor output active as long as motion is present. The PIC12F635 microcontroller utilizes an internal clock oscillator at 4.0 MHz, with the MCLR function disabled and WDT turned off for this project. The pyroelectric sensor module is designed for human body detection, combining a PIR detector with a Fresnel lens on a compact PCB along with an analog IC (SB0061) and limited components to form the module. It provides a high-level output (3.3V) with a pre-settable variable width (5 seconds to 18 minutes). The circuit diagram of the PIR Motion Sensor Light and Switch based on SB0061 is suitable for security or corridor lighting in power-saving mode. The entire circuit requires a 12V DC supply, which can be sourced from any standard 12V AC mains adaptor or battery. The operation of the circuit is straightforward; when movement is detected within approximately 5-6 meters, around 3.3 V appears at the base of transistor T1, allowing it to conduct and activate the next relay driver transistor T2. Consequently, the 12V DPDT relay is energized to power a white LED through a current-limiting resistor (R3). Spare relay contacts can be utilized as a switch to control any suitable external load. The white LED and relay remain on for a duration determined by the mono time setting in the SB0061, ranging from 5 seconds to 18 minutes.
The circuit design incorporates several key components that work together to achieve the desired functionality. The diode, placed in series, ensures that the voltage supplied to the PIC microcontroller remains within safe operating limits, thus preventing damage from excessive voltage. The use of an LM7805 voltage regulator when employing a 9 V battery further stabilizes the voltage to the microcontroller.
The PIR sensor module is a crucial element, capable of detecting motion within a specified range. Its output is interfaced with the PIC microcontroller to initiate actions based on detected movement. The choice of the BC547 transistor to amplify the sensor's output allows for more robust control over the relay, facilitating the switching of higher loads, such as the white LED or other external devices.
The relay used in this circuit is a DPDT type, which provides versatility in controlling external loads. The spare contacts of the relay can be configured to connect or disconnect various devices, enhancing the circuit's functionality. The inclusion of a current-limiting resistor (R3) ensures that the LED operates within its safe current rating, preventing damage while providing adequate illumination.
The timing capabilities of the SB0061 IC allow for customizable operation durations, making the circuit adaptable for various applications, such as corridor lighting or security systems. The adjustable timing feature enables users to set the desired duration for which the LED remains illuminated after motion is detected, contributing to energy efficiency.
In summary, the described circuit effectively integrates a motion detection system using a PIR sensor, a microcontroller, and a relay to control lighting or other external loads based on detected movement. The design principles employed ensure reliable operation, protection against reverse polarity, and flexibility in application, making it suitable for both security and convenience-oriented implementations.A diode is used in series to drop the voltage down to 5. 4 V as the operating voltage for the PIC microcontroller should be below 5. 5 V. Besides, the diode also provides the protection to the circuit in case of reverse polarity of the power supply. I have tested the circuit with NI-MH rechargeable batteries (that gives 4. 8 V) and it worked, but I r ecommend to use the alkaline batteries (1. 5 V each) for better performance. You can also use a 9 V battery but then you need a LM7805 regulator IC in your circuit. The output of the PIR sensor module is monitored through GP5 (pin 2) of PIC12F635. When the motion is sensed, this output is high at about 3. 3 V (my sensor module has a 3. 3V regulator IC on board). You could still use this voltage as a valid logic high for PIC12F635, but I preferred to use this voltage to drive the base of an NPN transistor (BC547) so that at the collector we will have the full swing of the logic voltages. Now, the microcontroller monitors the voltage at the collector of the transistor. During the normal condition, the transistor is cut off, and the collector output is at logic high (+5 V).
When the motion is sensed, the high output from the sensor module saturates the transistor and the voltage at the collector drops down to logic low. The jumper selection for trigger is at H position, so the sensor output will remain active as long as the motion exists.
Note that the PIC12F635 microcontroller uses the internal clock oscillator at 4. 0 MHz. The MCLR function is disabled and WDT is OFF in this project. Pyroelectric sensor module, developed for human body detection. A PIR detector combined with a fresnel lens are mounted on a compact size PCB together with an analog IC (SB0061) and limited components to form the module. High level output (3. 3V) of pre-settable variable width (5Secs -18 Minutes) is provided. Circuit diagram of the PIR Motion Sensor Light and Switch based on SB0061 shown here can be used for security or corridor lighting in power saving mode.
The 12V DC supply required for the whole circuit can be fed from any standard 12V ac mains adaptor/battery. Working of the circuit is simple and straight forward. When any movement is detected within near 5-6 metres, around 3. 3 Volt is appeared at the base of Transistor T1 and it conducts to fire the next relay driver transistor T2.
As a result, the 12V DPDT relay is energised to power the White LED through current limiting resistor R3. Spare relay contacts can be used as a switch to control any suitable external load. The white LED and the relay remains ON for a duration based on the mono time setting in SB0061, ie from 5 Secs to 18 Minutes.
Security is a primary concern in daily life, and an access control system is a crucial component of a security framework. The microcontroller-based digital lock described here is an access control system that permits only authorized individuals to enter a...
This is the lowest cost dialing alarm on the market and shows what can be done with an 8-pin microcontroller. The complete circuit is shown below. You cannot see all the features of this project by looking at the circuit...
This project is a microcontroller-based college automation system aimed at addressing the challenges faced in educational institutions. It replaces the conventional notice board with an automated device that allows users to both hear and read the information being announced through...
The kit employs an off-the-shelf microcontroller based on the AtMega328P-PU Arduino, along with a simplified version designed for ease of replication and modification by collaborators and students. This initiative aims to enable the fabrication of simplified microcontrollers for DIY synthetic...
The supply receives -20 V from the rectifier/filter which is fed to the collector of the Darlington pnp pass transistor, a TIP105. The base drive to the TIP105 is supplied through resistor R5. The base of the TIP is driven...
National Semiconductor has been producing and designing integrated circuits (ICs) for use in switch-mode power supplies for many years. The application of these devices is standard.
National Semiconductor has established a significant presence in the design and manufacturing of integrated circuits...
This document presents a power-saving voltage regulator circuit. In addition to its general function as a delay regulator, the circuit features: (1) an automatic voltage regulation capability for mains voltage within a range of 220V ±10%, allowing direct power supply...
The presented schematic illustrates the construction of a simple PIR motion detector sensor. PIR sensors are capable of detecting motion and are primarily utilized to determine if a person has entered or exited the sensor's range. These sensors are compact,...
The widespread application of Flash technology in microprocessors has led to significant advancements in the development and utilization of one-chip computers. Designers have transitioned from traditional in-circuit emulators (ICE) and JTAG interfaces to more cost-effective and user-friendly development methods. While...
We use cookies to enhance your experience, analyze traffic, and (if you allow) serve personalized ads.
By clicking Accept All, you agree to our use of cookies.
Learn more