Information
Item weight
Barcode
Created time
Last updated on
Item description

โมดูล เซนเซอร์วัดค่าแสงในห้อง มักใช้ทั่วไปในโทรศัพท์มือถือเพื่อจัดการแสงหน้าจอให้เหมาะสมกับสภาพแสงแวดล้อม โมดูลนี้สามารถอ่านค่า LUX ได้อย่างแม่นยำถึง 65535 lx 


วิธีต่อ BH1750 กับ Arduino uno

Arduino UNO - BH1750
5V               - VCC
GND             - GND
SCL              - A5
SDA             - A4



ตัวอย่าง Code BH1750 กับ Arduino UNO แบบ ไม่ใช้ Library

#include <Wire.h>
#include <math.h>
int BH1750address = 0x23; //i2c address

byte buff[2];
void setup()
{
 Wire.begin();
 Serial.begin(57600);
}

void loop()
{
 int i;
 uint16_t val = 0;
 BH1750_Init(BH1750address);
 delay(200);

 if (2 == BH1750_Read(BH1750address))
 {
   val = ((buff[0] << 8) | buff[1]) / 1.2;
   Serial.print(val, DEC);
   Serial.println("lux");
 }
 delay(150);
}

int BH1750_Read(int address) //
{
 int i = 0;
 Wire.beginTransmission(address);
 Wire.requestFrom(address, 2);
 while (Wire.available()) //
 {
   buff[i] = Wire.read();  // receive one byte
   i++;
 }
 Wire.endTransmission();
 return i;
}

void BH1750_Init(int address)
{
 Wire.beginTransmission(address);
 Wire.write(0x10);//1lx reolution 120ms
 Wire.endTransmission();
}





Datasheet BH1750



BH1750 is a digital ambient light sensor that is used commonly used in mobile phones to manipulate the screen brightness based on the environment lighting. This sensor can accurately measure the LUX value of light up to 65535lx.

 

BH1750 Pin Configuration

Pin Number

Pin Name

Description

1

VCC

Power supply for the module can be 2.4V to 3.6V, typically 3.0V is used

2

GND

Ground of the module, connected to ground of the circuit

3

SCL

Serial Clock Line, used to provide clock pulse for I2C communication

4

SDA

Serial Data Address, used to transfer the data through I2C communication

5

ADDR

Device address pin, used to  select the address when more than two modules are connected

 

BH1750 Features

  • Power Supply: 2.4V-3.6V (typically 3.0V)
  • Less current consumption: 0.12mA
  • Measuring Rang: 1-65535lx
  • Communication: I2C bus
  • Accuracy: +/-20%
  • Built in A/D converter for converting analog illuminance in the digital data.
  • Very small effect of IR radiation
  • Highly responsive near to human eye.
Conditions
Tags

Exchange or return policy



Every item comes with a 30-day warranty. However, there are certain conditions that apply:

  1. The customer should not be responsible for any self-inflicted damage, such as incorrect power connections (for example, supplying 5V instead of the required 3.3V for a sensor).

  2. The product must be in perfect condition, without any breakage or damage caused by electricity (e.g., short circuits leading to electrical fires).

  3. The store does not accept product exchanges due to customer misunderstandings, such as purchasing the wrong size for their project or buying something without eventually using it. Customers can inquire about the product details and ensure compatibility before making a purchase by contacting us through our Line account @modulemore during business hours. Please note that there may be delays in response between 12:00 PM and 2:00 PM.

Return Policy: To initiate a product return, customers must provide the original receipt or a copy for quick verification. Returns can be sent to our store address by following these guidelines:

  1. Provide a detailed description of the damaged item(s).
  2. Mention any tests or experiments conducted by the customer.

Please note that the store reserves the right to make the final decision regarding product replacement or refund.

English

Categories

TRACK & TRACE

*Enter your order ID or email used in placing an order

OVERVIEW

Pageviews2,072,276 view(s)
Visitors1,333,002 time(s)
Last updatedSep 5, 2025

JOIN US

ร้านModuleMore
ร้านModuleMore
/www.modulemore.com/en
Join as a Member
600
Become a member of this store to receive special offers and promotions
Choose your language
Language
Currency
Change
Modify language
My orders
This seller's information
ร้านModuleMore
ModuleMore
Arduino compatible board, Iot, ESP32, ESP8266, Nodemcu, Raspberry pi, micro:bit and etc.
Mobile number : 0831710868
E-mail : paheyisoicus@gmail.com
Send message to seller
About this seller
Recently viewed items
Favourite this seller
Join as a Member
Share this page
Share this page

TOP Back to top
Contact me