Arduino Lux Meter - Interfacing OPT3001 With Arduino

Introduction: Arduino Lux Meter - Interfacing OPT3001 With Arduino

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
  • I2C Bus

    • 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:

http://www.microcontrollershub.com/project-05-opt3001-with-arduino-lux-meter

Step 4: Step 4: Check Output

Once done, open Serial terminal and check the data coming from sensor,

Your should get it as shown.

Share

    Recommendations

    • Fix It! Contest

      Fix It! Contest
    • Tiny Home Contest

      Tiny Home Contest
    • Metalworking Contest

      Metalworking Contest

    Discussions