Advertisement

Quick Links

OPT3001EVM Linux Getting Started Guide
Felipe Balbi
August 18, 2014

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the OPT3001EVM and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Texas Instruments OPT3001EVM

  • Page 1 OPT3001EVM Linux Getting Started Guide Felipe Balbi August 18, 2014...
  • Page 2 This page is intentionally left blank...
  • Page 3: Table Of Contents

    Contents 1 Scope 2 Introduction 2.1 OPT3001 ....... 2.2 Beagle Bone Black ......2.3 Linux Kernel .
  • Page 4: Scope

    Chapter 1 Scope This document will describe the necessary steps to connect OPT3001EVM to a BeagleBone Black development platform. By the end of this User’s Guide, the reader should be able to verify function- ality of the OPT3001 device and get results from light measurements.
  • Page 5: Introduction

    Beagle Bone Black Beagle Bone Black is an Open Source Hardware Software Development Plat- form using Texas Instruments’ AM335x System-on-Chip device. It provides an easy to use Software Development Platform based on an ARM Cortex-A8 CPU together with many other peripherals integrated into the die.
  • Page 6: Hardware Platform

    Chapter 3 Hardware Platform For the purpose of this Getting Started Guide, we will be using OPT3001EVM Rev B and Beagle Bone Black Rev A5C. The picture below shows a simple way of connecting OPT3001EVM to the Beagle Bone Black using a standard 100 mil spacing breadboard.
  • Page 7 CHAPTER 3. HARDWARE PLATFORM Figure 3.1: connecting opt3001evm to beagle bone black...
  • Page 8: The Linux Kernel

    The Linux Kernel Writing Our DeviceTree Now that we have OPT3001EVM connected to our Beagle Bone Black, we need to tell Linux about it. Recent Linux Kernel release utilize Open Firmware as the methodology for firmware to tell the Operating System about devices which sit under non-enumerable buses.
  • Page 9: Downloading The Correct Version

    CHAPTER 4. THE LINUX KERNEL &am33xx_pinmux { i2c2_pins: i2c2_pins { pinctrl-single,pins = < 0x178 (PIN_INPUT | SLEWCTRL_FAST | MUX_MODE3) uart1_ctsn.i2c2_sda */ 0x17c (PIN_INPUT | SLEWCTRL_FAST | MUX_MODE3) uart1_rtsn.i2c2_scl */ >; light_pins: light_pins { pinctrl-single,pins = < 0x78 (PIN_INPUT | MUX_MODE7) /* gpmc_ben1.gpio1_28 >;...
  • Page 10: Kernel Configuration

    (b) press Y (see figure 4.5); 3. navigate to Light sensors and press ENTER (see figure 4.6); 4. navigate to Texas Instruments OPT3001 Light Sensor (see figure 4.7); (a) press M (see figure 4.8); or (b) press Y (see figure 4.9);...
  • Page 11 CHAPTER 4. THE LINUX KERNEL 5. exit menuconfig by following all ¡Exit¿ buttons; 6. when asked if you want to save the new configuration, choose ¡Yes¿ (see figure 4.10).
  • Page 12 CHAPTER 4. THE LINUX KERNEL Figure 4.1: linux kernel configuration main window Figure 4.2: Navigating to Device Drivers Figure 4.3: Navigating to Industrial I/O support...
  • Page 13 CHAPTER 4. THE LINUX KERNEL Figure 4.4: Industrial I/O support after pressing M on the keyboard Figure 4.5: Industrial I/O support after pressing Y on the keyboard Figure 4.6: Navigating to Light sensors...
  • Page 14 CHAPTER 4. THE LINUX KERNEL Figure 4.7: Navigating to Texas Instruments OPT3001 Light Sensors Figure 4.8: OPT3001 after pressing M on the keyboard Figure 4.9: OPT3001 after pressing Y on the keyboard...
  • Page 15 CHAPTER 4. THE LINUX KERNEL Figure 4.10: Exitting menuconfig...
  • Page 16: Usage

    Chapter 5 Usage After booting up and logging in to our Beagle Bone Black running Linux, we will navigate to the directory where files created by our OPT3001 Device Driver are located. To do that, please run: # cd /sys/bus/iio/devices/iio\:device0 # ls \verb|in_illuminance_integration_time| power events...
  • Page 17 CHAPTER 5. USAGE Event: time: 946685149344980019, type: illuminance, channel: 0, evtype: thresh, direction: falling Event: time: 946685157295473266, type: illuminance, channel: 0, evtype: thresh, direction: rising Event: time: 946685162934369540, type: illuminance, channel: 0, evtype: thresh, direction: falling Event: time: 946685165222147843, type: illuminance, channel: 0, evtype: thresh, direction: rising Event: time: 946685166824180824, type: illuminance, channel: 0, evtype: thresh, direction: falling...
  • Page 18: Conclusion

    Chapter 6 Conclusion During this short Guide we have wired OPT3001EVM to a Beagle Bone Black using a standard breadboard, we downloaded and compiled the Linux Kernel and also verified that OPT3001 driver functions as expected.
  • Page 19 This page is intentionally left blank...

Table of Contents