The Use of Light Sensor
The Use of Light Sensor
OBJECTIVES:
To be familiar on how to use the light sensor
To know the different uses of ambient light sensor and where it can be used
EQUIPMENT AND MATERIALS:
QUANTITY COMPONENT
1 Ambient Light Sensor
1 Light bulb
1 Arduino Uno R3
1 Piezo
1 1kΩ Resistor
1 500 Ω Resistor
1 10kΩ Resistor
DISCUSSION:
AMBIENT LIGHT SENSOR- TEMT6000 ambient light sensor is just another analog sensor. It is compatible
with micro-controllers which supports analog data input. If the light is very low then the SIG will be also
very low as light increases the SIG will also goes high.
In this lab exercise, the ambient light sensor is used to determine if it is morning or evening and also the serial
monitor will display if it is evening or morning. The light bulb will turn on when it detects low light and turn off
when it detects a high value of light. The buzzer also has a specific tone to know if it is morning or evening.
PROCEDURE:
AMBIENT LIGHT SENSOR WITH LIGHT BULB AND PIEZO BUZZER
1.) Connect the circuits for the three components.
For the ambient light sensor, connect collector to the 5V, the emitter connects to the GND with a 10kΩ
Resistor, and connect the A0 pin between the emitter and resistor.
For the light bulb, terminator 1 connects to the GND and terminator 2 connects to the 13 pin with a 500 Ω
Resistor
For the piezo buzzer, connect the positive to the pin number 4 with a 1kΩ Resistor and the negative connects
to the ground.
2.) Type the sketch
For the void set up
delay(700);
3.) The outcome
The outcome of this circuit is when the light sensor cannot detect light or less light the light bulb will turn
on and the buzzer will make a specific tone/sound and in contrast when the light sensor detect a high
brightness or light the light bulb will turn off and the buzzer will make an another tone/sound.