Pandabyte Ambient Light Sensor Module: Analog Input Guide
by pandabyte in Circuits > Arduino
15 Views, 0 Favorites, 0 Comments
Pandabyte Ambient Light Sensor Module: Analog Input Guide
Pandabyte Ambient Light Sensor Module is a simple input module used for learning ambient light detection and analog input measurement with microcontrollers such as Arduino compatible boards, ESP32, or Raspberry Pi Pico.
The module uses the TEMT6000 ambient light sensor, which changes its output voltage based on surrounding light intensity.
A key feature of this module is that it supports two connection methods:
- Traditional 3-pin header for standard jumper-wire connections
- OR
- 4-pin Grove connector for quick plug-and-play prototyping without complex wiring
In this guide, you will learn:
- Module pin configuration
- Analog light intensity measurement
- Circuit connections and Arduino programming examples
Supplies
- PandaByte Ambient Light Sensor Module
- Development Board (We will use PandaByte xC3m ESP32C3 Dev board)
- Grove Shield/Expansion Board
- Cables: Dupont, USB, and Grove
Software:
- Arduino IDE
Circuit Connections
Perform the connection based on the table.
Programming
Program: Read the analog light intensity value and display it on Serial Monitor.
int lightPin = 0;
void setup() {
Serial.begin(115200);
}
void loop() {
int lightValue = analogRead(lightPin);
Serial.print("Light Intensity: ");
Serial.println(lightValue);
delay(200);
}
Output
- The Serial Monitor will display changing analog values depending on surrounding light intensity.
- Higher light intensity produces higher sensor readings.
Important Info
- The module uses the TEMT6000 ambient light sensor.
- The sensor output is analog and proportional to light intensity.
- The IN pin must be connected to an ADC-capable GPIO pin.
- ADC resolution depends on the microcontroller:
- ESP32 commonly uses 12-bit ADC (0–4095)
- Arduino UNO uses 10-bit ADC (0–1023)
- Sensor readings can vary depending on:
- ambient light source
- sensor angle
- distance from light source