Difference between revisions of "Digital Light Intensity Sensor Module (GY-49)"

From Wiki
Jump to: navigation, search
(Experimental Procedures for Arduino)
Line 1: Line 1:
  
 
== '''Introduction''' ==
 
== '''Introduction''' ==
[[File:GY-49_1.jpg]][[File:GY-49_2.jpg]]
+
[[File:GY-49_1.jpg]]
 +
<br>
 +
[[File:GY-49_2.jpg]]
 
<br>
 
<br>
 
MAX44009 ambient light sensor has I2C digital output, it can be widely applied in smart phone, laptop, industrial sensors and so on. With the working current less than 1µA, it is the ambient light sensor with the lowest power consumption in the industry and has 22-bit ultra-wide dynamic range (0.045lm~188,000lm). Because MAX44009 can detect extremely faint light, it can work well though covered by dark-colored glass.
 
MAX44009 ambient light sensor has I2C digital output, it can be widely applied in smart phone, laptop, industrial sensors and so on. With the working current less than 1µA, it is the ambient light sensor with the lowest power consumption in the industry and has 22-bit ultra-wide dynamic range (0.045lm~188,000lm). Because MAX44009 can detect extremely faint light, it can work well though covered by dark-colored glass.
 
<br>
 
<br>
'''Features'''
+
 
 +
== '''Features''' ==
 
<ul>
 
<ul>
 
<li>Wide Detection Range: 0.045lm~188,000lm</li>
 
<li>Wide Detection Range: 0.045lm~188,000lm</li>
Line 15: Line 18:
 
<li>1001 010x and 1001 011x</li>
 
<li>1001 010x and 1001 011x</li>
 
</ul>
 
</ul>
 
== '''Introduction of Pins''' ==
 
 
{| class="wikitable"
 
|-
 
!colspan="2"|Introduction of Pins
 
|-
 
|VIN
 
|Anode of the power supply
 
|-
 
|GND
 
|ground
 
|-
 
|SCL
 
|I2C clock
 
|-
 
|SDA
 
|I2C data
 
|}
 
 
== '''Principle''' ==
 
The MAX44009 ambient light sensor features an I2C digital output that is ideal for a number of portable applications such as smart phone, notebook, and industrial sensor. At less than 1µA operating current, it is the lowest power ambient light sensor in the industry and features an ultra-wide 22-bit dynamic range from 0.045 lux to 188,000 lux.
 
<br>
 
Low light operation allows easy operation in dark-glass applications.
 
<br>
 
The on-chip photodiode’s spectral response is optimized to mimic the human eye’s perception of ambient light and incorporates IR and UV blocking capability. The adaptive gain block automatically selects the correct lux range to optimize the counts/lux.
 
<br>
 
The IC is designed to operate from a 1.7V to 3.6V supply voltage range and consumes only 0.65µA in full operation. It is available in a small, 2mm x 2mm x 0.6mm UTDFN-Opto package.
 
<br>
 
[[File:GY-49_3.jpg]]
 
<br>
 
<br>
 
[[File:GY-49_4.jpg]]
 
<br>
 
 
== '''Applications''' ==
 
<ul>
 
<li>Tablet PCs/Notebook Computers</li>
 
<li>TVs/Projectors/Displays</li>
 
<li>Digital Lighting Management</li>
 
<li>Portable Devices</li>
 
<li>Cellular Phones/Smartphones</li>
 
<li>Security Systems</li>
 
</ul>
 
 
== '''Experimental Procedures for Arduino''' ==
 
'''Step 1:''' Connect the circuit:
 
<br>
 
[[File:GY-49_5.jpg]]
 
<br>
 
'''Step 2:''' Compile and upload the code.
 
<pre>
 
/****************************************/
 
// Distributed with a free-will license.
 
// Use it any way you want, profit or free, provided it fits in the licenses of its associated works.
 
// MAX44009
 
// This code is designed to work with the MAX44009_I2CS I2C Mini //Module available from ControlEverything.com.
 
// https://www.controleverything.com/products
 
 
#include<Wire.h>
 
 
// MAX44009 I2C address is 0x4A(74)
 
#define Addr 0x4A
 
 
void setup()
 
{
 
  // Initialise I2C communication as MASTER
 
  Wire.begin();
 
  // Initialise serial communication, set baud rate = 9600
 
  Serial.begin(9600);
 
 
  // Start I2C Transmission
 
  Wire.beginTransmission(Addr);
 
  // Select configuration register
 
  Wire.write(0x02);
 
  // Continuous mode, Integration time = 800 ms
 
  Wire.write(0x40);
 
  // Stop I2C transmission
 
  Wire.endTransmission();
 
  delay(300);
 
}
 
 
void loop()
 
{
 
  unsigned int data[2];
 
 
  // Start I2C Transmission
 
  Wire.beginTransmission(Addr);
 
  // Select data register
 
  Wire.write(0x03);
 
  // Stop I2C transmission
 
  Wire.endTransmission();
 
 
  // Request 2 bytes of data
 
  Wire.requestFrom(Addr, 2);
 
 
  // Read 2 bytes of data
 
  // luminance msb, luminance lsb
 
  if (Wire.available() == 2)
 
  {
 
    data[0] = Wire.read();
 
    data[1] = Wire.read();
 
  }
 
 
  // Convert the data to lux
 
  int exponent = (data[0] & 0xF0) >> 4;
 
  int mantissa = ((data[0] & 0x0F) << 4) | (data[1] & 0x0F);
 
  float luminance = pow(2, exponent) * mantissa * 0.045;
 
 
  // Output data to serial monitor
 
  Serial.print("Ambient Light luminance :");
 
  Serial.print(luminance);
 
  Serial.println(" lux");
 
  delay(300);
 
}
 
 
</pre>
 
[[File:GY-49_6.jpg]]
 

Revision as of 02:23, 24 October 2019

Introduction

GY-49 1.jpg
GY-49 2.jpg
MAX44009 ambient light sensor has I2C digital output, it can be widely applied in smart phone, laptop, industrial sensors and so on. With the working current less than 1µA, it is the ambient light sensor with the lowest power consumption in the industry and has 22-bit ultra-wide dynamic range (0.045lm~188,000lm). Because MAX44009 can detect extremely faint light, it can work well though covered by dark-colored glass.

Features

  • Wide Detection Range: 0.045lm~188,000lm
  • Small size, 2mm x 2mm x 0.6mm UTDFN-Opto package
  • VCC = 1.7V~3.6V
  • Working Current ICC = 0.65µA
  • Working Temperature: -40°C~+85°C
  • Device Optional Address
  • 1001 010x and 1001 011x