
Schematic and Sources:
To emphasize the use of Analog-to-Digital Converters (ADC) found in some PIC microcontrollers, this small project introduces an emergency light system based on an LDR (also popularly known as a photoresistor or photocell).
It's important to note that for a simple emergency light system like the one presented here, the use of a microcontroller and programming isn't strictly necessary. With just a few passive components, an LDR, and a transistor, it's possible to implement an emergency light system at a much lower cost.
However, this project is educational in nature and serves as a foundation for developing more complex systems, which would be significantly more challenging without the use of microcontrollers. For instance, it could be used to log the times when the emergency system (emergency light) is activated for later analysis or to record the average light intensity over a specific period.
In this project, a transistor is also used to assist in activating a strong light that could not be directly driven by the microcontroller (as is commonly done with LEDs). This approach allows for the activation of higher power systems.
Below is the circuit for our Emergency Light project with LDR and the PIC12F675.
#pic12f675 #microchip #assembly #ldr