Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use AS7058: Examples, Pinouts, and Specs

Image of AS7058
Cirkit Designer LogoDesign with AS7058 in Cirkit Designer

Introduction

The AS7058, manufactured by Osram, is a low-power, high-accuracy ambient light sensor designed for precise light measurement. It is commonly used in applications such as smartphones, wearable devices, and other consumer electronics. The AS7058 helps optimize display brightness and improve user experience by adjusting to ambient lighting conditions. Its compact design and I2C interface make it easy to integrate into a wide range of devices.

Explore Projects Built with AS7058

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Battery-Powered Emergency Alert System with NUCLEO-F072RB, SIM800L, and GPS NEO 6M
Image of women safety: A project utilizing AS7058 in a practical application
This circuit is an emergency alert system that uses a NUCLEO-F072RB microcontroller to send SMS alerts and make calls via a SIM800L GSM module, while obtaining location data from a GPS NEO 6M module. The system is powered by a Li-ion battery and includes a TP4056 module for battery charging and protection, with a rocker switch to control power to the microcontroller.
Cirkit Designer LogoOpen Project in Cirkit Designer
Satellite-Based Timing and Navigation System with SDR and Atomic Clock Synchronization
Image of GPS 시스템 측정 구성도_Confirm: A project utilizing AS7058 in a practical application
This circuit appears to be a complex system involving power supply management, GPS and timing synchronization, and data communication. It includes a SI-TEX G1 Satellite Compass for GPS data, an XHTF1021 Atomic Rubidium Clock for precise timing, and Ettus USRP B200 units for software-defined radio communication. Power is supplied through various SMPS units and distributed via terminal blocks and DC jacks. Data communication is facilitated by Beelink MINI S12 N95 computers, RS232 splitters, and a 1000BASE-T Media Converter for network connectivity. RF Directional Couplers are used to interface antennas with the USRP units, and the entire system is likely contained within cases for protection and organization.
Cirkit Designer LogoOpen Project in Cirkit Designer
Cellular-Enabled IoT Device with Real-Time Clock and Power Management
Image of LRCM PHASE 2 BASIC: A project utilizing AS7058 in a practical application
This circuit features a LilyGo-SIM7000G module for cellular communication and GPS functionality, interfaced with an RTC DS3231 for real-time clock capabilities. It includes voltage sensing through two voltage sensor modules, and uses an 8-channel opto-coupler for isolating different parts of the circuit. Power management is handled by a buck converter connected to a DC power source and batteries, with a fuse for protection and a rocker switch for on/off control. Additionally, there's an LED for indication purposes.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered ESP32-S3 Controlled Servo System with gForceJoint UART
Image of Copy of Oymotion: A project utilizing AS7058 in a practical application
This circuit is a servo control system powered by a 4 x AAA battery pack, regulated by a step-down DC regulator. An ESP32-S3 microcontroller controls five servos and communicates with a gForceJoint UART sensor, enabling precise servo movements based on sensor inputs.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with AS7058

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of women safety: A project utilizing AS7058 in a practical application
Battery-Powered Emergency Alert System with NUCLEO-F072RB, SIM800L, and GPS NEO 6M
This circuit is an emergency alert system that uses a NUCLEO-F072RB microcontroller to send SMS alerts and make calls via a SIM800L GSM module, while obtaining location data from a GPS NEO 6M module. The system is powered by a Li-ion battery and includes a TP4056 module for battery charging and protection, with a rocker switch to control power to the microcontroller.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of GPS 시스템 측정 구성도_Confirm: A project utilizing AS7058 in a practical application
Satellite-Based Timing and Navigation System with SDR and Atomic Clock Synchronization
This circuit appears to be a complex system involving power supply management, GPS and timing synchronization, and data communication. It includes a SI-TEX G1 Satellite Compass for GPS data, an XHTF1021 Atomic Rubidium Clock for precise timing, and Ettus USRP B200 units for software-defined radio communication. Power is supplied through various SMPS units and distributed via terminal blocks and DC jacks. Data communication is facilitated by Beelink MINI S12 N95 computers, RS232 splitters, and a 1000BASE-T Media Converter for network connectivity. RF Directional Couplers are used to interface antennas with the USRP units, and the entire system is likely contained within cases for protection and organization.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of LRCM PHASE 2 BASIC: A project utilizing AS7058 in a practical application
Cellular-Enabled IoT Device with Real-Time Clock and Power Management
This circuit features a LilyGo-SIM7000G module for cellular communication and GPS functionality, interfaced with an RTC DS3231 for real-time clock capabilities. It includes voltage sensing through two voltage sensor modules, and uses an 8-channel opto-coupler for isolating different parts of the circuit. Power management is handled by a buck converter connected to a DC power source and batteries, with a fuse for protection and a rocker switch for on/off control. Additionally, there's an LED for indication purposes.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Copy of Oymotion: A project utilizing AS7058 in a practical application
Battery-Powered ESP32-S3 Controlled Servo System with gForceJoint UART
This circuit is a servo control system powered by a 4 x AAA battery pack, regulated by a step-down DC regulator. An ESP32-S3 microcontroller controls five servos and communicates with a gForceJoint UART sensor, enabling precise servo movements based on sensor inputs.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Smartphones for automatic brightness adjustment
  • Wearable devices for power-efficient display control
  • Smart home devices for ambient light detection
  • Industrial and medical equipment requiring precise light measurement

Technical Specifications

Key Technical Details

Parameter Value
Supply Voltage (VDD) 1.7V to 3.6V
Operating Current 50 µA (typical)
Standby Current 0.5 µA (typical)
Light Measurement Range 0.01 lux to 83,000 lux
Interface I2C (up to 400 kHz)
Operating Temperature -40°C to +85°C
Package 2.0 mm x 2.0 mm x 0.6 mm LGA

Pin Configuration and Descriptions

The AS7058 comes in a compact LGA package with the following pin configuration:

Pin Number Pin Name Description
1 VDD Power supply input (1.7V to 3.6V)
2 GND Ground
3 SDA I2C data line
4 SCL I2C clock line
5 INT Interrupt output (active low)
6 NC Not connected (leave floating or grounded)

Usage Instructions

How to Use the AS7058 in a Circuit

  1. Power Supply: Connect the VDD pin to a stable power source (1.7V to 3.6V) and the GND pin to ground.
  2. I2C Communication: Connect the SDA and SCL pins to the corresponding I2C lines of your microcontroller. Use pull-up resistors (typically 4.7 kΩ) on both lines.
  3. Interrupt Pin: Optionally, connect the INT pin to a GPIO pin on your microcontroller to handle interrupts for light threshold events.
  4. Bypass Capacitor: Place a 0.1 µF ceramic capacitor close to the VDD pin for power supply decoupling.

Important Considerations

  • Ensure the sensor is not exposed to direct sunlight or extreme lighting conditions during operation, as this may affect accuracy.
  • Use proper PCB layout techniques to minimize noise on the I2C lines.
  • The AS7058 is sensitive to temperature changes; consider thermal management in your design.

Example Code for Arduino UNO

Below is an example of how to interface the AS7058 with an Arduino UNO using the I2C protocol:

#include <Wire.h> // Include the Wire library for I2C communication

#define AS7058_I2C_ADDRESS 0x39 // Replace with the actual I2C address of the AS7058

void setup() {
  Wire.begin(); // Initialize I2C communication
  Serial.begin(9600); // Start serial communication for debugging

  // Initialize the AS7058
  Wire.beginTransmission(AS7058_I2C_ADDRESS);
  Wire.write(0x00); // Example: Write to a configuration register
  Wire.write(0x01); // Example: Set a configuration value
  Wire.endTransmission();

  Serial.println("AS7058 initialized.");
}

void loop() {
  uint16_t lightLevel = readLightLevel(); // Read light level from the sensor
  Serial.print("Ambient Light Level: ");
  Serial.print(lightLevel);
  Serial.println(" lux");
  delay(1000); // Wait for 1 second before the next reading
}

uint16_t readLightLevel() {
  uint16_t lightLevel = 0;

  Wire.beginTransmission(AS7058_I2C_ADDRESS);
  Wire.write(0x04); // Example: Register address for light level data
  Wire.endTransmission();

  Wire.requestFrom(AS7058_I2C_ADDRESS, 2); // Request 2 bytes of data
  if (Wire.available() == 2) {
    lightLevel = Wire.read(); // Read the high byte
    lightLevel = (lightLevel << 8) | Wire.read(); // Read the low byte
  }

  return lightLevel;
}

Notes on the Code

  • Replace 0x39 with the actual I2C address of your AS7058 sensor.
  • Modify the register addresses and configuration values based on the AS7058 datasheet.

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Response from the Sensor

    • Ensure the I2C address is correct and matches the sensor's default or configured address.
    • Check the pull-up resistors on the SDA and SCL lines.
    • Verify the power supply voltage is within the specified range.
  2. Inaccurate Light Measurements

    • Avoid placing the sensor in direct sunlight or near strong light sources.
    • Ensure the sensor is clean and free from dust or debris.
  3. Interrupt Pin Not Functioning

    • Verify the interrupt threshold settings in the sensor's configuration registers.
    • Ensure the INT pin is properly connected to the microcontroller.

FAQs

Q: Can the AS7058 operate at 5V?
A: No, the AS7058 operates within a supply voltage range of 1.7V to 3.6V. Using 5V may damage the sensor.

Q: What is the maximum I2C clock speed supported?
A: The AS7058 supports I2C communication at speeds up to 400 kHz.

Q: How do I calculate the lux value from the sensor's output?
A: Refer to the AS7058 datasheet for the specific formula to convert raw sensor data to lux, as it depends on the sensor's calibration and configuration.

Q: Can the AS7058 be used outdoors?
A: While the AS7058 can measure ambient light outdoors, it is not designed for prolonged exposure to extreme environmental conditions. Use appropriate enclosures for protection.