We generally face situation, where we need to measure intensity of light. So I decided to make a small project which will help us solve this problem. This project illustrates how we can use OPT3001 with Arduino as Lux meter. In this project, I have used small breackout board for OPT3001. This sensor is communicating over I2C protocol.
Few advantages are:
- Precision Optical
- FilteringAutomatic Full-Scale Setting Feature
- Measurements: 0.01 lux to 83 k luxLow
- Operating Current: 1.8 μA
Step 1: List of Things I Used
- Arduino Uno as main controller.
- OPT3001 from Texas Instruments.
- Jumper wires
- Computer with Arduino IDE installed.
That's it, lets move to hardware connection.
Step 2: Step 2: Hardware Connection.
Now we will see how we can connect Arduino uno and OPT3001 via I2C line.
- Power lines
- VDD -- 3.3 V
- GND -- GND
- SDA -- A4
- SCL -- A5
Step 3: Step 3: Code Snippet for Arduino Uno As Lux Meter
Upload this code into Arduino uno.
Complete link for this project is at:
Step 4: Step 4: Check Output
Once done, open Serial terminal and check the data coming from sensor,
Your should get it as shown.